v2beta1

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package v2beta1 contains API Schema definitions for the v2beta1 API group. +kubebuilder:object:generate=true +groupName=pdok.nl

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "pdok.nl", Version: "v2beta1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func GetFloat32AsString

func GetFloat32AsString(value float32) string

func GetInt32Pointer

func GetInt32Pointer(value int32) *int32

func GetIntPointer

func GetIntPointer(value int) *int

func GetStringAsFloat32

func GetStringAsFloat32(value string) float32

Types

type Atom

type Atom struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AtomSpec   `json:"spec,omitempty"`
	Status AtomStatus `json:"status,omitempty"`
}

Atom is the Schema for the atoms API.

func (*Atom) ConvertFrom

func (a *Atom) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom converts the Hub version (v3) to this Atom (v2beta1).

func (*Atom) ConvertTo

func (a *Atom) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts this Atom (v2beta1) to the Hub version (v3).

func (*Atom) DeepCopy

func (in *Atom) DeepCopy() *Atom

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

func (*Atom) DeepCopyInto

func (in *Atom) DeepCopyInto(out *Atom)

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

func (*Atom) DeepCopyObject

func (in *Atom) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Atom) ToV3

func (a *Atom) ToV3(dst *pdoknlv3.Atom) error

ConvertTo converts this Atom (v2beta1) to the Hub version (v3).

type AtomList

type AtomList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Atom `json:"items"`
}

AtomList contains a list of Atom.

func (*AtomList) DeepCopy

func (in *AtomList) DeepCopy() *AtomList

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

func (*AtomList) DeepCopyInto

func (in *AtomList) DeepCopyInto(out *AtomList)

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

func (*AtomList) DeepCopyObject

