storage

package
v0.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const APIPathCloudServerVolumes = "/cloud/servers/%s/volumes"
View Source
const APIPathStoragePlan = "/storage/plans/%s"
View Source
const APIPathStorageVolume = "/storage/volumes/%s"
View Source
const APIPathStorageVolumeAttachedServer = "/storage/volumes/%s/attached_server"
View Source
const APIPathStorageVolumeDiscard = "/storage/volumes/%s/discard"
View Source
const APIPathStorageVolumes = "/storage/volumes"

Variables

This section is empty.

Functions

func AttachVolumeFailErrMocked

func AttachVolumeFailErrMocked(t *testing.T, volumeIn *types.Volume) *types.Server

AttachVolumeFailErrMocked test mocked function

func AttachVolumeFailJSONMocked

func AttachVolumeFailJSONMocked(t *testing.T, volumeIn *types.Volume) *types.Server

AttachVolumeFailJSONMocked test mocked function

func AttachVolumeFailStatusMocked

func AttachVolumeFailStatusMocked(t *testing.T, volumeIn *types.Volume) *types.Server

AttachVolumeFailStatusMocked test mocked function

func AttachVolumeMocked

func AttachVolumeMocked(t *testing.T, volumeIn *types.Volume) *types.Server

AttachVolumeMocked test mocked function

func CreateVolumeFailErrMocked

func CreateVolumeFailErrMocked(t *testing.T, volumeIn *types.Volume) *types.Volume

CreateVolumeFailErrMocked test mocked function

func CreateVolumeFailJSONMocked

func CreateVolumeFailJSONMocked(t *testing.T, volumeIn *types.Volume) *types.Volume

CreateVolumeFailJSONMocked test mocked function

func CreateVolumeFailStatusMocked

func CreateVolumeFailStatusMocked(t *testing.T, volumeIn *types.Volume) *types.Volume

CreateVolumeFailStatusMocked test mocked function

func CreateVolumeMocked

func CreateVolumeMocked(t *testing.T, volumeIn *types.Volume) *types.Volume

CreateVolumeMocked test mocked function

func DeleteVolumeFailErrMocked

func DeleteVolumeFailErrMocked(t *testing.T, volumeIn *types.Volume)

DeleteVolumeFailErrMocked test mocked function

func DeleteVolumeFailStatusMocked

func DeleteVolumeFailStatusMocked(t *testing.T, volumeIn *types.Volume)

DeleteVolumeFailStatusMocked test mocked function

func DeleteVolumeMocked

func DeleteVolumeMocked(t *testing.T, volumeIn *types.Volume)

DeleteVolumeMocked test mocked function

func DetachVolumeFailErrMocked

func DetachVolumeFailErrMocked(t *testing.T, volumeIn *types.Volume)

DetachVolumeFailErrMocked test mocked function

func DetachVolumeFailStatusMocked

func DetachVolumeFailStatusMocked(t *testing.T, volumeIn *types.Volume)

DetachVolumeFailStatusMocked test mocked function

func DetachVolumeMocked

func DetachVolumeMocked(t *testing.T, volumeIn *types.Volume)

DetachVolumeMocked test mocked function

func DiscardVolumeFailErrMocked

func DiscardVolumeFailErrMocked(t *testing.T, volumeIn *types.Volume)

DiscardVolumeFailErrMocked test mocked function

func DiscardVolumeFailStatusMocked

func DiscardVolumeFailStatusMocked(t *testing.T, volumeIn *types.Volume)

DiscardVolumeFailStatusMocked test mocked function

func DiscardVolumeMocked

func DiscardVolumeMocked(t *testing.T, volumeIn *types.Volume)

DiscardVolumeMocked test mocked function

func GetStoragePlanFailErrMocked

func GetStoragePlanFailErrMocked(t *testing.T, storagePlan *types.StoragePlan) *types.StoragePlan

GetStoragePlanFailErrMocked test mocked function

func GetStoragePlanFailJSONMocked

func GetStoragePlanFailJSONMocked(t *testing.T, storagePlan *types.StoragePlan) *types.StoragePlan

GetStoragePlanFailJSONMocked test mocked function

func GetStoragePlanFailStatusMocked

func GetStoragePlanFailStatusMocked(t *testing.T, storagePlan *types.StoragePlan) *types.StoragePlan

GetStoragePlanFailStatusMocked test mocked function

func GetStoragePlanMocked

func GetStoragePlanMocked(t *testing.T, storagePlan *types.StoragePlan) *types.StoragePlan

GetStoragePlanMocked test mocked function

func GetVolumeFailErrMocked

func GetVolumeFailErrMocked(t *testing.T, volumeIn *types.Volume) *types.Volume

