db

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeDbClient

type FakeDbClient struct{}

FakeDbClient

func NewFakeDbClient

func NewFakeDbClient() *FakeDbClient

NewFakeDbClient

func (*FakeDbClient) AddCustomProperty added in v0.3.1

func (fc *FakeDbClient) AddCustomProperty(ctx *c.Context, prfID string, custom model.CustomPropertiesSpec) (*model.CustomPropertiesSpec, error)

AddCustomProperty

func (*FakeDbClient) CreateDock

func (fc *FakeDbClient) CreateDock(ctx *c.Context, dck *model.DockSpec) (*model.DockSpec, error)

CreateDock

func (*FakeDbClient) CreateFileShare added in v0.5.2

func (fc *FakeDbClient) CreateFileShare(ctx *c.Context, fshare *model.FileShareSpec) (*model.FileShareSpec, error)

CreateFileShare

func (*FakeDbClient) CreateFileShareSnapshot added in v0.5.2

func (fc *FakeDbClient) CreateFileShareSnapshot(ctx *c.Context, vs *model.FileShareSnapshotSpec) (*model.FileShareSnapshotSpec, error)

CreateSnapshot

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) DeleteFileShare added in v0.5.2

func (fc *FakeDbClient) DeleteFileShare(ctx *c.Context, fshareID string) error

DeleteFileShare

func (*FakeDbClient) DeleteFileShareSnapshot added in v0.5.2

func (fc *FakeDbClient) DeleteFileShareSnapshot(ctx *c.Context, snapshotID string) error

DeleteFileShareSnapshot

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) GetDock

func (fc *FakeDbClient) GetDock(ctx *c.Context, dckID string) (*model.DockSpec, error)

GetDock

func (*FakeDbClient) GetDockByPoolId

func (fc *FakeDbClient) GetDockByPoolId(ctx *c.Context, poolId string) (*model.DockSpec, error)

GetDockByPoolId

func (*FakeDbClient) GetFileShare added in v0.5.2

func (fc *FakeDbClient) GetFileShare(ctx *c.Context, fshareID string) (*model.FileShareSpec, error)

GetFileShare

func (*FakeDbClient) GetFileShareSnapshot added in v0.5.2

func (fc *FakeDbClient) GetFileShareSnapshot(ctx *c.Context, snapshotID string) (*model.FileShareSnapshotSpec, error)

GetFileShareSnapshot

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) ListAttachmentsByVolumeId added in v0.5.1

func (fc *FakeDbClient) ListAttachmentsByVolumeId(ctx *c.Context, volumeId string) ([]*model.VolumeAttachmentSpec, error)

func (*FakeDbClient) ListAvailabilityZones added in v0.3.0

func (fc *FakeDbClient) ListAvailabilityZones(ctx *c.Context) ([]string, error)

ListAvailabilityZones

func (*FakeDbClient) ListCustomProperties added in v0.3.1

func (fc *FakeDbClient) ListCustomProperties(ctx *c.Context, prfID string) (*model.CustomPropertiesSpec, error)

ListCustomProperties

func (*FakeDbClient) ListDocks

func (fc *FakeDbClient) ListDocks(ctx *c.Context) ([]*model.DockSpec, error)

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) ListFileShareSnapshots added in v0.5.2

func (fc *FakeDbClient) ListFileShareSnapshots(ctx *c.Context) ([]*model.FileShareSnapshotSpec, error)

func (*FakeDbClient) ListFileShareSnapshotsWithFilter added in v0.5.2

func (fc *FakeDbClient) ListFileShareSnapshotsWithFilter(ctx *c.Context, m map[string][]string) ([]*model.FileShareSnapshotSpec, error)

ListFileShareSnapshots

func (*FakeDbClient) ListFileShares added in v0.5.2

func (fc *FakeDbClient) ListFileShares(ctx *c.Context) ([]*model.FileShareSpec, error)

func (*FakeDbClient) ListFileSharesWithFilter added in v0.5.2

func (fc *FakeDbClient) ListFileSharesWithFilter(ctx *c.Context, m map[string][]string) ([]*model.FileShareSpec, error)

ListFileShares

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) RemoveCustomProperty added in v0.3.1

func (fc *FakeDbClient) RemoveCustomProperty(ctx *c.Context, prfID, customKey string) error

RemoveCustomProperty

func (*FakeDbClient) UpdateDock

func (fc *FakeDbClient) UpdateDock(ctx *c.Context, dckID, name, desp string) (*model.DockSpec, error)

UpdateDock

func (*FakeDbClient) UpdateFileShare added in v0.5.2

func (fc *FakeDbClient) UpdateFileShare(ctx *c.Context, fshare *model.FileShareSpec) (*model.FileShareSpec, error)

UpdateFileShare

func (*FakeDbClient) UpdateFileShareSnapshot added in v0.5.2

func (fc *FakeDbClient) UpdateFileShareSnapshot(ctx *c.Context, snapshotID string, vs *model.FileShareSnapshotSpec) (*model.FileShareSnapshotSpec, error)

UpdateFileShareSnapshot

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL