Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockFloat64UpDownCounterCreater
- type MockFloat64UpDownCounterCreaterMockRecorder
- type MockInstrumentProvider
- func (m *MockInstrumentProvider) Counter(arg0 string, arg1 ...instrument.Option) (asyncfloat64.Counter, error)
- func (m *MockInstrumentProvider) EXPECT() *MockInstrumentProviderMockRecorder
- func (m *MockInstrumentProvider) Gauge(arg0 string, arg1 ...instrument.Option) (asyncfloat64.Gauge, error)
- func (m *MockInstrumentProvider) UpDownCounter(arg0 string, arg1 ...instrument.Option) (asyncfloat64.UpDownCounter, error)
- type MockInstrumentProviderMockRecorder
- func (mr *MockInstrumentProviderMockRecorder) Counter(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInstrumentProviderMockRecorder) Gauge(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockInstrumentProviderMockRecorder) UpDownCounter(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- type MockLeaderElector
- type MockLeaderElectorMockRecorder
- type MockMetricsRecorder
- func (m *MockMetricsRecorder) EXPECT() *MockMetricsRecorderMockRecorder
- func (m *MockMetricsRecorder) Record(arg0 context.Context, arg1 interface{}, ...) error
- func (m *MockMetricsRecorder) RecordArraySpaceMetrics(arg0 context.Context, arg1, arg2 string, arg3, arg4 int64) error
- func (m *MockMetricsRecorder) RecordFileSystemMetrics(arg0 context.Context, arg1 interface{}, ...) error
- func (m *MockMetricsRecorder) RecordSpaceMetrics(arg0 context.Context, arg1 interface{}, arg2, arg3 int64) error
- func (m *MockMetricsRecorder) RecordStorageClassSpaceMetrics(arg0 context.Context, arg1, arg2 string, arg3, arg4 int64) error
- type MockMetricsRecorderMockRecorder
- func (mr *MockMetricsRecorderMockRecorder) Record(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10 interface{}) *gomock.Call
- func (mr *MockMetricsRecorderMockRecorder) RecordArraySpaceMetrics(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockMetricsRecorderMockRecorder) RecordFileSystemMetrics(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10 interface{}) *gomock.Call
- func (mr *MockMetricsRecorderMockRecorder) RecordSpaceMetrics(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockMetricsRecorderMockRecorder) RecordStorageClassSpaceMetrics(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- type MockPowerStoreClient
- func (m *MockPowerStoreClient) EXPECT() *MockPowerStoreClientMockRecorder
- func (m *MockPowerStoreClient) GetFS(arg0 context.Context, arg1 string) (gopowerstore.FileSystem, error)
- func (m *MockPowerStoreClient) PerformanceMetricsByFileSystem(arg0 context.Context, arg1 string, arg2 gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsByFileSystemResponse, error)
- func (m *MockPowerStoreClient) PerformanceMetricsByVolume(arg0 context.Context, arg1 string, arg2 gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsByVolumeResponse, error)
- func (m *MockPowerStoreClient) SpaceMetricsByVolume(arg0 context.Context, arg1 string, arg2 gopowerstore.MetricsIntervalEnum) ([]gopowerstore.SpaceMetricsByVolumeResponse, error)
- func (m *MockPowerStoreClient) VolumeMirrorTransferRate(arg0 context.Context, arg1 string) ([]gopowerstore.VolumeMirrorTransferRateResponse, error)
- type MockPowerStoreClientMockRecorder
- func (mr *MockPowerStoreClientMockRecorder) GetFS(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockPowerStoreClientMockRecorder) PerformanceMetricsByFileSystem(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockPowerStoreClientMockRecorder) PerformanceMetricsByVolume(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockPowerStoreClientMockRecorder) SpaceMetricsByVolume(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockPowerStoreClientMockRecorder) VolumeMirrorTransferRate(arg0, arg1 interface{}) *gomock.Call
- type MockService
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) ExportArraySpaceMetrics(arg0 context.Context)
- func (m *MockService) ExportFileSystemStatistics(arg0 context.Context)
- func (m *MockService) ExportSpaceVolumeMetrics(arg0 context.Context)
- func (m *MockService) ExportVolumeStatistics(arg0 context.Context)
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) ExportArraySpaceMetrics(arg0 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) ExportFileSystemStatistics(arg0 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) ExportSpaceVolumeMetrics(arg0 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) ExportVolumeStatistics(arg0 interface{}) *gomock.Call
- type MockVolumeFinder
- type MockVolumeFinderMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFloat64UpDownCounterCreater ¶
type MockFloat64UpDownCounterCreater struct {
// contains filtered or unexported fields
}
MockFloat64UpDownCounterCreater is a mock of Float64UpDownCounterCreater interface.
func NewMockFloat64UpDownCounterCreater ¶
func NewMockFloat64UpDownCounterCreater(ctrl *gomock.Controller) *MockFloat64UpDownCounterCreater
NewMockFloat64UpDownCounterCreater creates a new mock instance.
func (*MockFloat64UpDownCounterCreater) AsyncFloat64 ¶ added in v1.3.0
func (m *MockFloat64UpDownCounterCreater) AsyncFloat64() asyncfloat64.InstrumentProvider
AsyncFloat64 mocks base method.
func (*MockFloat64UpDownCounterCreater) EXPECT ¶
func (m *MockFloat64UpDownCounterCreater) EXPECT() *MockFloat64UpDownCounterCreaterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockFloat64UpDownCounterCreaterMockRecorder ¶
type MockFloat64UpDownCounterCreaterMockRecorder struct {
// contains filtered or unexported fields
}
MockFloat64UpDownCounterCreaterMockRecorder is the mock recorder for MockFloat64UpDownCounterCreater.
func (*MockFloat64UpDownCounterCreaterMockRecorder) AsyncFloat64 ¶ added in v1.3.0
func (mr *MockFloat64UpDownCounterCreaterMockRecorder) AsyncFloat64() *gomock.Call
AsyncFloat64 indicates an expected call of AsyncFloat64.
type MockInstrumentProvider ¶ added in v1.3.0
type MockInstrumentProvider struct {
// contains filtered or unexported fields
}
MockInstrumentProvider is a mock of InstrumentProvider interface.
func NewMockInstrumentProvider ¶ added in v1.3.0
func NewMockInstrumentProvider(ctrl *gomock.Controller) *MockInstrumentProvider
NewMockInstrumentProvider creates a new mock instance.
func (*MockInstrumentProvider) Counter ¶ added in v1.3.0
func (m *MockInstrumentProvider) Counter(arg0 string, arg1 ...instrument.Option) (asyncfloat64.Counter, error)
Counter mocks base method.
func (*MockInstrumentProvider) EXPECT ¶ added in v1.3.0
func (m *MockInstrumentProvider) EXPECT() *MockInstrumentProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInstrumentProvider) Gauge ¶ added in v1.3.0
func (m *MockInstrumentProvider) Gauge(arg0 string, arg1 ...instrument.Option) (asyncfloat64.Gauge, error)
Gauge mocks base method.
func (*MockInstrumentProvider) UpDownCounter ¶ added in v1.3.0
func (m *MockInstrumentProvider) UpDownCounter(arg0 string, arg1 ...instrument.Option) (asyncfloat64.UpDownCounter, error)
UpDownCounter mocks base method.
type MockInstrumentProviderMockRecorder ¶ added in v1.3.0
type MockInstrumentProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockInstrumentProviderMockRecorder is the mock recorder for MockInstrumentProvider.
func (*MockInstrumentProviderMockRecorder) Counter ¶ added in v1.3.0
func (mr *MockInstrumentProviderMockRecorder) Counter(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Counter indicates an expected call of Counter.
func (*MockInstrumentProviderMockRecorder) Gauge ¶ added in v1.3.0
func (mr *MockInstrumentProviderMockRecorder) Gauge(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Gauge indicates an expected call of Gauge.
func (*MockInstrumentProviderMockRecorder) UpDownCounter ¶ added in v1.3.0
func (mr *MockInstrumentProviderMockRecorder) UpDownCounter(arg0 interface{}, arg1 ...interface{}) *gomock.Call
UpDownCounter indicates an expected call of UpDownCounter.
type MockLeaderElector ¶
type MockLeaderElector struct {
// contains filtered or unexported fields
}
MockLeaderElector is a mock of LeaderElector interface.
func NewMockLeaderElector ¶
func NewMockLeaderElector(ctrl *gomock.Controller) *MockLeaderElector
NewMockLeaderElector creates a new mock instance.
func (*MockLeaderElector) EXPECT ¶
func (m *MockLeaderElector) EXPECT() *MockLeaderElectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLeaderElector) InitLeaderElection ¶
func (m *MockLeaderElector) InitLeaderElection(arg0, arg1 string) error
InitLeaderElection mocks base method.
func (*MockLeaderElector) IsLeader ¶
func (m *MockLeaderElector) IsLeader() bool
IsLeader mocks base method.
type MockLeaderElectorMockRecorder ¶
type MockLeaderElectorMockRecorder struct {
// contains filtered or unexported fields
}
MockLeaderElectorMockRecorder is the mock recorder for MockLeaderElector.
func (*MockLeaderElectorMockRecorder) InitLeaderElection ¶
func (mr *MockLeaderElectorMockRecorder) InitLeaderElection(arg0, arg1 interface{}) *gomock.Call
InitLeaderElection indicates an expected call of InitLeaderElection.
func (*MockLeaderElectorMockRecorder) IsLeader ¶
func (mr *MockLeaderElectorMockRecorder) IsLeader() *gomock.Call
IsLeader indicates an expected call of IsLeader.
type MockMetricsRecorder ¶
type MockMetricsRecorder struct {
// contains filtered or unexported fields
}
MockMetricsRecorder is a mock of MetricsRecorder interface.
func NewMockMetricsRecorder ¶
func NewMockMetricsRecorder(ctrl *gomock.Controller) *MockMetricsRecorder
NewMockMetricsRecorder creates a new mock instance.
func (*MockMetricsRecorder) EXPECT ¶
func (m *MockMetricsRecorder) EXPECT() *MockMetricsRecorderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMetricsRecorder) Record ¶
func (m *MockMetricsRecorder) Record(arg0 context.Context, arg1 interface{}, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10 float32) error
Record mocks base method.
func (*MockMetricsRecorder) RecordArraySpaceMetrics ¶
func (m *MockMetricsRecorder) RecordArraySpaceMetrics(arg0 context.Context, arg1, arg2 string, arg3, arg4 int64) error
RecordArraySpaceMetrics mocks base method.
func (*MockMetricsRecorder) RecordFileSystemMetrics ¶
func (m *MockMetricsRecorder) RecordFileSystemMetrics(arg0 context.Context, arg1 interface{}, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10 float32) error
RecordFileSystemMetrics mocks base method.
func (*MockMetricsRecorder) RecordSpaceMetrics ¶
func (m *MockMetricsRecorder) RecordSpaceMetrics(arg0 context.Context, arg1 interface{}, arg2, arg3 int64) error
RecordSpaceMetrics mocks base method.
func (*MockMetricsRecorder) RecordStorageClassSpaceMetrics ¶
func (m *MockMetricsRecorder) RecordStorageClassSpaceMetrics(arg0 context.Context, arg1, arg2 string, arg3, arg4 int64) error
RecordStorageClassSpaceMetrics mocks base method.
type MockMetricsRecorderMockRecorder ¶
type MockMetricsRecorderMockRecorder struct {
// contains filtered or unexported fields
}
MockMetricsRecorderMockRecorder is the mock recorder for MockMetricsRecorder.
func (*MockMetricsRecorderMockRecorder) Record ¶
func (mr *MockMetricsRecorderMockRecorder) Record(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10 interface{}) *gomock.Call
Record indicates an expected call of Record.
func (*MockMetricsRecorderMockRecorder) RecordArraySpaceMetrics ¶
func (mr *MockMetricsRecorderMockRecorder) RecordArraySpaceMetrics(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
RecordArraySpaceMetrics indicates an expected call of RecordArraySpaceMetrics.
func (*MockMetricsRecorderMockRecorder) RecordFileSystemMetrics ¶
func (mr *MockMetricsRecorderMockRecorder) RecordFileSystemMetrics(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10 interface{}) *gomock.Call
RecordFileSystemMetrics indicates an expected call of RecordFileSystemMetrics.
func (*MockMetricsRecorderMockRecorder) RecordSpaceMetrics ¶
func (mr *MockMetricsRecorderMockRecorder) RecordSpaceMetrics(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
RecordSpaceMetrics indicates an expected call of RecordSpaceMetrics.
func (*MockMetricsRecorderMockRecorder) RecordStorageClassSpaceMetrics ¶
func (mr *MockMetricsRecorderMockRecorder) RecordStorageClassSpaceMetrics(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
RecordStorageClassSpaceMetrics indicates an expected call of RecordStorageClassSpaceMetrics.
type MockPowerStoreClient ¶
type MockPowerStoreClient struct {
// contains filtered or unexported fields
}
MockPowerStoreClient is a mock of PowerStoreClient interface.
func NewMockPowerStoreClient ¶
func NewMockPowerStoreClient(ctrl *gomock.Controller) *MockPowerStoreClient
NewMockPowerStoreClient creates a new mock instance.
func (*MockPowerStoreClient) EXPECT ¶
func (m *MockPowerStoreClient) EXPECT() *MockPowerStoreClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPowerStoreClient) GetFS ¶
func (m *MockPowerStoreClient) GetFS(arg0 context.Context, arg1 string) (gopowerstore.FileSystem, error)
GetFS mocks base method.
func (*MockPowerStoreClient) PerformanceMetricsByFileSystem ¶
func (m *MockPowerStoreClient) PerformanceMetricsByFileSystem(arg0 context.Context, arg1 string, arg2 gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsByFileSystemResponse, error)
PerformanceMetricsByFileSystem mocks base method.
func (*MockPowerStoreClient) PerformanceMetricsByVolume ¶
func (m *MockPowerStoreClient) PerformanceMetricsByVolume(arg0 context.Context, arg1 string, arg2 gopowerstore.MetricsIntervalEnum) ([]gopowerstore.PerformanceMetricsByVolumeResponse, error)
PerformanceMetricsByVolume mocks base method.
func (*MockPowerStoreClient) SpaceMetricsByVolume ¶
func (m *MockPowerStoreClient) SpaceMetricsByVolume(arg0 context.Context, arg1 string, arg2 gopowerstore.MetricsIntervalEnum) ([]gopowerstore.SpaceMetricsByVolumeResponse, error)
SpaceMetricsByVolume mocks base method.
func (*MockPowerStoreClient) VolumeMirrorTransferRate ¶ added in v1.10.0
func (m *MockPowerStoreClient) VolumeMirrorTransferRate(arg0 context.Context, arg1 string) ([]gopowerstore.VolumeMirrorTransferRateResponse, error)
VolumeMirrorTransferRate mocks base method.
type MockPowerStoreClientMockRecorder ¶
type MockPowerStoreClientMockRecorder struct {
// contains filtered or unexported fields
}
MockPowerStoreClientMockRecorder is the mock recorder for MockPowerStoreClient.
func (*MockPowerStoreClientMockRecorder) GetFS ¶
func (mr *MockPowerStoreClientMockRecorder) GetFS(arg0, arg1 interface{}) *gomock.Call
GetFS indicates an expected call of GetFS.
func (*MockPowerStoreClientMockRecorder) PerformanceMetricsByFileSystem ¶
func (mr *MockPowerStoreClientMockRecorder) PerformanceMetricsByFileSystem(arg0, arg1, arg2 interface{}) *gomock.Call
PerformanceMetricsByFileSystem indicates an expected call of PerformanceMetricsByFileSystem.
func (*MockPowerStoreClientMockRecorder) PerformanceMetricsByVolume ¶
func (mr *MockPowerStoreClientMockRecorder) PerformanceMetricsByVolume(arg0, arg1, arg2 interface{}) *gomock.Call
PerformanceMetricsByVolume indicates an expected call of PerformanceMetricsByVolume.
func (*MockPowerStoreClientMockRecorder) SpaceMetricsByVolume ¶
func (mr *MockPowerStoreClientMockRecorder) SpaceMetricsByVolume(arg0, arg1, arg2 interface{}) *gomock.Call
SpaceMetricsByVolume indicates an expected call of SpaceMetricsByVolume.
func (*MockPowerStoreClientMockRecorder) VolumeMirrorTransferRate ¶ added in v1.10.0
func (mr *MockPowerStoreClientMockRecorder) VolumeMirrorTransferRate(arg0, arg1 interface{}) *gomock.Call
VolumeMirrorTransferRate indicates an expected call of VolumeMirrorTransferRate.
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) ExportArraySpaceMetrics ¶
func (m *MockService) ExportArraySpaceMetrics(arg0 context.Context)
ExportArraySpaceMetrics mocks base method.
func (*MockService) ExportFileSystemStatistics ¶
func (m *MockService) ExportFileSystemStatistics(arg0 context.Context)
ExportFileSystemStatistics mocks base method.
func (*MockService) ExportSpaceVolumeMetrics ¶
func (m *MockService) ExportSpaceVolumeMetrics(arg0 context.Context)
ExportSpaceVolumeMetrics mocks base method.
func (*MockService) ExportVolumeStatistics ¶
func (m *MockService) ExportVolumeStatistics(arg0 context.Context)
ExportVolumeStatistics mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) ExportArraySpaceMetrics ¶
func (mr *MockServiceMockRecorder) ExportArraySpaceMetrics(arg0 interface{}) *gomock.Call
ExportArraySpaceMetrics indicates an expected call of ExportArraySpaceMetrics.
func (*MockServiceMockRecorder) ExportFileSystemStatistics ¶
func (mr *MockServiceMockRecorder) ExportFileSystemStatistics(arg0 interface{}) *gomock.Call
ExportFileSystemStatistics indicates an expected call of ExportFileSystemStatistics.
func (*MockServiceMockRecorder) ExportSpaceVolumeMetrics ¶
func (mr *MockServiceMockRecorder) ExportSpaceVolumeMetrics(arg0 interface{}) *gomock.Call
ExportSpaceVolumeMetrics indicates an expected call of ExportSpaceVolumeMetrics.
func (*MockServiceMockRecorder) ExportVolumeStatistics ¶
func (mr *MockServiceMockRecorder) ExportVolumeStatistics(arg0 interface{}) *gomock.Call
ExportVolumeStatistics indicates an expected call of ExportVolumeStatistics.
type MockVolumeFinder ¶
type MockVolumeFinder struct {
// contains filtered or unexported fields
}
MockVolumeFinder is a mock of VolumeFinder interface.
func NewMockVolumeFinder ¶
func NewMockVolumeFinder(ctrl *gomock.Controller) *MockVolumeFinder
NewMockVolumeFinder creates a new mock instance.
func (*MockVolumeFinder) EXPECT ¶
func (m *MockVolumeFinder) EXPECT() *MockVolumeFinderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVolumeFinder) GetPersistentVolumes ¶
func (m *MockVolumeFinder) GetPersistentVolumes(arg0 context.Context) ([]k8s.VolumeInfo, error)
GetPersistentVolumes mocks base method.
type MockVolumeFinderMockRecorder ¶
type MockVolumeFinderMockRecorder struct {
// contains filtered or unexported fields
}
MockVolumeFinderMockRecorder is the mock recorder for MockVolumeFinder.
func (*MockVolumeFinderMockRecorder) GetPersistentVolumes ¶
func (mr *MockVolumeFinderMockRecorder) GetPersistentVolumes(arg0 interface{}) *gomock.Call
GetPersistentVolumes indicates an expected call of GetPersistentVolumes.