Documentation ¶
Index ¶
- type API
- func (api *API) AllMachineRemovals() ([]names.MachineTag, error)
- func (api *API) CompleteRemoval(machine names.MachineTag) error
- func (api *API) GetProviderInterfaceInfo(machine names.MachineTag) ([]network.ProviderInterfaceInfo, error)
- func (api *API) WatchMachineRemovals() (watcher.NotifyWatcher, error)
- type NewWatcherFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API provides access to the machine undertaker API facade.
func NewAPI ¶
func NewAPI(caller base.APICaller, newWatcher NewWatcherFunc) (*API, error)
NewAPI creates a new client-side machine undertaker facade.
func (*API) AllMachineRemovals ¶
AllMachineRemovals returns all the machines that have been marked ready to clean up.
func (*API) CompleteRemoval ¶
CompleteRemoval finishes the removal of the machine in the database after any provider resources are cleaned up.
func (*API) GetProviderInterfaceInfo ¶
func (api *API) GetProviderInterfaceInfo(machine names.MachineTag) ([]network.ProviderInterfaceInfo, error)
GetProviderInterfaceInfo gets the provider details for all of the interfaces for one machine.
func (*API) WatchMachineRemovals ¶
func (api *API) WatchMachineRemovals() (watcher.NotifyWatcher, error)
WatchMachineRemovals registers to be notified when a machine removal is requested.
type NewWatcherFunc ¶
type NewWatcherFunc func(base.APICaller, params.NotifyWatchResult) watcher.NotifyWatcher
NewWatcherFunc exists to let us test WatchMachineRemovals.
Click to show internal directories.
Click to hide internal directories.