Documentation ¶
Overview ¶
Kubelet interactions with cAdvisor.
Index ¶
- type Fake
- func (c *Fake) ContainerInfo(name string, req *cadvisorApi.ContainerInfoRequest) (*cadvisorApi.ContainerInfo, error)
- func (c *Fake) DockerContainer(name string, req *cadvisorApi.ContainerInfoRequest) (cadvisorApi.ContainerInfo, error)
- func (c *Fake) DockerImagesFsInfo() (cadvisorApiV2.FsInfo, error)
- func (c *Fake) GetPastEvents(request *events.Request) ([]*cadvisorApi.Event, error)
- func (c *Fake) MachineInfo() (*cadvisorApi.MachineInfo, error)
- func (c *Fake) VersionInfo() (*cadvisorApi.VersionInfo, error)
- type Interface
- type Mock
- func (c *Mock) ContainerInfo(name string, req *cadvisorApi.ContainerInfoRequest) (*cadvisorApi.ContainerInfo, error)
- func (c *Mock) DockerContainer(name string, req *cadvisorApi.ContainerInfoRequest) (cadvisorApi.ContainerInfo, error)
- func (c *Mock) DockerImagesFsInfo() (cadvisorApiV2.FsInfo, error)
- func (c *Mock) GetPastEvents(request *events.Request) ([]*cadvisorApi.Event, error)
- func (c *Mock) MachineInfo() (*cadvisorApi.MachineInfo, error)
- func (c *Mock) VersionInfo() (*cadvisorApi.VersionInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fake ¶ added in v0.13.1
type Fake struct { }
Fake cAdvisor implementation.
func (*Fake) ContainerInfo ¶ added in v0.13.1
func (c *Fake) ContainerInfo(name string, req *cadvisorApi.ContainerInfoRequest) (*cadvisorApi.ContainerInfo, error)
func (*Fake) DockerContainer ¶ added in v0.13.1
func (c *Fake) DockerContainer(name string, req *cadvisorApi.ContainerInfoRequest) (cadvisorApi.ContainerInfo, error)
func (*Fake) DockerImagesFsInfo ¶ added in v0.14.0
func (c *Fake) DockerImagesFsInfo() (cadvisorApiV2.FsInfo, error)
func (*Fake) GetPastEvents ¶ added in v0.15.0
func (*Fake) MachineInfo ¶ added in v0.13.1
func (c *Fake) MachineInfo() (*cadvisorApi.MachineInfo, error)
func (*Fake) VersionInfo ¶ added in v0.15.0
func (c *Fake) VersionInfo() (*cadvisorApi.VersionInfo, error)
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) VersionInfo() (*cadvisorApi.VersionInfo, error) // Returns usage information about the filesystem holding Docker images. DockerImagesFsInfo() (cadvisorApiV2.FsInfo, error) // Get past events that have been detected and that fit the request. GetPastEvents(request *events.Request) ([]*cadvisorApi.Event, 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 Interface.ContainerInfo.
func (*Mock) DockerContainer ¶
func (c *Mock) DockerContainer(name string, req *cadvisorApi.ContainerInfoRequest) (cadvisorApi.ContainerInfo, error)
DockerContainer is a mock implementation of Interface.DockerContainer.
func (*Mock) DockerImagesFsInfo ¶ added in v0.14.0
func (c *Mock) DockerImagesFsInfo() (cadvisorApiV2.FsInfo, error)
func (*Mock) GetPastEvents ¶ added in v0.15.0
func (*Mock) MachineInfo ¶
func (c *Mock) MachineInfo() (*cadvisorApi.MachineInfo, error)
MachineInfo is a mock implementation of Interface.MachineInfo.
func (*Mock) VersionInfo ¶ added in v0.15.0
func (c *Mock) VersionInfo() (*cadvisorApi.VersionInfo, error)
Click to show internal directories.
Click to hide internal directories.