v1

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2019 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CrdDomain = "crd.atlassian.com"

	SleeperResourceSingular = "sleeper"
	SleeperResourcePlural   = "sleepers"
	SleeperResourceVersion  = "v1"
	SleeperResourceKind     = "Sleeper"

	SleeperResourceGroupVersion = GroupName + "/" + SleeperResourceVersion

	SleeperResourceName = SleeperResourcePlural + "." + CrdDomain

	SleeperReadyStatePath  = "{$.status.state}"
	SleeperReadyStateValue = Awake
)
View Source
const GroupName = CrdDomain

GroupName is the group name use in this package.

Variables

View Source
var (
	// SchemeBuilder needs to be exported as `SchemeBuilder` so
	// the code-generation can find it.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is exposed for API installation
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}

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 a Group qualified GroupKind.

Types

type Sleeper

type Sleeper struct {
	meta_v1.TypeMeta `json:",inline"`

	// Standard object metadata
	meta_v1.ObjectMeta `json:"metadata,omitempty"`

	// Spec is the specification of the desired behavior of the Sleeper.
	Spec SleeperSpec `json:"spec,omitempty"`

	// Status is most recently observed status of the Sleeper.
	Status SleeperStatus `json:"status,omitempty"`
}

+k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Sleeper describes a sleeping resource.

func (*Sleeper) DeepCopy

func (in *Sleeper) DeepCopy() *Sleeper

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

func (*Sleeper) DeepCopyInto

func (in *Sleeper) DeepCopyInto(out *Sleeper)

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

func (*Sleeper) DeepCopyObject

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

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

type SleeperList

type SleeperList struct {
	meta_v1.TypeMeta `json:",inline"`
	// Standard list metadata.
	meta_v1.ListMeta `json:"metadata,omitempty"`

	// Items is a list of sleepers.
	Items []Sleeper `json:"items"`
}

+k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*SleeperList) DeepCopy

func (in *SleeperList) DeepCopy() *SleeperList

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

func (*SleeperList) DeepCopyInto

func (in *SleeperList) DeepCopyInto(out *SleeperList)

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

func (*SleeperList) DeepCopyObject

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

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

type SleeperSpec

type SleeperSpec struct {
	SleepFor      int    `json:"sleepFor"`
	WakeupMessage string `json:"wakeupMessage"`
}

+k8s:deepcopy-gen=true

func (*SleeperSpec) DeepCopy

func (in *SleeperSpec) DeepCopy() *SleeperSpec

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

func (*SleeperSpec) DeepCopyInto

func (in *SleeperSpec) DeepCopyInto(out *SleeperSpec)

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

type SleeperState

type SleeperState string
const (
	New      SleeperState = ""
	Sleeping SleeperState = "Sleeping"
	Awake    SleeperState = "Awake!"
	Error    SleeperState = "Error"
)

type SleeperStatus

type SleeperStatus struct {
	State   SleeperState `json:"state,omitempty"`
	Message string       `json:"message,omitempty"`
}

+k8s:deepcopy-gen=true

func (*SleeperStatus) DeepCopy

func (in *SleeperStatus) DeepCopy() *SleeperStatus

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

func (*SleeperStatus) DeepCopyInto

func (in *SleeperStatus) DeepCopyInto(out *SleeperStatus)

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