Documentation ¶
Overview ¶
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Package vpcvolume ...
Index ¶
- Constants
- type IKSVolumeService
- type SnapshotManager
- type SnapshotService
- func (ss *SnapshotService) CheckSnapshotTag(volumeID string, snapshotID string, tagName string, ctxLogger *zap.Logger) error
- func (ss *SnapshotService) CreateSnapshot(snapshotTemplate *models.Snapshot, ctxLogger *zap.Logger) (*models.Snapshot, error)
- func (ss *SnapshotService) DeleteSnapshot(snapshotID string, ctxLogger *zap.Logger) error
- func (ss *SnapshotService) DeleteSnapshotTag(volumeID string, snapshotID string, tagName string, ctxLogger *zap.Logger) error
- func (ss *SnapshotService) GetSnapshot(snapshotID string, ctxLogger *zap.Logger) (*models.Snapshot, error)
- func (ss *SnapshotService) GetSnapshotByName(snapshotName string, ctxLogger *zap.Logger) (*models.Snapshot, error)
- func (ss *SnapshotService) ListSnapshotTags(volumeID string, snapshotID string, ctxLogger *zap.Logger) (*[]string, error)
- func (ss *SnapshotService) ListSnapshots(limit int, start string, filters *models.LisSnapshotFilters, ...) (*models.SnapshotList, error)
- func (ss *SnapshotService) SetSnapshotTag(volumeID string, snapshotID string, tagName string, ctxLogger *zap.Logger) error
- type VolumeManager
- type VolumeService
- func (vs *VolumeService) CheckVolumeTag(volumeID string, tagName string, ctxLogger *zap.Logger) error
- func (vs *VolumeService) CreateVolume(volumeTemplate *models.Volume, ctxLogger *zap.Logger) (*models.Volume, error)
- func (vs *VolumeService) DeleteVolume(volumeID string, ctxLogger *zap.Logger) error
- func (vs *VolumeService) DeleteVolumeTag(volumeID string, tagName string, ctxLogger *zap.Logger) error
- func (vs *VolumeService) ExpandVolume(volumeID string, volumeTemplate *models.Volume, ctxLogger *zap.Logger) (*models.Volume, error)
- func (vs *VolumeService) GetVolume(volumeID string, ctxLogger *zap.Logger) (*models.Volume, error)
- func (vs *VolumeService) GetVolumeByName(volumeName string, ctxLogger *zap.Logger) (*models.Volume, error)
- func (vs *VolumeService) ListVolumeTags(volumeID string, ctxLogger *zap.Logger) (*[]string, error)
- func (vs *VolumeService) ListVolumes(limit int, start string, filters *models.ListVolumeFilters, ...) (*models.VolumeList, error)
- func (vs *VolumeService) SetVolumeTag(volumeID string, tagName string, ctxLogger *zap.Logger) error
- func (vs *VolumeService) UpdateVolume(volumeTemplate *models.Volume, ctxLogger *zap.Logger) error
Constants ¶
const (
//IksV2PathPrefix ...
IksV2PathPrefix = "v2/storage/"
)
const (
// Version of the VPC backend service
Version = "/v1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IKSVolumeService ¶
type IKSVolumeService struct { VolumeService // contains filtered or unexported fields }
IKSVolumeService ...
func (*IKSVolumeService) UpdateVolume ¶
func (vs *IKSVolumeService) UpdateVolume(volumeTemplate *models.Volume, ctxLogger *zap.Logger) error
UpdateVolume POSTs to /volumes
type SnapshotManager ¶
type SnapshotManager interface { // Create the snapshot on the volume CreateSnapshot(snapshotTemplate *models.Snapshot, ctxLogger *zap.Logger) (*models.Snapshot, error) // Delete the snapshot DeleteSnapshot(snapshotID string, ctxLogger *zap.Logger) error // Get the snapshot GetSnapshot(snapshotID string, ctxLogger *zap.Logger) (*models.Snapshot, error) // Get the snapshot by using snapshot name GetSnapshotByName(snapshotName string, ctxLogger *zap.Logger) (*models.Snapshot, error) // List all the snapshots for a given volume ListSnapshots(limit int, start string, filters *models.LisSnapshotFilters, ctxLogger *zap.Logger) (*models.SnapshotList, error) // Set tag for a snapshot SetSnapshotTag(volumeID string, snapshotID string, tagName string, ctxLogger *zap.Logger) error // Delete tag of a snapshot DeleteSnapshotTag(volumeID string, snapshotID string, tagName string, ctxLogger *zap.Logger) error // List all tags of a snapshot ListSnapshotTags(volumeID string, snapshotID string, ctxLogger *zap.Logger) (*[]string, error) // Check if the given tag exists on a snapshot CheckSnapshotTag(volumeID string, snapshotID string, tagName string, ctxLogger *zap.Logger) error }
SnapshotManager operations
func NewSnapshotManager ¶
func NewSnapshotManager(client client.SessionClient) SnapshotManager
NewSnapshotManager ...
type SnapshotService ¶
type SnapshotService struct {
// contains filtered or unexported fields
}
SnapshotService ...
func (*SnapshotService) CheckSnapshotTag ¶
func (ss *SnapshotService) CheckSnapshotTag(volumeID string, snapshotID string, tagName string, ctxLogger *zap.Logger) error
CheckSnapshotTag checks if the given tag exists on a snapshot
func (*SnapshotService) CreateSnapshot ¶
func (ss *SnapshotService) CreateSnapshot(snapshotTemplate *models.Snapshot, ctxLogger *zap.Logger) (*models.Snapshot, error)
CreateSnapshot POSTs to /snapshots
func (*SnapshotService) DeleteSnapshot ¶
func (ss *SnapshotService) DeleteSnapshot(snapshotID string, ctxLogger *zap.Logger) error
DeleteSnapshot DELETEs to /snapshots
func (*SnapshotService) DeleteSnapshotTag ¶
func (ss *SnapshotService) DeleteSnapshotTag(volumeID string, snapshotID string, tagName string, ctxLogger *zap.Logger) error
DeleteSnapshotTag deletes tag of a snapshot
func (*SnapshotService) GetSnapshot ¶
func (ss *SnapshotService) GetSnapshot(snapshotID string, ctxLogger *zap.Logger) (*models.Snapshot, error)
GetSnapshot GETs from /snapshots
func (*SnapshotService) GetSnapshotByName ¶
func (ss *SnapshotService) GetSnapshotByName(snapshotName string, ctxLogger *zap.Logger) (*models.Snapshot, error)
GetSnapshotByName GETs /snapshots
func (*SnapshotService) ListSnapshotTags ¶
func (ss *SnapshotService) ListSnapshotTags(volumeID string, snapshotID string, ctxLogger *zap.Logger) (*[]string, error)
ListSnapshotTags GETs /volumes/snapshots/tags
func (*SnapshotService) ListSnapshots ¶
func (ss *SnapshotService) ListSnapshots(limit int, start string, filters *models.LisSnapshotFilters, ctxLogger *zap.Logger) (*models.SnapshotList, error)
ListSnapshots GETs /snapshots
func (*SnapshotService) SetSnapshotTag ¶
func (ss *SnapshotService) SetSnapshotTag(volumeID string, snapshotID string, tagName string, ctxLogger *zap.Logger) error
SetSnapshotTag sets tag for a snapshot
type VolumeManager ¶
type VolumeManager interface { // Create the volume with authorisation by passing required information in the volume object CreateVolume(volumeTemplate *models.Volume, ctxLogger *zap.Logger) (*models.Volume, error) // UpdateVolume updates the volume with authorisation by passing required information in the volume object UpdateVolume(volumeTemplate *models.Volume, ctxLogger *zap.Logger) error // ExpandVolume ... ExpandVolume(volumeID string, volumeTemplate *models.Volume, ctxLogger *zap.Logger) (*models.Volume, error) // Delete the volume DeleteVolume(volumeID string, ctxLogger *zap.Logger) error // Get the volume by using ID GetVolume(volumeID string, ctxLogger *zap.Logger) (*models.Volume, error) // Get the volume by using volume name GetVolumeByName(volumeName string, ctxLogger *zap.Logger) (*models.Volume, error) // Others // Get volume lists by using snapshot tags ListVolumes(limit int, start string, filters *models.ListVolumeFilters, ctxLogger *zap.Logger) (*models.VolumeList, error) // Set tag for a volume SetVolumeTag(volumeID string, tagName string, ctxLogger *zap.Logger) error // Delete tag of a volume DeleteVolumeTag(volumeID string, tagName string, ctxLogger *zap.Logger) error // List all tags of a volume ListVolumeTags(volumeID string, ctxLogger *zap.Logger) (*[]string, error) // Check if the given tag exists on a volume CheckVolumeTag(volumeID string, tagName string, ctxLogger *zap.Logger) error }
VolumeManager operations
func NewIKSVolumeService ¶
func NewIKSVolumeService(client client.SessionClient) VolumeManager
NewIKSVolumeService ...
type VolumeService ¶
type VolumeService struct {
// contains filtered or unexported fields
}
VolumeService ...
func (*VolumeService) CheckVolumeTag ¶
func (vs *VolumeService) CheckVolumeTag(volumeID string, tagName string, ctxLogger *zap.Logger) error
CheckVolumeTag checks if the given tag exists on a volume
func (*VolumeService) CreateVolume ¶
func (vs *VolumeService) CreateVolume(volumeTemplate *models.Volume, ctxLogger *zap.Logger) (*models.Volume, error)
CreateVolume POSTs to /volumes
func (*VolumeService) DeleteVolume ¶
func (vs *VolumeService) DeleteVolume(volumeID string, ctxLogger *zap.Logger) error
DeleteVolume POSTs to /volumes
func (*VolumeService) DeleteVolumeTag ¶
func (vs *VolumeService) DeleteVolumeTag(volumeID string, tagName string, ctxLogger *zap.Logger) error
DeleteVolumeTag deletes tag of a volume
func (*VolumeService) ExpandVolume ¶
func (vs *VolumeService) ExpandVolume(volumeID string, volumeTemplate *models.Volume, ctxLogger *zap.Logger) (*models.Volume, error)
ExpandVolume PATCH to /volumes
func (*VolumeService) GetVolumeByName ¶
func (vs *VolumeService) GetVolumeByName(volumeName string, ctxLogger *zap.Logger) (*models.Volume, error)
GetVolumeByName GETs /volumes
func (*VolumeService) ListVolumeTags ¶
ListVolumeTags GETs /volumes/tags
func (*VolumeService) ListVolumes ¶
func (vs *VolumeService) ListVolumes(limit int, start string, filters *models.ListVolumeFilters, ctxLogger *zap.Logger) (*models.VolumeList, error)
ListVolumes GETs /volumes
func (*VolumeService) SetVolumeTag ¶
SetVolumeTag sets tag for a volume
func (*VolumeService) UpdateVolume ¶
UpdateVolume POSTs to /volumes. Riaas/VPC does have volume update support yet
Source Files ¶
- check_snapshot_tag.go
- check_volume_tag.go
- constants.go
- create_snapshot.go
- create_volume.go
- delete_snapshot.go
- delete_snapshot_tag.go
- delete_volume.go
- delete_volume_tag.go
- expand_volume.go
- get_snapshot.go
- get_volume.go
- iks_update_volume.go
- iks_volume_service.go
- list_snapshot_tags.go
- list_snapshots.go
- list_volume_tags.go
- list_volumes.go
- set_snapshot_tag.go
- set_volume_tag.go
- snapshot_service.go
- update_volume.go
- volume_service.go
Directories ¶
Path | Synopsis |
---|---|
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Code generated by counterfeiter.
|
Code generated by counterfeiter. |