diskmanager

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: 14 Imported by: 0

Documentation

Overview

Package diskmanager defines a worker that periodically lists block devices on the machine it runs on. This worker will be run on all Juju-managed machines (one per machine agent).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWorker

NewWorker returns a worker that lists block devices attached to the machine, and records them in state.

Types

type BlockDeviceSetter

type BlockDeviceSetter interface {
	SetMachineBlockDevices([]storage.BlockDevice) error
}

BlockDeviceSetter is an interface that is supplied to NewWorker for setting block devices for the local host.

type ListBlockDevicesFunc

type ListBlockDevicesFunc func() ([]storage.BlockDevice, error)

ListBlockDevicesFunc is the type of a function that is supplied to NewWorker for listing block devices available on the local host.

var DefaultListBlockDevices ListBlockDevicesFunc

DefaultListBlockDevices is the default function for listing block devices for the operating system of the local host.

Jump to

Keyboard shortcuts

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