Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=nrpnautilus.io
Index ¶
- Constants
- Variables
- func CreateClusterCRD(clientset apiextcs.Interface) error
- func CreateNSCRD(clientset apiextcs.Interface) error
- func NewClient(cfg *rest.Config) (*rest.RESTClient, *runtime.Scheme, error)
- func NewClusterClient(cfg *rest.Config) (*rest.RESTClient, *runtime.Scheme, error)
- func Resource(resource string) schema.GroupResource
- type Cluster
- type ClusterCrdClient
- func (f *ClusterCrdClient) Create(obj *Cluster) (*Cluster, error)
- func (f *ClusterCrdClient) Delete(name string, options *meta_v1.DeleteOptions) error
- func (f *ClusterCrdClient) Get(name string) (*Cluster, error)
- func (f *ClusterCrdClient) List(namespace string, opts meta_v1.ListOptions) (*ClusterList, error)
- func (f *ClusterCrdClient) NewListWatch() *cache.ListWatch
- func (f *ClusterCrdClient) Update(obj *Cluster) (*Cluster, error)
- type ClusterList
- type ClusterNSCrdClient
- func (f *ClusterNSCrdClient) Create(obj *ClusterNamespace) (*ClusterNamespace, error)
- func (f *ClusterNSCrdClient) Delete(name string, namespace string, options *meta_v1.DeleteOptions) error
- func (f *ClusterNSCrdClient) Get(name string, namespace string) (*ClusterNamespace, error)
- func (f *ClusterNSCrdClient) List(namespace string, opts meta_v1.ListOptions) (*ClusterNamespaceList, error)
- func (f *ClusterNSCrdClient) NewListWatch(namespace string) *cache.ListWatch
- func (f *ClusterNSCrdClient) Update(obj *ClusterNamespace) (*ClusterNamespace, error)
- type ClusterNamespace
- type ClusterNamespaceList
- type ClusterNamespaceSpec
- type ClusterSpec
Constants ¶
View Source
const ( ClusterCRDPlural string = "clusters" ClusterCRDGroup string = "nrp-nautilus.io" ClusterCRDVersion string = "v1alpha1" FullClusterCRDName string = ClusterCRDPlural + "." + ClusterCRDGroup )
View Source
const ( ClusterNSCRDPlural string = "clusternamespaces" ClusterNSCRDGroup string = "nrp-nautilus.io" ClusterNSCRDVersion string = "v1alpha1" ClusterNSFullCRDName string = ClusterNSCRDPlural + "." + ClusterNSCRDGroup )
Variables ¶
View Source
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "nrp-nautilus.io", Version: "v1alpha1"}
schemeGroupVersion is group version used to register these objects
Functions ¶
func CreateClusterCRD ¶
Create the CRD resource, ignore error if it already exists
func CreateNSCRD ¶
Create the CRD resource, ignore error if it already exists
func NewClusterClient ¶
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 { meta_v1.TypeMeta `json:",inline"` meta_v1.ObjectMeta `json:"metadata"` Spec ClusterSpec `json:"spec"` }
func (Cluster) GetClusterClientset ¶
func (cluster Cluster) GetClusterClientset() (*kubernetes.Clientset, error)
type ClusterCrdClient ¶
type ClusterCrdClient struct {
// contains filtered or unexported fields
}
+k8s:deepcopy-gen=false
func MakeClusterCrdClient ¶
func MakeClusterCrdClient(cl *rest.RESTClient, scheme *runtime.Scheme, namespace string) *ClusterCrdClient
func (*ClusterCrdClient) Delete ¶
func (f *ClusterCrdClient) Delete(name string, options *meta_v1.DeleteOptions) error
func (*ClusterCrdClient) List ¶
func (f *ClusterCrdClient) List(namespace string, opts meta_v1.ListOptions) (*ClusterList, error)
func (*ClusterCrdClient) NewListWatch ¶
func (f *ClusterCrdClient) NewListWatch() *cache.ListWatch
Create a new List watch for our TPR
type ClusterList ¶
type ClusterNSCrdClient ¶
type ClusterNSCrdClient struct {
// contains filtered or unexported fields
}
+k8s:deepcopy-gen=false
func MakeClusterNSCrdClient ¶
func MakeClusterNSCrdClient(cl *rest.RESTClient, scheme *runtime.Scheme) *ClusterNSCrdClient
func (*ClusterNSCrdClient) Create ¶
func (f *ClusterNSCrdClient) Create(obj *ClusterNamespace) (*ClusterNamespace, error)
func (*ClusterNSCrdClient) Delete ¶
func (f *ClusterNSCrdClient) Delete(name string, namespace string, options *meta_v1.DeleteOptions) error
func (*ClusterNSCrdClient) Get ¶
func (f *ClusterNSCrdClient) Get(name string, namespace string) (*ClusterNamespace, error)
func (*ClusterNSCrdClient) List ¶
func (f *ClusterNSCrdClient) List(namespace string, opts meta_v1.ListOptions) (*ClusterNamespaceList, error)
func (*ClusterNSCrdClient) NewListWatch ¶
func (f *ClusterNSCrdClient) NewListWatch(namespace string) *cache.ListWatch
Create a new List watch for our TPR
func (*ClusterNSCrdClient) Update ¶
func (f *ClusterNSCrdClient) Update(obj *ClusterNamespace) (*ClusterNamespace, error)
type ClusterNamespace ¶
type ClusterNamespace struct { meta_v1.TypeMeta `json:",inline"` meta_v1.ObjectMeta `json:"metadata"` Spec ClusterSpec `json:"spec"` }
func (ClusterNamespace) GetClusterNamespaceClientset ¶
func (cluster ClusterNamespace) GetClusterNamespaceClientset() (*kubernetes.Clientset, error)
type ClusterNamespaceList ¶
type ClusterNamespaceList struct { meta_v1.TypeMeta `json:",inline"` meta_v1.ListMeta `json:"metadata"` Items []ClusterNamespace `json:"items"` }
type ClusterNamespaceSpec ¶
type ClusterNamespaceSpec struct { }
type ClusterSpec ¶
Click to show internal directories.
Click to hide internal directories.