Documentation ¶
Index ¶
- func AssertEqual(t *testing.T, a interface{}, b interface{}, message string)
- func CallClear()
- func GetDefaultIfEmpty(value string, defaultValue string) string
- func IncludeOsSeparator(path string) string
- func IncludeSlash(path string, typeSeparator string) string
- func LaunchWSLFile(data string, clustertype string) error
- func NormalizePath(file string, args ...string) string
- func NormalizeURL(args ...string) string
- type Config
- type PluginGroup
- type TargetCustoms
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEqual ¶
AssertEqual for unit tests
func GetDefaultIfEmpty ¶
GetDefaultIfEmpty get a value if empty
func IncludeOsSeparator ¶ added in v0.2.0
IncludeOsSeparator include os path separator
func IncludeSlash ¶
IncludeSlash append the / where needed
func LaunchWSLFile ¶ added in v0.2.0
LaunchWSLFile should be used only to create launcher for WSL sessions
func NormalizePath ¶
NormalizePath applies the "/" in the right position
func NormalizeURL ¶ added in v0.2.0
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
type PluginGroup ¶ added in v0.2.0
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
Click to show internal directories.
Click to hide internal directories.