Documentation
¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func OkString(b bool) string
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetDefaults_IkniteCluster(obj *IkniteCluster)
- func SetDefaults_IkniteClusterSpec(obj *IkniteClusterSpec)
- func SetDefautls_IkniteClusterStatus(obj *IkniteClusterStatus)
- func SetObjectDefaults_IkniteCluster(in *IkniteCluster)
- type ClusterWorkloadsState
- type IkniteCluster
- func (in *IkniteCluster) DeepCopy() *IkniteCluster
- func (in *IkniteCluster) DeepCopyInto(out *IkniteCluster)
- func (in *IkniteCluster) DeepCopyObject() runtime.Object
- func (ikniteCluster IkniteCluster) Persist()
- func (ikniteCluster *IkniteCluster) Update(state ikniteapi.ClusterState, phase string, ready, unready []*WorkloadState)
- type IkniteClusterSpec
- type IkniteClusterStatus
- type WorkloadState
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder points to a list of functions added to Scheme. SchemeBuilder runtime.SchemeBuilder // AddToScheme applies all the stored functions to the scheme. AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: ikniteapi.GroupName, Version: ikniteapi.V1alpha1Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
func SetDefaults_IkniteCluster ¶
func SetDefaults_IkniteCluster(obj *IkniteCluster)
func SetDefaults_IkniteClusterSpec ¶
func SetDefaults_IkniteClusterSpec(obj *IkniteClusterSpec)
func SetDefautls_IkniteClusterStatus ¶
func SetDefautls_IkniteClusterStatus(obj *IkniteClusterStatus)
func SetObjectDefaults_IkniteCluster ¶
func SetObjectDefaults_IkniteCluster(in *IkniteCluster)
Types ¶
type ClusterWorkloadsState ¶
type ClusterWorkloadsState struct { Count int `json:"count" protobuf:"bytes,1,opt,name=count"` ReadyCount int `json:"readyCount" protobuf:"bytes,2,opt,name=readyCount"` UnreadyCount int `json:"unreadyCount" protobuf:"bytes,3,opt,name=unreadyCount"` Ready []*WorkloadState `json:"ready" protobuf:"bytes,4,opt,name=ready"` Unready []*WorkloadState `json:"unready" protobuf:"bytes,5,opt,name=unready"` }
func (*ClusterWorkloadsState) DeepCopy ¶
func (in *ClusterWorkloadsState) DeepCopy() *ClusterWorkloadsState
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterWorkloadsState.
func (*ClusterWorkloadsState) DeepCopyInto ¶
func (in *ClusterWorkloadsState) DeepCopyInto(out *ClusterWorkloadsState)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IkniteCluster ¶
type IkniteCluster struct { metav1.TypeMeta `json:",inline"` Spec IkniteClusterSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // +optional Status IkniteClusterStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func LoadIkniteCluster ¶
func LoadIkniteCluster() (*IkniteCluster, error)
func (*IkniteCluster) DeepCopy ¶
func (in *IkniteCluster) DeepCopy() *IkniteCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IkniteCluster.
func (*IkniteCluster) DeepCopyInto ¶
func (in *IkniteCluster) DeepCopyInto(out *IkniteCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IkniteCluster) DeepCopyObject ¶
func (in *IkniteCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (IkniteCluster) Persist ¶
func (ikniteCluster IkniteCluster) Persist()
func (*IkniteCluster) Update ¶
func (ikniteCluster *IkniteCluster) Update(state ikniteapi.ClusterState, phase string, ready, unready []*WorkloadState)
type IkniteClusterSpec ¶
type IkniteClusterSpec struct { // +optional Ip net.IP `json:"ip,omitempty" protobuf:"bytes,1,opt,name=ip" mapstructure:"ip"` // +optional KubernetesVersion string `json:"kubernetesVersion,omitempty" protobuf:"bytes,2,opt,name=kubernetesVersion" mapstructure:"kubernetes_version"` // +optional DomainName string `json:"domainName,omitempty" protobuf:"bytes,3,opt,name=domainName" mapstructure:"domain_name"` // +optional CreateIp bool `json:"createIp,omitempty" protobuf:"bytes,4,opt,name=createIp" mapstructure:"create_ip"` // +optional NetworkInterface string `json:"networkInterface,omitempty" protobuf:"bytes,5,opt,name=networkInterface" mapstructure:"network_interface"` // +optional EnableMDNS bool `json:"enableMDNS,omitempty" protobuf:"bytes,6,opt,name=enableMDNS" mapstructure:"enable_mdns"` // +optional ClusterName string `json:"clusterName,omitempty" protobuf:"bytes,7,opt,name=clusterName" mapstructure:"cluster_name"` }
func (*IkniteClusterSpec) DeepCopy ¶
func (in *IkniteClusterSpec) DeepCopy() *IkniteClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IkniteClusterSpec.
func (*IkniteClusterSpec) DeepCopyInto ¶
func (in *IkniteClusterSpec) DeepCopyInto(out *IkniteClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IkniteClusterSpec) GetApiEndPoint ¶
func (c *IkniteClusterSpec) GetApiEndPoint() string
type IkniteClusterStatus ¶
type IkniteClusterStatus struct { LastUpdateTimeStamp metav1.Time `json:"lastUpdateTimeStamp" protobuf:"bytes,1,opt,name=lastUpdateTimeStamp"` State ikniteapi.ClusterState `json:"state" protobuf:"bytes,1,opt,name=state"` CurrentPhase string `json:"currentPhase" protobuf:"bytes,2,opt,name=currentPhase"` WorkloadsState ClusterWorkloadsState `json:"workloadsState" protobuf:"bytes,3,opt,name=workloadsState"` }
func (*IkniteClusterStatus) DeepCopy ¶
func (in *IkniteClusterStatus) DeepCopy() *IkniteClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IkniteClusterStatus.
func (*IkniteClusterStatus) DeepCopyInto ¶
func (in *IkniteClusterStatus) DeepCopyInto(out *IkniteClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadState ¶
func (*WorkloadState) DeepCopy ¶
func (in *WorkloadState) DeepCopy() *WorkloadState
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadState.
func (*WorkloadState) DeepCopyInto ¶
func (in *WorkloadState) DeepCopyInto(out *WorkloadState)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkloadState) LongString ¶
func (r *WorkloadState) LongString() string
func (*WorkloadState) String ¶
func (r *WorkloadState) String() string