resources

package
v0.0.0-...-696ba86 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitUntilConditionSatisfied

func WaitUntilConditionSatisfied(ctx context.Context, resCli dynamic.ResourceInterface, isReady func(event watch.Event) (bool, error)) error

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, log *logrus.Entry, verbose bool) *Resource

func (*Resource) Create

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

func (*Resource) Delete

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

func (*Resource) Get

func (r *Resource) Get(name string) (*unstructured.Unstructured, error)

func (*Resource) List

func (*Resource) Update

func (r *Resource) Update(res interface{}) (*unstructured.Unstructured, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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