v1alpha1

package
v0.0.0-...-e31b21c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterCRDPlural   string = "clusters"
	ClusterCRDGroup    string = "nrp-nautilus.io"
	ClusterCRDVersion  string = "v1alpha1"
	FullClusterCRDName string = ClusterCRDPlural + "." + ClusterCRDGroup
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   nrpcontroller.GroupName,
	Version: "v1alpha1",
}

SchemeGroupVersion is group version used to register these objects

Functions

func CreateClusterCRD

func CreateClusterCRD(clientset apiextcs.Interface) error

CreateClusterCRD creates a new Cluster CRD

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

func (*Cluster) DeepCopyObject

func (in *Cluster) DeepCopyObject() runtime.Object

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 ClusterNamespace

type ClusterNamespace struct {
	metaV1.TypeMeta   `json:",inline"`
	metaV1.ObjectMeta `json:"metadata"`
	Spec              ClusterSpec `json:"spec"`
}

func (*ClusterNamespace) DeepCopy

func (in *ClusterNamespace) DeepCopy() *ClusterNamespace

func (*ClusterNamespace) DeepCopyInto

func (in *ClusterNamespace) DeepCopyInto(out *ClusterNamespace)

func (*ClusterNamespace) DeepCopyObject

func (in *ClusterNamespace) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterNamespaceList

type ClusterNamespaceList struct {
	metaV1.TypeMeta `json:",inline"`
	metaV1.ListMeta `json:"metadata"`
	Items           []ClusterNamespace `json:"items"`
}

ClusterNamespaceList is a list of Cluster Namespaces

func (*ClusterNamespaceList) DeepCopy

func (*ClusterNamespaceList) DeepCopyInto

func (in *ClusterNamespaceList) DeepCopyInto(out *ClusterNamespaceList)

func (*ClusterNamespaceList) DeepCopyObject

func (in *ClusterNamespaceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterNamespaceSpec

type ClusterNamespaceSpec struct {
}

func (*ClusterNamespaceSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterNSSpec.

func (*ClusterNamespaceSpec) DeepCopyInto

func (in *ClusterNamespaceSpec) DeepCopyInto(out *ClusterNamespaceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterSpec

type ClusterSpec struct {
	Organization string `json:""`
	Namespace    string `json:""`
}

func (*ClusterSpec) DeepCopyInto

func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL