v1alpha1

package
v0.0.0-...-b46a5eb Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=nrpnautilus.io

Index

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

func CreateClusterCRD(clientset apiextcs.Interface) error

Create the CRD resource, ignore error if it already exists

func CreateNSCRD

func CreateNSCRD(clientset apiextcs.Interface) error

Create the CRD resource, ignore error if it already exists

func NewClient

func NewClient(cfg *rest.Config) (*rest.RESTClient, *runtime.Scheme, error)

func NewClusterClient

func NewClusterClient(cfg *rest.Config) (*rest.RESTClient, *runtime.Scheme, error)

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

func (f *ClusterCrdClient) Create(obj *Cluster) (*Cluster, error)

func (*ClusterCrdClient) Delete

func (f *ClusterCrdClient) Delete(name string, options *meta_v1.DeleteOptions) error

func (*ClusterCrdClient) Get

func (f *ClusterCrdClient) Get(name string) (*Cluster, 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

func (*ClusterCrdClient) Update

func (f *ClusterCrdClient) Update(obj *Cluster) (*Cluster, error)

type ClusterList

type ClusterList struct {
	meta_v1.TypeMeta `json:",inline"`
	meta_v1.ListMeta `json:"metadata"`
	Items            []Cluster `json:"items"`
}

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 (*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 (*ClusterNSCrdClient) NewListWatch

func (f *ClusterNSCrdClient) NewListWatch(namespace string) *cache.ListWatch

Create a new List watch for our TPR

func (*ClusterNSCrdClient) Update

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

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

Jump to

Keyboard shortcuts

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