Documentation ¶
Index ¶
- Constants
- Variables
- func CreateClusterCRD(clientset apiextcs.Interface) error
- func CreateNSCRD(clientset apiextcs.Interface) error
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Cluster
- type ClusterList
- type ClusterNS
- type ClusterNSCrdClient
- type ClusterNSList
- type ClusterNSSpec
- type ClusterSpec
Constants ¶
const ( ClusterCRDPlural string = "clusters" ClusterCRDGroup string = "slateci.io" ClusterCRDVersion string = "v1alpha2" FullClusterCRDName string = ClusterCRDPlural + "." + ClusterCRDGroup )
const ( ClusterNSCRDPlural string = "clusternss" ClusterNSCRDGroup string = "slateci.io" ClusterNSCRDVersion string = "v1alpha2" ClusterNSFullCRDName string = ClusterNSCRDPlural + "." + ClusterNSCRDGroup )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{ Group: federationcontroller.GroupName, Version: "v1alpha2", }
SchemeGroupVersion is group version used to register these objects
Functions ¶
func CreateClusterCRD ¶
CreateClusterCRD creates a new Cluster CRD
func CreateNSCRD ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns back a Group qualified GroupResource
Types ¶
type Cluster ¶
type Cluster struct { metaV1.TypeMeta `json:",inline"` metaV1.ObjectMeta `json:"metadata"` Spec ClusterSpec `json:"spec"` }
Cluster holds information about the current cluster
func (*Cluster) DeepCopyInto ¶
func (*Cluster) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterList ¶
type ClusterList struct { metaV1.TypeMeta `json:",inline"` metaV1.ListMeta `json:"metadata"` Items []Cluster `json:"items"` }
ClusterList is a list of cluster resources
func (*ClusterList) DeepCopy ¶
func (in *ClusterList) DeepCopy() *ClusterList
func (*ClusterList) DeepCopyInto ¶
func (in *ClusterList) DeepCopyInto(out *ClusterList)
func (*ClusterList) DeepCopyObject ¶
func (in *ClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterNS ¶
type ClusterNS struct { metaV1.TypeMeta `json:",inline"` metaV1.ObjectMeta `json:"metadata"` Spec ClusterSpec `json:"spec"` }
func (*ClusterNS) DeepCopyInto ¶
func (*ClusterNS) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterNSCrdClient ¶
type ClusterNSCrdClient struct {
// contains filtered or unexported fields
}
type ClusterNSList ¶
type ClusterNSList struct { metaV1.TypeMeta `json:",inline"` metaV1.ListMeta `json:"metadata"` Items []ClusterNS `json:"items"` }
ClusterNSList is a list of Cluster Namespaces
func (*ClusterNSList) DeepCopy ¶
func (in *ClusterNSList) DeepCopy() *ClusterNSList
func (*ClusterNSList) DeepCopyInto ¶
func (in *ClusterNSList) DeepCopyInto(out *ClusterNSList)
func (*ClusterNSList) DeepCopyObject ¶
func (in *ClusterNSList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterNSSpec ¶
type ClusterNSSpec struct { }
func (*ClusterNSSpec) DeepCopy ¶
func (in *ClusterNSSpec) DeepCopy() *ClusterNSSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterNSSpec.
func (*ClusterNSSpec) DeepCopyInto ¶
func (in *ClusterNSSpec) DeepCopyInto(out *ClusterNSSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterSpec ¶
func (*ClusterSpec) DeepCopyInto ¶
func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)