juju: github.com/juju/juju/api/machineundertaker Index | Files

package machineundertaker

import "github.com/juju/juju/api/machineundertaker"


Package Files


type API Uses

type API struct {
    // contains filtered or unexported fields

API provides access to the machine undertaker API facade.

func NewAPI Uses

func NewAPI(caller base.APICaller, newWatcher NewWatcherFunc) (*API, error)

NewAPI creates a new client-side machine undertaker facade.

func (*API) AllMachineRemovals Uses

func (api *API) AllMachineRemovals() ([]names.MachineTag, error)

AllMachineRemovals returns all the machines that have been marked ready to clean up.

func (*API) CompleteRemoval Uses

func (api *API) CompleteRemoval(machine names.MachineTag) error

CompleteRemoval finishes the removal of the machine in the database after any provider resources are cleaned up.

func (*API) GetProviderInterfaceInfo Uses

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 Uses

func (api *API) WatchMachineRemovals() (watcher.NotifyWatcher, error)

WatchMachineRemovals registers to be notified when a machine removal is requested.

type NewWatcherFunc Uses

type NewWatcherFunc func(base.APICaller, params.NotifyWatchResult) watcher.NotifyWatcher

NewWatcherFunc exists to let us test WatchMachineRemovals.

Package machineundertaker imports 6 packages (graph) and is imported by 19 packages. Updated 2020-07-26. Refresh now. Tools for package owners.