Documentation ¶
Overview ¶
Kubelet interactions with cAdvisor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { DockerContainer(name string, req *cadvisorApi.ContainerInfoRequest) (cadvisorApi.ContainerInfo, error) ContainerInfo(name string, req *cadvisorApi.ContainerInfoRequest) (*cadvisorApi.ContainerInfo, error) MachineInfo() (*cadvisorApi.MachineInfo, error) }
Interface is an abstract interface for testability. It abstracts the interface to cAdvisor.
type Mock ¶
func (*Mock) ContainerInfo ¶
func (c *Mock) ContainerInfo(name string, req *cadvisorApi.ContainerInfoRequest) (*cadvisorApi.ContainerInfo, error)
ContainerInfo is a mock implementation of CadvisorInterface.ContainerInfo.
func (*Mock) DockerContainer ¶
func (c *Mock) DockerContainer(name string, req *cadvisorApi.ContainerInfoRequest) (cadvisorApi.ContainerInfo, error)
DockerContainer is a mock implementation of CadvisorInterface.DockerContainer.
func (*Mock) MachineInfo ¶
func (c *Mock) MachineInfo() (*cadvisorApi.MachineInfo, error)
MachineInfo is a mock implementation of CadvisorInterface.MachineInfo.
Click to show internal directories.
Click to hide internal directories.