Documentation ¶
Index ¶
- func Create(gr schema.GroupVersionResource, clients *cli.Clients, ...) (*unstructured.Unstructured, error)
- func Delete(gr schema.GroupVersionResource, dynamic dynamic.Interface, ...) error
- func Get(gr schema.GroupVersionResource, dynamic dynamic.Interface, ...) (*unstructured.Unstructured, error)
- func GetGroupVersionResource(gr schema.GroupVersionResource, discovery discovery.DiscoveryInterface) (*schema.GroupVersionResource, error)
- func GetUnstructured(gr schema.GroupVersionResource, c *cli.Clients, objname, ns string, ...) (*unstructured.Unstructured, error)
- func GetV1(gr schema.GroupVersionResource, c *cli.Clients, objname, ns string, ...) error
- func InitializeAPIGroupRes(discovery discovery.DiscoveryInterface) error
- func List(gr schema.GroupVersionResource, dynamic dynamic.Interface, ...) (*unstructured.UnstructuredList, error)
- func ListV1(gr schema.GroupVersionResource, c *cli.Clients, opts metav1.ListOptions, ...) error
- func Patch(gr schema.GroupVersionResource, clients *cli.Clients, objName string, ...) error
- func PrintObject(groupResource schema.GroupVersionResource, obj string, w io.Writer, ...) error
- func PrintObjectV1(groupResource schema.GroupVersionResource, obj string, w io.Writer, ...) error
- func PrintObjects(groupResource schema.GroupVersionResource, w io.Writer, ...) error
- func Watch(gr schema.GroupVersionResource, clients *cli.Clients, ns string, ...) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(gr schema.GroupVersionResource, clients *cli.Clients, object *unstructured.Unstructured, ns string, op metav1.CreateOptions) (*unstructured.Unstructured, error)
Create is used to take a partial resource and an unstructured object and create it in the cluster using the dynamic client.
func Delete ¶
func Delete(gr schema.GroupVersionResource, dynamic dynamic.Interface, discovery discovery.DiscoveryInterface, objname, ns string, op metav1.DeleteOptions) error
Delete is used to take a partial resource and the name of an object in the cluster and delete it using the dynamic client.
func Get ¶
func Get(gr schema.GroupVersionResource, dynamic dynamic.Interface, discovery discovery.DiscoveryInterface, objname, ns string, op metav1.GetOptions) (*unstructured.Unstructured, error)
TODO: remove as all the function uses are moved to new func Get is used to take a partial resource and the name of an object in the cluster and fetch it from the cluster using the dynamic client.
func GetGroupVersionResource ¶
func GetGroupVersionResource(gr schema.GroupVersionResource, discovery discovery.DiscoveryInterface) (*schema.GroupVersionResource, error)
GetGroupVersionResource takes a partial resource, and returns the full resource matching the partial resource, if there's only one match.
func GetUnstructured ¶ added in v0.30.0
func GetUnstructured(gr schema.GroupVersionResource, c *cli.Clients, objname, ns string, op metav1.GetOptions) (*unstructured.Unstructured, error)
func GetV1 ¶ added in v0.30.0
func GetV1(gr schema.GroupVersionResource, c *cli.Clients, objname, ns string, op metav1.GetOptions, obj interface{}) error
GetV1 is used to take a partial resource and the name of an object in the cluster and fetch it from the cluster using the dynamic client.
func InitializeAPIGroupRes ¶ added in v0.12.1
func InitializeAPIGroupRes(discovery discovery.DiscoveryInterface) error
InitializeAPIGroupRes initializes and populates the discovery client.
func List ¶
func List(gr schema.GroupVersionResource, dynamic dynamic.Interface, discovery discovery.DiscoveryInterface, ns string, op metav1.ListOptions) (*unstructured.UnstructuredList, error)
TODO: remove as all the function uses are moved to new func List takes a partial resource and fetches a list of that resource's objects in the cluster using the dynamic client.
func ListV1 ¶ added in v0.30.0
func ListV1(gr schema.GroupVersionResource, c *cli.Clients, opts metav1.ListOptions, ns string, obj interface{}) error
List fetches the resource and convert it to respective object
func Patch ¶
func Patch(gr schema.GroupVersionResource, clients *cli.Clients, objName string, data []byte, opt metav1.PatchOptions, ns string, obj interface{}) error
Patch takes a partial resource, an object name in the cluster, and patch data to be applied to that object, and patches the object using the dynamic client.
func PrintObject ¶
func PrintObject(groupResource schema.GroupVersionResource, obj string, w io.Writer, dynamic dynamic.Interface, discovery discovery.DiscoveryInterface, f *cliopts.PrintFlags, ns string) error
TODO: remove as all the function uses are moved to new func PrintObject is used to take a partial resource and the name of an object in the cluster, fetch it using the dynamic client, and print out the object.
func PrintObjectV1 ¶ added in v0.30.0
func PrintObjectV1(groupResource schema.GroupVersionResource, obj string, w io.Writer, client *cli.Clients, f *cliopts.PrintFlags, ns string) error
PrintObject is used to take a partial resource and the name of an object in the cluster, fetch it using the dynamic client, and print out the object.
func PrintObjects ¶
func PrintObjects(groupResource schema.GroupVersionResource, w io.Writer, dynamic dynamic.Interface, discovery discovery.DiscoveryInterface, f *cliopts.PrintFlags, ns string) error
PrintObjects takes a partial resource, fetches a list of that resource's objects in the cluster using the dynamic client, and prints out the objects.
Types ¶
This section is empty.