k8scrdclient

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNameConflict

func IsNameConflict(err error) bool

IsNameConflict asserts nameConflictError.

func IsNotEstablished

func IsNotEstablished(err error) bool

IsNotEstablished asserts notEstablishedError.

Types

type CRDClient

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

func New

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

func (*CRDClient) EnsureCreated

EnsureCreated ensures the given CRD exists, is active (aka. established) and does not have conflicting names.

func (*CRDClient) EnsureDeleted

EnsureDeleted ensures the given CRD does not exist.

type Config

type Config struct {
	K8sExtClient apiextensionsclient.Interface
	Logger       micrologger.Logger
}

type Interface

type Interface interface {
	EnsureCreated(ctx context.Context, customResource *apiextensionsv1beta1.CustomResourceDefinition, backOff backoff.Interface) error
	EnsureDeleted(ctx context.Context, customResource *apiextensionsv1beta1.CustomResourceDefinition, backOff backoff.Interface) error
}

Jump to

Keyboard shortcuts

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