Documentation
¶
Index ¶
- type MockClient
- func (_m *MockClient) AddExtraProperty(prfID string, ext model.ExtraSpec) (*model.ExtraSpec, error)
- func (_m *MockClient) CreateDock(dck *model.DockSpec) (*model.DockSpec, error)
- func (_m *MockClient) CreatePool(pol *model.StoragePoolSpec) (*model.StoragePoolSpec, error)
- func (_m *MockClient) CreateProfile(prf *model.ProfileSpec) (*model.ProfileSpec, error)
- func (_m *MockClient) CreateVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)
- func (_m *MockClient) CreateVolumeAttachment(attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
- func (_m *MockClient) CreateVolumeSnapshot(vs *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
- func (_m *MockClient) DeleteDock(dckID string) error
- func (_m *MockClient) DeletePool(polID string) error
- func (_m *MockClient) DeleteProfile(prfID string) error
- func (_m *MockClient) DeleteVolume(volID string) error
- func (_m *MockClient) DeleteVolumeAttachment(attachmentId string) error
- func (_m *MockClient) DeleteVolumeSnapshot(snapshotID string) error
- func (_m *MockClient) ExtendVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)
- func (_m *MockClient) GetDefaultProfile() (*model.ProfileSpec, error)
- func (_m *MockClient) GetDock(dckID string) (*model.DockSpec, error)
- func (_m *MockClient) GetDockByPoolId(poolId string) (*model.DockSpec, error)
- func (_m *MockClient) GetPool(polID string) (*model.StoragePoolSpec, error)
- func (_m *MockClient) GetProfile(prfID string) (*model.ProfileSpec, error)
- func (_m *MockClient) GetVolume(volID string) (*model.VolumeSpec, error)
- func (_m *MockClient) GetVolumeAttachment(attachmentId string) (*model.VolumeAttachmentSpec, error)
- func (_m *MockClient) GetVolumeSnapshot(snapshotID string) (*model.VolumeSnapshotSpec, error)
- func (_m *MockClient) ListDocks() ([]*model.DockSpec, error)
- func (_m *MockClient) ListExtraProperties(prfID string) (*model.ExtraSpec, error)
- func (_m *MockClient) ListPools() ([]*model.StoragePoolSpec, error)
- func (_m *MockClient) ListProfiles() ([]*model.ProfileSpec, error)
- func (_m *MockClient) ListVolumeAttachments(volumeId string) ([]*model.VolumeAttachmentSpec, error)
- func (_m *MockClient) ListVolumeSnapshots() ([]*model.VolumeSnapshotSpec, error)
- func (_m *MockClient) ListVolumes() ([]*model.VolumeSpec, error)
- func (_m *MockClient) RemoveExtraProperty(prfID string, extraKey string) error
- func (_m *MockClient) UpdateDock(dckID string, name string, desp string) (*model.DockSpec, error)
- func (_m *MockClient) UpdatePool(polID string, name string, desp string, usedCapacity int64, used bool) (*model.StoragePoolSpec, error)
- func (_m *MockClient) UpdateProfile(prfID string, input *model.ProfileSpec) (*model.ProfileSpec, error)
- func (_m *MockClient) UpdateVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)
- func (_m *MockClient) UpdateVolumeAttachment(attachmentID string, attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
- func (_m *MockClient) UpdateVolumeSnapshot(snapshotID string, vs *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
MockClient is a fake database client for testing.
func (*MockClient) AddExtraProperty ¶
AddExtraProperty
func (*MockClient) CreateDock ¶
CreateDock
func (*MockClient) CreatePool ¶
func (_m *MockClient) CreatePool(pol *model.StoragePoolSpec) (*model.StoragePoolSpec, error)
CreatePool
func (*MockClient) CreateProfile ¶
func (_m *MockClient) CreateProfile(prf *model.ProfileSpec) (*model.ProfileSpec, error)
CreateProfile
func (*MockClient) CreateVolume ¶
func (_m *MockClient) CreateVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)
CreateVolume
func (*MockClient) CreateVolumeAttachment ¶
func (_m *MockClient) CreateVolumeAttachment(attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
CreateVolumeAttachment
func (*MockClient) CreateVolumeSnapshot ¶
func (_m *MockClient) CreateVolumeSnapshot(vs *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
CreateVolumeSnapshot
func (*MockClient) DeleteProfile ¶
func (_m *MockClient) DeleteProfile(prfID string) error
DeleteProfile
func (*MockClient) DeleteVolume ¶
func (_m *MockClient) DeleteVolume(volID string) error
DeleteVolume
func (*MockClient) DeleteVolumeAttachment ¶
func (_m *MockClient) DeleteVolumeAttachment(attachmentId string) error
DeleteVolumeAttachment
func (*MockClient) DeleteVolumeSnapshot ¶
func (_m *MockClient) DeleteVolumeSnapshot(snapshotID string) error
DeleteVolumeSnapshot
func (*MockClient) ExtendVolume ¶ added in v0.1.1
func (_m *MockClient) ExtendVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)
ExtendVolume ...
func (*MockClient) GetDefaultProfile ¶
func (_m *MockClient) GetDefaultProfile() (*model.ProfileSpec, error)
GetDefaultProfile
func (*MockClient) GetDock ¶
func (_m *MockClient) GetDock(dckID string) (*model.DockSpec, error)
GetDock
func (*MockClient) GetDockByPoolId ¶
func (_m *MockClient) GetDockByPoolId(poolId string) (*model.DockSpec, error)
GetDockByPoolId
func (*MockClient) GetPool ¶
func (_m *MockClient) GetPool(polID string) (*model.StoragePoolSpec, error)
GetPool
func (*MockClient) GetProfile ¶
func (_m *MockClient) GetProfile(prfID string) (*model.ProfileSpec, error)
GetProfile
func (*MockClient) GetVolume ¶
func (_m *MockClient) GetVolume(volID string) (*model.VolumeSpec, error)
GetVolume
func (*MockClient) GetVolumeAttachment ¶
func (_m *MockClient) GetVolumeAttachment(attachmentId string) (*model.VolumeAttachmentSpec, error)
GetVolumeAttachment
func (*MockClient) GetVolumeSnapshot ¶
func (_m *MockClient) GetVolumeSnapshot(snapshotID string) (*model.VolumeSnapshotSpec, error)
GetVolumeSnapshot
func (*MockClient) ListDocks ¶
func (_m *MockClient) ListDocks() ([]*model.DockSpec, error)
ListDocks
func (*MockClient) ListExtraProperties ¶
func (_m *MockClient) ListExtraProperties(prfID string) (*model.ExtraSpec, error)
ListExtraProperties
func (*MockClient) ListPools ¶
func (_m *MockClient) ListPools() ([]*model.StoragePoolSpec, error)
ListPools
func (*MockClient) ListProfiles ¶
func (_m *MockClient) ListProfiles() ([]*model.ProfileSpec, error)
ListProfiles
func (*MockClient) ListVolumeAttachments ¶
func (_m *MockClient) ListVolumeAttachments(volumeId string) ([]*model.VolumeAttachmentSpec, error)
ListVolumeAttachments
func (*MockClient) ListVolumeSnapshots ¶
func (_m *MockClient) ListVolumeSnapshots() ([]*model.VolumeSnapshotSpec, error)
ListVolumeSnapshots
func (*MockClient) ListVolumes ¶
func (_m *MockClient) ListVolumes() ([]*model.VolumeSpec, error)
ListVolumes
func (*MockClient) RemoveExtraProperty ¶
func (_m *MockClient) RemoveExtraProperty(prfID string, extraKey string) error
RemoveExtraProperty
func (*MockClient) UpdateDock ¶
UpdateDock
func (*MockClient) UpdatePool ¶
func (_m *MockClient) UpdatePool(polID string, name string, desp string, usedCapacity int64, used bool) (*model.StoragePoolSpec, error)
UpdatePool
func (*MockClient) UpdateProfile ¶
func (_m *MockClient) UpdateProfile(prfID string, input *model.ProfileSpec) (*model.ProfileSpec, error)
UpdateProfile
func (*MockClient) UpdateVolume ¶
func (_m *MockClient) UpdateVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)
UpdateVolume ...
func (*MockClient) UpdateVolumeAttachment ¶
func (_m *MockClient) UpdateVolumeAttachment(attachmentID string, attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
UpdateVolumeAttachment ...
func (*MockClient) UpdateVolumeSnapshot ¶
func (_m *MockClient) UpdateVolumeSnapshot(snapshotID string, vs *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
UpdateVolumeSnapshot ...
Click to show internal directories.
Click to hide internal directories.