Documentation ¶
Index ¶
- type Filestore
- func (s Filestore) Exists(name string) (bool, error)
- func (s Filestore) Get(name string) (*host.Host, error)
- func (s Filestore) GetActive() (*host.Host, error)
- func (s Filestore) GetProvider(name string) (provider.Provider, error)
- func (s Filestore) List() ([]*host.Host, error)
- func (s Filestore) NewHost(driver drivers.Driver) (*host.Host, error)
- func (s Filestore) Remove(name string, force bool) 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 Filestore ¶
func (Filestore) GetProvider ¶
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) // GetActive returns the active host GetActive() (*host.Host, error) // GetProvider returns the provider with the given name GetProvider(name string) (provider.Provider, error) // List returns a list of hosts List() ([]*host.Host, error) // Get loads a host by name Get(name string) (*host.Host, error) // Remove removes a machine from the store Remove(name string, force bool) error // Save persists a machine in the store Save(host *host.Host) error }
Click to show internal directories.
Click to hide internal directories.