example

package
v6.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsWrongTypeError

func IsWrongTypeError(err error) bool

IsWrongTypeError asserts wrongTypeError.

Types

type Config

type Config struct {
	Resources []resource.Interface

	Name      string
	Namespace string
}

type Wrapper

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

func New

func New(config Config) (*Wrapper, error)

func (Wrapper) Controller

func (w Wrapper) Controller() *controller.Controller

func (Wrapper) CreateObject

func (w Wrapper) CreateObject(ctx context.Context, namespace string, obj interface{}) (interface{}, error)

func (Wrapper) DeleteObject

func (w Wrapper) DeleteObject(ctx context.Context, name, namespace string) error

func (Wrapper) GetObject

func (w Wrapper) GetObject(ctx context.Context, name, namespace string) (interface{}, error)

func (Wrapper) MustSetup

func (w Wrapper) MustSetup(ctx context.Context, namespace string)

func (Wrapper) MustTeardown

func (w Wrapper) MustTeardown(ctx context.Context, namespace string)

func (Wrapper) UpdateObject

func (w Wrapper) UpdateObject(ctx context.Context, namespace string, obj interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

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