Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDefinition ¶
func DeleteDefinition(clientset apiextensionsclient.Interface, h *Handle) error
DeleteDefinition removes the supplied CRD to the Kubernetes API server using the supplied client set.
func WriteDefinition ¶
func WriteDefinition(clientset apiextensionsclient.Interface, h *Handle) error
WriteDefinition writes the supplied CRD to the Kubernetes API server using the supplied client set.
Types ¶
type Client ¶
type Client interface { Create(crd CustomResource) error Get(namespace string, name string) (runtime.Object, error) Update(crd CustomResource) (runtime.Object, error) Delete(namespace string, name string) error Validate(crd CustomResource) error RESTClient() rest.Interface List(namespace string, labels map[string]string) (runtime.Object, error) }
Client is used to handle CRD operations.
type CustomResource ¶
type CustomResource interface { Name() string Namespace() string JSON() (string, error) GetSpecState() states.State GetStatusState() states.State SetStatusStateWithMessage(states.State, string) DeepCopyObject() runtime.Object GetObjectKind() schema.ObjectKind }
CustomResource is the base type of custom resource objects. This allows them to be manipulated generically by the CRD client.
type CustomResourceList ¶
type Handle ¶
type Handle struct { SchemaGroupVersion schema.GroupVersion Definition *extv1beta1.CustomResourceDefinition ResourceType runtime.Object ResourceListType runtime.Object Plural string SchemaURL string }
Handle aggregates a CRD definition with additional data for client side (de)serialization.
Click to show internal directories.
Click to hide internal directories.