Documentation
¶
Index ¶
- type FakeDbClient
- func (fc *FakeDbClient) AddExtraProperty(prfID string, ext model.ExtraSpec) (*model.ExtraSpec, error)
- func (fc *FakeDbClient) CreateDock(dck *model.DockSpec) (*model.DockSpec, error)
- func (fc *FakeDbClient) CreatePool(pol *model.StoragePoolSpec) (*model.StoragePoolSpec, error)
- func (fc *FakeDbClient) CreateProfile(prf *model.ProfileSpec) (*model.ProfileSpec, error)
- func (fc *FakeDbClient) CreateVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)
- func (fc *FakeDbClient) CreateVolumeAttachment(attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
- func (fc *FakeDbClient) CreateVolumeSnapshot(vs *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
- func (fc *FakeDbClient) DeleteDock(dckID string) error
- func (fc *FakeDbClient) DeletePool(polID string) error
- func (fc *FakeDbClient) DeleteProfile(prfID string) error
- func (fc *FakeDbClient) DeleteVolume(volID string) error
- func (fc *FakeDbClient) DeleteVolumeAttachment(attachmentId string) error
- func (fc *FakeDbClient) DeleteVolumeSnapshot(snapshotID string) error
- func (fc *FakeDbClient) ExtendVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)
- func (fc *FakeDbClient) GetDefaultProfile() (*model.ProfileSpec, error)
- func (fc *FakeDbClient) GetDock(dckID string) (*model.DockSpec, error)
- func (fc *FakeDbClient) GetDockByPoolId(poolId string) (*model.DockSpec, error)
- func (fc *FakeDbClient) GetPool(polID string) (*model.StoragePoolSpec, error)
- func (fc *FakeDbClient) GetProfile(prfID string) (*model.ProfileSpec, error)
- func (fc *FakeDbClient) GetVolume(volID string) (*model.VolumeSpec, error)
- func (fc *FakeDbClient) GetVolumeAttachment(attachmentId string) (*model.VolumeAttachmentSpec, error)
- func (fc *FakeDbClient) GetVolumeSnapshot(snapshotID string) (*model.VolumeSnapshotSpec, error)
- func (fc *FakeDbClient) ListDocks() ([]*model.DockSpec, error)
- func (fc *FakeDbClient) ListExtraProperties(prfID string) (*model.ExtraSpec, error)
- func (fc *FakeDbClient) ListPools() ([]*model.StoragePoolSpec, error)
- func (fc *FakeDbClient) ListProfiles() ([]*model.ProfileSpec, error)
- func (fc *FakeDbClient) ListVolumeAttachments(volumeId string) ([]*model.VolumeAttachmentSpec, error)
- func (fc *FakeDbClient) ListVolumeSnapshots() ([]*model.VolumeSnapshotSpec, error)
- func (fc *FakeDbClient) ListVolumes() ([]*model.VolumeSpec, error)
- func (fc *FakeDbClient) RemoveExtraProperty(prfID, extraKey string) error
- func (fc *FakeDbClient) UpdateDock(dckID, name, desp string) (*model.DockSpec, error)
- func (fc *FakeDbClient) UpdatePool(polID, name, desp string, usedCapacity int64, used bool) (*model.StoragePoolSpec, error)
- func (fc *FakeDbClient) UpdateProfile(prfID string, input *model.ProfileSpec) (*model.ProfileSpec, error)
- func (fc *FakeDbClient) UpdateVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)
- func (fc *FakeDbClient) UpdateVolumeAttachment(attachmentId string, attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
- func (fc *FakeDbClient) 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 FakeDbClient ¶
type FakeDbClient struct{}
FakeDbClient
func (*FakeDbClient) AddExtraProperty ¶
func (fc *FakeDbClient) AddExtraProperty(prfID string, ext model.ExtraSpec) (*model.ExtraSpec, error)
AddExtraProperty
func (*FakeDbClient) CreateDock ¶
CreateDock
func (*FakeDbClient) CreatePool ¶
func (fc *FakeDbClient) CreatePool(pol *model.StoragePoolSpec) (*model.StoragePoolSpec, error)
func (*FakeDbClient) CreateProfile ¶
func (fc *FakeDbClient) CreateProfile(prf *model.ProfileSpec) (*model.ProfileSpec, error)
CreateProfile
func (*FakeDbClient) CreateVolume ¶
func (fc *FakeDbClient) CreateVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)
CreateVolume
func (*FakeDbClient) CreateVolumeAttachment ¶
func (fc *FakeDbClient) CreateVolumeAttachment(attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
CreateVolumeAttachment
func (*FakeDbClient) CreateVolumeSnapshot ¶
func (fc *FakeDbClient) CreateVolumeSnapshot(vs *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
CreateVolumeSnapshot
func (*FakeDbClient) DeleteProfile ¶
func (fc *FakeDbClient) DeleteProfile(prfID string) error
DeleteProfile
func (*FakeDbClient) DeleteVolume ¶
func (fc *FakeDbClient) DeleteVolume(volID string) error
DeleteVolume
func (*FakeDbClient) DeleteVolumeAttachment ¶
func (fc *FakeDbClient) DeleteVolumeAttachment(attachmentId string) error
DeleteVolumeAttachment
func (*FakeDbClient) DeleteVolumeSnapshot ¶
func (fc *FakeDbClient) DeleteVolumeSnapshot(snapshotID string) error
DeleteVolumeSnapshot
func (*FakeDbClient) ExtendVolume ¶ added in v0.1.1
func (fc *FakeDbClient) ExtendVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)
ExtendVolume ...
func (*FakeDbClient) GetDefaultProfile ¶
func (fc *FakeDbClient) GetDefaultProfile() (*model.ProfileSpec, error)
GetDefaultProfile
func (*FakeDbClient) GetDock ¶
func (fc *FakeDbClient) GetDock(dckID string) (*model.DockSpec, error)
GetDock
func (*FakeDbClient) GetDockByPoolId ¶
func (fc *FakeDbClient) GetDockByPoolId(poolId string) (*model.DockSpec, error)
GetDockByPoolId
func (*FakeDbClient) GetPool ¶
func (fc *FakeDbClient) GetPool(polID string) (*model.StoragePoolSpec, error)
GetPool
func (*FakeDbClient) GetProfile ¶
func (fc *FakeDbClient) GetProfile(prfID string) (*model.ProfileSpec, error)
GetProfile
func (*FakeDbClient) GetVolume ¶
func (fc *FakeDbClient) GetVolume(volID string) (*model.VolumeSpec, error)
GetVolume
func (*FakeDbClient) GetVolumeAttachment ¶
func (fc *FakeDbClient) GetVolumeAttachment(attachmentId string) (*model.VolumeAttachmentSpec, error)
GetVolumeAttachment
func (*FakeDbClient) GetVolumeSnapshot ¶
func (fc *FakeDbClient) GetVolumeSnapshot(snapshotID string) (*model.VolumeSnapshotSpec, error)
GetVolumeSnapshot
func (*FakeDbClient) ListDocks ¶
func (fc *FakeDbClient) ListDocks() ([]*model.DockSpec, error)
ListDocks
func (*FakeDbClient) ListExtraProperties ¶
func (fc *FakeDbClient) ListExtraProperties(prfID string) (*model.ExtraSpec, error)
ListExtraProperties
func (*FakeDbClient) ListPools ¶
func (fc *FakeDbClient) ListPools() ([]*model.StoragePoolSpec, error)
ListPools
func (*FakeDbClient) ListProfiles ¶
func (fc *FakeDbClient) ListProfiles() ([]*model.ProfileSpec, error)
ListProfiles
func (*FakeDbClient) ListVolumeAttachments ¶
func (fc *FakeDbClient) ListVolumeAttachments(volumeId string) ([]*model.VolumeAttachmentSpec, error)
ListVolumeAttachments
func (*FakeDbClient) ListVolumeSnapshots ¶
func (fc *FakeDbClient) ListVolumeSnapshots() ([]*model.VolumeSnapshotSpec, error)
ListVolumeSnapshots
func (*FakeDbClient) ListVolumes ¶
func (fc *FakeDbClient) ListVolumes() ([]*model.VolumeSpec, error)
ListVolumes
func (*FakeDbClient) RemoveExtraProperty ¶
func (fc *FakeDbClient) RemoveExtraProperty(prfID, extraKey string) error
RemoveExtraProperty
func (*FakeDbClient) UpdateDock ¶
func (fc *FakeDbClient) UpdateDock(dckID, name, desp string) (*model.DockSpec, error)
UpdateDock
func (*FakeDbClient) UpdatePool ¶
func (fc *FakeDbClient) UpdatePool(polID, name, desp string, usedCapacity int64, used bool) (*model.StoragePoolSpec, error)
UpdatePool
func (*FakeDbClient) UpdateProfile ¶
func (fc *FakeDbClient) UpdateProfile(prfID string, input *model.ProfileSpec) (*model.ProfileSpec, error)
UpdateProfile
func (*FakeDbClient) UpdateVolume ¶
func (fc *FakeDbClient) UpdateVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)
UpdateVolume
func (*FakeDbClient) UpdateVolumeAttachment ¶
func (fc *FakeDbClient) UpdateVolumeAttachment(attachmentId string, attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
UpdateVolumeAttachment
func (*FakeDbClient) UpdateVolumeSnapshot ¶
func (fc *FakeDbClient) UpdateVolumeSnapshot(snapshotID string, vs *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
UpdateVolumeSnapshot
Click to show internal directories.
Click to hide internal directories.