harness

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 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

func GetProjectName() string

func GetProjectTag

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