Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(registry facade.FacadeRegistry)
Register is called to expose a package of facades onto a given registry.
Types ¶
type RebootAPI ¶
type RebootAPI struct { *common.RebootActionGetter // The ability for a machine to reboot itself is not yet used. *common.RebootRequester *common.RebootFlagClearer *common.MachineWatcher }
RebootAPI provides access to the Reboot API facade.
func NewRebootAPI ¶
func NewRebootAPI( auth facade.Authorizer, watcherRegistry facade.WatcherRegistry, machineService *service.WatchableService, ) (*RebootAPI, error)
NewRebootAPI creates a new instance of the RebootAPI by initializing the various components needed for reboot functionality.
- facade.Authorizer to authorize the machine agent,
- facade.WatcherRegistry to register and manage watchers,
- github.com/juju/juju/domain/machine/service.WatchableService for interacting with machine-related data and operations.
func NewRebootApiFromModelContext ¶
func NewRebootApiFromModelContext(ctx facade.ModelContext) (*RebootAPI, error)
NewRebootApiFromModelContext creates a new server-side RebootAPI facade.
Click to show internal directories.
Click to hide internal directories.