Documentation
¶
Index ¶
- Constants
- func ConfigDir() (string, error)
- type Config
- func (c *Config) AddKey(key Key) error
- func (c *Config) AddMachine(machine Machine) error
- func (c *Config) GetKeyByName(name string) (Key, error)
- func (c *Config) GetMachine(machine string) (Machine, error)
- func (c *Config) GetMachineByHost(host net.IP) (Machine, 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
- type Key
- type Machine
Constants ¶
View Source
const (
VIKING_CONFIG_DIR = "VIKING_CONFIG_DIR"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
func ParseDefaultConfig ¶
func (*Config) AddMachine ¶
func (*Config) GetMachine ¶ added in v0.0.3
GetMachine returns a machine by name or host.
func (*Config) ListMachines ¶
func (*Config) RemoveMachine ¶
RemoveMachine removes a machine from the config by name or host.
Click to show internal directories.
Click to hide internal directories.