mocks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 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) 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) CreateFileShareAcl added in v0.5.3

func (_m *Client) CreateFileShareAcl(ctx *context.Context, fshare *model.FileShareAclSpec) (*model.FileShareAclSpec, error)

CreateFileShareAcl 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) CreateHost added in v0.12.0

func (_m *Client) CreateHost(ctx *context.Context, host *model.HostSpec) (*model.HostSpec, error)

CreateHost provides a mock function with given fields: ctx, host

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) 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) DeleteFileShareAcl added in v0.5.3

func (_m *Client) DeleteFileShareAcl(ctx *context.Context, aclID string) error

DeleteFileShareAcl provides a mock function with given fields: ctx, aclID

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) DeleteHost added in v0.12.0

func (_m *Client) DeleteHost(ctx *context.Context, hostId string) error

DeleteHost provides a mock function with given fields: ctx, hostId

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) 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) 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) GetFileShareAcl added in v0.5.3

func (_m *Client) GetFileShareAcl(ctx *context.Context, aclID string) (*model.FileShareAclSpec, error)

GetFileShareAcl provides a mock function with given fields: ctx, aclID

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) GetHost added in v0.12.0

func (_m *Client) GetHost(ctx *context.Context, hostId string) (*model.HostSpec, error)

GetHost provides a mock function with given fields: ctx, hostId

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) 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) 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) ListFileShareAclsByShareId added in v0.5.5

func (_m *Client) ListFileShareAclsByShareId(ctx *context.Context, fileshareId string) ([]*model.FileShareAclSpec, error)

ListFileShareAclsByShareId provides a mock function with given fields: ctx, fileshareId

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) ListFileSharesAcl added in v0.5.3

func (_m *Client) ListFileSharesAcl(ctx *context.Context) ([]*model.FileShareAclSpec, error)

ListFileSharesAcl provides a mock function with given fields: ctx

func (*Client) ListFileSharesAclWithFilter added in v0.5.3

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

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

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) ListHosts added in v0.12.0

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

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

func (*Client) ListHostsByName added in v0.12.0

func (_m *Client) ListHostsByName(ctx *context.Context, hostName string) ([]*model.HostSpec, error)

ListHostsByName provides a mock function with given fields: ctx, hostName

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) 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) ListSnapshotsByShareId added in v0.5.5

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

ListSnapshotsByShareId provides a mock function with given fields: ctx, fileshareId

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) 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) UpdateFileShareAcl added in v0.5.4

func (_m *Client) UpdateFileShareAcl(ctx *context.Context, acl *model.FileShareAclSpec) (*model.FileShareAclSpec, error)

UpdateFileShareAcl provides a mock function with given fields: ctx, acl

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) UpdateHost added in v0.12.0

func (_m *Client) UpdateHost(ctx *context.Context, host *model.HostSpec) (*model.HostSpec, error)

UpdateHost provides a mock function with given fields: ctx, host

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