Documentation ¶
Overview ¶
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
- type MockImageFsInfoProviderMockRecorder
- type 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)" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fake ¶
type Fake struct {
NodeName string
}
Fake cadvisor.Interface implementation.
func (*Fake) ContainerFsInfo ¶ added in v1.29.0
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 ¶ added in v1.10.0
func (c *Fake) GetDirFsInfo(path string) (cadvisorapiv2.FsInfo, error)
GetDirFsInfo is a fake implementation of Interface.GetDirFsInfo.
func (*Fake) GetRequestedContainersInfo ¶ added in v1.19.0
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 ¶ added in v1.3.0
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) VersionInfo ¶
func (c *Fake) VersionInfo() (*cadvisorapi.VersionInfo, error)
VersionInfo is a fake implementation of Interface.VersionInfo.
type MockImageFsInfoProvider ¶ added in v1.23.0
type MockImageFsInfoProvider struct {
// contains filtered or unexported fields
}
MockImageFsInfoProvider is a mock of ImageFsInfoProvider interface.
func NewMockImageFsInfoProvider ¶ added in v1.23.0
func NewMockImageFsInfoProvider(ctrl *gomock.Controller) *MockImageFsInfoProvider
NewMockImageFsInfoProvider creates a new mock instance.
func (*MockImageFsInfoProvider) ContainerFsInfoLabel ¶ added in v1.29.0
func (m *MockImageFsInfoProvider) ContainerFsInfoLabel() (string, error)
ContainerFsInfoLabel mocks base method.
func (*MockImageFsInfoProvider) EXPECT ¶ added in v1.23.0
func (m *MockImageFsInfoProvider) EXPECT() *MockImageFsInfoProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockImageFsInfoProvider) ImageFsInfoLabel ¶ added in v1.23.0
func (m *MockImageFsInfoProvider) ImageFsInfoLabel() (string, error)
ImageFsInfoLabel mocks base method.
type MockImageFsInfoProviderMockRecorder ¶ added in v1.23.0
type MockImageFsInfoProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockImageFsInfoProviderMockRecorder is the mock recorder for MockImageFsInfoProvider.
func (*MockImageFsInfoProviderMockRecorder) ContainerFsInfoLabel ¶ added in v1.29.0
func (mr *MockImageFsInfoProviderMockRecorder) ContainerFsInfoLabel() *gomock.Call
ContainerFsInfoLabel indicates an expected call of ContainerFsInfoLabel.
func (*MockImageFsInfoProviderMockRecorder) ImageFsInfoLabel ¶ added in v1.23.0
func (mr *MockImageFsInfoProviderMockRecorder) ImageFsInfoLabel() *gomock.Call
ImageFsInfoLabel indicates an expected call of ImageFsInfoLabel.
type MockInterface ¶ added in v1.23.0
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶ added in v1.23.0
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) ContainerFsInfo ¶ added in v1.29.0
func (m *MockInterface) ContainerFsInfo() (v2.FsInfo, error)
ContainerFsInfo mocks base method.
func (*MockInterface) ContainerInfoV2 ¶ added in v1.23.0
func (m *MockInterface) ContainerInfoV2(name string, options v2.RequestOptions) (map[string]v2.ContainerInfo, error)
ContainerInfoV2 mocks base method.
func (*MockInterface) EXPECT ¶ added in v1.23.0
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) GetDirFsInfo ¶ added in v1.23.0
func (m *MockInterface) GetDirFsInfo(path string) (v2.FsInfo, error)
GetDirFsInfo mocks base method.
func (*MockInterface) GetRequestedContainersInfo ¶ added in v1.23.0
func (m *MockInterface) GetRequestedContainersInfo(containerName string, options v2.RequestOptions) (map[string]*v1.ContainerInfo, error)
GetRequestedContainersInfo mocks base method.
func (*MockInterface) ImagesFsInfo ¶ added in v1.23.0
func (m *MockInterface) ImagesFsInfo() (v2.FsInfo, error)
ImagesFsInfo mocks base method.
func (*MockInterface) MachineInfo ¶ added in v1.23.0
func (m *MockInterface) MachineInfo() (*v1.MachineInfo, error)
MachineInfo mocks base method.
func (*MockInterface) RootFsInfo ¶ added in v1.23.0
func (m *MockInterface) RootFsInfo() (v2.FsInfo, error)
RootFsInfo mocks base method.
func (*MockInterface) Start ¶ added in v1.23.0
func (m *MockInterface) Start() error
Start mocks base method.
func (*MockInterface) VersionInfo ¶ added in v1.23.0
func (m *MockInterface) VersionInfo() (*v1.VersionInfo, error)
VersionInfo mocks base method.
type MockInterfaceMockRecorder ¶ added in v1.23.0
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) ContainerFsInfo ¶ added in v1.29.0
func (mr *MockInterfaceMockRecorder) ContainerFsInfo() *gomock.Call
ContainerFsInfo indicates an expected call of ContainerFsInfo.
func (*MockInterfaceMockRecorder) ContainerInfoV2 ¶ added in v1.23.0
func (mr *MockInterfaceMockRecorder) ContainerInfoV2(name, options interface{}) *gomock.Call
ContainerInfoV2 indicates an expected call of ContainerInfoV2.
func (*MockInterfaceMockRecorder) GetDirFsInfo ¶ added in v1.23.0
func (mr *MockInterfaceMockRecorder) GetDirFsInfo(path interface{}) *gomock.Call
GetDirFsInfo indicates an expected call of GetDirFsInfo.
func (*MockInterfaceMockRecorder) GetRequestedContainersInfo ¶ added in v1.23.0
func (mr *MockInterfaceMockRecorder) GetRequestedContainersInfo(containerName, options interface{}) *gomock.Call
GetRequestedContainersInfo indicates an expected call of GetRequestedContainersInfo.
func (*MockInterfaceMockRecorder) ImagesFsInfo ¶ added in v1.23.0
func (mr *MockInterfaceMockRecorder) ImagesFsInfo() *gomock.Call
ImagesFsInfo indicates an expected call of ImagesFsInfo.
func (*MockInterfaceMockRecorder) MachineInfo ¶ added in v1.23.0
func (mr *MockInterfaceMockRecorder) MachineInfo() *gomock.Call
MachineInfo indicates an expected call of MachineInfo.
func (*MockInterfaceMockRecorder) RootFsInfo ¶ added in v1.23.0
func (mr *MockInterfaceMockRecorder) RootFsInfo() *gomock.Call
RootFsInfo indicates an expected call of RootFsInfo.
func (*MockInterfaceMockRecorder) Start ¶ added in v1.23.0
func (mr *MockInterfaceMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockInterfaceMockRecorder) VersionInfo ¶ added in v1.23.0
func (mr *MockInterfaceMockRecorder) VersionInfo() *gomock.Call
VersionInfo indicates an expected call of VersionInfo.