apiextensions: github.com/giantswarm/apiextensions/pkg/apis/release/v1alpha1 Index | Files

package v1alpha1

import "github.com/giantswarm/apiextensions/pkg/apis/release/v1alpha1"

+groupName=release.giantswarm.io

Index

Package Files

deep_copy.go doc.go register.go release_types.go zz_generated.deepcopy.go

Variables

var (

    // AddToScheme is used by the generated client.
    AddToScheme = schemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{
    Group:   group,
    Version: version,
}

SchemeGroupVersion is group version used to register these objects

func NewReleaseCRD Uses

func NewReleaseCRD() *v1.CustomResourceDefinition

func NewReleaseTypeMeta Uses

func NewReleaseTypeMeta() metav1.TypeMeta

type DeepCopyDate Uses

type DeepCopyDate struct {
    metav1.Time `json:",inline"`
}

+kubebuilder:validation:Type=string DeepCopyDate is a date type designed to be validated with json-schema date type.

func (*DeepCopyDate) DeepCopy Uses

func (in *DeepCopyDate) DeepCopy() *DeepCopyDate

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

func (*DeepCopyDate) DeepCopyInto Uses

func (in *DeepCopyDate) DeepCopyInto(out *DeepCopyDate)

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

func (DeepCopyDate) MarshalJSON Uses

func (d DeepCopyDate) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface. The time is expected to be a quoted string in yyyy-mm-dd format.

NOTE: This method has a value (not pointer) receiver. Otherwise marshalling will stop working for values. When this is a value receiver it works for both.

func (*DeepCopyDate) UnmarshalJSON Uses

func (d *DeepCopyDate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface. The time is expected to be a quoted string in yyyy-mm-dd format.

type Release Uses

type Release struct {
    metav1.TypeMeta   `json:",inline"`
    metav1.ObjectMeta `json:"metadata"`
    Spec              ReleaseSpec `json:"spec"`
}

Release is a Kubernetes resource (CR) representing a Giant Swarm tenant cluster release.

func NewReleaseCR Uses

func NewReleaseCR() *Release

func (*Release) DeepCopy Uses

func (in *Release) DeepCopy() *Release

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

func (*Release) DeepCopyInto Uses

func (in *Release) DeepCopyInto(out *Release)

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

func (*Release) DeepCopyObject Uses

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

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

type ReleaseList Uses

type ReleaseList struct {
    metav1.TypeMeta `json:",inline"`
    metav1.ListMeta `json:"metadata"`
    Items           []Release `json:"items"`
}

func (*ReleaseList) DeepCopy Uses

func (in *ReleaseList) DeepCopy() *ReleaseList

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

func (*ReleaseList) DeepCopyInto Uses

func (in *ReleaseList) DeepCopyInto(out *ReleaseList)

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

func (*ReleaseList) DeepCopyObject Uses

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

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

type ReleaseSpec Uses

type ReleaseSpec struct {
    // Apps describes apps used in this release.
    Apps []ReleaseSpecApp `json:"apps"`
    // +kubebuilder:validation:MinItems=1
    // Components describes components used in this release.
    Components []ReleaseSpecComponent `json:"components"`
    // Date that the release became active.
    Date *metav1.Time `json:"date"`
    // +kubebuilder:validation:Type=string
    // +kubebuilder:validation:Pattern=`^(active|deprecated|wip)$`
    // State indicates the availability of the release: deprecated, active, or wip.
    State ReleaseState `json:"state"`
}

+k8s:openapi-gen=true

func (*ReleaseSpec) DeepCopy Uses

func (in *ReleaseSpec) DeepCopy() *ReleaseSpec

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

func (*ReleaseSpec) DeepCopyInto Uses

func (in *ReleaseSpec) DeepCopyInto(out *ReleaseSpec)

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

type ReleaseSpecApp Uses

type ReleaseSpecApp struct {
    // Version of the upstream component used in the app.
    ComponentVersion string `json:"componentVersion,omitempty"`
    // Name of the app.
    Name string `json:"name"`
    // +kubebuilder:validation:Pattern=`^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$`
    // Version of the app.
    Version string `json:"version"`
}

+k8s:openapi-gen=true

func (*ReleaseSpecApp) DeepCopy Uses

func (in *ReleaseSpecApp) DeepCopy() *ReleaseSpecApp

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

func (*ReleaseSpecApp) DeepCopyInto Uses

func (in *ReleaseSpecApp) DeepCopyInto(out *ReleaseSpecApp)

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

type ReleaseSpecComponent Uses

type ReleaseSpecComponent struct {
    // Name of the component.
    Name string `json:"name"`
    // +kubebuilder:validation:Pattern=`^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$`
    // Version of the component.
    Version string `json:"version"`
}

+k8s:openapi-gen=true

func (*ReleaseSpecComponent) DeepCopy Uses

func (in *ReleaseSpecComponent) DeepCopy() *ReleaseSpecComponent

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

func (*ReleaseSpecComponent) DeepCopyInto Uses

func (in *ReleaseSpecComponent) DeepCopyInto(out *ReleaseSpecComponent)

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

type ReleaseState Uses

type ReleaseState string

func (ReleaseState) String Uses

func (r ReleaseState) String() string

Package v1alpha1 imports 6 packages (graph) and is imported by 10 packages. Updated 2020-06-30. Refresh now. Tools for package owners.