juju: github.com/juju/juju/api/storageprovisioner Index | Files

package storageprovisioner

import "github.com/juju/juju/api/storageprovisioner"

Index

Package Files

provisioner.go

type State Uses

type State struct {
    // contains filtered or unexported fields
}

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

func NewState Uses

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

NewState creates a new client-side StorageProvisioner facade.

func (*State) AttachmentLife Uses

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 Uses

func (st *State) CreateVolumeAttachmentPlans(volumeAttachmentPlans []params.VolumeAttachmentPlan) ([]params.ErrorResult, error)

func (*State) EnsureDead Uses

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 Uses

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 Uses

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

FilesystemAttachments returns details of filesystem attachments with the specified IDs.

func (*State) FilesystemParams Uses

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 Uses

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

Filesystems returns details of filesystems with the specified tags.

func (*State) InstanceIds Uses

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 Uses

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 Uses

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

Remove removes the entities with the specified tags from state.

func (*State) RemoveAttachments Uses

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

RemoveAttachments removes the attachments with the specified IDs from state.

func (*State) RemoveFilesystemParams Uses

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 Uses

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

func (*State) RemoveVolumeParams Uses

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 Uses

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

SetFilesystemAttachmentInfo records the details of newly provisioned filesystem attachments.

func (*State) SetFilesystemInfo Uses

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

SetFilesystemInfo records the details of newly provisioned filesystems.

func (*State) SetStatus Uses

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

SetStatus sets the status of storage entities.

func (*State) SetVolumeAttachmentInfo Uses

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

SetVolumeAttachmentInfo records the details of newly provisioned volume attachments.

func (*State) SetVolumeAttachmentPlanBlockInfo Uses

func (st *State) SetVolumeAttachmentPlanBlockInfo(volumeAttachmentPlans []params.VolumeAttachmentPlan) ([]params.ErrorResult, error)

func (*State) SetVolumeInfo Uses

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

SetVolumeInfo records the details of newly provisioned volumes.

func (*State) VolumeAttachmentParams Uses

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 Uses

func (st *State) VolumeAttachmentPlans(ids []params.MachineStorageId) ([]params.VolumeAttachmentPlanResult, error)

func (*State) VolumeAttachments Uses

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

VolumeAttachments returns details of volume attachments with the specified IDs.

func (*State) VolumeBlockDevices Uses

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 Uses

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 Uses

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

Volumes returns details of volumes with the specified tags.

func (*State) WatchApplications Uses

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 Uses

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

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

func (*State) WatchFilesystemAttachments Uses

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 Uses

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

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

func (*State) WatchMachine Uses

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

WatchMachine watches for changes to the specified machine.

func (*State) WatchVolumeAttachmentPlans Uses

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 Uses

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 Uses

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.

Package storageprovisioner imports 6 packages (graph) and is imported by 36 packages. Updated 2019-08-25. Refresh now. Tools for package owners.