Documentation ¶
Index ¶
- type HpcAdapter
- func (ad *HpcAdapter) Close() error
- func (ad *HpcAdapter) CreateVolume(ctx context.Context, volume *block.CreateVolumeRequest) (*block.CreateVolumeResponse, error)
- func (ad *HpcAdapter) DeleteVolume(ctx context.Context, volume *block.DeleteVolumeRequest) (*block.DeleteVolumeResponse, error)
- func (ad *HpcAdapter) GetVolume(ctx context.Context, volume *block.GetVolumeRequest) (*block.GetVolumeResponse, error)
- func (ad *HpcAdapter) ListVolume(ctx context.Context, volume *block.ListVolumeRequest) (*block.ListVolumeResponse, error)
- func (ad *HpcAdapter) ParseVolume(evsVolResp *model.VolumeDetail) (*block.Volume, error)
- func (ad *HpcAdapter) UpdateVolume(ctx context.Context, volume *block.UpdateVolumeRequest) (*block.UpdateVolumeResponse, error)
- type HpcBlockDriverFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HpcAdapter ¶
type HpcAdapter struct {
// contains filtered or unexported fields
}
func (*HpcAdapter) Close ¶
func (ad *HpcAdapter) Close() error
func (*HpcAdapter) CreateVolume ¶
func (ad *HpcAdapter) CreateVolume(ctx context.Context, volume *block.CreateVolumeRequest) (*block.CreateVolumeResponse, error)
Create EVS volume
func (*HpcAdapter) DeleteVolume ¶
func (ad *HpcAdapter) DeleteVolume(ctx context.Context, volume *block.DeleteVolumeRequest) (*block.DeleteVolumeResponse, error)
Delete the volume with a particular volume ID
func (*HpcAdapter) GetVolume ¶
func (ad *HpcAdapter) GetVolume(ctx context.Context, volume *block.GetVolumeRequest) (*block.GetVolumeResponse, error)
Get the details of a particular volume
func (*HpcAdapter) ListVolume ¶
func (ad *HpcAdapter) ListVolume(ctx context.Context, volume *block.ListVolumeRequest) (*block.ListVolumeResponse, error)
This will list all the volumes
func (*HpcAdapter) ParseVolume ¶
func (ad *HpcAdapter) ParseVolume(evsVolResp *model.VolumeDetail) (*block.Volume, error)
This fucntion takes an object of VolumeDetail from the API result VolumeDetail is the base struct in the model for huaweicloud-sdk-go-v3 service model
func (*HpcAdapter) UpdateVolume ¶
func (ad *HpcAdapter) UpdateVolume(ctx context.Context, volume *block.UpdateVolumeRequest) (*block.UpdateVolumeResponse, error)
Update the name of a volume
type HpcBlockDriverFactory ¶
type HpcBlockDriverFactory struct { }
func (*HpcBlockDriverFactory) CreateBlockStorageDriver ¶
func (factory *HpcBlockDriverFactory) CreateBlockStorageDriver(backend *backend.BackendDetail) (driver.BlockDriver, error)
Click to show internal directories.
Click to hide internal directories.