Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MachineStorageIdsWatcher ¶
type MachineStorageIdsWatcher interface { Changes() <-chan []params.MachineStorageId Stop() error Err() error }
MachineStorageIdsWatcher will send events when the lifecycle states of machine/storage entities change. The content for the changes is a list of params.MachineStorageId.
func NewFilesystemAttachmentsWatcher ¶
func NewFilesystemAttachmentsWatcher(caller base.APICaller, result params.MachineStorageIdsWatchResult) MachineStorageIdsWatcher
NewFilesystemAttachmentsWatcher returns a MachineStorageIdsWatcher which communicates with the FilesystemAttachmentsWatcher API facade to watch filesystem attachments.
func NewVolumeAttachmentsWatcher ¶
func NewVolumeAttachmentsWatcher(caller base.APICaller, result params.MachineStorageIdsWatchResult) MachineStorageIdsWatcher
NewVolumeAttachmentsWatcher returns a MachineStorageIdsWatcher which communicates with the VolumeAttachmentsWatcher API facade to watch volume attachments.
type NotifyWatcher ¶
NotifyWatcher will send events when something changes. It does not send content for those changes.
func NewNotifyWatcher ¶
func NewNotifyWatcher(caller base.APICaller, result params.NotifyWatchResult) NotifyWatcher
If an API call returns a NotifyWatchResult, you can use this to turn it into a local Watcher.
type RelationUnitsWatcher ¶
type RelationUnitsWatcher interface { Changes() <-chan multiwatcher.RelationUnitsChange Stop() error Err() error }
RelationUnitsWatcher will send events when something changes. The content for the changes is a params.RelationUnitsChange struct.
func NewRelationUnitsWatcher ¶
func NewRelationUnitsWatcher(caller base.APICaller, result params.RelationUnitsWatchResult) RelationUnitsWatcher
type StringsWatcher ¶
StringsWatcher will send events when something changes. The content for the changes is a list of strings.
func NewStringsWatcher ¶
func NewStringsWatcher(caller base.APICaller, result params.StringsWatchResult) StringsWatcher