cluster

package
v2.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

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

func New

func New(cfg Config) *Cluster

func (*Cluster) Create

func (c *Cluster) Create(ctx context.Context) error

Create is a Task that creates a remote cluster or, if we are using a local one, puts in place the required files for later access to it

func (*Cluster) Delete

func (c *Cluster) Delete(ctx context.Context) error

Delete is a Task that gets rid of a remote cluster.

type Config

type Config struct {
	Logger micrologger.Logger
	Runner runner.Runner
	Fs     afero.Fs

	ExistingCluster bool
	K8sApiUrl       string
	K8sCert         string
	K8sCertCA       string
	K8sCertKey      string
	RemoteCluster   bool
}

Jump to

Keyboard shortcuts

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