Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicResource

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

DynamicResource is a struct for dynamic resources

func NewClient

func NewClient(dynamicCli dynamic.Interface, s schema.GroupVersionResource, namespace string) *DynamicResource

NewClient function creates a new instance of DynamicResource

func (*DynamicResource) Create

func (r *DynamicResource) Create(res interface{}) error

Create method creates a new instance of appropriate k8s resource

func (*DynamicResource) Delete

func (r *DynamicResource) Delete(name string) error

Delete method deletes a existing instance of appropriate k8s resource

func (*DynamicResource) Get

Get method gets a existing instance of appropriate k8s resource

Source Files