db

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 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) AddExtraProperty

func (fc *FakeDbClient) AddExtraProperty(ctx *c.Context, prfID string, ext model.ExtraSpec) (*model.ExtraSpec, error)

AddExtraProperty

func (*FakeDbClient) CreateDock

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

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

func (fc *FakeDbClient) GetVolumeSnapshot(ctx *c.Context, snapshotID string) (*model.VolumeSnapshotSpec, error)

GetVolumeSnapshot

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

func (fc *FakeDbClient) ListExtraProperties(ctx *c.Context, prfID string) (*model.ExtraSpec, error)

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

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

UpdateVolumeSnapshot

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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