db

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2018 License: Apache-2.0 Imports: 3 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(prfID string, ext model.ExtraSpec) (*model.ExtraSpec, error)

AddExtraProperty

func (*FakeDbClient) CreateDock

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

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

func (fc *FakeDbClient) DeleteDock(dckID string) error

DeleteDock

func (*FakeDbClient) DeletePool

func (fc *FakeDbClient) DeletePool(polID string) error

DeletePool

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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