Documentation ¶
Index ¶
- type State
- func (st *State) AttachmentLife(ids []params.MachineStorageId) ([]params.LifeResult, error)
- func (st *State) CreateVolumeAttachmentPlans(volumeAttachmentPlans []params.VolumeAttachmentPlan) ([]params.ErrorResult, 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) RemoveFilesystemParams(tags []names.FilesystemTag) ([]params.RemoveFilesystemParamsResult, error)
- func (st *State) RemoveVolumeAttachmentPlan(ids []params.MachineStorageId) ([]params.ErrorResult, error)
- func (st *State) RemoveVolumeParams(tags []names.VolumeTag) ([]params.RemoveVolumeParamsResult, 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) SetVolumeAttachmentPlanBlockInfo(volumeAttachmentPlans []params.VolumeAttachmentPlan) ([]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) VolumeAttachmentPlans(ids []params.MachineStorageId) ([]params.VolumeAttachmentPlanResult, 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) WatchApplications() (watcher.StringsWatcher, error)
- func (st *State) WatchBlockDevices(m names.MachineTag) (watcher.NotifyWatcher, error)
- func (st *State) WatchFilesystemAttachments(scope names.Tag) (watcher.MachineStorageIdsWatcher, error)
- func (st *State) WatchFilesystems(scope names.Tag) (watcher.StringsWatcher, error)
- func (st *State) WatchMachine(m names.MachineTag) (watcher.NotifyWatcher, error)
- func (st *State) WatchVolumeAttachmentPlans(scope names.Tag) (watcher.MachineStorageIdsWatcher, error)
- func (st *State) WatchVolumeAttachments(scope names.Tag) (watcher.MachineStorageIdsWatcher, error)
- func (st *State) WatchVolumes(scope names.Tag) (watcher.StringsWatcher, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct {
// 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) CreateVolumeAttachmentPlans ¶
func (st *State) CreateVolumeAttachmentPlans(volumeAttachmentPlans []params.VolumeAttachmentPlan) ([]params.ErrorResult, error)
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) RemoveFilesystemParams ¶
func (st *State) RemoveFilesystemParams(tags []names.FilesystemTag) ([]params.RemoveFilesystemParamsResult, error)
RemoveFilesystemParams returns the parameters for destroying or releasing the filesystems with the specified tags.
func (*State) RemoveVolumeAttachmentPlan ¶
func (st *State) RemoveVolumeAttachmentPlan(ids []params.MachineStorageId) ([]params.ErrorResult, error)
func (*State) RemoveVolumeParams ¶
func (st *State) RemoveVolumeParams(tags []names.VolumeTag) ([]params.RemoveVolumeParamsResult, error)
RemoveVolumeParams returns the parameters for destroying or releasing the volumes with the specified tags.
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) SetVolumeAttachmentPlanBlockInfo ¶
func (st *State) SetVolumeAttachmentPlanBlockInfo(volumeAttachmentPlans []params.VolumeAttachmentPlan) ([]params.ErrorResult, error)
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) VolumeAttachmentPlans ¶
func (st *State) VolumeAttachmentPlans(ids []params.MachineStorageId) ([]params.VolumeAttachmentPlanResult, error)
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) WatchApplications ¶
func (st *State) WatchApplications() (watcher.StringsWatcher, error)
WatchApplications returns a StringsWatcher that notifies of changes to the lifecycles of CAAS applications in the current model.
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(scope names.Tag) (watcher.MachineStorageIdsWatcher, error)
WatchFilesystemAttachments watches for changes to filesystem attachments scoped to the entity with the specified tag.
func (*State) WatchFilesystems ¶
func (st *State) WatchFilesystems(scope names.Tag) (watcher.StringsWatcher, error)
WatchFilesystems watches for lifecycle changes to volumes scoped to the entity with the specified tag.
func (*State) WatchMachine ¶
func (st *State) WatchMachine(m names.MachineTag) (watcher.NotifyWatcher, error)
WatchMachine watches for changes to the specified machine.
func (*State) WatchVolumeAttachmentPlans ¶
func (st *State) WatchVolumeAttachmentPlans(scope names.Tag) (watcher.MachineStorageIdsWatcher, error)
WatchVolumeAttachmentPlans watches for changes to volume attachments scoped to the entity with the tag passed to NewState.
func (*State) WatchVolumeAttachments ¶
func (st *State) WatchVolumeAttachments(scope names.Tag) (watcher.MachineStorageIdsWatcher, error)
WatchVolumeAttachments watches for changes to volume attachments scoped to the entity with the specified tag.
func (*State) WatchVolumes ¶
func (st *State) WatchVolumes(scope names.Tag) (watcher.StringsWatcher, error)
WatchVolumes watches for lifecycle changes to volumes scoped to the entity with the specified tag.