resource

package
Version: v0.0.0-...-8245de4 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 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)

Source Files

Jump to

Keyboard shortcuts

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