github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/apiserver/facades/agent/storageprovisioner/internal/filesystemwatcher/backend.go (about) 1 // Copyright 2017 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package filesystemwatcher 5 6 import ( 7 "gopkg.in/juju/names.v2" 8 9 "github.com/juju/juju/state" 10 ) 11 12 // Backend provides access to filesystems and volumes for the 13 // filesystem watchers to use. 14 type Backend interface { 15 Filesystem(names.FilesystemTag) (state.Filesystem, error) 16 VolumeAttachment(names.Tag, names.VolumeTag) (state.VolumeAttachment, error) 17 WatchMachineFilesystems(names.MachineTag) state.StringsWatcher 18 WatchUnitFilesystems(tag names.ApplicationTag) state.StringsWatcher 19 WatchMachineFilesystemAttachments(names.MachineTag) state.StringsWatcher 20 WatchUnitFilesystemAttachments(names.ApplicationTag) state.StringsWatcher 21 WatchModelFilesystems() state.StringsWatcher 22 WatchModelFilesystemAttachments() state.StringsWatcher 23 WatchModelVolumeAttachments() state.StringsWatcher 24 }