mocks

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiClient

type ApiClient struct {
	mock.Mock
}

ApiClient is an autogenerated mock type for the ApiClient type

func NewApiClient added in v1.14.1

func NewApiClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApiClient

NewApiClient creates a new instance of ApiClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ApiClient) GetCustomHTTPHeaders added in v1.14.1

func (_m *ApiClient) GetCustomHTTPHeaders() http.Header

GetCustomHTTPHeaders provides a mock function with given fields:

func (*ApiClient) Query

func (_m *ApiClient) Query(ctx context.Context, cfg api.RequestConfigRenderer, resp interface{}) (api.RespMeta, error)

Query provides a mock function with given fields: ctx, cfg, resp

func (*ApiClient) QueryParams

func (_m *ApiClient) QueryParams() api.QueryParamsEncoder

QueryParams provides a mock function with given fields:

func (*ApiClient) QueryParamsWithFields

func (_m *ApiClient) QueryParamsWithFields(provider api.FieldProvider) api.QueryParamsEncoder

QueryParamsWithFields provides a mock function with given fields: provider

func (*ApiClient) SetCustomHTTPHeaders

func (_m *ApiClient) SetCustomHTTPHeaders(headers http.Header)

SetCustomHTTPHeaders provides a mock function with given fields: headers

func (*ApiClient) SetLogger

func (_m *ApiClient) SetLogger(logger api.Logger)

SetLogger provides a mock function with given fields: logger

func (*ApiClient) SetTraceID

func (_m *ApiClient) SetTraceID(ctx context.Context, traceID string) context.Context

SetTraceID provides a mock function with given fields: ctx, traceID

func (*ApiClient) TraceID

func (_m *ApiClient) TraceID(ctx context.Context) string

TraceID provides a mock function with given fields: ctx

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient added in v1.8.0

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Client) APIClient

func (_m *Client) APIClient() api.Client

APIClient provides a mock function with given fields:

func (*Client) AddMembersToVolumeGroup added in v1.8.0

func (_m *Client) AddMembersToVolumeGroup(ctx context.Context, params *gopowerstore.VolumeGroupMembers, id string) (gopowerstore.EmptyResponse, error)

AddMembersToVolumeGroup provides a mock function with given fields: ctx, params, id

func (*Client) AttachVolumeToHost

func (_m *Client) AttachVolumeToHost(ctx context.Context, hostID string, attachParams *gopowerstore.HostVolumeAttach) (gopowerstore.EmptyResponse, error)

AttachVolumeToHost provides a mock function with given fields: ctx, hostID, attachParams

func (*Client) AttachVolumeToHostGroup added in v1.10.0

func (_m *Client) AttachVolumeToHostGroup(ctx context.Context, hostGroupID string, attachParams *gopowerstore.HostVolumeAttach) (gopowerstore.EmptyResponse, error)

AttachVolumeToHostGroup provides a mock function with given fields: ctx, hostGroupID, attachParams

func (*Client) CloneFS

func (_m *Client) CloneFS(ctx context.Context, createParams *gopowerstore.FsClone, fsID string) (gopowerstore.CreateResponse, error)

CloneFS provides a mock function with given fields: ctx, createParams, fsID

func (*Client) CloneVolume

func (_m *Client) CloneVolume(ctx context.Context, createParams *gopowerstore.VolumeClone, volID string) (gopowerstore.CreateResponse, error)

CloneVolume provides a mock function with given fields: ctx, createParams, volID

func (*Client) ComputeDifferences added in v1.5.0

ComputeDifferences provides a mock function with given fields: ctx, snapdiffParams, volID

func (*Client) CopyMetricsByAppliance

func (_m *Client) CopyMetricsByAppliance(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.CopyMetricsByApplianceResponse, error)

CopyMetricsByAppliance provides a mock function with given fields: ctx, entityID, interval

func (*Client) CopyMetricsByCluster

func (_m *Client) CopyMetricsByCluster(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.CopyMetricsByClusterResponse, error)

CopyMetricsByCluster provides a mock function with given fields: ctx, entityID, interval

func (*Client) CopyMetricsByRemoteSystem

func (_m *Client) CopyMetricsByRemoteSystem(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.CopyMetricsByRemoteSystemResponse, error)

CopyMetricsByRemoteSystem provides a mock function with given fields: ctx, entityID, interval

func (*Client) CopyMetricsByVolume

func (_m *Client) CopyMetricsByVolume(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.CopyMetricsByVolumeResponse, error)

CopyMetricsByVolume provides a mock function with given fields: ctx, entityID, interval

func (*Client) CopyMetricsByVolumeGroup

func (_m *Client) CopyMetricsByVolumeGroup(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.CopyMetricsByVolumeGroupResponse, error)

CopyMetricsByVolumeGroup provides a mock function with given fields: ctx, entityID, interval

func (*Client) CreateFS

func (_m *Client) CreateFS(ctx context.Context, createParams *gopowerstore.FsCreate) (gopowerstore.CreateResponse, error)

CreateFS provides a mock function with given fields: ctx, createParams

func (*Client) CreateFsFromSnapshot

func (_m *Client) CreateFsFromSnapshot(ctx context.Context, createParams *gopowerstore.FsClone, snapID string) (gopowerstore.CreateResponse, error)

CreateFsFromSnapshot provides a mock function with given fields: ctx, createParams, snapID

