Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFile ¶
func DefaultConfigRoot ¶
func DefaultConfigRoot() *yaml.Node
func WriteConfigFile ¶
Types ¶
type Config ¶
type Config interface { Write() error Machines() *MachinesConfig Keys() *KeysConfig Email() string SetEmail(email string) error }
func ParseDefaultConfig ¶
type KeysConfig ¶
type KeysConfig struct { Node *yaml.Node Parent Config }
func (*KeysConfig) Add ¶
func (c *KeysConfig) Add(entry KeyEntry) error
func (*KeysConfig) All ¶
func (c *KeysConfig) All() []KeyEntry
func (*KeysConfig) Remove ¶
func (c *KeysConfig) Remove(name string) error
type MachineEntry ¶
type MachinesConfig ¶
type MachinesConfig struct { Node *yaml.Node Parent Config }
func (*MachinesConfig) Add ¶
func (c *MachinesConfig) Add(entry MachineEntry) error
func (*MachinesConfig) All ¶
func (c *MachinesConfig) All() []MachineEntry
func (*MachinesConfig) GetByNameOrHost ¶
func (c *MachinesConfig) GetByNameOrHost(nameOrHost string) *MachineEntry
func (*MachinesConfig) Remove ¶
func (c *MachinesConfig) Remove(nameOrHost string) error
Click to show internal directories.
Click to hide internal directories.