mocks

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.3.1

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) AddCustomProperty added in v0.3.1

func (_m *Client) AddCustomProperty(ctx *context.Context, prfID string, custom model.CustomPropertiesSpec) (*model.CustomPropertiesSpec, error)

AddCustomProperty provides a mock function with given fields: ctx, prfID, custom

func (*Client) CreateDock added in v0.3.1

func (_m *Client) CreateDock(ctx *context.Context, dck *model.DockSpec) (*model.DockSpec, error)

CreateDock provides a mock function with given fields: ctx, dck

func (*Client) CreateFileShare added in v0.5.2

func (_m *Client) CreateFileShare(ctx *context.Context, fshare *model.FileShareSpec) (*model.FileShareSpec, error)

CreateFileShare provides a mock function with given fields: ctx, fshare

func (*Client) CreateFileShareSnapshot added in v0.5.2

func (_m *Client) CreateFileShareSnapshot(ctx *context.Context, vs *model.FileShareSnapshotSpec) (*model.FileShareSnapshotSpec, error)

CreateFileShareSnapshot provides a mock function with given fields: ctx, vs

func (*Client) CreatePool added in v0.3.1

func (_m *Client) CreatePool(ctx *context.Context, pol *model.StoragePoolSpec) (*model.StoragePoolSpec, error)

CreatePool provides a mock function with given fields: ctx, pol

func (*Client) CreateProfile added in v0.3.1

func (_m *Client) CreateProfile(ctx *context.Context, prf *model.ProfileSpec) (*model.ProfileSpec, error)

CreateProfile provides a mock function with given fields: ctx, prf

func (*Client) CreateReplication added in v0.3.1

func (_m *Client) CreateReplication(ctx *context.Context, replication *model.ReplicationSpec) (*model.ReplicationSpec, error)

CreateReplication provides a mock function with given fields: ctx, replication

func (*Client) CreateVolume added in v0.3.1

func (_m *Client) CreateVolume(ctx *context.Context, vol *model.VolumeSpec) (*model.VolumeSpec, error)

CreateVolume provides a mock function with given fields: ctx, vol

func (*Client) CreateVolumeAttachment added in v0.3.1

func (_m *Client) CreateVolumeAttachment(ctx *context.Context, attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)

CreateVolumeAttachment provides a mock function with given fields: ctx, attachment

func (*Client) CreateVolumeGroup added in v0.3.1

func (_m *Client) CreateVolumeGroup(ctx *context.Context, vg *model.VolumeGroupSpec) (*model.VolumeGroupSpec, error)

CreateVolumeGroup provides a mock function with given fields: ctx, vg

func (*Client) CreateVolumeSnapshot added in v0.3.1

func (_m *Client) CreateVolumeSnapshot(ctx *context.Context, vs *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)

CreateVolumeSnapshot provides a mock function with given fields: ctx, vs

func (*Client) DeleteDock added in v0.3.1

func (_m *Client) DeleteDock(ctx *context.Context, dckID string) error

DeleteDock provides a mock function with given fields: ctx, dckID

func (*Client) DeleteFileShare added in v0.5.2

func (_m *Client) DeleteFileShare(ctx *context.Context, fshareID string) error

DeleteFileShare provides a mock function with given fields: ctx, fshareID

func (*Client) DeleteFileShareSnapshot added in v0.5.2

func (_m *Client) DeleteFileShareSnapshot(ctx *context.Context, snapshotID string) error

DeleteFileShareSnapshot provides a mock function with given fields: ctx, snapshotID

func (*Client) DeletePool added in v0.3.1

func (_m *Client) DeletePool(ctx *context.Context, polID string) error

DeletePool provides a mock function with given fields: ctx, polID

func (*Client) DeleteProfile added in v0.3.1

func (_m *Client) DeleteProfile(ctx *context.Context, prfID string) error

DeleteProfile provides a mock function with given fields: ctx, prfID

func (*Client) DeleteReplication added in v0.3.1

func (_m *Client) DeleteReplication(ctx *context.Context, replicationId string) error

DeleteReplication provides a mock function with given fields: ctx, replicationId

func (*Client) DeleteVolume added in v0.3.1

func (_m *Client) DeleteVolume(ctx *context.Context, volID string) error

DeleteVolume provides a mock function with given fields: ctx, volID

func (*Client) DeleteVolumeAttachment added in v0.3.1

func (_m *Client) DeleteVolumeAttachment(ctx *context.Context, attachmentId string) error

DeleteVolumeAttachment provides a mock function with given fields: ctx, attachmentId

func (*Client) DeleteVolumeGroup added in v0.3.1

func (_m *Client) DeleteVolumeGroup(ctx *context.Context, vgId string) error

DeleteVolumeGroup provides a mock function with given fields: ctx, vgId

func (*Client) DeleteVolumeSnapshot added in v0.3.1

func (_m *Client) DeleteVolumeSnapshot(ctx *context.Context, snapshotID string) error

DeleteVolumeSnapshot provides a mock function with given fields: ctx, snapshotID

func (*Client) ExtendVolume added in v0.3.1

func (_m *Client) ExtendVolume(ctx *context.Context, vol *model.VolumeSpec) (*model.VolumeSpec, error)

ExtendVolume provides a mock function with given fields: ctx, vol

func (*Client) GetDefaultProfile added in v0.3.1

func (_m *Client) GetDefaultProfile(ctx *context.Context) (*model.ProfileSpec, error)

GetDefaultProfile provides a mock function with given fields: ctx

func (*Client) GetDock added in v0.3.1

func (_m *Client) GetDock(ctx *context.Context, dckID string) (*model.DockSpec, error)

GetDock provides a mock function with given fields: ctx, dckID

func (*Client) GetDockByPoolId added in v0.3.1

func (_m *Client) GetDockByPoolId(ctx *context.Context, poolId string) (*model.DockSpec, error)

GetDockByPoolId provides a mock function with given fields: ctx, poolId

func (*Client) GetFileShare added in v0.5.2

func (_m *Client) GetFileShare(ctx *context.Context, fshareID string) (*model.FileShareSpec, error)

GetFileShare provides a mock function with given fields: ctx, fshareID

func (*Client) GetFileShareSnapshot added in v0.5.2

func (_m *Client) GetFileShareSnapshot(ctx *context.Context, snapshotID string) (*model.FileShareSnapshotSpec, error)

GetFileShareSnapshot provides a mock function with given fields: ctx, snapshotID

func (*Client) GetPool added in v0.3.1

func (_m *Client) GetPool(ctx *context.Context, polID string) (*model.StoragePoolSpec, error)

GetPool provides a mock function with given fields: ctx, polID

func (*Client) GetProfile added in v0.3.1

func (_m *Client) GetProfile(ctx *context.Context, prfID string) (*model.ProfileSpec, error)

GetProfile provides a mock function with given fields: ctx, prfID

func (*Client) GetReplication added in v0.3.1

func (_m *Client) GetReplication(ctx *context.Context, replicationId string) (*model.ReplicationSpec, error)

GetReplication provides a mock function with given fields: ctx, replicationId

func (*Client) GetReplicationByVolumeId added in v0.3.1

func (_m *Client) GetReplicationByVolumeId(ctx *context.Context, volumeId string) (*model.ReplicationSpec, error)

GetReplicationByVolumeId provides a mock function with given fields: ctx, volumeId

func (*Client) GetVolume added in v0.3.1

func (_m *Client) GetVolume(ctx *context.Context, volID string) (*model.VolumeSpec, error)

GetVolume provides a mock function with given fields: ctx, volID

func (*Client) GetVolumeAttachment added in v0.3.1

func (_m *Client) GetVolumeAttachment(ctx *context.Context, attachmentId string) (*model.VolumeAttachmentSpec, error)

GetVolumeAttachment provides a mock function with given fields: ctx, attachmentId

func (*Client) GetVolumeGroup added in v0.3.1

func (_m *Client) GetVolumeGroup(ctx *context.Context, vgId string) (*model.VolumeGroupSpec, error)

GetVolumeGroup provides a mock function with given fields: ctx, vgId

func (*Client) GetVolumeSnapshot added in v0.3.1

func (_m *Client) GetVolumeSnapshot(ctx *context.Context, snapshotID string) (*model.VolumeSnapshotSpec, error)

GetVolumeSnapshot provides a mock function with given fields: ctx, snapshotID

func (*Client) ListAttachmentsByVolumeId added in v0.5.1

func (_m *Client) ListAttachmentsByVolumeId(ctx *context.Context, volId string) ([]*model.VolumeAttachmentSpec, error)

ListAttachmentsByVolumeId provides a mock function with given fields: ctx, volId

func (*Client) ListAvailabilityZones added in v0.3.1

func (_m *Client) ListAvailabilityZones(ctx *context.Context) ([]string, error)

ListAvailabilityZones provides a mock function with given fields: ctx

func (*Client) ListCustomProperties added in v0.3.1

func (_m *Client) ListCustomProperties(ctx *context.Context, prfID string) (*model.CustomPropertiesSpec, error)

ListCustomProperties provides a mock function with given fields: ctx, prfID

func (*Client) ListDocks added in v0.3.1

