Documentation
¶
Index ¶
- type Filestore
- func (s Filestore) Exists(name string) (bool, error)
- func (s Filestore) List() ([]*host.Host, error)
- func (s Filestore) Load(name string) (*host.Host, error)
- func (s Filestore) NewHost(driver drivers.Driver) (*host.Host, error)
- func (s Filestore) Remove(name string) error
- func (s Filestore) Save(host *host.Host) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface {
// Exists returns whether a machine exists or not
Exists(name string) (bool, error)
// NewHost will initialize a new host machine
NewHost(driver drivers.Driver) (*host.Host, error)
// List returns a list of all hosts in the store
List() ([]*host.Host, error)
// Get 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.