Documentation ¶
Index ¶
Constants ¶
View Source
const ( ExecutableGo = "go" ForwarderKubernetes = "kubernetes" ForwarderSSH = "ssh" )
View Source
const (
// Filename is the name of the YAML configuration file
Filename = "launcher.yaml"
)
Variables ¶
View Source
var ( // AvailableForwarders lists all ready-to-use forwarders AvailableForwarders = map[string]bool{ ForwarderKubernetes: true, ForwarderSSH: true, } )
Functions ¶
func CheckConfigFileExists ¶
func CheckConfigFileExists() error
CheckConfigFileExists ensures that config file is present before going further
Types ¶
type Application ¶
type Application struct { Name string `yaml:"name"` Path string `yaml:"path"` Executable string `yaml:"executable"` Args []string `yaml:"args"` }
Application represents application information
func (*Application) GetPath ¶
func (a *Application) GetPath() string
GetPath returns the path dependending on overrided value or not
type Config ¶
Config represents the root configuration item
func (*Config) GetProjectByName ¶
GetProjectByName returns a project configuration from its name
func (*Config) GetProjectNames ¶
GetProjectNames returns the project names as a list
type Forward ¶
type Forward struct { Name string `yaml:"name"` Type string `yaml:"type"` Values ForwardValues `yaml:"values"` }
type ForwardValues ¶
type Project ¶
type Project struct { Name string `yaml:"name"` Applications []*Application `yaml:"local"` Forwards []*Forward `yaml:"forward"` }
Project represents a project name, that could be a group of multiple projects
Click to show internal directories.
Click to hide internal directories.