v1alpha1

package
v0.0.0-...-9094c1a Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: cat.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type BreedType

type BreedType string

BreedType is the type of breed that the cat is.

var (
	// BreedTypeMoggie is for a type of cat that is just a moggie
	BreedTypeMoggie BreedType = "moggie"

	// BreedTypeMaineCoone is for big giant maine coons
	BreedTypeMaineCoone BreedType = "maine-coone"

	// BreedTypePersian is for long haired Persain cats
	BreedTypePersian BreedType = "persian"
)

type Cat

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

	Spec   CatSpec   `json:"spec"`
	Status CatStatus `json:"status"`
}

Cat is a specification for a Cat resource, which allows the user to create cats inside their k8s cluster

func (*Cat) DeepCopy

func (in *Cat) DeepCopy() *Cat

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

func (*Cat) DeepCopyInto

func (in *Cat) DeepCopyInto(out *Cat)

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

func (*Cat) DeepCopyObject

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

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

type CatCondition

type CatCondition struct {
	Type               CatConditionType       `json:"type"`
	Status             corev1.ConditionStatus `json:"status"`
	LastTransitionTime metav1.Time            `json:"lastTransitionTime"`
	// +optional
	Reason string `json:"reason,omitempty"`
	// +optional
	Message string `json:"message,omitempty"`
}

CatCondition holds a Condition that the Cat has entered into while being executed

func (*CatCondition) DeepCopy

func (in *CatCondition) DeepCopy() *CatCondition

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

func (*CatCondition) DeepCopyInto

func (in *CatCondition) DeepCopyInto(out *CatCondition)

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

type CatConditionType

type CatConditionType string

CatConditionType is the type for Cat conditions

var (
	// CatConditionTypeNap represents whether or not this cat is taking a nap
	CatConditionTypeNap CatConditionType = "nap"

	// CatConditionTypeHungry represents whether or not this cat is hungry
	CatConditionTypeHungry CatConditionType = "hungry"
)

type CatList

type CatList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Cat `json:"items"`
}

CatList is a list of Cat resources

func (*CatList) DeepCopy

func (in *CatList) DeepCopy() *CatList

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

func (*CatList) DeepCopyInto

func (in *CatList) DeepCopyInto(out *CatList)

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

func (*CatList) DeepCopyObject

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

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

type CatSpec

type CatSpec struct {
	Name   string    `json:"name"`
	Phrase string    `json:"phrase"`
	Breed  BreedType `json:"breed"`
}

CatSpec is the spec for a Cat resource

func (*CatSpec) DeepCopy

func (in *CatSpec) DeepCopy() *CatSpec

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

func (*CatSpec) DeepCopyInto

func (in *CatSpec) DeepCopyInto(out *CatSpec)

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

type CatStatus

type CatStatus struct {
	Conditions []CatCondition `json:"conditions"`
}

CatStatus is the status for a Cat resource

func (*CatStatus) DeepCopy

func (in *CatStatus) DeepCopy() *CatStatus

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

func (*CatStatus) DeepCopyInto

func (in *CatStatus) DeepCopyInto(out *CatStatus)

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