juju: github.com/juju/juju/apiserver/facades/agent/storageprovisioner/internal/filesystemwatcher Index | Files

package filesystemwatcher

import "github.com/juju/juju/apiserver/facades/agent/storageprovisioner/internal/filesystemwatcher"

Index

Package Files

backend.go watchers.go

type Backend Uses

type Backend interface {
    Filesystem(names.FilesystemTag) (state.Filesystem, error)
    VolumeAttachment(names.Tag, names.VolumeTag) (state.VolumeAttachment, error)
    WatchMachineFilesystems(names.MachineTag) state.StringsWatcher
    WatchUnitFilesystems(tag names.ApplicationTag) state.StringsWatcher
    WatchMachineFilesystemAttachments(names.MachineTag) state.StringsWatcher
    WatchUnitFilesystemAttachments(names.ApplicationTag) state.StringsWatcher
    WatchModelFilesystems() state.StringsWatcher
    WatchModelFilesystemAttachments() state.StringsWatcher
    WatchModelVolumeAttachments() state.StringsWatcher
}

Backend provides access to filesystems and volumes for the filesystem watchers to use.

type Watchers Uses

type Watchers struct {
    Backend Backend
}

Watchers provides methods for watching filesystems. The watches aggregate results from host- and model-scoped watchers, to conform to the behaviour of the storageprovisioner worker. The model-level storageprovisioner watches model-scoped filesystems that have no backing volume. The host-level worker watches both host-scoped filesystems, and model-scoped filesystems whose backing volumes are attached to the host.

func (Watchers) WatchMachineManagedFilesystemAttachments Uses

func (fw Watchers) WatchMachineManagedFilesystemAttachments(m names.MachineTag) state.StringsWatcher

WatchMachineManagedFilesystemAttachments returns a strings watcher that reports lifecycle changes for attachments to both machine-scoped filesystems, and model-scoped, volume-backed filesystems that are attached to the specified machine.

func (Watchers) WatchMachineManagedFilesystems Uses

func (fw Watchers) WatchMachineManagedFilesystems(m names.MachineTag) state.StringsWatcher

WatchMachineManagedFilesystems returns a strings watcher that reports both machine-scoped filesystems, and model-scoped, volume-backed filesystems that are attached to the specified machine.

func (Watchers) WatchModelManagedFilesystemAttachments Uses

func (fw Watchers) WatchModelManagedFilesystemAttachments() state.StringsWatcher

WatchModelManagedFilesystemAttachments returns a strings watcher that reports lifecycle changes to attachments of model-scoped filesystem that have no backing volume. Volume-backed filesystems are always managed by the host to which they are attached.

func (Watchers) WatchModelManagedFilesystems Uses

func (fw Watchers) WatchModelManagedFilesystems() state.StringsWatcher

WatchModelManagedFilesystems returns a strings watcher that reports model-scoped filesystems that have no backing volume. Volume-backed filesystems are always managed by the host to which they are attached.

func (Watchers) WatchUnitManagedFilesystemAttachments Uses

func (fw Watchers) WatchUnitManagedFilesystemAttachments(app names.ApplicationTag) state.StringsWatcher

WatchMachineManagedFilesystemAttachments returns a strings watcher that reports lifecycle changes for attachments to both unit-scoped filesystems, and model-scoped, volume-backed filesystems that are attached to units of the specified application.

func (Watchers) WatchUnitManagedFilesystems Uses

func (fw Watchers) WatchUnitManagedFilesystems(app names.ApplicationTag) state.StringsWatcher

WatchUnitManagedFilesystems returns a strings watcher that reports both unit-scoped filesystems, and model-scoped, volume-backed filesystems that are attached to units of the specified application.

Package filesystemwatcher imports 6 packages (graph) and is imported by 1 packages. Updated 2019-08-26. Refresh now. Tools for package owners.