Documentation ¶
Index ¶
- Constants
- Variables
- type SLSession
- func (sls *SLSession) AttachVolume(attachRequest provider.VolumeAttachmentRequest) (*provider.VolumeAttachmentResponse, error)
- func (sls *SLSession) AuthorizeVolume(volumeAuthorization provider.VolumeAuthorization) error
- func (sls *SLSession) CreateSnapshot(volume *provider.Volume, tags map[string]string) (*provider.Snapshot, error)
- func (sls *SLSession) DeleteSnapshot(del *provider.Snapshot) error
- func (sls *SLSession) DeleteVolume(vol *provider.Volume) error
- func (sls *SLSession) DetachVolume(detachRequest provider.VolumeAttachmentRequest) (*http.Response, error)
- func (sls *SLSession) GetSnapshot(snapshotId string) (*provider.Snapshot, error)
- func (sls *SLSession) GetSnapshotWithVolumeID(volumeID string, snapshotID string) (*provider.Snapshot, error)
- func (sls *SLSession) GetVolumeAttachment(detachRequest provider.VolumeAttachmentRequest) (*provider.VolumeAttachmentResponse, error)
- func (sls *SLSession) GetVolumeByName(name string) (*provider.Volume, error)
- func (sls *SLSession) GetVolumeByRequestID(requestID string) (*provider.Volume, error)
- func (sls *SLSession) HandleProvisioning(orderID int) (*int, error)
- func (sls *SLSession) ListAllSnapshots(volumeID string) ([]*provider.Snapshot, error)
- func (sls *SLSession) ListSnapshots() ([]*provider.Snapshot, error)
- func (sls *SLSession) UpdateStorage(volume *provider.Volume) error
- func (sls *SLSession) WaitForAttachVolume(volumeAttachmentTemplate provider.VolumeAttachmentRequest) (*provider.VolumeAttachmentResponse, error)
- func (sls *SLSession) WaitForDetachVolume(volumeAttachmentTemplate provider.VolumeAttachmentRequest) error
- type SLSessionCommonInterface
Constants ¶
View Source
const SnapshotMask = "" /* 337-byte string literal not displayed */
Variables ¶
View Source
var (
VolumeDeleteReason = "deleted by ibmcloud-storage-volume-lib on behalf of user request"
)
Functions ¶
This section is empty.
Types ¶
type SLSession ¶
type SLSession struct { SLAccountID int Url string Backend backend.Session Logger *zap.Logger Config *config.SoftlayerConfig ContextCredentials provider.ContextCredentials VolumeType provider.VolumeType Provider provider.VolumeProvider SLSessionCommonInterface }
SLSession implements lib.Session
func (*SLSession) AttachVolume ¶
func (sls *SLSession) AttachVolume(attachRequest provider.VolumeAttachmentRequest) (*provider.VolumeAttachmentResponse, error)
AttachVolume ...
func (*SLSession) AuthorizeVolume ¶
func (sls *SLSession) AuthorizeVolume(volumeAuthorization provider.VolumeAuthorization) error
AuthorizeVolume based on given volumeAuthorization
func (*SLSession) CreateSnapshot ¶
func (sls *SLSession) CreateSnapshot(volume *provider.Volume, tags map[string]string) (*provider.Snapshot, error)
Create the snapshot from the volume
func (*SLSession) DeleteSnapshot ¶
Delete the snapshot
func (*SLSession) DeleteVolume ¶
Delete the volume
func (*SLSession) DetachVolume ¶
func (sls *SLSession) DetachVolume(detachRequest provider.VolumeAttachmentRequest) (*http.Response, error)
DetachVolume detaches the volume/ fileset from the pod
func (*SLSession) GetSnapshot ¶
Get the snapshot
func (*SLSession) GetSnapshotWithVolumeID ¶
func (sls *SLSession) GetSnapshotWithVolumeID(volumeID string, snapshotID string) (*provider.Snapshot, error)
Get the snapshot with volume ID
func (*SLSession) GetVolumeAttachment ¶
func (sls *SLSession) GetVolumeAttachment(detachRequest provider.VolumeAttachmentRequest) (*provider.VolumeAttachmentResponse, error)
GetVolumeAttachment ...
func (*SLSession) GetVolumeByName ¶
GetVolumeByName ...
func (*SLSession) GetVolumeByRequestID ¶
GetVolumeByRequestID getvolume by request ID. The request ID the identifier returned after placing the order
func (*SLSession) HandleProvisioning ¶
HandleProvisioning
func (*SLSession) ListAllSnapshots ¶
List all the snapshots for a given volume
func (*SLSession) ListSnapshots ¶
Snapshot list by using tags
func (*SLSession) UpdateStorage ¶
func (*SLSession) WaitForAttachVolume ¶
func (sls *SLSession) WaitForAttachVolume(volumeAttachmentTemplate provider.VolumeAttachmentRequest) (*provider.VolumeAttachmentResponse, error)
WaitForAttachVolume ...
func (*SLSession) WaitForDetachVolume ¶
func (sls *SLSession) WaitForDetachVolume(volumeAttachmentTemplate provider.VolumeAttachmentRequest) error
WaitForDetachVolume ...
Click to show internal directories.
Click to hide internal directories.