storageprovisioner

package
v0.0.0-...-2608902 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2016 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	*common.ModelWatcher
	// contains filtered or unexported fields
}

State provides access to a storageprovisioner's view of the state.

func NewState

func NewState(caller base.APICaller, scope names.Tag) (*State, error)

NewState creates a new client-side StorageProvisioner facade.

func (*State) AttachmentLife

func (st *State) AttachmentLife(ids []params.MachineStorageId) ([]params.LifeResult, error)

AttachmentLife requests the life cycle of the attachments with the specified IDs.

func (*State) EnsureDead

func (st *State) EnsureDead(tags []names.Tag) ([]params.ErrorResult, error)

EnsureDead progresses the entities with the specified tags to the Dead life cycle state, if they are Alive or Dying.

func (*State) FilesystemAttachmentParams

func (st *State) FilesystemAttachmentParams(ids []params.MachineStorageId) ([]params.FilesystemAttachmentParamsResult, error)

FilesystemAttachmentParams returns the parameters for creating the filesystem attachments with the specified tags.

func (*State) FilesystemAttachments

func (st *State) FilesystemAttachments(ids []params.MachineStorageId) ([]params.FilesystemAttachmentResult, error)

FilesystemAttachments returns details of filesystem attachments with the specified IDs.

func (*State) FilesystemParams

func (st *State) FilesystemParams(tags []names.FilesystemTag) ([]params.FilesystemParamsResult, error)

FilesystemParams returns the parameters for creating the filesystems with the specified tags.

func (*State) Filesystems

func (st *State) Filesystems(tags []names.FilesystemTag) ([]params.FilesystemResult, error)

Filesystems returns details of filesystems with the specified tags.

func (*State) InstanceIds

func (st *State) InstanceIds(tags []names.MachineTag) ([]params.StringResult, error)

InstanceIds returns the provider specific instance ID for each machine, or an CodeNotProvisioned error if not set.

func (*State) Life

func (st *State) Life(tags []names.Tag) ([]params.LifeResult, error)

Life requests the life cycle of the entities with the specified tags.

func (*State) Remove

func (st *State) Remove(tags []names.Tag) ([]params.ErrorResult, error)

Remove removes the entities with the specified tags from state.

func (*State) RemoveAttachments

func (st *State) RemoveAttachments(ids []params.MachineStorageId) ([]params.ErrorResult, error)

RemoveAttachments removes the attachments with the specified IDs from state.

func (*State) SetFilesystemAttachmentInfo

func (st *State) SetFilesystemAttachmentInfo(filesystemAttachments []params.FilesystemAttachment) ([]params.ErrorResult, error)

SetFilesystemAttachmentInfo records the details of newly provisioned filesystem attachments.

func (*State) SetFilesystemInfo

func (st *State) SetFilesystemInfo(filesystems []params.Filesystem) ([]params.ErrorResult, error)

SetFilesystemInfo records the details of newly provisioned filesystems.

func (*State) SetStatus

func (st *State) SetStatus(args []params.EntityStatusArgs) error

SetStatus sets the status of storage entities.

func (*State) SetVolumeAttachmentInfo

func (st *State) SetVolumeAttachmentInfo(volumeAttachments []params.VolumeAttachment) ([]params.ErrorResult, error)

SetVolumeAttachmentInfo records the details of newly provisioned volume attachments.

func (*State) SetVolumeInfo

func (st *State) SetVolumeInfo(volumes []params.Volume) ([]params.ErrorResult, error)

SetVolumeInfo records the details of newly provisioned volumes.

func (*State) VolumeAttachmentParams

func (st *State) VolumeAttachmentParams(ids []params.MachineStorageId) ([]params.VolumeAttachmentParamsResult, error)

VolumeAttachmentParams returns the parameters for creating the volume attachments with the specified tags.

func (*State) VolumeAttachments

func (st *State) VolumeAttachments(ids []params.MachineStorageId) ([]params.VolumeAttachmentResult, error)

VolumeAttachments returns details of volume attachments with the specified IDs.

func (*State) VolumeBlockDevices

func (st *State) VolumeBlockDevices(ids []params.MachineStorageId) ([]params.BlockDeviceResult, error)

VolumeBlockDevices returns details of block devices corresponding to the volume attachments with the specified IDs.

func (*State) VolumeParams

func (st *State) VolumeParams(tags []names.VolumeTag) ([]params.VolumeParamsResult, error)

VolumeParams returns the parameters for creating the volumes with the specified tags.

func (*State) Volumes

func (st *State) Volumes(tags []names.VolumeTag) ([]params.VolumeResult, error)

Volumes returns details of volumes with the specified tags.

func (*State) WatchBlockDevices

func (st *State) WatchBlockDevices(m names.MachineTag) (watcher.NotifyWatcher, error)

WatchBlockDevices watches for changes to the specified machine's block devices.

func (*State) WatchFilesystemAttachments

func (st *State) WatchFilesystemAttachments() (watcher.MachineStorageIdsWatcher, error)

WatchFilesystemAttachments watches for changes to filesystem attachments scoped to the entity with the tag passed to NewState.

func (*State) WatchFilesystems

func (st *State) WatchFilesystems() (watcher.StringsWatcher, error)

WatchVolumes watches for lifecycle changes to volumes scoped to the entity with the tag passed to NewState.

func (*State) WatchMachine

func (st *State) WatchMachine(m names.MachineTag) (watcher.NotifyWatcher, error)

WatchMachine watches for changes to the specified machine.

func (*State) WatchVolumeAttachments

func (st *State) WatchVolumeAttachments() (watcher.MachineStorageIdsWatcher, error)

WatchVolumeAttachments watches for changes to volume attachments scoped to the entity with the tag passed to NewState.

func (*State) WatchVolumes

func (st *State) WatchVolumes() (watcher.StringsWatcher, error)

WatchVolumes watches for lifecycle changes to volumes scoped to the entity with the tag passed to NewState.

Jump to

Keyboard shortcuts

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