Documentation ¶
Index ¶
- type State
- func (st *State) AttachmentLife(ids []params.MachineStorageId) ([]params.LifeResult, error)
- func (st *State) EnsureDead(tags []names.Tag) ([]params.ErrorResult, error)
- func (st *State) FilesystemAttachmentParams(ids []params.MachineStorageId) ([]params.FilesystemAttachmentParamsResult, error)
- func (st *State) FilesystemAttachments(ids []params.MachineStorageId) ([]params.FilesystemAttachmentResult, error)
- func (st *State) FilesystemParams(tags []names.FilesystemTag) ([]params.FilesystemParamsResult, error)
- func (st *State) Filesystems(tags []names.FilesystemTag) ([]params.FilesystemResult, error)
- func (st *State) InstanceIds(tags []names.MachineTag) ([]params.StringResult, error)
- func (st *State) Life(tags []names.Tag) ([]params.LifeResult, error)
- func (st *State) Remove(tags []names.Tag) ([]params.ErrorResult, error)
- func (st *State) RemoveAttachments(ids []params.MachineStorageId) ([]params.ErrorResult, error)
- func (st *State) SetFilesystemAttachmentInfo(filesystemAttachments []params.FilesystemAttachment) ([]params.ErrorResult, error)
- func (st *State) SetFilesystemInfo(filesystems []params.Filesystem) ([]params.ErrorResult, error)
- func (st *State) SetStatus(args []params.EntityStatusArgs) error
- func (st *State) SetVolumeAttachmentInfo(volumeAttachments []params.VolumeAttachment) ([]params.ErrorResult, error)
- func (st *State) SetVolumeInfo(volumes []params.Volume) ([]params.ErrorResult, error)
- func (st *State) VolumeAttachmentParams(ids []params.MachineStorageId) ([]params.VolumeAttachmentParamsResult, error)
- func (st *State) VolumeAttachments(ids []params.MachineStorageId) ([]params.VolumeAttachmentResult, error)
- func (st *State) VolumeBlockDevices(ids []params.MachineStorageId) ([]params.BlockDeviceResult, error)
- func (st *State) VolumeParams(tags []names.VolumeTag) ([]params.VolumeParamsResult, error)
- func (st *State) Volumes(tags []names.VolumeTag) ([]params.VolumeResult, error)
- func (st *State) WatchBlockDevices(m names.MachineTag) (watcher.NotifyWatcher, error)
- func (st *State) WatchFilesystemAttachments() (watcher.MachineStorageIdsWatcher, error)
- func (st *State) WatchFilesystems() (watcher.StringsWatcher, error)
- func (st *State) WatchMachine(m names.MachineTag) (watcher.NotifyWatcher, error)
- func (st *State) WatchVolumeAttachments() (watcher.MachineStorageIdsWatcher, error)
- func (st *State) WatchVolumes() (watcher.StringsWatcher, error)
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 (*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 ¶
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) 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 ¶
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 ¶
VolumeParams returns the parameters for creating the 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.