Documentation ¶
Index ¶
- Variables
- func BatchDeleteCustomResourceDefinition(client *rancher.Client, clusterID string, namespace string, list []string) error
- func DeleteCustomResourceDefinition(client *rancher.Client, clusterID string, namespace string, name string) error
- func GetCustomResourceDefinitionsListByName(CRDList *unstructured.UnstructuredList, name string) []string
- func ListCustomResourceDefinitions(client *rancher.Client, clusterID string, namespace string) (*unstructured.UnstructuredList, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CustomResourceDefinitions = schema.GroupVersionResource{
Group: "apiextensions.k8s.io",
Version: "v1",
Resource: "customresourcedefinitions",
}
Functions ¶
func BatchDeleteCustomResourceDefinition ¶
func BatchDeleteCustomResourceDefinition(client *rancher.Client, clusterID string, namespace string, list []string) error
deletes a list of custom resource definitions by name
func DeleteCustomResourceDefinition ¶
func DeleteCustomResourceDefinition(client *rancher.Client, clusterID string, namespace string, name string) error
deletes a single custom resource definition by name
func GetCustomResourceDefinitionsListByName ¶
func GetCustomResourceDefinitionsListByName(CRDList *unstructured.UnstructuredList, name string) []string
gets a list of names of custom resource definitions that contain the input string name from an Unstructured List
func ListCustomResourceDefinitions ¶
func ListCustomResourceDefinitions(client *rancher.Client, clusterID string, namespace string) (*unstructured.UnstructuredList, error)
helper function that returns a pointer to an unstructured list of custom resource definitions
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.