diskformatter

package
v0.0.0-...-f19ae85 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2015 License: AGPL-3.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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