Documentation ¶
Overview ¶
Package api is the internal version of the API.
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func RegisterDeepCopies(scheme *runtime.Scheme) errordeprecated
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- type APIEndpoint
- type Cluster
- func (in *Cluster) DeepCopy() *Cluster
- func (in *Cluster) DeepCopyInto(out *Cluster)
- func (in *Cluster) DeepCopyObject() runtime.Object
- func (pc Cluster) GetGeneration() int64
- func (pc *Cluster) GetObjectMeta() *metav1.ObjectMeta
- func (pc *Cluster) GetSpec() interface{}
- func (pc *Cluster) GetStatus() interface{}
- func (Cluster) NewStatus() interface{}
- func (pc *Cluster) SetGeneration(generation int64)
- func (pc *Cluster) SetSpec(s interface{})
- func (pc *Cluster) SetStatus(s interface{})
- type ClusterList
- type ClusterNetworkingConfig
- type ClusterRegistry
- type ClusterSpec
- type ClusterStatus
- type ClusterStatusStrategy
- type ClusterStrategy
- type ContainerRuntimeInfo
- type Machine
- func (in *Machine) DeepCopy() *Machine
- func (in *Machine) DeepCopyInto(out *Machine)
- func (in *Machine) DeepCopyObject() runtime.Object
- func (pc Machine) GetGeneration() int64
- func (pc *Machine) GetObjectMeta() *metav1.ObjectMeta
- func (pc *Machine) GetSpec() interface{}
- func (pc *Machine) GetStatus() interface{}
- func (Machine) NewStatus() interface{}
- func (pc *Machine) SetGeneration(generation int64)
- func (pc *Machine) SetSpec(s interface{})
- func (pc *Machine) SetStatus(s interface{})
- type MachineList
- type MachineRegistry
- type MachineSpec
- type MachineStatus
- type MachineStatusStrategy
- type MachineStrategy
- type MachineVersionInfo
- type NetworkRanges
Constants ¶
This section is empty.
Variables ¶
var ( InternalCluster = builders.NewInternalResource( "clusters", func() runtime.Object { return &Cluster{} }, func() runtime.Object { return &ClusterList{} }, ) InternalClusterStatus = builders.NewInternalResourceStatus( "clusters", func() runtime.Object { return &Cluster{} }, func() runtime.Object { return &ClusterList{} }, ) InternalMachine = builders.NewInternalResource( "machines", func() runtime.Object { return &Machine{} }, func() runtime.Object { return &MachineList{} }, ) InternalMachineStatus = builders.NewInternalResourceStatus( "machines", func() runtime.Object { return &Machine{} }, func() runtime.Object { return &MachineList{} }, ) // Registered resources and subresources ApiVersion = builders.NewApiGroup("cluster.k8s.io").WithKinds( InternalCluster, InternalClusterStatus, InternalMachine, InternalMachineStatus, ) // Required by code generated by go2idl AddToScheme = ApiVersion.SchemaBuilder.AddToScheme SchemeBuilder = ApiVersion.SchemaBuilder SchemeGroupVersion = ApiVersion.GroupVersion )
Functions ¶
func Kind ¶
Required by code generated by go2idl Kind takes an unqualified kind and returns a Group qualified GroupKind
func RegisterDeepCopies
deprecated
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
Required by code generated by go2idl Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type APIEndpoint ¶
func (*APIEndpoint) DeepCopy ¶
func (in *APIEndpoint) DeepCopy() *APIEndpoint
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIEndpoint.
func (*APIEndpoint) DeepCopyInto ¶
func (in *APIEndpoint) DeepCopyInto(out *APIEndpoint)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Cluster ¶
type Cluster struct { metav1.TypeMeta metav1.ObjectMeta Spec ClusterSpec Status ClusterStatus }
func (*Cluster) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
func (*Cluster) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Cluster) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (Cluster) GetGeneration ¶
func (*Cluster) GetObjectMeta ¶
func (pc *Cluster) GetObjectMeta() *metav1.ObjectMeta
func (*Cluster) SetGeneration ¶
type ClusterList ¶
func (*ClusterList) DeepCopy ¶
func (in *ClusterList) DeepCopy() *ClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList.
func (*ClusterList) DeepCopyInto ¶
func (in *ClusterList) DeepCopyInto(out *ClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterList) DeepCopyObject ¶
func (in *ClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterNetworkingConfig ¶
type ClusterNetworkingConfig struct { Services NetworkRanges Pods NetworkRanges DNSDomain string }
func (*ClusterNetworkingConfig) DeepCopy ¶
func (in *ClusterNetworkingConfig) DeepCopy() *ClusterNetworkingConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterNetworkingConfig.
func (*ClusterNetworkingConfig) DeepCopyInto ¶
func (in *ClusterNetworkingConfig) DeepCopyInto(out *ClusterNetworkingConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterRegistry ¶
type ClusterRegistry interface { ListClusters(ctx request.Context, options *internalversion.ListOptions) (*ClusterList, error) GetCluster(ctx request.Context, id string, options *metav1.GetOptions) (*Cluster, error) CreateCluster(ctx request.Context, id *Cluster) (*Cluster, error) UpdateCluster(ctx request.Context, id *Cluster) (*Cluster, error) DeleteCluster(ctx request.Context, id string) (bool, error) }
Registry is an interface for things that know how to store Cluster. +k8s:deepcopy-gen=false
func NewClusterRegistry ¶
func NewClusterRegistry(sp builders.StandardStorageProvider) ClusterRegistry
NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.
type ClusterSpec ¶
type ClusterSpec struct { ClusterNetwork ClusterNetworkingConfig ProviderConfig string }
func (*ClusterSpec) DeepCopy ¶
func (in *ClusterSpec) DeepCopy() *ClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec.
func (*ClusterSpec) DeepCopyInto ¶
func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterStatus ¶
type ClusterStatus struct { APIEndpoints []APIEndpoint ErrorReason clustercommon.ClusterStatusError ErrorMessage string ProviderStatus string }
func (*ClusterStatus) DeepCopy ¶
func (in *ClusterStatus) DeepCopy() *ClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus.
func (*ClusterStatus) DeepCopyInto ¶
func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterStatusStrategy ¶
type ClusterStatusStrategy struct {
builders.DefaultStatusStorageStrategy
}
+k8s:deepcopy-gen=false
type ClusterStrategy ¶
type ClusterStrategy struct {
builders.DefaultStorageStrategy
}
Cluster Functions and Structs
+k8s:deepcopy-gen=false
type ContainerRuntimeInfo ¶
func (*ContainerRuntimeInfo) DeepCopy ¶
func (in *ContainerRuntimeInfo) DeepCopy() *ContainerRuntimeInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerRuntimeInfo.
func (*ContainerRuntimeInfo) DeepCopyInto ¶
func (in *ContainerRuntimeInfo) DeepCopyInto(out *ContainerRuntimeInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Machine ¶
type Machine struct { metav1.TypeMeta metav1.ObjectMeta Spec MachineSpec Status MachineStatus }
func (*Machine) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Machine.
func (*Machine) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Machine) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (Machine) GetGeneration ¶
func (*Machine) GetObjectMeta ¶
func (pc *Machine) GetObjectMeta() *metav1.ObjectMeta
func (*Machine) SetGeneration ¶
type MachineList ¶
func (*MachineList) DeepCopy ¶
func (in *MachineList) DeepCopy() *MachineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineList.
func (*MachineList) DeepCopyInto ¶
func (in *MachineList) DeepCopyInto(out *MachineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineList) DeepCopyObject ¶
func (in *MachineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineRegistry ¶
type MachineRegistry interface { ListMachines(ctx request.Context, options *internalversion.ListOptions) (*MachineList, error) GetMachine(ctx request.Context, id string, options *metav1.GetOptions) (*Machine, error) CreateMachine(ctx request.Context, id *Machine) (*Machine, error) UpdateMachine(ctx request.Context, id *Machine) (*Machine, error) DeleteMachine(ctx request.Context, id string) (bool, error) }
Registry is an interface for things that know how to store Machine. +k8s:deepcopy-gen=false
func NewMachineRegistry ¶
func NewMachineRegistry(sp builders.StandardStorageProvider) MachineRegistry
NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.
type MachineSpec ¶
type MachineSpec struct { metav1.ObjectMeta ProviderConfig string Roles []string Versions MachineVersionInfo ConfigSource *corev1.NodeConfigSource }
func (*MachineSpec) DeepCopy ¶
func (in *MachineSpec) DeepCopy() *MachineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSpec.
func (*MachineSpec) DeepCopyInto ¶
func (in *MachineSpec) DeepCopyInto(out *MachineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineStatus ¶
type MachineStatus struct { NodeRef *corev1.ObjectReference LastUpdated metav1.Time Ready bool ErrorReason *clustercommon.MachineStatusError ErrorMessage *string }
func (*MachineStatus) DeepCopy ¶
func (in *MachineStatus) DeepCopy() *MachineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineStatus.
func (*MachineStatus) DeepCopyInto ¶
func (in *MachineStatus) DeepCopyInto(out *MachineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineStatusStrategy ¶
type MachineStatusStrategy struct {
builders.DefaultStatusStorageStrategy
}
+k8s:deepcopy-gen=false
type MachineStrategy ¶
type MachineStrategy struct {
builders.DefaultStorageStrategy
}
Machine Functions and Structs
+k8s:deepcopy-gen=false
type MachineVersionInfo ¶
type MachineVersionInfo struct { Kubelet string ControlPlane string ContainerRuntime ContainerRuntimeInfo }
func (*MachineVersionInfo) DeepCopy ¶
func (in *MachineVersionInfo) DeepCopy() *MachineVersionInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineVersionInfo.
func (*MachineVersionInfo) DeepCopyInto ¶
func (in *MachineVersionInfo) DeepCopyInto(out *MachineVersionInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkRanges ¶
type NetworkRanges struct {
CIDRBlocks []string
}
func (*NetworkRanges) DeepCopy ¶
func (in *NetworkRanges) DeepCopy() *NetworkRanges
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkRanges.
func (*NetworkRanges) DeepCopyInto ¶
func (in *NetworkRanges) DeepCopyInto(out *NetworkRanges)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=k8s.io/kube-deploy/ext-apiserver/pkg/apis/cluster +k8s:defaulter-gen=TypeMeta +groupName=cluster.k8s.io
|
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=k8s.io/kube-deploy/ext-apiserver/pkg/apis/cluster +k8s:defaulter-gen=TypeMeta +groupName=cluster.k8s.io |