Documentation
¶
Overview ¶
Package model +kubebuilder:object:generate=true +groupName=pdok.nl
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Author ¶
type Author struct {
// Name of the author
// +kubebuilder:validation:MinLength:=1
Name string `json:"name"`
// Email of the author
// +kubebuilder:validation:Format:=email
Email string `json:"email"`
}
Author represents the author or owner of the service or dataset
func (*Author) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Author.
func (*Author) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BBox ¶
type BBox struct {
// Linksboven X coördinaat
// +kubebuilder:validation:Pattern="^-?[0-9]+([.][0-9]*)?$"
MinX string `json:"minx"`
// Rechtsonder X coördinaat
// +kubebuilder:validation:Pattern="^-?[0-9]+([.][0-9]*)?$"
MaxX string `json:"maxx"`
// Linksboven Y coördinaat
// +kubebuilder:validation:Pattern="^-?[0-9]+([.][0-9]*)?$"
MinY string `json:"miny"`
// Rechtsonder Y coördinaat
// +kubebuilder:validation:Pattern="^-?[0-9]+([.][0-9]*)?$"
MaxY string `json:"maxy"`
}
BBox defines a bounding box with coordinates
func ExtentToBBox ¶
func (*BBox) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BBox.
func (*BBox) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressRouteURL ¶
type IngressRouteURL struct {
URL URL `json:"url"`
}
func (*IngressRouteURL) DeepCopy ¶
func (in *IngressRouteURL) DeepCopy() *IngressRouteURL
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRouteURL.
func (*IngressRouteURL) DeepCopyInto ¶
func (in *IngressRouteURL) DeepCopyInto(out *IngressRouteURL)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressRouteURLs ¶
type IngressRouteURLs []IngressRouteURL
IngressRouteURLs +kubebuilder:validation:MinItems:=1 Without maxItems x-kubernetes-validation complains about an exceeded computation budget as the list can grow infinitely in theory +kubebuilder:validation:MaxItems:=30
func (IngressRouteURLs) DeepCopy ¶
func (in IngressRouteURLs) DeepCopy() IngressRouteURLs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRouteURLs.
func (IngressRouteURLs) DeepCopyInto ¶
func (in IngressRouteURLs) DeepCopyInto(out *IngressRouteURLs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Lifecycle ¶
type Lifecycle struct {
TTLInDays *int32 `json:"ttlInDays,omitempty"`
}
func (*Lifecycle) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Lifecycle.
func (*Lifecycle) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LifecyclePhase ¶ added in v1.2.4
type LifecyclePhase string
const ( // PreProd ... PreProd LifecyclePhase = "preprod" // Prod ... Prod LifecyclePhase = "prod" )
func ParseLifecyclePhase ¶ added in v1.2.4
func ParseLifecyclePhase(lifecyclePhase string, namespace string) LifecyclePhase
type OperatorStatus ¶
type OperatorStatus struct {
// Summary of status of pods that belong to this CR
PodSummary PodSummary `json:"podSummary,omitempty"`
// Each condition contains details for one aspect of the current state of this CR.
// Known .status.conditions.type are: "Reconciled"
Conditions []metav1.Condition `json:"conditions,omitempty"`
// The result of creating or updating of each derived resource for this CR.
OperationResults map[string]controllerutil.OperationResult `json:"operationResults,omitempty"`
}
OperatorStatus defines the observed state of an Atom/WFS/WMS/OGCAPI/...
func (*OperatorStatus) DeepCopy ¶
func (in *OperatorStatus) DeepCopy() *OperatorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorStatus.
func (*OperatorStatus) DeepCopyInto ¶
func (in *OperatorStatus) DeepCopyInto(out *OperatorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodSummary ¶
type PodSummary []ReplicaSetStatus
func (PodSummary) DeepCopy ¶
func (in PodSummary) DeepCopy() PodSummary
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSummary.
func (PodSummary) DeepCopyInto ¶
func (in PodSummary) DeepCopyInto(out *PodSummary)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReplicaSetStatus ¶
type ReplicaSetStatus struct {
Generation int32 `json:"generation"`
Total int32 `json:"total"`
Ready int32 `json:"ready"`
Available int32 `json:"available"`
}
func (*ReplicaSetStatus) DeepCopy ¶
func (in *ReplicaSetStatus) DeepCopy() *ReplicaSetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSetStatus.
func (*ReplicaSetStatus) DeepCopyInto ¶
func (in *ReplicaSetStatus) DeepCopyInto(out *ReplicaSetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceType ¶ added in v1.2.4
type ServiceType string
ServiceType ...
const ( // WMS ... WMS ServiceType = "WMS" // WFS ... WFS ServiceType = "WFS" // Atom ... Atom ServiceType = "Atom" // OGCAPI ... OGCAPI ServiceType = "OGCAPI" )
func ParseServiceType ¶ added in v1.2.4
func ParseServiceType(input string) (ServiceType, error)
ParseServiceType parses the pdok.nl/service-type label to a ServiceType
func (ServiceType) ServiceTypeLabel ¶ added in v1.2.4
func (t ServiceType) ServiceTypeLabel() string
ServiceTypeLabel returns the value of the pdok.nl/service-type label for a ServiceType
type URL ¶
type URL struct {
// This is a pointer so the wrapper can directly be used in templates, e.g.: {{ .Config.BaseURL }}
// Otherwise you would need .String() or template.URL(). (Might be a bug.)
*url.URL
}
URL Custom net.URL compatible with YAML and JSON (un)marshalling and kubebuilder. In addition, it also removes trailing slash if present, so we can easily append a longer path without having to worry about double slashes.
Allow only http/https URLs or environment variables like ${FOOBAR} +kubebuilder:validation:Pattern=`^https?://.+/.+` +kubebuilder:validation:Type=string
func (*URL) DeepCopyInto ¶
DeepCopyInto copies the receiver, writes into out.
func (URL) MarshalJSON ¶
MarshalJSON turns URL into JSON. Value instead of pointer receiver because only that way it can be used for both.
func (URL) MarshalYAML ¶
MarshalYAML turns URL into YAML. Value instead of pointer receiver because only that way it can be used for both.
func (*URL) UnmarshalJSON ¶
UnmarshalJSON parses a string to URL and also removes trailing slash if present, so we can easily append a longer path without having to worry about double slashes.