
See https://github.com/golang/mock#gomock: golang/mock is no longer maintained, and should be replaced by go.uber.org/mock. This allows golang/mock to be dropped from the status and vendored fields in unwanted-dependencies.json. Signed-off-by: Stephen Kitt <skitt@redhat.com>
245 lines
8.4 KiB
Go
245 lines
8.4 KiB
Go
/*
|
|
Copyright The Kubernetes Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: types.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -source=types.go -destination=testing/cadvisor_mock.go -package=testing Interface
|
|
//
|
|
|
|
// Package testing is a generated GoMock package.
|
|
package testing
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
v1 "github.com/google/cadvisor/info/v1"
|
|
v2 "github.com/google/cadvisor/info/v2"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockInterface is a mock of Interface interface.
|
|
type MockInterface struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockInterfaceMockRecorder
|
|
}
|
|
|
|
// MockInterfaceMockRecorder is the mock recorder for MockInterface.
|
|
type MockInterfaceMockRecorder struct {
|
|
mock *MockInterface
|
|
}
|
|
|
|
// NewMockInterface creates a new mock instance.
|
|
func NewMockInterface(ctrl *gomock.Controller) *MockInterface {
|
|
mock := &MockInterface{ctrl: ctrl}
|
|
mock.recorder = &MockInterfaceMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// ContainerFsInfo mocks base method.
|
|
func (m *MockInterface) ContainerFsInfo() (v2.FsInfo, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ContainerFsInfo")
|
|
ret0, _ := ret[0].(v2.FsInfo)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ContainerFsInfo indicates an expected call of ContainerFsInfo.
|
|
func (mr *MockInterfaceMockRecorder) ContainerFsInfo() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerFsInfo", reflect.TypeOf((*MockInterface)(nil).ContainerFsInfo))
|
|
}
|
|
|
|
// ContainerInfoV2 mocks base method.
|
|
func (m *MockInterface) ContainerInfoV2(name string, options v2.RequestOptions) (map[string]v2.ContainerInfo, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ContainerInfoV2", name, options)
|
|
ret0, _ := ret[0].(map[string]v2.ContainerInfo)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ContainerInfoV2 indicates an expected call of ContainerInfoV2.
|
|
func (mr *MockInterfaceMockRecorder) ContainerInfoV2(name, options any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerInfoV2", reflect.TypeOf((*MockInterface)(nil).ContainerInfoV2), name, options)
|
|
}
|
|
|
|
// GetDirFsInfo mocks base method.
|
|
func (m *MockInterface) GetDirFsInfo(path string) (v2.FsInfo, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetDirFsInfo", path)
|
|
ret0, _ := ret[0].(v2.FsInfo)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetDirFsInfo indicates an expected call of GetDirFsInfo.
|
|
func (mr *MockInterfaceMockRecorder) GetDirFsInfo(path any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDirFsInfo", reflect.TypeOf((*MockInterface)(nil).GetDirFsInfo), path)
|
|
}
|
|
|
|
// GetRequestedContainersInfo mocks base method.
|
|
func (m *MockInterface) GetRequestedContainersInfo(containerName string, options v2.RequestOptions) (map[string]*v1.ContainerInfo, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetRequestedContainersInfo", containerName, options)
|
|
ret0, _ := ret[0].(map[string]*v1.ContainerInfo)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetRequestedContainersInfo indicates an expected call of GetRequestedContainersInfo.
|
|
func (mr *MockInterfaceMockRecorder) GetRequestedContainersInfo(containerName, options any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRequestedContainersInfo", reflect.TypeOf((*MockInterface)(nil).GetRequestedContainersInfo), containerName, options)
|
|
}
|
|
|
|
// ImagesFsInfo mocks base method.
|
|
func (m *MockInterface) ImagesFsInfo() (v2.FsInfo, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ImagesFsInfo")
|
|
ret0, _ := ret[0].(v2.FsInfo)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ImagesFsInfo indicates an expected call of ImagesFsInfo.
|
|
func (mr *MockInterfaceMockRecorder) ImagesFsInfo() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImagesFsInfo", reflect.TypeOf((*MockInterface)(nil).ImagesFsInfo))
|
|
}
|
|
|
|
// MachineInfo mocks base method.
|
|
func (m *MockInterface) MachineInfo() (*v1.MachineInfo, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "MachineInfo")
|
|
ret0, _ := ret[0].(*v1.MachineInfo)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// MachineInfo indicates an expected call of MachineInfo.
|
|
func (mr *MockInterfaceMockRecorder) MachineInfo() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MachineInfo", reflect.TypeOf((*MockInterface)(nil).MachineInfo))
|
|
}
|
|
|
|
// RootFsInfo mocks base method.
|
|
func (m *MockInterface) RootFsInfo() (v2.FsInfo, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "RootFsInfo")
|
|
ret0, _ := ret[0].(v2.FsInfo)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// RootFsInfo indicates an expected call of RootFsInfo.
|
|
func (mr *MockInterfaceMockRecorder) RootFsInfo() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RootFsInfo", reflect.TypeOf((*MockInterface)(nil).RootFsInfo))
|
|
}
|
|
|
|
// Start mocks base method.
|
|
func (m *MockInterface) Start() error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Start")
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Start indicates an expected call of Start.
|
|
func (mr *MockInterfaceMockRecorder) Start() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockInterface)(nil).Start))
|
|
}
|
|
|
|
// VersionInfo mocks base method.
|
|
func (m *MockInterface) VersionInfo() (*v1.VersionInfo, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "VersionInfo")
|
|
ret0, _ := ret[0].(*v1.VersionInfo)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// VersionInfo indicates an expected call of VersionInfo.
|
|
func (mr *MockInterfaceMockRecorder) VersionInfo() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VersionInfo", reflect.TypeOf((*MockInterface)(nil).VersionInfo))
|
|
}
|
|
|
|
// MockImageFsInfoProvider is a mock of ImageFsInfoProvider interface.
|
|
type MockImageFsInfoProvider struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockImageFsInfoProviderMockRecorder
|
|
}
|
|
|
|
// MockImageFsInfoProviderMockRecorder is the mock recorder for MockImageFsInfoProvider.
|
|
type MockImageFsInfoProviderMockRecorder struct {
|
|
mock *MockImageFsInfoProvider
|
|
}
|
|
|
|
// NewMockImageFsInfoProvider creates a new mock instance.
|
|
func NewMockImageFsInfoProvider(ctrl *gomock.Controller) *MockImageFsInfoProvider {
|
|
mock := &MockImageFsInfoProvider{ctrl: ctrl}
|
|
mock.recorder = &MockImageFsInfoProviderMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockImageFsInfoProvider) EXPECT() *MockImageFsInfoProviderMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// ContainerFsInfoLabel mocks base method.
|
|
func (m *MockImageFsInfoProvider) ContainerFsInfoLabel() (string, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ContainerFsInfoLabel")
|
|
ret0, _ := ret[0].(string)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ContainerFsInfoLabel indicates an expected call of ContainerFsInfoLabel.
|
|
func (mr *MockImageFsInfoProviderMockRecorder) ContainerFsInfoLabel() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerFsInfoLabel", reflect.TypeOf((*MockImageFsInfoProvider)(nil).ContainerFsInfoLabel))
|
|
}
|
|
|
|
// ImageFsInfoLabel mocks base method.
|
|
func (m *MockImageFsInfoProvider) ImageFsInfoLabel() (string, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ImageFsInfoLabel")
|
|
ret0, _ := ret[0].(string)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ImageFsInfoLabel indicates an expected call of ImageFsInfoLabel.
|
|
func (mr *MockImageFsInfoProviderMockRecorder) ImageFsInfoLabel() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageFsInfoLabel", reflect.TypeOf((*MockImageFsInfoProvider)(nil).ImageFsInfoLabel))
|
|
}
|