harness

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DefaultKubeConfig is the file path of the testing cluster
	// kubeconfig.
	//
	// NOTE: This value is used in its raw form in helmclient repo. When it
	// changes we need to change it in helmclient too.
	//
	//	See https://github.com/giantswarm/helmclient/pull/63
	//
	DefaultKubeConfig = "/workdir/.shipyard/config"
)

Variables

This section is empty.

Functions

func BaseDir

func BaseDir() (string, error)

func GetProjectName added in v0.1.1

func GetProjectName() string

func GetProjectTag added in v0.1.1

func GetProjectTag() string

Types

type Config

type Config struct {
	ExistingCluster bool `yaml:"existingCluster"`
	RemoteCluster   bool `yaml:"remoteCluster"`
}

type Harness

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

func New

func New(logger micrologger.Logger, fs afero.Fs, cfg Config) *Harness

func (*Harness) Init

func (h *Harness) Init(ctx context.Context) error

Init initializes the harness.

func (*Harness) ReadConfig

func (h *Harness) ReadConfig() (Config, error)

ReadConfig populates a Config struct data read from a default file location.

func (*Harness) WriteConfig

func (h *Harness) WriteConfig(ctx context.Context) error

WriteConfig is a Task that persists the current config to a file.

Jump to

Keyboard shortcuts

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