watcher

package
v0.0.0-...-a002913 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2015 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityWatcher

type EntityWatcher interface {
	Changes() <-chan []string
	Stop() error
	Err() error
}

EntityWatcher will send events when something changes. The content for the changes is a list of tag strings.

func NewEntityWatcher

func NewEntityWatcher(caller base.APICaller, result params.EntityWatchResult) EntityWatcher

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

type NotifyWatcher interface {
	Changes() <-chan struct{}
	Stop() error
	Err() error
}

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.

type StringsWatcher

type StringsWatcher interface {
	Changes() <-chan []string
	Stop() error
	Err() error
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL