drainerconfig

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: Apache-2.0 Imports: 14 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 {
	Logger    micrologger.Logger
	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(namespace string, obj interface{}) (interface{}, error)

func (Wrapper) DeleteObject

func (w Wrapper) DeleteObject(name, namespace string) error

func (Wrapper) GetObject

func (w Wrapper) GetObject(name, namespace string) (interface{}, error)

func (Wrapper) MustSetup

func (w Wrapper) MustSetup(namespace string)

func (Wrapper) MustTeardown

func (w Wrapper) MustTeardown(namespace string)

func (Wrapper) UpdateObject

func (w Wrapper) UpdateObject(namespace string, obj interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

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