Documentation ¶
Overview ¶
Package v1 is the v1 version of the API.
Index ¶
Constants ¶
const ( StatusDry = "dry" StatusHungry = "hungry" StatusNormal = "normal" StatusOverflow = "overflow" )
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: ipamd.GroupName, Version: "v1beta1"}
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 Ipamd ¶
type Ipamd struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec IpamdSpec `json:"spec"` Status IpamdStatus `json:"status"` }
Ipamd is a specification for a Ipamd resource
func (*Ipamd) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ipamd.
func (*Ipamd) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Ipamd) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IpamdList ¶
type IpamdList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Ipamd `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object IpamdList is a list of Ipamd resources
func (*IpamdList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpamdList.
func (*IpamdList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IpamdList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IpamdSpec ¶
type IpamdSpec struct { Node string `json:"node"` Addr string `json:"addr"` Subnet string `json:"subnet"` }
IpamdSpec is the spec for a Ipamd resource
func (*IpamdSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpamdSpec.
func (*IpamdSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IpamdStatus ¶
type IpamdStatus struct { Current int `json:"current"` High int `json:"high"` Low int `json:"low"` Status string `json:"status"` }
IpamdSpec is the status for Ipamd resource
func (*IpamdStatus) DeepCopy ¶
func (in *IpamdStatus) DeepCopy() *IpamdStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpamdStatus.
func (*IpamdStatus) DeepCopyInto ¶
func (in *IpamdStatus) DeepCopyInto(out *IpamdStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.