func (*Client) CreateFsSnapshot

func (_m *Client) CreateFsSnapshot(ctx context.Context, createSnapParams *gopowerstore.SnapshotFSCreate, id string) (gopowerstore.CreateResponse, error)

CreateFsSnapshot provides a mock function with given fields: ctx, createSnapParams, id

func (*Client) CreateHost

func (_m *Client) CreateHost(ctx context.Context, createParams *gopowerstore.HostCreate) (gopowerstore.CreateResponse, error)

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

func (*Client) CreateHostGroup added in v1.12.0

func (_m *Client) CreateHostGroup(ctx context.Context, createParams *gopowerstore.HostGroupCreate) (gopowerstore.CreateResponse, error)

CreateHostGroup provides a mock function with given fields: ctx, createParams

func (*Client) CreateNAS

func (_m *Client) CreateNAS(ctx context.Context, createParams *gopowerstore.NASCreate) (gopowerstore.CreateResponse, error)

CreateNAS provides a mock function with given fields: ctx, createParams

func (*Client) CreateNFSExport

func (_m *Client) CreateNFSExport(ctx context.Context, createParams *gopowerstore.NFSExportCreate) (gopowerstore.CreateResponse, error)

CreateNFSExport provides a mock function with given fields: ctx, createParams

func (*Client) CreateNFSServer

func (_m *Client) CreateNFSServer(ctx context.Context, createParams *gopowerstore.NFSServerCreate) (gopowerstore.CreateResponse, error)

CreateNFSServer provides a mock function with given fields: ctx, createParams

func (*Client) CreateProtectionPolicy added in v1.4.0

func (_m *Client) CreateProtectionPolicy(ctx context.Context, createParams *gopowerstore.ProtectionPolicyCreate) (gopowerstore.CreateResponse, error)

CreateProtectionPolicy provides a mock function with given fields: ctx, createParams

func (*Client) CreateReplicationRule added in v1.4.0

func (_m *Client) CreateReplicationRule(ctx context.Context, createParams *gopowerstore.ReplicationRuleCreate) (gopowerstore.CreateResponse, error)

CreateReplicationRule provides a mock function with given fields: ctx, createParams

func (*Client) CreateSnapshot

func (_m *Client) CreateSnapshot(ctx context.Context, createSnapParams *gopowerstore.SnapshotCreate, id string) (gopowerstore.CreateResponse, error)

CreateSnapshot provides a mock function with given fields: ctx, createSnapParams, id

func (*Client) CreateSnapshotRule added in v1.10.0

func (_m *Client) CreateSnapshotRule(ctx context.Context, createParams *gopowerstore.SnapshotRuleCreate) (gopowerstore.CreateResponse, error)

CreateSnapshotRule provides a mock function with given fields: ctx, createParams

func (*Client) CreateStorageContainer added in v1.11.0

func (_m *Client) CreateStorageContainer(ctx context.Context, createParams *gopowerstore.StorageContainer) (gopowerstore.CreateResponse, error)

CreateStorageContainer provides a mock function with given fields: ctx, createParams

func (*Client) CreateVolume

func (_m *Client) CreateVolume(ctx context.Context, createParams *gopowerstore.VolumeCreate) (gopowerstore.CreateResponse, error)

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

func (*Client) CreateVolumeFromSnapshot

func (_m *Client) CreateVolumeFromSnapshot(ctx context.Context, createParams *gopowerstore.VolumeClone, snapID string) (gopowerstore.CreateResponse, error)

CreateVolumeFromSnapshot provides a mock function with given fields: ctx, createParams, snapID

func (*Client) CreateVolumeGroup added in v1.4.0

func (_m *Client) CreateVolumeGroup(ctx context.Context, createParams *gopowerstore.VolumeGroupCreate) (gopowerstore.CreateResponse, error)

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

func (*Client) CreateVolumeGroupSnapshot added in v1.8.0

func (_m *Client) CreateVolumeGroupSnapshot(ctx context.Context, volumeGroupID string, createParams *gopowerstore.VolumeGroupSnapshotCreate) (gopowerstore.CreateResponse, error)

CreateVolumeGroupSnapshot provides a mock function with given fields: ctx, volumeGroupID, createParams

func (*Client) DeleteFS

func (_m *Client) DeleteFS(ctx context.Context, id string) (gopowerstore.EmptyResponse, error)

DeleteFS provides a mock function with given fields: ctx, id

func (*Client) DeleteFsSnapshot

func (_m *Client) DeleteFsSnapshot(ctx context.Context, id string) (gopowerstore.EmptyResponse, error)

DeleteFsSnapshot provides a mock function with given fields: ctx, id

func (*Client) DeleteHost

func (_m *Client) DeleteHost(ctx context.Context, deleteParams *gopowerstore.HostDelete, id string) (gopowerstore.EmptyResponse, error)

DeleteHost provides a mock function with given fields: ctx, deleteParams, id

func (*Client) DeleteHostGroup added in v1.12.0

func (_m *Client) DeleteHostGroup(ctx context.Context, id string) (gopowerstore.EmptyResponse, error)

DeleteHostGroup provides a mock function with given fields: ctx, id

func (*Client) DeleteNAS

func (_m *Client) DeleteNAS(ctx context.Context, id string) (gopowerstore.EmptyResponse, error)

DeleteNAS provides a mock function with given fields: ctx, id

func (*Client) DeleteNFSExport

func (_m *Client) DeleteNFSExport(ctx context.Context, id string) (gopowerstore.EmptyResponse, error)

DeleteNFSExport provides a mock function with given fields: ctx, id

func (*Client) DeleteProtectionPolicy added in v1.4.0

func (_m *Client) DeleteProtectionPolicy(ctx context.Context, id string) (gopowerstore.EmptyResponse, error)

DeleteProtectionPolicy provides a mock function with given fields: ctx, id

func (*Client) DeleteReplicationRule added in v1.4.0

func (_m *Client) DeleteReplicationRule(ctx context.Context, id string) (gopowerstore.EmptyResponse, error)

DeleteReplicationRule provides a mock function with given fields: ctx, id

func (*Client) DeleteSnapshot

func (_m *Client) DeleteSnapshot(ctx context.Context, deleteParams *gopowerstore.VolumeDelete, id string) (gopowerstore.EmptyResponse, error)

DeleteSnapshot provides a mock function with given fields: ctx, deleteParams, id

func (*Client) DeleteSnapshotRule added in v1.10.0

func (_m *Client) DeleteSnapshotRule(ctx context.Context, deleteParams *gopowerstore.SnapshotRuleDelete, id string) (gopowerstore.EmptyResponse, error)

DeleteSnapshotRule provides a mock function with given fields: ctx, deleteParams, id

func (*Client) DeleteStorageContainer added in v1.11.0

func (_m *Client) DeleteStorageContainer(ctx context.Context, id string) (gopowerstore.EmptyResponse, error)

DeleteStorageContainer provides a mock function with given fields: ctx, id

func (*Client) DeleteVolume

func (_m *Client) DeleteVolume(ctx context.Context, deleteParams *gopowerstore.VolumeDelete, id string) (gopowerstore.EmptyResponse, error)

DeleteVolume provides a mock function with given fields: ctx, deleteParams, id

func (*Client) DeleteVolumeGroup added in v1.4.0

func (_m *Client) DeleteVolumeGroup(ctx context.Context, id string) (gopowerstore.EmptyResponse, error)

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

func (*Client) DetachVolumeFromHost

func (_m *Client) DetachVolumeFromHost(ctx context.Context, hostID string, detachParams *gopowerstore.HostVolumeDetach) (gopowerstore.EmptyResponse, error)

DetachVolumeFromHost provides a mock function with given fields: ctx, hostID, detachParams

func (*Client) DetachVolumeFromHostGroup added in v1.10.0

func (_m *Client) DetachVolumeFromHostGroup(ctx context.Context, hostGroupID string, detachParams *gopowerstore.HostVolumeDetach) (gopowerstore.EmptyResponse, error)

DetachVolumeFromHostGroup provides a mock function with given fields: ctx, hostGroupID, detachParams

func (*Client) ExecuteActionOnReplicationSession added in v1.5.0

func (_m *Client) ExecuteActionOnReplicationSession(ctx context.Context, id string, actionType gopowerstore.ActionType, params *gopowerstore.FailoverParams) (gopowerstore.EmptyResponse, error)

ExecuteActionOnReplicationSession provides a mock function with given fields: ctx, id, actionType, params

func (*Client) GetAllRemoteSystems added in v1.4.0

func (_m *Client) GetAllRemoteSystems(ctx context.Context) ([]gopowerstore.RemoteSystem, error)

GetAllRemoteSystems provides a mock function with given fields: ctx

func (*Client) GetAppliance added in v1.10.0

func (_m *Client) GetAppliance(ctx context.Context, id string) (gopowerstore.ApplianceInstance, error)

GetAppliance provides a mock function with given fields: ctx, id

func (*Client) GetApplianceByName added in v1.10.0

func (_m *Client) GetApplianceByName(ctx context.Context, name string) (gopowerstore.ApplianceInstance, error)

GetApplianceByName provides a mock function with given fields: ctx, name

func (*Client) GetCapacity

func (_m *Client) GetCapacity(ctx context.Context) (int64, error)

GetCapacity provides a mock function with given fields: ctx

func (*Client) GetCluster added in v1.4.0

func (_m *Client) GetCluster(ctx context.Context) (gopowerstore.Cluster, error)

GetCluster provides a mock function with given fields: ctx

func (*Client) GetCustomHTTPHeaders added in v1.8.0

func (_m *Client) GetCustomHTTPHeaders() http.Header

GetCustomHTTPHeaders provides a mock function with given fields:

func (*Client) GetFCPort

func (_m *Client) GetFCPort(ctx context.Context, id string) (gopowerstore.FcPort, error)

GetFCPort provides a mock function with given fields: ctx, id

func (*Client) GetFCPorts

func (_m *Client) GetFCPorts(ctx context.Context) ([]gopowerstore.FcPort, error)

GetFCPorts provides a mock function with given fields: ctx

func (*Client) GetFS

func (_m *Client) GetFS(ctx context.Context, id string) (gopowerstore.FileSystem, error)

GetFS provides a mock function with given fields: ctx, id

func (*Client) GetFSByName

func (_m *Client) GetFSByName(ctx context.Context, name string) (gopowerstore.FileSystem, error)

GetFSByName provides a mock function with given fields: ctx, name

func (*Client) GetFileInterface

func (_m *Client) GetFileInterface(ctx context.Context, id string) (gopowerstore.FileInterface, error)

GetFileInterface provides a mock function with given fields: ctx, id