func (_m *Client) ListDocks(ctx *context.Context) ([]*model.DockSpec, error)

ListDocks provides a mock function with given fields: ctx

func (*Client) ListDocksWithFilter added in v0.3.1

func (_m *Client) ListDocksWithFilter(ctx *context.Context, m map[string][]string) ([]*model.DockSpec, error)

ListDocksWithFilter provides a mock function with given fields: ctx, m

func (*Client) ListFileShareSnapshots added in v0.5.2

func (_m *Client) ListFileShareSnapshots(ctx *context.Context) ([]*model.FileShareSnapshotSpec, error)

ListFileShareSnapshots provides a mock function with given fields: ctx

func (*Client) ListFileShareSnapshotsWithFilter added in v0.5.2

func (_m *Client) ListFileShareSnapshotsWithFilter(ctx *context.Context, m map[string][]string) ([]*model.FileShareSnapshotSpec, error)

ListFileShareSnapshotsWithFilter provides a mock function with given fields: ctx, m

func (*Client) ListFileShares added in v0.5.2

func (_m *Client) ListFileShares(ctx *context.Context) ([]*model.FileShareSpec, error)

ListFileShares provides a mock function with given fields: ctx

func (*Client) ListFileSharesWithFilter added in v0.5.2

func (_m *Client) ListFileSharesWithFilter(ctx *context.Context, m map[string][]string) ([]*model.FileShareSpec, error)

ListFileSharesWithFilter provides a mock function with given fields: ctx, m

func (*Client) ListPools added in v0.3.1

func (_m *Client) ListPools(ctx *context.Context) ([]*model.StoragePoolSpec, error)

ListPools provides a mock function with given fields: ctx

func (*Client) ListPoolsWithFilter added in v0.3.1

func (_m *Client) ListPoolsWithFilter(ctx *context.Context, m map[string][]string) ([]*model.StoragePoolSpec, error)

ListPoolsWithFilter provides a mock function with given fields: ctx, m

func (*Client) ListProfiles added in v0.3.1

func (_m *Client) ListProfiles(ctx *context.Context) ([]*model.ProfileSpec, error)

ListProfiles provides a mock function with given fields: ctx

func (*Client) ListProfilesWithFilter added in v0.3.1

func (_m *Client) ListProfilesWithFilter(ctx *context.Context, m map[string][]string) ([]*model.ProfileSpec, error)

ListProfilesWithFilter provides a mock function with given fields: ctx, m

func (*Client) ListReplication added in v0.3.1

func (_m *Client) ListReplication(ctx *context.Context) ([]*model.ReplicationSpec, error)

ListReplication provides a mock function with given fields: ctx

func (*Client) ListReplicationWithFilter added in v0.3.1

func (_m *Client) ListReplicationWithFilter(ctx *context.Context, m map[string][]string) ([]*model.ReplicationSpec, error)

ListReplicationWithFilter provides a mock function with given fields: ctx, m

func (*Client) ListSnapshotsByVolumeId added in v0.3.1

func (_m *Client) ListSnapshotsByVolumeId(ctx *context.Context, volId string) ([]*model.VolumeSnapshotSpec, error)

ListSnapshotsByVolumeId provides a mock function with given fields: ctx, volId

func (*Client) ListVolumeAttachments added in v0.3.1

func (_m *Client) ListVolumeAttachments(ctx *context.Context, volumeId string) ([]*model.VolumeAttachmentSpec, error)

ListVolumeAttachments provides a mock function with given fields: ctx, volumeId

func (*Client) ListVolumeAttachmentsWithFilter added in v0.3.1

func (_m *Client) ListVolumeAttachmentsWithFilter(ctx *context.Context, m map[string][]string) ([]*model.VolumeAttachmentSpec, error)

ListVolumeAttachmentsWithFilter provides a mock function with given fields: ctx, m

func (*Client) ListVolumeGroups added in v0.3.1

func (_m *Client) ListVolumeGroups(ctx *context.Context) ([]*model.VolumeGroupSpec, error)

ListVolumeGroups provides a mock function with given fields: ctx

func (*Client) ListVolumeGroupsWithFilter added in v0.3.1

func (_m *Client) ListVolumeGroupsWithFilter(ctx *context.Context, m map[string][]string) ([]*model.VolumeGroupSpec, error)

ListVolumeGroupsWithFilter provides a mock function with given fields: ctx, m

func (*Client) ListVolumeSnapshots added in v0.3.1

func (_m *Client) ListVolumeSnapshots(ctx *context.Context) ([]*model.VolumeSnapshotSpec, error)

ListVolumeSnapshots provides a mock function with given fields: ctx

func (*Client) ListVolumeSnapshotsWithFilter added in v0.3.1

func (_m *Client) ListVolumeSnapshotsWithFilter(ctx *context.Context, m map[string][]string) ([]*model.VolumeSnapshotSpec, error)

ListVolumeSnapshotsWithFilter provides a mock function with given fields: ctx, m

func (*Client) ListVolumes added in v0.3.1

func (_m *Client) ListVolumes(ctx *context.Context) ([]*model.VolumeSpec, error)

ListVolumes provides a mock function with given fields: ctx

func (*Client) ListVolumesByGroupId added in v0.3.1

func (_m *Client) ListVolumesByGroupId(ctx *context.Context, vgId string) ([]*model.VolumeSpec, error)

ListVolumesByGroupId provides a mock function with given fields: ctx, vgId

func (*Client) ListVolumesWithFilter added in v0.3.1

func (_m *Client) ListVolumesWithFilter(ctx *context.Context, m map[string][]string) ([]*model.VolumeSpec, error)

ListVolumesWithFilter provides a mock function with given fields: ctx, m

func (*Client) RemoveCustomProperty added in v0.3.1

func (_m *Client) RemoveCustomProperty(ctx *context.Context, prfID string, customKey string) error

RemoveCustomProperty provides a mock function with given fields: ctx, prfID, customKey

func (*Client) UpdateDock added in v0.3.1

func (_m *Client) UpdateDock(ctx *context.Context, dckID string, name string, desp string) (*model.DockSpec, error)

UpdateDock provides a mock function with given fields: ctx, dckID, name, desp

func (*Client) UpdateFileShare added in v0.5.2

func (_m *Client) UpdateFileShare(ctx *context.Context, fshare *model.FileShareSpec) (*model.FileShareSpec, error)

UpdateFileShare provides a mock function with given fields: ctx, fshare

func (*Client) UpdateFileShareSnapshot added in v0.5.2

func (_m *Client) UpdateFileShareSnapshot(ctx *context.Context, snapshotID string, vs *model.FileShareSnapshotSpec) (*model.FileShareSnapshotSpec, error)

UpdateFileShareSnapshot provides a mock function with given fields: ctx, snapshotID, vs

func (*Client) UpdatePool added in v0.3.1

func (_m *Client) UpdatePool(ctx *context.Context, polID string, name string, desp string, usedCapacity int64, used bool) (*model.StoragePoolSpec, error)

UpdatePool provides a mock function with given fields: ctx, polID, name, desp, usedCapacity, used

func (*Client) UpdateProfile added in v0.3.1

func (_m *Client) UpdateProfile(ctx *context.Context, prfID string, input *model.ProfileSpec) (*model.ProfileSpec, error)

UpdateProfile provides a mock function with given fields: ctx, prfID, input

func (*Client) UpdateReplication added in v0.3.1

func (_m *Client) UpdateReplication(ctx *context.Context, replicationId string, input *model.ReplicationSpec) (*model.ReplicationSpec, error)

UpdateReplication provides a mock function with given fields: ctx, replicationId, input

func (*Client) UpdateStatus added in v0.3.1

func (_m *Client) UpdateStatus(ctx *context.Context, object interface{}, status string) error

UpdateStatus provides a mock function with given fields: ctx, object, status

func (*Client) UpdateVolume added in v0.3.1

func (_m *Client) UpdateVolume(ctx *context.Context, vol *model.VolumeSpec) (*model.VolumeSpec, error)

UpdateVolume provides a mock function with given fields: ctx, vol

func (*Client) UpdateVolumeAttachment added in v0.3.1

func (_m *Client) UpdateVolumeAttachment(ctx *context.Context, attachmentId string, attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)

UpdateVolumeAttachment provides a mock function with given fields: ctx, attachmentId, attachment

func (*Client) UpdateVolumeGroup added in v0.3.1

func (_m *Client) UpdateVolumeGroup(ctx *context.Context, vg *model.VolumeGroupSpec) (*model.VolumeGroupSpec, error)

UpdateVolumeGroup provides a mock function with given fields: ctx, vg

func (*Client) UpdateVolumeSnapshot added in v0.3.1

func (_m *Client) UpdateVolumeSnapshot(ctx *context.Context, snapshotID string, vs *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)

UpdateVolumeSnapshot provides a mock function with given fields: ctx, snapshotID, vs

func (*Client) VolumesToUpdate added in v0.3.1

func (_m *Client) VolumesToUpdate(ctx *context.Context, volumeList []*model.VolumeSpec) ([]*model.VolumeSpec, error)

VolumesToUpdate provides a mock function with given fields: ctx, volumeList

Jump to

Keyboard shortcuts

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