Documentation ¶
Index ¶
Constants ¶
const ( CrdDomain = "crd.atlassian.com" SleeperResourceSingular = "sleeper" SleeperResourcePlural = "sleepers" SleeperResourceVersion = "v1" SleeperResourceKind = "Sleeper" SleeperResourceGroupVersion = GroupName + "/" + SleeperResourceVersion SleeperResourceName = SleeperResourcePlural + "." + CrdDomain SleeperReadyStatePath = "{$.status.state}" SleeperReadyStateValue = Awake )
const GroupName = CrdDomain
GroupName is the group name use in this package.
Variables ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects.
var SleeperGVK = SchemeGroupVersion.WithKind(SleeperResourceKind)
Functions ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sleeper.
func (*Sleeper) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Sleeper) DeepCopyObject ¶
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.