Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: "stable.wbsnail.com", Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Rabbit ¶
type Rabbit struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // This is where you can define // your own custom spec Spec RabbitSpec `json:"spec,omitempty"` }
Rabbit is a top-level type
func (*Rabbit) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rabbit.
func (*Rabbit) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Rabbit) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RabbitList ¶
type RabbitList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `son:"metadata,omitempty"` Items []Rabbit `json:"items"` }
RabbitList no client needed for list as it's been created in above
func (*RabbitList) DeepCopy ¶
func (in *RabbitList) DeepCopy() *RabbitList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RabbitList.
func (*RabbitList) DeepCopyInto ¶
func (in *RabbitList) DeepCopyInto(out *RabbitList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RabbitList) DeepCopyObject ¶
func (in *RabbitList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RabbitSpec ¶
type RabbitSpec struct {
Color string `json:"color,omitempty"`
}
func (*RabbitSpec) DeepCopy ¶
func (in *RabbitSpec) DeepCopy() *RabbitSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RabbitSpec.
func (*RabbitSpec) DeepCopyInto ¶
func (in *RabbitSpec) DeepCopyInto(out *RabbitSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.