func (in *AtomList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AtomService

type AtomService struct {
	Title              string    `json:"title"`
	Subtitle           string    `json:"subtitle"`
	MetadataIdentifier string    `json:"metadataIdentifier"`
	Rights             string    `json:"rights"`
	Updated            *string   `json:"updated,omitempty"` // deprecated
	Author             Author    `json:"author"`
	Datasets           []Dataset `json:"datasets"`
}

AtomService is the struct for all service level fields

func (*AtomService) DeepCopy

func (in *AtomService) DeepCopy() *AtomService

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

func (*AtomService) DeepCopyInto

func (in *AtomService) DeepCopyInto(out *AtomService)

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

type AtomSpec

type AtomSpec struct {
	General    General     `json:"general"`
	Service    AtomService `json:"service"`
	Kubernetes *Kubernetes `json:"kubernetes,omitempty"`
}

AtomSpec defines the desired state of Atom.

func (*AtomSpec) DeepCopy

func (in *AtomSpec) DeepCopy() *AtomSpec

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

func (*AtomSpec) DeepCopyInto

func (in *AtomSpec) DeepCopyInto(out *AtomSpec)

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

type AtomStatus

type AtomStatus struct {
}

AtomStatus defines the observed state of Atom.

func (*AtomStatus) DeepCopy

func (in *AtomStatus) DeepCopy() *AtomStatus

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

func (*AtomStatus) DeepCopyInto

func (in *AtomStatus) DeepCopyInto(out *AtomStatus)

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

type Author

type Author struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

Author is the struct with the input for the author field of an atom

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 Autoscaling

type Autoscaling struct {
	AverageCPUUtilization *int `json:"averageCpuUtilization,omitempty"`
	MinReplicas           *int `json:"minReplicas,omitempty"`
	MaxReplicas           *int `json:"maxReplicas,omitempty"`
}

Autoscaling is the struct with all fields to configure autoscalers for the crs

func (*Autoscaling) DeepCopy

func (in *Autoscaling) DeepCopy() *Autoscaling

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

func (*Autoscaling) DeepCopyInto

func (in *Autoscaling) DeepCopyInto(out *Autoscaling)

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

type Bbox

type Bbox struct {
	Minx float32 `json:"minx"`
	Maxx float32 `json:"maxx"`
	Miny float32 `json:"miny"`
	Maxy float32 `json:"maxy"`
}

Bbox is the struct for the bounding box extent of an atom

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.

type Condition

type Condition struct {
	Type               ConditionType   `json:"type"`
	Status             ConditionStatus `json:"status"`
	LastTransitionTime metav1.Time     `json:"lastTransitionTime"`
	AnsibleResult      *ResultAnsible  `json:"ansibleResult,omitempty"`
	Reason             string          `json:"reason"`
	Message            string          `json:"message"`
}

Condition - the condition for the ansible operator

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

type ConditionStatus

type ConditionStatus string

ConditionStatus specifies a string for field ConditionType

type ConditionType

type ConditionType string

ConditionType specifies a string for field ConditionType

type Dataset

type Dataset struct {
	Name               string      `json:"name"`
	Title              string      `json:"title"`
	Subtitle           string      `json:"subtitle"`
	MetadataIdentifier string      `json:"metadataIdentifier"`
	SourceIdentifier   string      `json:"sourceIdentifier"`
	Links              []OtherLink `json:"links,omitempty"`
	Downloads          []Download  `json:"downloads"`
	Bbox               Bbox        `json:"bbox"`
}

Dataset is the struct for all dataset level fields

func (*Dataset) DeepCopy

func (in *Dataset) DeepCopy() *Dataset

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

func (*Dataset) DeepCopyInto

func (in *Dataset) DeepCopyInto(out *Dataset)

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

type Download

type Download struct {
	Name    string  `json:"name"`
	Title   *string `json:"title,omitempty"`
	Updated *string `json:"updated,omitempty"`
	Content *string `json:"content,omitempty"`
	Links   []Link  `json:"links,omitempty"`
	Srs     Srs     `json:"srs"`
}

Download is the struct for the download level fields

func (*Download) DeepCopy

func (in *Download) DeepCopy() *Download

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

func (*Download) DeepCopyInto

func (in *Download) DeepCopyInto(out *Download)

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

type General

type General struct {
	Dataset        string  `json:"dataset"`
	Theme          *string `json:"theme,omitempty"`
	DatasetOwner   string  `json:"datasetOwner"`
	ServiceVersion *string `json:"serviceVersion,omitempty"`
	DataVersion    *string `json:"dataVersion,omitempty"`
}

General is the struct with all generic fields for the crds

func (*General) DeepCopy

func (in *General) DeepCopy() *General

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

func (*General) DeepCopyInto

func (in *General) DeepCopyInto(out *General)

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

type HealthCheck

type HealthCheck struct {
	Querystring *string `json:"querystring,omitempty"`
	Mimetype    *string `json:"mimetype,omitempty"`
	Boundingbox *string `json:"boundingbox,omitempty"`
}

HealthCheck is the struct with all fields to configure healthchecks for the crs

func (*HealthCheck) DeepCopy

func (in *HealthCheck) DeepCopy() *HealthCheck

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

func (*HealthCheck) DeepCopyInto

func (in *HealthCheck) DeepCopyInto(out *HealthCheck)

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

type Kubernetes

type Kubernetes struct {
	Autoscaling *Autoscaling                 `json:"autoscaling,omitempty"`
	HealthCheck *HealthCheck                 `json:"healthCheck,omitempty"`
	Resources   *corev1.ResourceRequirements `json:"resources,omitempty"`
	Lifecycle   *Lifecycle                   `json:"lifecycle,omitempty"`
}

Kubernetes is the struct with all fields that can be defined in kubernetes fields in the crds

func (*Kubernetes) DeepCopy

func (in *Kubernetes) DeepCopy() *Kubernetes

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

func (*Kubernetes) DeepCopyInto

func (in *Kubernetes) DeepCopyInto(out *Kubernetes)

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

type Lifecycle

type Lifecycle struct {
	TTLInDays *int `json:"ttlInDays,omitempty"`
}

Lifecycle is the struct with the fields to configure lifecycle settings for the resources

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 Link struct {
	BlobKey *string `json:"blobKey"`
	Updated *string `json:"updated,omitempty"`
	Version *string `json:"version,omitempty"`
	Bbox    *Bbox   `json:"bbox,omitempty"`
	Rel     *string `json:"rel,omitempty"`
}

Link represents a link in a download entry

func (*Link) DeepCopy

func (in *Link) DeepCopy() *Link

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

func (*Link) DeepCopyInto

func (in *Link) DeepCopyInto(out *Link)

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

type OtherLink struct {
	Type        string  `json:"type"`
	URI         string  `json:"uri"`
	ContentType *string `json:"contentType,omitempty"`
	Language    *string `json:"language,omitempty"`
}

OtherLink represents any type of link that is not a download link related to the data (see Link)

func (*OtherLink) DeepCopy

func (in *OtherLink) DeepCopy() *OtherLink

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

func (*OtherLink) DeepCopyInto

func (in *OtherLink) DeepCopyInto(out *OtherLink)

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

type Resources

type Resources struct {
	APIVersion *string `json:"apiversion,omitempty"`
	Kind       *string `json:"kind,omitempty"`
	Name       *string `json:"name,omitempty"`
}

Resources is the struct for the resources field within status

func (*Resources) DeepCopy

func (in *Resources) DeepCopy() *Resources

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

func (*Resources) DeepCopyInto

func (in *Resources) DeepCopyInto(out *Resources)

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

type ResultAnsible

type ResultAnsible struct {
	Ok               int    `json:"ok"`
	Changed          int    `json:"changed"`
	Skipped          int    `json:"skipped"`
	Failures         int    `json:"failures"`
	TimeOfCompletion string `json:"completion"`
}

ResultAnsible - encapsulation of the ansible result. 'AnsibleResult' is turned around in struct to comply with linting

func (*ResultAnsible) DeepCopy

func (in *ResultAnsible) DeepCopy() *ResultAnsible

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

func (*ResultAnsible) DeepCopyInto

func (in *ResultAnsible) DeepCopyInto(out *ResultAnsible)

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

type Srs

type Srs struct {
	URI  string `json:"uri"`
	Code string `json:"code"`
}

Srs is the struct with the information for the srs field of an atom

func (*Srs) DeepCopy

func (in *Srs) DeepCopy() *Srs

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

func (*Srs) DeepCopyInto

func (in *Srs) DeepCopyInto(out *Srs)

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

type Status

type Status struct {
	Conditions []Condition `json:"conditions,omitempty"`
	Deployment *string     `json:"deployment,omitempty"`
	Resources  []Resources `json:"resources,omitempty"`
}

Status - The status for custom resources managed by the operator-sdk.

func (*Status) DeepCopy

func (in *Status) DeepCopy() *Status

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

func (*Status) DeepCopyInto

func (in *Status) DeepCopyInto(out *Status)

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

Jump to

Keyboard shortcuts

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