Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource struct {
	ResCli dynamic.ResourceInterface
	// contains filtered or unexported fields
}

func New

func New(dynamicCli dynamic.Interface, s schema.GroupVersionResource, namespace string, logFn func(format string, args ...interface{})) *Resource

func (*Resource) Create

func (r *Resource) Create(res interface{}, callbacks ...func(...interface{})) (string, error)

func (*Resource) Delete

func (r *Resource) Delete(name string, timeout time.Duration, callbacks ...func(...interface{})) error

func (*Resource) Get

func (r *Resource) Get(name string, callbacks ...func(...interface{})) (*unstructured.Unstructured, error)

Source Files