package testing
import "k8s.io/kubernetes/pkg/kubelet/cadvisor/testing"
Package testing is a generated GoMock package.
Index ¶
- Constants
- type Fake
- func (c *Fake) ContainerFsInfo() (cadvisorapiv2.FsInfo, error)
- func (c *Fake) ContainerInfoV2(name string, options cadvisorapiv2.RequestOptions) (map[string]cadvisorapiv2.ContainerInfo, error)
- func (c *Fake) GetDirFsInfo(path string) (cadvisorapiv2.FsInfo, error)
- func (c *Fake) GetRequestedContainersInfo(containerName string, options cadvisorapiv2.RequestOptions) (map[string]*cadvisorapi.ContainerInfo, error)
- func (c *Fake) ImagesFsInfo() (cadvisorapiv2.FsInfo, error)
- func (c *Fake) MachineInfo() (*cadvisorapi.MachineInfo, error)
- func (c *Fake) RootFsInfo() (cadvisorapiv2.FsInfo, error)
- func (c *Fake) Start() error
- func (c *Fake) VersionInfo() (*cadvisorapi.VersionInfo, error)
- type MockImageFsInfoProvider
- func NewMockImageFsInfoProvider(ctrl *gomock.Controller) *MockImageFsInfoProvider
- func (m *MockImageFsInfoProvider) ContainerFsInfoLabel() (string, error)
- func (m *MockImageFsInfoProvider) EXPECT() *MockImageFsInfoProviderMockRecorder
- func (m *MockImageFsInfoProvider) ImageFsInfoLabel() (string, error)
- type MockImageFsInfoProviderMockRecorder
- func (mr *MockImageFsInfoProviderMockRecorder) ContainerFsInfoLabel() *gomock.Call
- func (mr *MockImageFsInfoProviderMockRecorder) ImageFsInfoLabel() *gomock.Call
- type MockInterface
- func NewMockInterface(ctrl *gomock.Controller) *MockInterface
- func (m *MockInterface) ContainerFsInfo() (v2.FsInfo, error)
- func (m *MockInterface) ContainerInfoV2(name string, options v2.RequestOptions) (map[string]v2.ContainerInfo, error)
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) GetDirFsInfo(path string) (v2.FsInfo, error)
- func (m *MockInterface) GetRequestedContainersInfo(containerName string, options v2.RequestOptions) (map[string]*v1.ContainerInfo, error)
- func (m *MockInterface) ImagesFsInfo() (v2.FsInfo, error)
- func (m *MockInterface) MachineInfo() (*v1.MachineInfo, error)
- func (m *MockInterface) RootFsInfo() (v2.FsInfo, error)
- func (m *MockInterface) Start() error
- func (m *MockInterface) VersionInfo() (*v1.VersionInfo, error)
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) ContainerFsInfo() *gomock.Call
- func (mr *MockInterfaceMockRecorder) ContainerInfoV2(name, options interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetDirFsInfo(path interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetRequestedContainersInfo(containerName, options interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ImagesFsInfo() *gomock.Call
- func (mr *MockInterfaceMockRecorder) MachineInfo() *gomock.Call
- func (mr *MockInterfaceMockRecorder) RootFsInfo() *gomock.Call
- func (mr *MockInterfaceMockRecorder) Start() *gomock.Call
- func (mr *MockInterfaceMockRecorder) VersionInfo() *gomock.Call
Constants ¶
const ( // FakeKernelVersion is a fake kernel version for testing. FakeKernelVersion = "3.16.0-0.bpo.4-amd64" // FakeContainerOSVersion is a fake OS version for testing. FakeContainerOSVersion = "Debian GNU/Linux 7 (wheezy)" )
Types ¶
type Fake ¶
type Fake struct { NodeName string }
Fake cadvisor.Interface implementation.
func (*Fake) ContainerFsInfo ¶
func (c *Fake) ContainerFsInfo() (cadvisorapiv2.FsInfo, error)
ContainerFsInfo is a fake implementation of Interface.ContainerFsInfo.
func (*Fake) ContainerInfoV2 ¶
func (c *Fake) ContainerInfoV2(name string, options cadvisorapiv2.RequestOptions) (map[string]cadvisorapiv2.ContainerInfo, error)
ContainerInfoV2 is a fake implementation of Interface.ContainerInfoV2.
func (*Fake) GetDirFsInfo ¶
func (c *Fake) GetDirFsInfo(path string) (cadvisorapiv2.FsInfo, error)
GetDirFsInfo is a fake implementation of Interface.GetDirFsInfo.
func (*Fake) GetRequestedContainersInfo ¶
func (c *Fake) GetRequestedContainersInfo(containerName string, options cadvisorapiv2.RequestOptions) (map[string]*cadvisorapi.ContainerInfo, error)
GetRequestedContainersInfo is a fake implementation if Interface.GetRequestedContainersInfo
func (*Fake) ImagesFsInfo ¶
func (c *Fake) ImagesFsInfo() (cadvisorapiv2.FsInfo, error)
ImagesFsInfo is a fake implementation of Interface.ImagesFsInfo.
func (*Fake) MachineInfo ¶
func (c *Fake) MachineInfo() (*cadvisorapi.MachineInfo, error)
MachineInfo is a fake implementation of Interface.MachineInfo.
func (*Fake) RootFsInfo ¶
func (c *Fake) RootFsInfo() (cadvisorapiv2.FsInfo, error)
RootFsInfo is a fake implementation of Interface.RootFsInfo.
func (*Fake) Start ¶
Start is a fake implementation of Interface.Start.
func (*Fake) VersionInfo ¶
func (c *Fake) VersionInfo() (*cadvisorapi.VersionInfo, error)
VersionInfo is a fake implementation of Interface.VersionInfo.
type MockImageFsInfoProvider ¶
type MockImageFsInfoProvider struct {
// contains filtered or unexported fields
}
MockImageFsInfoProvider is a mock of ImageFsInfoProvider interface.
func NewMockImageFsInfoProvider ¶
func NewMockImageFsInfoProvider(ctrl *gomock.Controller) *MockImageFsInfoProvider
NewMockImageFsInfoProvider creates a new mock instance.
func (*MockImageFsInfoProvider) ContainerFsInfoLabel ¶
func (m *MockImageFsInfoProvider) ContainerFsInfoLabel() (string, error)
ContainerFsInfoLabel mocks base method.
func (*MockImageFsInfoProvider) EXPECT ¶
func (m *MockImageFsInfoProvider) EXPECT() *MockImageFsInfoProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockImageFsInfoProvider) ImageFsInfoLabel ¶
func (m *MockImageFsInfoProvider) ImageFsInfoLabel() (string, error)
ImageFsInfoLabel mocks base method.
type MockImageFsInfoProviderMockRecorder ¶
type MockImageFsInfoProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockImageFsInfoProviderMockRecorder is the mock recorder for MockImageFsInfoProvider.
func (*MockImageFsInfoProviderMockRecorder) ContainerFsInfoLabel ¶
func (mr *MockImageFsInfoProviderMockRecorder) ContainerFsInfoLabel() *gomock.Call
ContainerFsInfoLabel indicates an expected call of ContainerFsInfoLabel.
func (*MockImageFsInfoProviderMockRecorder) ImageFsInfoLabel ¶
func (mr *MockImageFsInfoProviderMockRecorder) ImageFsInfoLabel() *gomock.Call
ImageFsInfoLabel indicates an expected call of ImageFsInfoLabel.
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) ContainerFsInfo ¶
func (m *MockInterface) ContainerFsInfo() (v2.FsInfo, error)
ContainerFsInfo mocks base method.
func (*MockInterface) ContainerInfoV2 ¶
func (m *MockInterface) ContainerInfoV2(name string, options v2.RequestOptions) (map[string]v2.ContainerInfo, error)
ContainerInfoV2 mocks base method.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) GetDirFsInfo ¶
func (m *MockInterface) GetDirFsInfo(path string) (v2.FsInfo, error)
GetDirFsInfo mocks base method.
func (*MockInterface) GetRequestedContainersInfo ¶
func (m *MockInterface) GetRequestedContainersInfo(containerName string, options v2.RequestOptions) (map[string]*v1.ContainerInfo, error)
GetRequestedContainersInfo mocks base method.
func (*MockInterface) ImagesFsInfo ¶
func (m *MockInterface) ImagesFsInfo() (v2.FsInfo, error)
ImagesFsInfo mocks base method.
func (*MockInterface) MachineInfo ¶
func (m *MockInterface) MachineInfo() (*v1.MachineInfo, error)
MachineInfo mocks base method.
func (*MockInterface) RootFsInfo ¶
func (m *MockInterface) RootFsInfo() (v2.FsInfo, error)
RootFsInfo mocks base method.
func (*MockInterface) Start ¶
func (m *MockInterface) Start() error
Start mocks base method.
func (*MockInterface) VersionInfo ¶
func (m *MockInterface) VersionInfo() (*v1.VersionInfo, error)
VersionInfo mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) ContainerFsInfo ¶
func (mr *MockInterfaceMockRecorder) ContainerFsInfo() *gomock.Call
ContainerFsInfo indicates an expected call of ContainerFsInfo.
func (*MockInterfaceMockRecorder) ContainerInfoV2 ¶
func (mr *MockInterfaceMockRecorder) ContainerInfoV2(name, options interface{}) *gomock.Call
ContainerInfoV2 indicates an expected call of ContainerInfoV2.
func (*MockInterfaceMockRecorder) GetDirFsInfo ¶
func (mr *MockInterfaceMockRecorder) GetDirFsInfo(path interface{}) *gomock.Call
GetDirFsInfo indicates an expected call of GetDirFsInfo.
func (*MockInterfaceMockRecorder) GetRequestedContainersInfo ¶
func (mr *MockInterfaceMockRecorder) GetRequestedContainersInfo(containerName, options interface{}) *gomock.Call
GetRequestedContainersInfo indicates an expected call of GetRequestedContainersInfo.
func (*MockInterfaceMockRecorder) ImagesFsInfo ¶
func (mr *MockInterfaceMockRecorder) ImagesFsInfo() *gomock.Call
ImagesFsInfo indicates an expected call of ImagesFsInfo.
func (*MockInterfaceMockRecorder) MachineInfo ¶
func (mr *MockInterfaceMockRecorder) MachineInfo() *gomock.Call
MachineInfo indicates an expected call of MachineInfo.
func (*MockInterfaceMockRecorder) RootFsInfo ¶
func (mr *MockInterfaceMockRecorder) RootFsInfo() *gomock.Call
RootFsInfo indicates an expected call of RootFsInfo.
func (*MockInterfaceMockRecorder) Start ¶
func (mr *MockInterfaceMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockInterfaceMockRecorder) VersionInfo ¶
func (mr *MockInterfaceMockRecorder) VersionInfo() *gomock.Call
VersionInfo indicates an expected call of VersionInfo.
Source Files ¶
cadvisor_fake.go cadvisor_mock.go
- Version
- v1.30.5
- Published
- Sep 12, 2024
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 11 seconds ago –
Tools for package owners.