dynamick8s

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(kubeconfig string, namespace string, resource schema.GroupVersionResource) (c *Client, err error)

NewClient constructs a new dynamic Client.

func (*Client) Create

func (c *Client) Create(ctx context.Context, object *unstructured.Unstructured) (err error)

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, name string) (err error)

func (*Client) Get

func (c *Client) Get(ctx context.Context, name string) (resp *unstructured.Unstructured, err error)

func (*Client) Update

func (c *Client) Update(ctx context.Context, object *unstructured.Unstructured) (err error)

Jump to

Keyboard shortcuts

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