cfgutil

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureAlphaNumericDash

func EnsureAlphaNumericDash(str string) string

Types

type BuildSettings

type BuildSettings struct {
	Version Version `yaml:"version"`
	Jenkins Jenkins `yaml:"jenkins"`
	Dev     Dev     `yaml:"dev"`
}

func ReadBuildSettings

func ReadBuildSettings() BuildSettings

type ClusterActions

type ClusterActions struct {
	DeleteCluster       func() error
	ClusterExists       func() bool
	CreateCluster       func()
	LoadImage           func(image string)
	InstallTool         func()
	ReloadLocalImage    func(image string)
	ApplyDefaultStorage func()
	SetupKubeconfig     func()
	DescribeEnv         func() map[string]string
}

func NewClusterActions

func NewClusterActions(
	deleteF func() error,
	clusterExistsF func() bool,
	createClusterF func(),
	loadImageF func(string),
	installToolF func(),
	reloadLocalImageF func(string),
	applyDefaultStorageF func(),
	setupKubeconfigF func(),
	describeEnvF func() map[string]string,
) ClusterActions

type Dev

type Dev struct {
	Images []string `yaml:"images"`
}

type Jenkins

type Jenkins struct {
	Master Master `yaml:"master"`
}

type Master

type Master struct {
	Plugins []string `yaml:"plugins"`
}

type Version

type Version struct {
	Major      int    `yaml:"major"`
	Minor      int    `yaml:"minor"`
	Patch      int    `yaml:"patch"`
	Prerelease string `yaml:"prerelease"`
}

func (Version) String

func (v Version) String() string

Jump to

Keyboard shortcuts

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