func (*Client) GetFsSnapshot

func (_m *Client) GetFsSnapshot(ctx context.Context, snapID string) (gopowerstore.FileSystem, error)

GetFsSnapshot provides a mock function with given fields: ctx, snapID

func (*Client) GetFsSnapshots

func (_m *Client) GetFsSnapshots(ctx context.Context) ([]gopowerstore.FileSystem, error)

GetFsSnapshots provides a mock function with given fields: ctx

func (*Client) GetFsSnapshotsByVolumeID

func (_m *Client) GetFsSnapshotsByVolumeID(ctx context.Context, volID string) ([]gopowerstore.FileSystem, error)

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

func (*Client) GetHost

func (_m *Client) GetHost(ctx context.Context, id string) (gopowerstore.Host, error)

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

func (*Client) GetHostByName

func (_m *Client) GetHostByName(ctx context.Context, name string) (gopowerstore.Host, error)

GetHostByName provides a mock function with given fields: ctx, name

func (*Client) GetHostGroup added in v1.12.0

func (_m *Client) GetHostGroup(ctx context.Context, id string) (gopowerstore.HostGroup, error)

GetHostGroup provides a mock function with given fields: ctx, id

func (*Client) GetHostGroupByName added in v1.11.0

func (_m *Client) GetHostGroupByName(ctx context.Context, name string) (gopowerstore.HostGroup, error)

GetHostGroupByName provides a mock function with given fields: ctx, name

func (*Client) GetHostGroups added in v1.13.0

func (_m *Client) GetHostGroups(ctx context.Context) ([]gopowerstore.HostGroup, error)

GetHostGroups provides a mock function with given fields: ctx

func (*Client) GetHostVolumeMapping

func (_m *Client) GetHostVolumeMapping(ctx context.Context, id string) (gopowerstore.HostVolumeMapping, error)

GetHostVolumeMapping provides a mock function with given fields: ctx, id

func (*Client) GetHostVolumeMappingByVolumeID

func (_m *Client) GetHostVolumeMappingByVolumeID(ctx context.Context, volumeID string) ([]gopowerstore.HostVolumeMapping, error)

GetHostVolumeMappingByVolumeID provides a mock function with given fields: ctx, volumeID

func (*Client) GetHostVolumeMappings

func (_m *Client) GetHostVolumeMappings(ctx context.Context) ([]gopowerstore.HostVolumeMapping, error)

GetHostVolumeMappings provides a mock function with given fields: ctx

func (*Client) GetHosts

func (_m *Client) GetHosts(ctx context.Context) ([]gopowerstore.Host, error)

GetHosts provides a mock function with given fields: ctx

func (*Client) GetMaxVolumeSize added in v1.14.0

func (_m *Client) GetMaxVolumeSize(ctx context.Context) (int64, error)

GetMaxVolumeSize provides a mock function with given fields: ctx

func (*Client) GetNAS

func (_m *Client) GetNAS(ctx context.Context, id string) (gopowerstore.NAS, error)

GetNAS provides a mock function with given fields: ctx, id

func (*Client) GetNASByName

func (_m *Client) GetNASByName(ctx context.Context, name string) (gopowerstore.NAS, error)

GetNASByName provides a mock function with given fields: ctx, name

func (*Client) GetNFSExportByFileSystemID

func (_m *Client) GetNFSExportByFileSystemID(ctx context.Context, fsID string) (gopowerstore.NFSExport, error)

GetNFSExportByFileSystemID provides a mock function with given fields: ctx, fsID

func (*Client) GetNFSExportByName

func (_m *Client) GetNFSExportByName(ctx context.Context, name string) (gopowerstore.NFSExport, error)

GetNFSExportByName provides a mock function with given fields: ctx, name

func (*Client) GetNfsServer added in v1.7.0

func (_m *Client) GetNfsServer(ctx context.Context, id string) (gopowerstore.NFSServerInstance, error)

GetNfsServer provides a mock function with given fields: ctx, id

func (*Client) GetProtectionPolicies added in v1.12.0

func (_m *Client) GetProtectionPolicies(ctx context.Context) ([]gopowerstore.ProtectionPolicy, error)

GetProtectionPolicies provides a mock function with given fields: ctx

func (*Client) GetProtectionPolicy added in v1.11.0

func (_m *Client) GetProtectionPolicy(ctx context.Context, id string) (gopowerstore.ProtectionPolicy, error)

GetProtectionPolicy provides a mock function with given fields: ctx, id

func (*Client) GetProtectionPolicyByName added in v1.4.0

func (_m *Client) GetProtectionPolicyByName(ctx context.Context, name string) (gopowerstore.ProtectionPolicy, error)

GetProtectionPolicyByName provides a mock function with given fields: ctx, name

func (*Client) GetRemoteSystem added in v1.4.0

func (_m *Client) GetRemoteSystem(ctx context.Context, id string) (gopowerstore.RemoteSystem, error)

GetRemoteSystem provides a mock function with given fields: ctx, id

func (*Client) GetRemoteSystemByName added in v1.4.0

func (_m *Client) GetRemoteSystemByName(ctx context.Context, name string) (gopowerstore.RemoteSystem, error)

GetRemoteSystemByName provides a mock function with given fields: ctx, name

func (*Client) GetReplicationRule added in v1.11.0

func (_m *Client) GetReplicationRule(ctx context.Context, id string) (gopowerstore.ReplicationRule, error)

GetReplicationRule provides a mock function with given fields: ctx, id

func (*Client) GetReplicationRuleByName added in v1.4.0

func (_m *Client) GetReplicationRuleByName(ctx context.Context, name string) (gopowerstore.ReplicationRule, error)

GetReplicationRuleByName provides a mock function with given fields: ctx, name

func (*Client) GetReplicationSessionByID added in v1.5.0

func (_m *Client) GetReplicationSessionByID(ctx context.Context, id string) (gopowerstore.ReplicationSession, error)

GetReplicationSessionByID provides a mock function with given fields: ctx, id

func (*Client) GetReplicationSessionByLocalResourceID added in v1.4.0

func (_m *Client) GetReplicationSessionByLocalResourceID(ctx context.Context, id string) (gopowerstore.ReplicationSession, error)

GetReplicationSessionByLocalResourceID provides a mock function with given fields: ctx, id

func (*Client) GetSnapshot

func (_m *Client) GetSnapshot(ctx context.Context, snapID string) (gopowerstore.Volume, error)

GetSnapshot provides a mock function with given fields: ctx, snapID

func (*Client) GetSnapshotByName added in v1.12.0

func (_m *Client) GetSnapshotByName(ctx context.Context, snapName string) (gopowerstore.Volume, error)

GetSnapshotByName provides a mock function with given fields: ctx, snapName

func (*Client) GetSnapshotRule added in v1.10.0

func (_m *Client) GetSnapshotRule(ctx context.Context, id string) (gopowerstore.SnapshotRule, error)

GetSnapshotRule provides a mock function with given fields: ctx, id

func (*Client) GetSnapshotRuleByName added in v1.13.0

func (_m *Client) GetSnapshotRuleByName(ctx context.Context, name string) (gopowerstore.SnapshotRule, error)

GetSnapshotRuleByName provides a mock function with given fields: ctx, name

func (*Client) GetSnapshotRules added in v1.10.0

func (_m *Client) GetSnapshotRules(ctx context.Context) ([]gopowerstore.SnapshotRule, error)

GetSnapshotRules provides a mock function with given fields: ctx

func (*Client) GetSnapshots

func (_m *Client) GetSnapshots(ctx context.Context) ([]gopowerstore.Volume, error)

GetSnapshots provides a mock function with given fields: ctx

func (*Client) GetSnapshotsByVolumeID

func (_m *Client) GetSnapshotsByVolumeID(ctx context.Context, volID string) ([]gopowerstore.Volume, error)

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

func (*Client) GetSoftwareInstalled added in v1.8.0

func (_m *Client) GetSoftwareInstalled(ctx context.Context) ([]gopowerstore.SoftwareInstalled, error)

GetSoftwareInstalled provides a mock function with given fields: ctx

func (*Client) GetSoftwareMajorMinorVersion added in v1.8.0

func (_m *Client) GetSoftwareMajorMinorVersion(ctx context.Context) (float32, error)

GetSoftwareMajorMinorVersion provides a mock function with given fields: ctx

func (*Client) GetStorageContainer added in v1.11.0

func (_m *Client) GetStorageContainer(ctx context.Context, id string) (gopowerstore.StorageContainer, error)

GetStorageContainer provides a mock function with given fields: ctx, id

func (*Client) GetStorageISCSITargetAddresses

func (_m *Client) GetStorageISCSITargetAddresses(ctx context.Context) ([]gopowerstore.IPPoolAddress, error)

GetStorageISCSITargetAddresses provides a mock function with given fields: ctx

func (*Client) GetStorageNVMETCPTargetAddresses added in v1.14.1

func (_m *Client) GetStorageNVMETCPTargetAddresses(ctx context.Context) ([]gopowerstore.IPPoolAddress, error)

GetStorageNVMETCPTargetAddresses provides a mock function with given fields: ctx

func (*Client) GetVolume

func (_m *Client) GetVolume(ctx context.Context, id string) (gopowerstore.Volume, error)

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

func (*Client) GetVolumeByName

func (_m *Client) GetVolumeByName(ctx context.Context, name string) (gopowerstore.Volume, error)

GetVolumeByName provides a mock function with given fields: ctx, name

func (*Client) GetVolumeGroup added in v1.4.0

func (_m *Client) GetVolumeGroup(ctx context.Context, id string) (gopowerstore.VolumeGroup, error)

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

func (*Client) GetVolumeGroupByName added in v1.4.0

func (_m *Client) GetVolumeGroupByName(ctx context.Context, name string) (gopowerstore.VolumeGroup, error)

GetVolumeGroupByName provides a mock function with given fields: ctx, name

func (*Client) GetVolumeGroupSnapshot added in v1.12.0

func (_m *Client) GetVolumeGroupSnapshot(ctx context.Context, snapID string) (gopowerstore.VolumeGroup, error)

GetVolumeGroupSnapshot provides a mock function with given fields: ctx, snapID

func (*Client) GetVolumeGroupSnapshotByName added in v1.12.0

func (_m *Client) GetVolumeGroupSnapshotByName(ctx context.Context, snapName string) (gopowerstore.VolumeGroup, error)

GetVolumeGroupSnapshotByName provides a mock function with given fields: ctx, snapName

func (*Client) GetVolumeGroupSnapshots added in v1.12.0

func (_m *Client) GetVolumeGroupSnapshots(ctx context.Context) ([]gopowerstore.VolumeGroup, error)

GetVolumeGroupSnapshots provides a mock function with given fields: ctx

func (*Client) GetVolumeGroups added in v1.12.0

func (_m *Client) GetVolumeGroups(ctx context.Context) ([]gopowerstore.VolumeGroup, error)

GetVolumeGroups provides a mock function with given fields: ctx

func (*Client) GetVolumeGroupsByVolumeID added in v1.4.0

func (_m *Client) GetVolumeGroupsByVolumeID(ctx context.Context, id string) (gopowerstore.VolumeGroups, error)

GetVolumeGroupsByVolumeID provides a mock function with given fields: ctx, id

func (*Client) GetVolumes

func (_m *Client) GetVolumes(ctx context.Context) ([]gopowerstore.Volume, error)

GetVolumes provides a mock function with given fields: ctx

func (*Client) ModifyFS

func (_m *Client) ModifyFS(ctx context.Context, modifyParams *gopowerstore.FSModify, volID string) (gopowerstore.EmptyResponse, error)

ModifyFS provides a mock function with given fields: ctx, modifyParams, volID

func (*Client) ModifyHost

func (_m *Client) ModifyHost(ctx context.Context, modifyParams *gopowerstore.HostModify, id string) (gopowerstore.CreateResponse, error)

ModifyHost provides a mock function with given fields: ctx, modifyParams, id

func (*Client) ModifyHostGroup added in v1.12.0

func (_m *Client) ModifyHostGroup(ctx context.Context, modifyParams *gopowerstore.HostGroupModify, id string) (gopowerstore.EmptyResponse, error)

ModifyHostGroup provides a mock function with given fields: ctx, modifyParams, id

func (*Client) ModifyNFSExport

func (_m *Client) ModifyNFSExport(ctx context.Context, modifyParams *gopowerstore.NFSExportModify, id string) (gopowerstore.CreateResponse, error)

ModifyNFSExport provides a mock function with given fields: ctx, modifyParams, id

func (*Client) ModifyProtectionPolicy added in v1.11.0

func (_m *Client) ModifyProtectionPolicy(ctx context.Context, modifyParams *gopowerstore.ProtectionPolicyCreate, id string) (gopowerstore.EmptyResponse, error)

ModifyProtectionPolicy provides a mock function with given fields: ctx, modifyParams, id

func (*Client) ModifySnapshotRule added in v1.10.0

func (_m *Client) ModifySnapshotRule(ctx context.Context, modifyParams *gopowerstore.SnapshotRuleCreate, id string) (gopowerstore.EmptyResponse, error)

ModifySnapshotRule provides a mock function with given fields: ctx, modifyParams, id

func (*Client) ModifyStorageContainer added in v1.11.0

func (_m *Client) ModifyStorageContainer(ctx context.Context, modifyParams *gopowerstore.StorageContainer, id string) (gopowerstore.EmptyResponse, error)

ModifyStorageContainer provides a mock function with given fields: ctx, modifyParams, id

func (*Client) ModifyVolume

func (_m *Client) ModifyVolume(ctx context.Context, modifyParams *gopowerstore.VolumeModify, volID string) (gopowerstore.EmptyResponse, error)

ModifyVolume provides a mock function with given fields: ctx, modifyParams, volID

func (*Client) ModifyVolumeGroup added in v1.4.0

func (_m *Client) ModifyVolumeGroup(ctx context.Context, modifyParams *gopowerstore.VolumeGroupModify, id string) (gopowerstore.EmptyResponse, error)

ModifyVolumeGroup provides a mock function with given fields: ctx, modifyParams, id

func (*Client) ModifyVolumeGroupSnapshot added in v1.15.0

func (_m *Client) ModifyVolumeGroupSnapshot(ctx context.Context, modifyParams *gopowerstore.VolumeGroupSnapshotModify, id string) (gopowerstore.EmptyResponse, error)

ModifyVolumeGroupSnapshot provides a mock function with given fields: ctx, modifyParams, id

func (*Client) PerformanceMetricsByAppliance

func (_m *Client) PerformanceMetricsByAppliance(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsByApplianceResponse, error)

PerformanceMetricsByAppliance provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsByCluster

func (_m *Client) PerformanceMetricsByCluster(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsByClusterResponse, error)

PerformanceMetricsByCluster provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsByFeEthNode

func (_m *Client) PerformanceMetricsByFeEthNode(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsByFeEthNodeResponse, error)

PerformanceMetricsByFeEthNode provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsByFeEthPort

func (_m *Client) PerformanceMetricsByFeEthPort(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsByFeEthPortResponse, error)

PerformanceMetricsByFeEthPort provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsByFeFcNode

func (_m *Client) PerformanceMetricsByFeFcNode(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsByFeFcNodeResponse, error)

PerformanceMetricsByFeFcNode provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsByFeFcPort

func (_m *Client) PerformanceMetricsByFeFcPort(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsByFeFcPortResponse, error)

PerformanceMetricsByFeFcPort provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsByFileSystem

func (_m *Client) PerformanceMetricsByFileSystem(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsByFileSystemResponse, error)

PerformanceMetricsByFileSystem provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsByNode

func (_m *Client) PerformanceMetricsByNode(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsByNodeResponse, error)

PerformanceMetricsByNode provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsByVM

func (_m *Client) PerformanceMetricsByVM(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsByVMResponse, error)

PerformanceMetricsByVM provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsByVg

func (_m *Client) PerformanceMetricsByVg(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsByVgResponse, error)

PerformanceMetricsByVg provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsByVolume

func (_m *Client) PerformanceMetricsByVolume(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsByVolumeResponse, error)

PerformanceMetricsByVolume provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsNfsByNode

func (_m *Client) PerformanceMetricsNfsByNode(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsByNfsResponse, error)

PerformanceMetricsNfsByNode provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsNfsv3ByNode

func (_m *Client) PerformanceMetricsNfsv3ByNode(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsByNfsv3Response, error)

PerformanceMetricsNfsv3ByNode provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsNfsv4ByNode

func (_m *Client) PerformanceMetricsNfsv4ByNode(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsByNfsv4Response, error)

PerformanceMetricsNfsv4ByNode provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsSmb1BuiltinclientByNode

func (_m *Client) PerformanceMetricsSmb1BuiltinclientByNode(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsBySmbV1BuiltinClientResponse, error)

PerformanceMetricsSmb1BuiltinclientByNode provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsSmb1ByNode

func (_m *Client) PerformanceMetricsSmb1ByNode(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsBySmbV1NodeResponse, error)

PerformanceMetricsSmb1ByNode provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsSmb2BuiltinclientByNode

func (_m *Client) PerformanceMetricsSmb2BuiltinclientByNode(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsBySmbV2BuiltinClientResponse, error)

PerformanceMetricsSmb2BuiltinclientByNode provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsSmb2ByNode

func (_m *Client) PerformanceMetricsSmb2ByNode(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsBySmbV2NodeResponse, error)

PerformanceMetricsSmb2ByNode provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsSmbBranchCacheByNode

func (_m *Client) PerformanceMetricsSmbBranchCacheByNode(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsBySmbCacheResponse, error)

PerformanceMetricsSmbBranchCacheByNode provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsSmbBuiltinclientByNode

func (_m *Client) PerformanceMetricsSmbBuiltinclientByNode(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsBySmbClientResponse, error)

PerformanceMetricsSmbBuiltinclientByNode provides a mock function with given fields: ctx, entityID, interval

func (*Client) PerformanceMetricsSmbByNode

func (_m *Client) PerformanceMetricsSmbByNode(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsBySmbNodeResponse, error)

PerformanceMetricsSmbByNode provides a mock function with given fields: ctx, entityID, interval

func (*Client) RegisterK8sCluster added in v1.8.0

func (_m *Client) RegisterK8sCluster(ctx context.Context, request *gopowerstore.K8sCluster) (gopowerstore.CreateResponse, error)

RegisterK8sCluster provides a mock function with given fields: ctx, request

func (*Client) RemoveMembersFromVolumeGroup added in v1.4.0

func (_m *Client) RemoveMembersFromVolumeGroup(ctx context.Context, params *gopowerstore.VolumeGroupMembers, id string) (gopowerstore.EmptyResponse, error)

RemoveMembersFromVolumeGroup provides a mock function with given fields: ctx, params, id

func (*Client) SetCustomHTTPHeaders

func (_m *Client) SetCustomHTTPHeaders(headers http.Header)

SetCustomHTTPHeaders provides a mock function with given fields: headers

func (*Client) SetLogger

func (_m *Client) SetLogger(logger gopowerstore.Logger)

SetLogger provides a mock function with given fields: logger

func (*Client) SetTraceID

func (_m *Client) SetTraceID(ctx context.Context, value string) context.Context

SetTraceID provides a mock function with given fields: ctx, value

func (*Client) SpaceMetricsByAppliance

func (_m *Client) SpaceMetricsByAppliance(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.SpaceMetricsByApplianceResponse, error)

SpaceMetricsByAppliance provides a mock function with given fields: ctx, entityID, interval

func (*Client) SpaceMetricsByCluster

func (_m *Client) SpaceMetricsByCluster(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.SpaceMetricsByClusterResponse, error)

SpaceMetricsByCluster provides a mock function with given fields: ctx, entityID, interval

func (*Client) SpaceMetricsByStorageContainer

func (_m *Client) SpaceMetricsByStorageContainer(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.SpaceMetricsByStorageContainerResponse, error)

SpaceMetricsByStorageContainer provides a mock function with given fields: ctx, entityID, interval

func (*Client) SpaceMetricsByVM

func (_m *Client) SpaceMetricsByVM(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.SpaceMetricsByVMResponse, error)

SpaceMetricsByVM provides a mock function with given fields: ctx, entityID, interval

func (*Client) SpaceMetricsByVolume

func (_m *Client) SpaceMetricsByVolume(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.SpaceMetricsByVolumeResponse, error)

SpaceMetricsByVolume provides a mock function with given fields: ctx, entityID, interval

func (*Client) SpaceMetricsByVolumeFamily

func (_m *Client) SpaceMetricsByVolumeFamily(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.SpaceMetricsByVolumeFamilyResponse, error)

SpaceMetricsByVolumeFamily provides a mock function with given fields: ctx, entityID, interval

func (*Client) SpaceMetricsByVolumeGroup

func (_m *Client) SpaceMetricsByVolumeGroup(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.SpaceMetricsByVolumeGroupResponse, error)

SpaceMetricsByVolumeGroup provides a mock function with given fields: ctx, entityID, interval

func (*Client) UpdateVolumeGroupProtectionPolicy added in v1.4.0

func (_m *Client) UpdateVolumeGroupProtectionPolicy(ctx context.Context, id string, params *gopowerstore.VolumeGroupChangePolicy) (gopowerstore.EmptyResponse, error)

UpdateVolumeGroupProtectionPolicy provides a mock function with given fields: ctx, id, params

func (*Client) WearMetricsByDrive

func (_m *Client) WearMetricsByDrive(ctx context.Context, entityID string, interval gopowerstore.MetricsIntervalEnum) ([]gopowerstore.WearMetricsByDriveResponse, error)

WearMetricsByDrive provides a mock function with given fields: ctx, entityID, interval

type FieldProvider

type FieldProvider struct {
	mock.Mock
}

FieldProvider is an autogenerated mock type for the FieldProvider type

func NewFieldProvider added in v1.14.1

func NewFieldProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *FieldProvider

NewFieldProvider creates a new instance of FieldProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FieldProvider) Fields

func (_m *FieldProvider) Fields() []string

Fields provides a mock function with given fields:

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func NewLogger added in v1.14.1

func NewLogger(t interface {
	mock.TestingT
	Cleanup(func())
}) *Logger

NewLogger creates a new instance of Logger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Logger) Debug

func (_m *Logger) Debug(ctx context.Context, format string, args ...interface{})

Debug provides a mock function with given fields: ctx, format, args

func (*Logger) Error

func (_m *Logger) Error(ctx context.Context, format string, args ...interface{})

Error provides a mock function with given fields: ctx, format, args

func (*Logger) Info

func (_m *Logger) Info(ctx context.Context, format string, args ...interface{})

Info provides a mock function with given fields: ctx, format, args

type QueryParamsEncoder

type QueryParamsEncoder struct {
	mock.Mock
}

QueryParamsEncoder is an autogenerated mock type for the QueryParamsEncoder type

func NewQueryParamsEncoder added in v1.14.1

func NewQueryParamsEncoder(t interface {
	mock.TestingT
	Cleanup(func())
}) *QueryParamsEncoder

NewQueryParamsEncoder creates a new instance of QueryParamsEncoder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*QueryParamsEncoder) Async

Async provides a mock function with given fields: _a0

func (*QueryParamsEncoder) Encode

func (_m *QueryParamsEncoder) Encode() string

Encode provides a mock function with given fields:

func (*QueryParamsEncoder) Limit

Limit provides a mock function with given fields: _a0

func (*QueryParamsEncoder) Offset

func (_m *QueryParamsEncoder) Offset(_a0 int) api.QueryParamsEncoder

Offset provides a mock function with given fields: _a0

func (*QueryParamsEncoder) Order

func (_m *QueryParamsEncoder) Order(_a0 ...string) api.QueryParamsEncoder

Order provides a mock function with given fields: _a0

func (*QueryParamsEncoder) RawArg

func (_m *QueryParamsEncoder) RawArg(_a0 string, _a1 string) api.QueryParamsEncoder

RawArg provides a mock function with given fields: _a0, _a1

func (*QueryParamsEncoder) Select

func (_m *QueryParamsEncoder) Select(_a0 ...string) api.QueryParamsEncoder

Select provides a mock function with given fields: _a0

type RequestConfigRenderer

type RequestConfigRenderer struct {
	mock.Mock
}

RequestConfigRenderer is an autogenerated mock type for the RequestConfigRenderer type

func NewRequestConfigRenderer added in v1.14.1

func NewRequestConfigRenderer(t interface {
	mock.TestingT
	Cleanup(func())
}) *RequestConfigRenderer

NewRequestConfigRenderer creates a new instance of RequestConfigRenderer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RequestConfigRenderer) RenderRequestConfig

func (_m *RequestConfigRenderer) RenderRequestConfig() api.RequestConfig

RenderRequestConfig provides a mock function with given fields:

type TimeoutSemaphoreInterface

type TimeoutSemaphoreInterface struct {
	mock.Mock
}

TimeoutSemaphoreInterface is an autogenerated mock type for the TimeoutSemaphoreInterface type

func NewTimeoutSemaphoreInterface added in v1.14.1

func NewTimeoutSemaphoreInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *TimeoutSemaphoreInterface

NewTimeoutSemaphoreInterface creates a new instance of TimeoutSemaphoreInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TimeoutSemaphoreInterface) Acquire

Acquire provides a mock function with given fields: ctx

func (*TimeoutSemaphoreInterface) Release

func (_m *TimeoutSemaphoreInterface) Release(ctx context.Context)

Release provides a mock function with given fields: ctx

func (*TimeoutSemaphoreInterface) SetLogger

SetLogger provides a mock function with given fields: logger

type Traceable

type Traceable struct {
	mock.Mock
}

Traceable is an autogenerated mock type for the Traceable type

func NewTraceable added in v1.14.1

func NewTraceable(t interface {
	mock.TestingT
	Cleanup(func())
}) *Traceable

NewTraceable creates a new instance of Traceable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Traceable) SetTraceID

func (_m *Traceable) SetTraceID(ctx context.Context, traceID string) context.Context

SetTraceID provides a mock function with given fields: ctx, traceID

func (*Traceable) TraceID

func (_m *Traceable) TraceID(ctx context.Context) string

TraceID provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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