Documentation ¶
Overview ¶
Package diskformatter defines a worker that watches for block devices assigned to storage instances owned by the unit that runs this worker, and creates filesystems on them as necessary. Each unit agent runs this worker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWorker ¶
func NewWorker( accessor BlockDeviceAccessor, ) worker.Worker
NewWorker returns a new worker that creates filesystems on block devices assigned to this unit's storage instances.
Types ¶
type BlockDeviceAccessor ¶
type BlockDeviceAccessor interface { WatchBlockDevices() (watcher.StringsWatcher, error) BlockDevices([]names.DiskTag) (params.BlockDeviceResults, error) BlockDeviceStorageInstances([]names.DiskTag) (params.StorageInstanceResults, error) }
BlockDeviceAccessor is an interface used to watch and retrieve details of the block devices assigned to storage instances owned by the unit.
Click to show internal directories.
Click to hide internal directories.