resource

package
v0.0.0-...-a52e8f6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

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)

Jump to

Keyboard shortcuts

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