Documentation
¶
Overview ¶
Package contexts reads and writes the CLI config file with the named connections ("contexts"). The file never holds a password.
Index ¶
Constants ¶
View Source
const ( EnvConfigDir = "OPENARCH_CONFIG_DIR" EnvContext = "OPENARCH_CONTEXT" )
EnvConfigDir overrides the config folder. EnvContext selects a context.
View Source
const SystemOpenArch = "openarch"
SystemOpenArch is the endpoint system of an OpenArch server.
Variables ¶
View Source
var Systems = []string{SystemOpenArch}
Systems lists the valid endpoint systems.
Functions ¶
Types ¶
type Config ¶
type Config struct {
CurrentContext string `yaml:"current-context,omitempty"`
Contexts map[string]Context `yaml:"contexts,omitempty"`
}
Config is the content of config.yaml.
func (Config) NameForWorkspace ¶
NameForWorkspace returns the name of the context that points to dir, or "".
Click to show internal directories.
Click to hide internal directories.