GetVolumeFailErrMocked test mocked function

func GetVolumeFailJSONMocked

func GetVolumeFailJSONMocked(t *testing.T, volumeIn *types.Volume) *types.Volume

GetVolumeFailJSONMocked test mocked function

func GetVolumeFailStatusMocked

func GetVolumeFailStatusMocked(t *testing.T, volumeIn *types.Volume) *types.Volume

GetVolumeFailStatusMocked test mocked function

func GetVolumeMocked

func GetVolumeMocked(t *testing.T, volumeIn *types.Volume) *types.Volume

GetVolumeMocked test mocked function

func ListVolumesFailErrMocked added in v0.12.0

func ListVolumesFailErrMocked(t *testing.T, volumesIn []*types.Volume) []*types.Volume

ListVolumesFailErrMocked test mocked function

func ListVolumesFailJSONMocked added in v0.12.0

func ListVolumesFailJSONMocked(t *testing.T, volumesIn []*types.Volume) []*types.Volume

ListVolumesFailJSONMocked test mocked function

func ListVolumesFailStatusMocked added in v0.12.0

func ListVolumesFailStatusMocked(t *testing.T, volumesIn []*types.Volume) []*types.Volume

ListVolumesFailStatusMocked test mocked function

func ListVolumesMocked added in v0.12.0

func ListVolumesMocked(t *testing.T, volumesIn []*types.Volume) []*types.Volume

ListVolumesMocked test mocked function

func ListVolumesMockedFilteredByServer added in v0.12.0

func ListVolumesMockedFilteredByServer(t *testing.T, volumesIn []*types.Volume) []*types.Volume

func UpdateVolumeFailErrMocked

func UpdateVolumeFailErrMocked(t *testing.T, volumeIn *types.Volume) *types.Volume

UpdateVolumeFailErrMocked test mocked function

func UpdateVolumeFailJSONMocked

func UpdateVolumeFailJSONMocked(t *testing.T, volumeIn *types.Volume) *types.Volume

UpdateVolumeFailJSONMocked test mocked function

func UpdateVolumeFailStatusMocked

func UpdateVolumeFailStatusMocked(t *testing.T, volumeIn *types.Volume) *types.Volume

UpdateVolumeFailStatusMocked test mocked function

func UpdateVolumeMocked

func UpdateVolumeMocked(t *testing.T, volumeIn *types.Volume) *types.Volume

UpdateVolumeMocked test mocked function

Types

type StoragePlanService

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

StoragePlanService manages storage plan operations

func NewStoragePlanService

func NewStoragePlanService(concertoService utils.ConcertoService) (*StoragePlanService, error)

NewStoragePlanService returns a Concerto storage plan service

func (*StoragePlanService) GetStoragePlan

func (sps *StoragePlanService) GetStoragePlan(storagePlanID string) (storagePlan *types.StoragePlan, err error)

GetStoragePlan returns a storage plan by its ID

type VolumeService

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

VolumeService manages volume operations

func NewVolumeService

func NewVolumeService(concertoService utils.ConcertoService) (*VolumeService, error)

NewVolumeService returns a Concerto Volume service

func (*VolumeService) AttachVolume

func (vs *VolumeService) AttachVolume(
	volumeID string,
	volumeParams *map[string]interface{},
) (server *types.Server, err error)

AttachVolume attaches a Volume by its ID

func (*VolumeService) CreateVolume

func (vs *VolumeService) CreateVolume(volumeParams *map[string]interface{}) (volume *types.Volume, err error)

CreateVolume creates a Volume

func (*VolumeService) DeleteVolume

func (vs *VolumeService) DeleteVolume(volumeID string) (err error)

DeleteVolume deletes a Volume by its ID

func (*VolumeService) DetachVolume

func (vs *VolumeService) DetachVolume(volumeID string) (err error)

DetachVolume detaches a Volume by its ID

func (*VolumeService) DiscardVolume

func (vs *VolumeService) DiscardVolume(volumeID string) (err error)

DiscardVolume discards a Volume by its ID

func (*VolumeService) GetVolume

func (vs *VolumeService) GetVolume(volumeID string) (volume *types.Volume, err error)

GetVolume returns a Volume by its ID

func (*VolumeService) ListVolumes added in v0.12.0

func (vs *VolumeService) ListVolumes(serverID string) (volumes []*types.Volume, err error)

ListVolumes returns the list of Volumes as an array of Volume

func (*VolumeService) UpdateVolume

func (vs *VolumeService) UpdateVolume(
	volumeID string,
	volumeParams *map[string]interface{},
) (volume *types.Volume, err error)

UpdateVolume updates a Volume by its ID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL