model

package
v1.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2025 License: MIT Imports: 9 Imported by: 5

Documentation

Overview

Package model +kubebuilder:object:generate=true +groupName=pdok.nl

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseURL

func ParseURL(s string) (*url.URL, error)

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

func (in *Author) DeepCopy() *Author

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Author.

func (*Author) DeepCopyInto

func (in *Author) DeepCopyInto(out *Author)

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 ExtentToBBox(extent string) BBox

func (*BBox) Combine

func (b *BBox) Combine(other BBox)

func (*BBox) DeepCopy

func (in *BBox) DeepCopy() *BBox

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BBox.

func (*BBox) DeepCopyInto

func (in *BBox) DeepCopyInto(out *BBox)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (BBox) ToExtent

func (b BBox) ToExtent() string

func (BBox) ToPolygon

func (b BBox) ToPolygon() string

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

func (in *Lifecycle) DeepCopy() *Lifecycle

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Lifecycle.

func (*Lifecycle) DeepCopyInto

func (in *Lifecycle) DeepCopyInto(out *Lifecycle)

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"`
	Unavailable int32 `json:"unavailable"`
}

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) DeepCopy

func (u *URL) DeepCopy() *URL

DeepCopy copies the receiver, creates a new URL.

func (*URL) DeepCopyInto

func (u *URL) DeepCopyInto(out *URL)

DeepCopyInto copies the receiver, writes into out.

func (URL) MarshalJSON

func (u URL) MarshalJSON() ([]byte, error)

MarshalJSON turns URL into JSON. Value instead of pointer receiver because only that way it can be used for both.

func (URL) MarshalYAML

func (u URL) MarshalYAML() (interface{}, error)

MarshalYAML turns URL into YAML. Value instead of pointer receiver because only that way it can be used for both.

func (*URL) UnmarshalJSON

func (u *URL) UnmarshalJSON(b []byte) error

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.

func (*URL) UnmarshalYAML

func (u *URL) UnmarshalYAML(unmarshal func(any) error) error

UnmarshalYAML 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL