Documentation ¶
Index ¶
Constants ¶
const GroupName = "mesh.mk8s.costinm.github.com"
GroupName specifies the group name used to register the objects.
Variables ¶
var ( // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder // Deprecated: use Install instead AddToScheme = localSchemeBuilder.AddToScheme Install = localSchemeBuilder.AddToScheme )
var GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v1"}
GroupVersion specifies the group and the version used to register the objects.
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects Deprecated: use GroupVersion instead.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Ptr ¶
type Ptr struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Spec defines the state of a destination - it is dynamically determined by // different mechanisms. // Spec PtrSpec `json:"spec"` // Status defines the current state of a destination. // // +kubebuilder:default={conditions: {{type: "Accepted", status: "Unknown", reason:"Pending", message:"Waiting for controller", lastTransitionTime: "1970-01-01T00:00:00Z"},{type: "Programmed", status: "Unknown", reason:"Pending", message:"Waiting for controller", lastTransitionTime: "1970-01-01T00:00:00Z"}}} Status PtrStatus `json:"status,omitempty"` }
Ptr represents a pointer from an IP address to host info.
func (*Ptr) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ptr.
func (*Ptr) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Ptr) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PtrList ¶
type PtrList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Ptr `json:"items"` }
PtrList contains a list of Ptrs.
func (*PtrList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PtrList.
func (*PtrList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PtrList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PtrSpec ¶
PtrSpec defines the desired state of Ptr.
func (*PtrSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PtrSpec.
func (*PtrSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PtrStatus ¶
func (*PtrStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PtrStatus.
func (*PtrStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SyncStatus ¶
type SyncStatus struct { }
SyncStatus tracks the sync status for K8S or other revisioned resource.
This is an alternative to an informer holding the entire data set in memory and loading all data at startup.
A client would load the sync status and list or watch based on last resource that was handled.