Documentation
¶
Index ¶
- type FakeDbClient
- func (fc *FakeDbClient) AddExtraProperty(ctx *c.Context, prfID string, ext model.ExtraSpec) (*model.ExtraSpec, error)
- func (fc *FakeDbClient) CreateDock(ctx *c.Context, dck *model.DockSpec) (*model.DockSpec, error)
- func (fc *FakeDbClient) CreatePool(ctx *c.Context, pol *model.StoragePoolSpec) (*model.StoragePoolSpec, error)
- func (fc *FakeDbClient) CreateProfile(ctx *c.Context, prf *model.ProfileSpec) (*model.ProfileSpec, error)
- func (fc *FakeDbClient) CreateReplication(ctx *c.Context, replication *model.ReplicationSpec) (*model.ReplicationSpec, error)
- func (fc *FakeDbClient) CreateVolume(ctx *c.Context, vol *model.VolumeSpec) (*model.VolumeSpec, error)
- func (fc *FakeDbClient) CreateVolumeAttachment(ctx *c.Context, attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
- func (fc *FakeDbClient) CreateVolumeGroup(ctx *c.Context, vg *model.VolumeGroupSpec) (*model.VolumeGroupSpec, error)
- func (fc *FakeDbClient) CreateVolumeSnapshot(ctx *c.Context, vs *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
- func (fc *FakeDbClient) DeleteDock(ctx *c.Context, dckID string) error
- func (fc *FakeDbClient) DeletePool(ctx *c.Context, polID string) error
- func (fc *FakeDbClient) DeleteProfile(ctx *c.Context, prfID string) error
- func (fc *FakeDbClient) DeleteReplication(ctx *c.Context, replicationId string) error
- func (fc *FakeDbClient) DeleteVolume(ctx *c.Context, volID string) error
- func (fc *FakeDbClient) DeleteVolumeAttachment(ctx *c.Context, attachmentId string) error
- func (fc *FakeDbClient) DeleteVolumeGroup(ctx *c.Context, volumeId string) error
- func (fc *FakeDbClient) DeleteVolumeSnapshot(ctx *c.Context, snapshotID string) error
- func (fc *FakeDbClient) ExtendVolume(ctx *c.Context, vol *model.VolumeSpec) (*model.VolumeSpec, error)
- func (fc *FakeDbClient) GetDefaultProfile(ctx *c.Context) (*model.ProfileSpec, error)
- func (fc *FakeDbClient) GetDock(ctx *c.Context, dckID string) (*model.DockSpec, error)
- func (fc *FakeDbClient) GetDockByPoolId(ctx *c.Context, poolId string) (*model.DockSpec, error)
- func (fc *FakeDbClient) GetPool(ctx *c.Context, polID string) (*model.StoragePoolSpec, error)
- func (fc *FakeDbClient) GetProfile(ctx *c.Context, prfID string) (*model.ProfileSpec, error)
- func (fc *FakeDbClient) GetReplication(ctx *c.Context, replicationId string) (*model.ReplicationSpec, error)
- func (fc *FakeDbClient) GetReplicationByVolumeId(ctx *c.Context, volumeId string) (*model.ReplicationSpec, error)
- func (fc *FakeDbClient) GetVolume(ctx *c.Context, volID string) (*model.VolumeSpec, error)
- func (fc *FakeDbClient) GetVolumeAttachment(ctx *c.Context, attachmentId string) (*model.VolumeAttachmentSpec, error)
- func (fc *FakeDbClient) GetVolumeGroup(ctx *c.Context, vgId string) (*model.VolumeGroupSpec, error)
- func (fc *FakeDbClient) GetVolumeSnapshot(ctx *c.Context, snapshotID string) (*model.VolumeSnapshotSpec, error)
- func (fc *FakeDbClient) ListAvailabilityZones(ctx *c.Context) ([]string, error)
- func (fc *FakeDbClient) ListDocks(ctx *c.Context) ([]*model.DockSpec, error)
- func (fc *FakeDbClient) ListDocksWithFilter(ctx *c.Context, m map[string][]string) ([]*model.DockSpec, error)
- func (fc *FakeDbClient) ListExtraProperties(ctx *c.Context, prfID string) (*model.ExtraSpec, error)
- func (fc *FakeDbClient) ListPools(ctx *c.Context) ([]*model.StoragePoolSpec, error)
- func (fc *FakeDbClient) ListPoolsWithFilter(ctx *c.Context, m map[string][]string) ([]*model.StoragePoolSpec, error)
- func (fc *FakeDbClient) ListProfiles(ctx *c.Context) ([]*model.ProfileSpec, error)
- func (fc *FakeDbClient) ListProfilesWithFilter(ctx *c.Context, m map[string][]string) ([]*model.ProfileSpec, error)
- func (fc *FakeDbClient) ListReplication(ctx *c.Context) ([]*model.ReplicationSpec, error)
- func (fc *FakeDbClient) ListReplicationWithFilter(ctx *c.Context, m map[string][]string) ([]*model.ReplicationSpec, error)
- func (fc *FakeDbClient) ListSnapshotsByVolumeId(ctx *c.Context, volumeId string) ([]*model.VolumeSnapshotSpec, error)
- func (fc *FakeDbClient) ListVolumeAttachments(ctx *c.Context, volumeId string) ([]*model.VolumeAttachmentSpec, error)
- func (fc *FakeDbClient) ListVolumeAttachmentsWithFilter(ctx *c.Context, m map[string][]string) ([]*model.VolumeAttachmentSpec, error)
- func (fc *FakeDbClient) ListVolumeGroups(ctx *c.Context) ([]*model.VolumeGroupSpec, error)
- func (fc *FakeDbClient) ListVolumeGroupsWithFilter(ctx *c.Context, m map[string][]string) ([]*model.VolumeGroupSpec, error)
- func (fc *FakeDbClient) ListVolumeSnapshots(ctx *c.Context) ([]*model.VolumeSnapshotSpec, error)
- func (fc *FakeDbClient) ListVolumeSnapshotsWithFilter(ctx *c.Context, m map[string][]string) ([]*model.VolumeSnapshotSpec, error)
- func (fc *FakeDbClient) ListVolumes(ctx *c.Context) ([]*model.VolumeSpec, error)
- func (fc *FakeDbClient) ListVolumesByGroupId(ctx *c.Context, vgId string) ([]*model.VolumeSpec, error)
- func (fc *FakeDbClient) ListVolumesByIds(ctx *c.Context, ids []string) ([]*model.VolumeSpec, error)
- func (fc *FakeDbClient) ListVolumesWithFilter(ctx *c.Context, m map[string][]string) ([]*model.VolumeSpec, error)
- func (fc *FakeDbClient) RemoveExtraProperty(ctx *c.Context, prfID, extraKey string) error
- func (fc *FakeDbClient) UpdateDock(ctx *c.Context, dckID, name, desp string) (*model.DockSpec, error)
- func (fc *FakeDbClient) UpdatePool(ctx *c.Context, polID, name, desp string, usedCapacity int64, used bool) (*model.StoragePoolSpec, error)
- func (fc *FakeDbClient) UpdateProfile(ctx *c.Context, prfID string, input *model.ProfileSpec) (*model.ProfileSpec, error)
- func (fc *FakeDbClient) UpdateReplication(ctx *c.Context, replicationId string, input *model.ReplicationSpec) (*model.ReplicationSpec, error)
- func (fc *FakeDbClient) UpdateStatus(ctx *c.Context, in interface{}, status string) error
- func (fc *FakeDbClient) UpdateVolume(ctx *c.Context, vol *model.VolumeSpec) (*model.VolumeSpec, error)
- func (fc *FakeDbClient) UpdateVolumeAttachment(ctx *c.Context, attachmentId string, attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
- func (fc *FakeDbClient) UpdateVolumeGroup(ctx *c.Context, vg *model.VolumeGroupSpec) (*model.VolumeGroupSpec, error)
- func (fc *FakeDbClient) UpdateVolumeSnapshot(ctx *c.Context, snapshotID string, vs *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
- func (fc *FakeDbClient) VolumesToUpdate(ctx *c.Context, volumeList []*model.VolumeSpec) ([]*model.VolumeSpec, 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(ctx *c.Context, prfID string, ext model.ExtraSpec) (*model.ExtraSpec, error)
AddExtraProperty
func (*FakeDbClient) CreateDock ¶
CreateDock
func (*FakeDbClient) CreatePool ¶
func (fc *FakeDbClient) CreatePool(ctx *c.Context, pol *model.StoragePoolSpec) (*model.StoragePoolSpec, error)
func (*FakeDbClient) CreateProfile ¶
func (fc *FakeDbClient) CreateProfile(ctx *c.Context, prf *model.ProfileSpec) (*model.ProfileSpec, error)
CreateProfile
func (*FakeDbClient) CreateReplication ¶ added in v0.1.8
func (fc *FakeDbClient) CreateReplication(ctx *c.Context, replication *model.ReplicationSpec) (*model.ReplicationSpec, error)
func (*FakeDbClient) CreateVolume ¶
func (fc *FakeDbClient) CreateVolume(ctx *c.Context, vol *model.VolumeSpec) (*model.VolumeSpec, error)
CreateVolume
func (*FakeDbClient) CreateVolumeAttachment ¶
func (fc *FakeDbClient) CreateVolumeAttachment(ctx *c.Context, attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
CreateVolumeAttachment
func (*FakeDbClient) CreateVolumeGroup ¶ added in v0.1.8
func (fc *FakeDbClient) CreateVolumeGroup(ctx *c.Context, vg *model.VolumeGroupSpec) (*model.VolumeGroupSpec, error)
CreateVolumeGroup
func (*FakeDbClient) CreateVolumeSnapshot ¶
func (fc *FakeDbClient) CreateVolumeSnapshot(ctx *c.Context, vs *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
CreateVolumeSnapshot
func (*FakeDbClient) DeleteDock ¶
func (fc *FakeDbClient) DeleteDock(ctx *c.Context, dckID string) error
DeleteDock
func (*FakeDbClient) DeletePool ¶
func (fc *FakeDbClient) DeletePool(ctx *c.Context, polID string) error
DeletePool
func (*FakeDbClient) DeleteProfile ¶
func (fc *FakeDbClient) DeleteProfile(ctx *c.Context, prfID string) error
DeleteProfile
func (*FakeDbClient) DeleteReplication ¶ added in v0.1.8
func (fc *FakeDbClient) DeleteReplication(ctx *c.Context, replicationId string) error
func (*FakeDbClient) DeleteVolume ¶
func (fc *FakeDbClient) DeleteVolume(ctx *c.Context, volID string) error
DeleteVolume
func (*FakeDbClient) DeleteVolumeAttachment ¶
func (fc *FakeDbClient) DeleteVolumeAttachment(ctx *c.Context, attachmentId string) error
DeleteVolumeAttachment
func (*FakeDbClient) DeleteVolumeGroup ¶ added in v0.1.8
func (fc *FakeDbClient) DeleteVolumeGroup(ctx *c.Context, volumeId string) error
func (*FakeDbClient) DeleteVolumeSnapshot ¶
func (fc *FakeDbClient) DeleteVolumeSnapshot(ctx *c.Context, snapshotID string) error
DeleteVolumeSnapshot
func (*FakeDbClient) ExtendVolume ¶ added in v0.1.1
func (fc *FakeDbClient) ExtendVolume(ctx *c.Context, vol *model.VolumeSpec) (*model.VolumeSpec, error)
ExtendVolume ...
func (*FakeDbClient) GetDefaultProfile ¶
func (fc *FakeDbClient) GetDefaultProfile(ctx *c.Context) (*model.ProfileSpec, error)
GetDefaultProfile
func (*FakeDbClient) GetDockByPoolId ¶
GetDockByPoolId
func (*FakeDbClient) GetPool ¶
func (fc *FakeDbClient) GetPool(ctx *c.Context, polID string) (*model.StoragePoolSpec, error)
GetPool
func (*FakeDbClient) GetProfile ¶
func (fc *FakeDbClient) GetProfile(ctx *c.Context, prfID string) (*model.ProfileSpec, error)
GetProfile
func (*FakeDbClient) GetReplication ¶ added in v0.1.8
func (fc *FakeDbClient) GetReplication(ctx *c.Context, replicationId string) (*model.ReplicationSpec, error)
func (*FakeDbClient) GetReplicationByVolumeId ¶ added in v0.2.1
func (fc *FakeDbClient) GetReplicationByVolumeId(ctx *c.Context, volumeId string) (*model.ReplicationSpec, error)
func (*FakeDbClient) GetVolume ¶
func (fc *FakeDbClient) GetVolume(ctx *c.Context, volID string) (*model.VolumeSpec, error)
GetVolume
func (*FakeDbClient) GetVolumeAttachment ¶
func (fc *FakeDbClient) GetVolumeAttachment(ctx *c.Context, attachmentId string) (*model.VolumeAttachmentSpec, error)
GetVolumeAttachment
func (*FakeDbClient) GetVolumeGroup ¶ added in v0.1.8
func (fc *FakeDbClient) GetVolumeGroup(ctx *c.Context, vgId string) (*model.VolumeGroupSpec, error)
func (*FakeDbClient) GetVolumeSnapshot ¶
func (fc *FakeDbClient) GetVolumeSnapshot(ctx *c.Context, snapshotID string) (*model.VolumeSnapshotSpec, error)
GetVolumeSnapshot
func (*FakeDbClient) ListAvailabilityZones ¶ added in v0.3.0
func (fc *FakeDbClient) ListAvailabilityZones(ctx *c.Context) ([]string, error)
ListAvailabilityZones
func (*FakeDbClient) ListDocksWithFilter ¶ added in v0.1.4
func (fc *FakeDbClient) ListDocksWithFilter(ctx *c.Context, m map[string][]string) ([]*model.DockSpec, error)
ListDocks
func (*FakeDbClient) ListExtraProperties ¶
ListExtraProperties
func (*FakeDbClient) ListPools ¶
func (fc *FakeDbClient) ListPools(ctx *c.Context) ([]*model.StoragePoolSpec, error)
func (*FakeDbClient) ListPoolsWithFilter ¶ added in v0.1.4
func (fc *FakeDbClient) ListPoolsWithFilter(ctx *c.Context, m map[string][]string) ([]*model.StoragePoolSpec, error)
ListPools
func (*FakeDbClient) ListProfiles ¶
func (fc *FakeDbClient) ListProfiles(ctx *c.Context) ([]*model.ProfileSpec, error)
func (*FakeDbClient) ListProfilesWithFilter ¶ added in v0.1.4
func (fc *FakeDbClient) ListProfilesWithFilter(ctx *c.Context, m map[string][]string) ([]*model.ProfileSpec, error)
ListProfiles
func (*FakeDbClient) ListReplication ¶ added in v0.1.8
func (fc *FakeDbClient) ListReplication(ctx *c.Context) ([]*model.ReplicationSpec, error)
func (*FakeDbClient) ListReplicationWithFilter ¶ added in v0.1.8
func (fc *FakeDbClient) ListReplicationWithFilter(ctx *c.Context, m map[string][]string) ([]*model.ReplicationSpec, error)
func (*FakeDbClient) ListSnapshotsByVolumeId ¶ added in v0.1.8
func (fc *FakeDbClient) ListSnapshotsByVolumeId(ctx *c.Context, volumeId string) ([]*model.VolumeSnapshotSpec, error)
func (*FakeDbClient) ListVolumeAttachments ¶
func (fc *FakeDbClient) ListVolumeAttachments(ctx *c.Context, volumeId string) ([]*model.VolumeAttachmentSpec, error)
func (*FakeDbClient) ListVolumeAttachmentsWithFilter ¶ added in v0.1.4
func (fc *FakeDbClient) ListVolumeAttachmentsWithFilter(ctx *c.Context, m map[string][]string) ([]*model.VolumeAttachmentSpec, error)
ListVolumeAttachments
func (*FakeDbClient) ListVolumeGroups ¶ added in v0.1.8
func (fc *FakeDbClient) ListVolumeGroups(ctx *c.Context) ([]*model.VolumeGroupSpec, error)
func (*FakeDbClient) ListVolumeGroupsWithFilter ¶ added in v0.1.8
func (fc *FakeDbClient) ListVolumeGroupsWithFilter(ctx *c.Context, m map[string][]string) ([]*model.VolumeGroupSpec, error)
func (*FakeDbClient) ListVolumeSnapshots ¶
func (fc *FakeDbClient) ListVolumeSnapshots(ctx *c.Context) ([]*model.VolumeSnapshotSpec, error)
func (*FakeDbClient) ListVolumeSnapshotsWithFilter ¶ added in v0.1.4
func (fc *FakeDbClient) ListVolumeSnapshotsWithFilter(ctx *c.Context, m map[string][]string) ([]*model.VolumeSnapshotSpec, error)
ListVolumeSnapshots
func (*FakeDbClient) ListVolumes ¶
func (fc *FakeDbClient) ListVolumes(ctx *c.Context) ([]*model.VolumeSpec, error)
func (*FakeDbClient) ListVolumesByGroupId ¶ added in v0.1.8
func (fc *FakeDbClient) ListVolumesByGroupId(ctx *c.Context, vgId string) ([]*model.VolumeSpec, error)
func (*FakeDbClient) ListVolumesByIds ¶ added in v0.1.8
func (fc *FakeDbClient) ListVolumesByIds(ctx *c.Context, ids []string) ([]*model.VolumeSpec, error)
func (*FakeDbClient) ListVolumesWithFilter ¶ added in v0.1.4
func (fc *FakeDbClient) ListVolumesWithFilter(ctx *c.Context, m map[string][]string) ([]*model.VolumeSpec, error)
ListVolumes
func (*FakeDbClient) RemoveExtraProperty ¶
func (fc *FakeDbClient) RemoveExtraProperty(ctx *c.Context, prfID, extraKey string) error
RemoveExtraProperty
func (*FakeDbClient) UpdateDock ¶
func (fc *FakeDbClient) UpdateDock(ctx *c.Context, dckID, name, desp string) (*model.DockSpec, error)
UpdateDock
func (*FakeDbClient) UpdatePool ¶
func (fc *FakeDbClient) UpdatePool(ctx *c.Context, polID, name, desp string, usedCapacity int64, used bool) (*model.StoragePoolSpec, error)
UpdatePool
func (*FakeDbClient) UpdateProfile ¶
func (fc *FakeDbClient) UpdateProfile(ctx *c.Context, prfID string, input *model.ProfileSpec) (*model.ProfileSpec, error)
UpdateProfile
func (*FakeDbClient) UpdateReplication ¶ added in v0.1.8
func (fc *FakeDbClient) UpdateReplication(ctx *c.Context, replicationId string, input *model.ReplicationSpec) (*model.ReplicationSpec, error)
func (*FakeDbClient) UpdateStatus ¶ added in v0.1.8
func (fc *FakeDbClient) UpdateStatus(ctx *c.Context, in interface{}, status string) error
func (*FakeDbClient) UpdateVolume ¶
func (fc *FakeDbClient) UpdateVolume(ctx *c.Context, vol *model.VolumeSpec) (*model.VolumeSpec, error)
UpdateVolume
func (*FakeDbClient) UpdateVolumeAttachment ¶
func (fc *FakeDbClient) UpdateVolumeAttachment(ctx *c.Context, attachmentId string, attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
UpdateVolumeAttachment
func (*FakeDbClient) UpdateVolumeGroup ¶ added in v0.1.8
func (fc *FakeDbClient) UpdateVolumeGroup(ctx *c.Context, vg *model.VolumeGroupSpec) (*model.VolumeGroupSpec, error)
func (*FakeDbClient) UpdateVolumeSnapshot ¶
func (fc *FakeDbClient) UpdateVolumeSnapshot(ctx *c.Context, snapshotID string, vs *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
UpdateVolumeSnapshot
func (*FakeDbClient) VolumesToUpdate ¶ added in v0.1.8
func (fc *FakeDbClient) VolumesToUpdate(ctx *c.Context, volumeList []*model.VolumeSpec) ([]*model.VolumeSpec, error)
Click to show internal directories.
Click to hide internal directories.