storage

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 GetVolumeListFailErrMocked

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

GetVolumeListFailErrMocked test mocked function

func GetVolumeListFailJSONMocked

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

GetVolumeListFailJSONMocked test mocked function

func GetVolumeListFailStatusMocked

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

GetVolumeListFailStatusMocked test mocked function

func GetVolumeListMocked

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

GetVolumeListMocked test mocked function

func GetVolumeListMockedFilteredByServer

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

func GetVolumeMocked

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

GetVolumeMocked test mocked function

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 (dm *VolumeService) AttachVolume(volumeVector *map[string]interface{}, volumeID string) (server *types.Server, err error)

AttachVolume attaches a Volume by its ID

func (*VolumeService) CreateVolume

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

CreateVolume creates a Volume

func (*VolumeService) DeleteVolume

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

DeleteVolume deletes a Volume by its ID

func (*VolumeService) DetachVolume

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

DetachVolume detaches a Volume by its ID

func (*VolumeService) DiscardVolume

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

DiscardVolume discards a Volume by its ID

func (*VolumeService) GetVolume

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

GetVolume returns a Volume by its ID

func (*VolumeService) GetVolumeList

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

GetVolumeList returns the list of Volumes as an array of Volume

func (*VolumeService) UpdateVolume

func (dm *VolumeService) UpdateVolume(volumeVector *map[string]interface{}, volumeID string) (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