v1alpha1

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the fun v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=sigs.k8s.io/controller-tools/pkg/crd/generator/testData/pkg/apis/fun +k8s:defaulter-gen=TypeMeta +groupName=fun.myk8s.io

Package v1alpha1 contains API Schema definitions for the fun v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=sigs.k8s.io/controller-tools/pkg/crd/generator/testData/pkg/apis/fun +k8s:defaulter-gen=TypeMeta +groupName=fun.myk8s.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "fun.myk8s.io", Version: "v1alpha1"}

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

Functions

This section is empty.

Types

type Toy

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

	Spec   ToySpec   `json:"spec,omitempty"`
	Status ToyStatus `json:"status,omitempty"`
}

Toy is the Schema for the toys API +k8s:openapi-gen=true

func (*Toy) DeepCopy

func (in *Toy) DeepCopy() *Toy

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

func (*Toy) DeepCopyInto

func (in *Toy) DeepCopyInto(out *Toy)

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

func (*Toy) DeepCopyObject

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

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

type ToyList

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

ToyList contains a list of Toy

func (*ToyList) DeepCopy

func (in *ToyList) DeepCopy() *ToyList

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

func (*ToyList) DeepCopyInto

func (in *ToyList) DeepCopyInto(out *ToyList)

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

func (*ToyList) DeepCopyObject

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

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

type ToySpec

type ToySpec struct {

	// +kubebuilder:validation:Maximum=100
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:ExclusiveMinimum=true
	Power  float32 `json:"power,omitempty"`
	Bricks int32   `json:"bricks,omitempty"`
	// +kubebuilder:validation:MaxLength=15
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name,omitempty"`
	// +kubebuilder:validation:MaxItems=500
	// +kubebuilder:validation:MinItems=1
	// +kubebuilder:validation:UniqueItems=false
	Knights []string `json:"knights,omitempty"`
	Winner  bool     `json:"winner,omitempty"`
	// +kubebuilder:validation:Enum=Lion,Wolf,Dragon
	Alias string `json:"alias,omitempty"`
	// +kubebuilder:validation:Enum=1,2,3
	Rank    int    `json:"rank"`
	Comment []byte `json:"comment,omitempty"`

	Template v1.PodTemplateSpec       `json:"template"`
	Claim    v1.PersistentVolumeClaim `json:"claim,omitempty"`
}

ToySpec defines the desired state of Toy

func (*ToySpec) DeepCopy

func (in *ToySpec) DeepCopy() *ToySpec

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

func (*ToySpec) DeepCopyInto

func (in *ToySpec) DeepCopyInto(out *ToySpec)

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

type ToyStatus

type ToyStatus struct {
}

ToyStatus defines the observed state of Toy

func (*ToyStatus) DeepCopy

func (in *ToyStatus) DeepCopy() *ToyStatus

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

func (*ToyStatus) DeepCopyInto

func (in *ToyStatus) DeepCopyInto(out *ToyStatus)

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