Documentation
¶
Index ¶
- Constants
- Variables
- func ConfigDir() (string, error)
- type Config
- func (c *Config) AddKey(key Key) error
- func (c *Config) AddMachine(machine Machine) error
- func (c Config) GetDefaultProfile() Profile
- func (c *Config) GetKeyByName(name string) (Key, error)
- func (c *Config) GetMachineByName(name string) (Machine, error)
- func (c *Config) ListKeys() []Key
- func (c *Config) ListMachines() []Machine
- func (c *Config) RemoveKey(name string) error
- func (c *Config) RemoveMachine(machine string) error
- func (c Config) Save() error
- func (c *Config) SetDefaultProfile(profile Profile) error
- type IPList
- type Key
- type Machine
- type Profile
Constants ¶
View Source
const (
VIKING_CONFIG_DIR = "VIKING_CONFIG_DIR"
)
Variables ¶
Functions ¶
Types ¶
type Config ¶
func ParseDefaultConfig ¶
func (*Config) AddMachine ¶
func (Config) GetDefaultProfile ¶ added in v0.1.4
func (*Config) ListMachines ¶
func (*Config) RemoveMachine ¶
RemoveMachine removes a machine from the config by name or host.
func (*Config) SetDefaultProfile ¶ added in v0.1.4
type IPList ¶ added in v0.1.1
func (*IPList) UnmarshalTOML ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.