Documentation ¶
Overview ¶
Package testing is a generated GoMock package.
Index ¶
- Constants
- type Fake
- func (c *Fake) ContainerInfo(name string, req *cadvisorapi.ContainerInfoRequest) (*cadvisorapi.ContainerInfo, error)
- func (c *Fake) ContainerInfoV2(name string, options cadvisorapiv2.RequestOptions) (map[string]cadvisorapiv2.ContainerInfo, error)
- func (c *Fake) DockerContainer(name string, req *cadvisorapi.ContainerInfoRequest) (cadvisorapi.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) SubcontainerInfo(name string, req *cadvisorapi.ContainerInfoRequest) (map[string]*cadvisorapi.ContainerInfo, error)
- func (c *Fake) VersionInfo() (*cadvisorapi.VersionInfo, error)
- func (c *Fake) WatchEvents(request *events.Request) (*events.EventChannel, error)
- type MockImageFsInfoProvider
- type MockImageFsInfoProviderMockRecorder
- type MockInterface
- func (m *MockInterface) ContainerInfo(name string, req *v1.ContainerInfoRequest) (*v1.ContainerInfo, error)
- func (m *MockInterface) ContainerInfoV2(name string, options v2.RequestOptions) (map[string]v2.ContainerInfo, error)
- func (m *MockInterface) DockerContainer(name string, req *v1.ContainerInfoRequest) (v1.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) SubcontainerInfo(name string, req *v1.ContainerInfoRequest) (map[string]*v1.ContainerInfo, error)
- func (m *MockInterface) VersionInfo() (*v1.VersionInfo, error)
- func (m *MockInterface) WatchEvents(request *events.Request) (*events.EventChannel, error)
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) ContainerInfo(name, req interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ContainerInfoV2(name, options interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DockerContainer(name, req 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) SubcontainerInfo(name, req interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) VersionInfo() *gomock.Call
- func (mr *MockInterfaceMockRecorder) WatchEvents(request interface{}) *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) ContainerInfo ¶
func (c *Fake) ContainerInfo(name string, req *cadvisorapi.ContainerInfoRequest) (*cadvisorapi.ContainerInfo, error)
ContainerInfo is a fake implementation of Interface.ContainerInfo.
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) DockerContainer ¶
func (c *Fake) DockerContainer(name string, req *cadvisorapi.ContainerInfoRequest) (cadvisorapi.ContainerInfo, error)
DockerContainer is a fake implementation of Interface.DockerContainer.
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) SubcontainerInfo ¶
func (c *Fake) SubcontainerInfo(name string, req *cadvisorapi.ContainerInfoRequest) (map[string]*cadvisorapi.ContainerInfo, error)
SubcontainerInfo is a fake implementation of Interface.SubcontainerInfo.
func (*Fake) VersionInfo ¶
func (c *Fake) VersionInfo() (*cadvisorapi.VersionInfo, error)
VersionInfo is a fake implementation of Interface.VersionInfo.
func (*Fake) WatchEvents ¶
WatchEvents is a fake implementation of Interface.WatchEvents.
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) 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) 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) ContainerInfo ¶ added in v1.23.0
func (m *MockInterface) ContainerInfo(name string, req *v1.ContainerInfoRequest) (*v1.ContainerInfo, error)
ContainerInfo 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) DockerContainer ¶ added in v1.23.0
func (m *MockInterface) DockerContainer(name string, req *v1.ContainerInfoRequest) (v1.ContainerInfo, error)
DockerContainer 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) SubcontainerInfo ¶ added in v1.23.0
func (m *MockInterface) SubcontainerInfo(name string, req *v1.ContainerInfoRequest) (map[string]*v1.ContainerInfo, error)
SubcontainerInfo mocks base method.
func (*MockInterface) VersionInfo ¶ added in v1.23.0
func (m *MockInterface) VersionInfo() (*v1.VersionInfo, error)
VersionInfo mocks base method.
func (*MockInterface) WatchEvents ¶ added in v1.23.0
func (m *MockInterface) WatchEvents(request *events.Request) (*events.EventChannel, error)
WatchEvents 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) ContainerInfo ¶ added in v1.23.0
func (mr *MockInterfaceMockRecorder) ContainerInfo(name, req interface{}) *gomock.Call
ContainerInfo indicates an expected call of ContainerInfo.
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) DockerContainer ¶ added in v1.23.0
func (mr *MockInterfaceMockRecorder) DockerContainer(name, req interface{}) *gomock.Call
DockerContainer indicates an expected call of DockerContainer.
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) SubcontainerInfo ¶ added in v1.23.0
func (mr *MockInterfaceMockRecorder) SubcontainerInfo(name, req interface{}) *gomock.Call
SubcontainerInfo indicates an expected call of SubcontainerInfo.
func (*MockInterfaceMockRecorder) VersionInfo ¶ added in v1.23.0
func (mr *MockInterfaceMockRecorder) VersionInfo() *gomock.Call
VersionInfo indicates an expected call of VersionInfo.
func (*MockInterfaceMockRecorder) WatchEvents ¶ added in v1.23.0
func (mr *MockInterfaceMockRecorder) WatchEvents(request interface{}) *gomock.Call
WatchEvents indicates an expected call of WatchEvents.