shared

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t *testing.T, a interface{}, b interface{}, message string)

AssertEqual for unit tests

func CallClear added in v0.2.0

func CallClear()

CallClear clear the terminal before proceeding

func GetDefaultIfEmpty

func GetDefaultIfEmpty(value string, defaultValue string) string

GetDefaultIfEmpty get a value if empty

func IncludeOsSeparator added in v0.2.0

func IncludeOsSeparator(path string) string

IncludeOsSeparator include os path separator

func IncludeSlash

func IncludeSlash(path string, typeSeparator string) string

IncludeSlash append the / where needed

func LaunchWSLFile added in v0.2.0

func LaunchWSLFile(data string, clustertype string) error

LaunchWSLFile should be used only to create launcher for WSL sessions

func NormalizePath

func NormalizePath(file string, args ...string) string

NormalizePath applies the "/" in the right position

func NormalizeURL added in v0.2.0

func NormalizeURL(args ...string) string

NormalizeURL applies the "/" in the right position

Types

type Config added in v0.2.0

type Config struct {
	Kind                string          `yaml:"kind"`
	TargetCustomization []TargetCustoms `yaml:"targetCustomizations,flow"`
}

Config is the constructor to read the infra config file

func Init added in v0.2.0

func Init(data string) (cfg Config, err error)

Init read the config file and return the json string

type PluginGroup added in v0.2.0

type PluginGroup struct {
	Repo string `yaml:"repo,omitempty"`
	Name string `yaml:"name,omitempty"`
}

PluginGroup represent the structure for the inline plugins

type TargetCustoms added in v0.2.0

type TargetCustoms struct {
	Name              string `yaml:"name"`
	Enabled           bool   `yaml:"enabled"`
	Type              string `yaml:"type"`
	Config            string `yaml:"config"`
	ClusterName       string `yaml:"clusterName"`
	ClusterDeployment string `yaml:"clusterDeployment"`
	ClusterStart      string `yaml:"clusterStart,omitempty"`
	Spec              struct {
		Wsl     string `yaml:"wsl,omitempty"`
		Mac     string `yaml:"mac,omitempty"`
		Linux   string `yaml:"linux,omitempty"`
		Windows string `yaml:"windows,omitempty"`
		// contains filtered or unexported fields
	}
	Plugins []PluginGroup `yaml:"plugins,flow"`
}

TargetCustoms represent the single customization group

Jump to

Keyboard shortcuts

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