Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadAllHosts ¶ added in v0.5.2
Types ¶
type Filestore ¶
func NewFilestore ¶ added in v0.5.2
func (Filestore) GetMachinesDir ¶ added in v0.5.2
type Store ¶
type Store interface {
// Exists returns whether a machine exists or not
Exists(name string) (bool, error)
// List returns a list of all hosts in the store
List() ([]string, error)
// Load loads a host by name
Load(name string) (*host.Host, error)
// Remove removes a machine from the store
Remove(name string) error
// Save persists a machine in the store
Save(host *host.Host) error
}
Click to show internal directories.
Click to hide internal directories.