kubernetesk8s.io/kubernetes/pkg/kubelet/cadvisor/testing Index | Files

package testing

import "k8s.io/kubernetes/pkg/kubelet/cadvisor/testing"

Package testing is a generated GoMock package.

Index

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

func (c *Fake) Start() error

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

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

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 any) *gomock.Call

ContainerInfoV2 indicates an expected call of ContainerInfoV2.

func (*MockInterfaceMockRecorder) GetDirFsInfo

func (mr *MockInterfaceMockRecorder) GetDirFsInfo(path any) *gomock.Call

GetDirFsInfo indicates an expected call of GetDirFsInfo.

func (*MockInterfaceMockRecorder) GetRequestedContainersInfo

func (mr *MockInterfaceMockRecorder) GetRequestedContainersInfo(containerName, options any) *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.31.0-alpha.1
Published
Jun 12, 2024
Platform
js/wasm
Imports
5 packages
Last checked
19 minutes ago

Tools for package owners.