action

package
v0.0.0-...-b04011d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(cluster string) ([]string, error)

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsTooManyCRsError

func IsTooManyCRsError(err error) bool

IsTooManyCRsError asserts tooManyCRsError.

Types

type Clients

type Clients struct {
	ControlPlane  k8sclient.Interface
	TenantCluster k8sclient.Interface
	// contains filtered or unexported fields
}

func NewClients

func NewClients(config Config) (*Clients, error)

func (*Clients) InitControlPlane

func (c *Clients) InitControlPlane(ctx context.Context) error

func (*Clients) InitTenantCluster

func (c *Clients) InitTenantCluster(ctx context.Context) error

type Config

type Config struct {
	Logger micrologger.Logger

	// KubeConfig is the local path to the kube config file used to create the
	// Control Plane specific rest config.
	KubeConfig string
	// TenantCluster is the Tenant Cluster ID to consider, e.g. al9qy.
	TenantCluster string
}

type Executor

type Executor interface {
	Execute(ctx context.Context) error
}

type Explainer

type Explainer interface {
	Explain(ctx context.Context) (string, error)
}

Directories

Path Synopsis
cl001

Jump to

Keyboard shortcuts

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