filesystemwatcher

package
v0.0.0-...-004e4dd Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 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 Backend

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

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

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

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

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

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

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

WatchUnitManagedFilesystemAttachments 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

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.

Jump to

Keyboard shortcuts

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