Documentation ¶
Overview ¶
Manager of cAdvisor-monitored containers.
Index ¶
- Variables
- type Manager
- type ManagerMock
- func (c *ManagerMock) AllDockerContainers(query *info.ContainerInfoRequest) (map[string]info.ContainerInfo, error)
- func (c *ManagerMock) DockerContainer(name string, query *info.ContainerInfoRequest) (info.ContainerInfo, error)
- func (c *ManagerMock) GetContainerDerivedStats(containerName string) (info.DerivedStats, error)
- func (c *ManagerMock) GetContainerInfo(name string, query *info.ContainerInfoRequest) (*info.ContainerInfo, error)
- func (c *ManagerMock) GetContainerSpec(containerName string) (info.ContainerSpec, error)
- func (c *ManagerMock) GetMachineInfo() (*info.MachineInfo, error)
- func (c *ManagerMock) GetPastEvents(queryuest *events.Request) (events.EventSlice, error)
- func (c *ManagerMock) GetVersionInfo() (*info.VersionInfo, error)
- func (c *ManagerMock) Start() error
- func (c *ManagerMock) Stop() error
- func (c *ManagerMock) SubcontainersInfo(containerName string, query *info.ContainerInfoRequest) ([]*info.ContainerInfo, error)
- func (c *ManagerMock) WatchForEvents(queryuest *events.Request, passedChannel chan *events.Event) error
Constants ¶
This section is empty.
Variables ¶
View Source
var CpuClockSpeedMHz = regexp.MustCompile("cpu MHz\\t*: +([0-9]+.[0-9]+)")
View Source
var HousekeepingInterval = flag.Duration("housekeeping_interval", 1*time.Second, "Interval between container housekeepings")
Housekeeping interval.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { // Start the manager. Start() error // Stops the manager. Stop() error // Get information about a container. GetContainerInfo(containerName string, query *info.ContainerInfoRequest) (*info.ContainerInfo, error) // Get information about all subcontainers of the specified container (includes self). SubcontainersInfo(containerName string, query *info.ContainerInfoRequest) ([]*info.ContainerInfo, error) // Gets all the Docker containers. Return is a map from full container name to ContainerInfo. AllDockerContainers(query *info.ContainerInfoRequest) (map[string]info.ContainerInfo, error) // Gets information about a specific Docker container. The specified name is within the Docker namespace. DockerContainer(dockerName string, query *info.ContainerInfoRequest) (info.ContainerInfo, error) // Gets spec for a container. GetContainerSpec(containerName string) (info.ContainerSpec, error) // Get derived stats for a container. GetContainerDerivedStats(containerName string) (info.DerivedStats, error) // Get information about the machine. GetMachineInfo() (*info.MachineInfo, error) // Get version information about different components we depend on. GetVersionInfo() (*info.VersionInfo, error) // Get events streamed through passedChannel that fit the request. WatchForEvents(request *events.Request, passedChannel chan *events.Event) error // Get past events that have been detected and that fit the request. GetPastEvents(request *events.Request) (events.EventSlice, error) }
The Manager interface defines operations for starting a manager and getting container and machine information.
type ManagerMock ¶
func (*ManagerMock) AllDockerContainers ¶
func (c *ManagerMock) AllDockerContainers(query *info.ContainerInfoRequest) (map[string]info.ContainerInfo, error)
func (*ManagerMock) DockerContainer ¶
func (c *ManagerMock) DockerContainer(name string, query *info.ContainerInfoRequest) (info.ContainerInfo, error)
func (*ManagerMock) GetContainerDerivedStats ¶
func (c *ManagerMock) GetContainerDerivedStats(containerName string) (info.DerivedStats, error)
func (*ManagerMock) GetContainerInfo ¶
func (c *ManagerMock) GetContainerInfo(name string, query *info.ContainerInfoRequest) (*info.ContainerInfo, error)
func (*ManagerMock) GetContainerSpec ¶
func (c *ManagerMock) GetContainerSpec(containerName string) (info.ContainerSpec, error)
func (*ManagerMock) GetMachineInfo ¶
func (c *ManagerMock) GetMachineInfo() (*info.MachineInfo, error)
func (*ManagerMock) GetPastEvents ¶
func (c *ManagerMock) GetPastEvents(queryuest *events.Request) (events.EventSlice, error)
func (*ManagerMock) GetVersionInfo ¶
func (c *ManagerMock) GetVersionInfo() (*info.VersionInfo, error)
func (*ManagerMock) Start ¶
func (c *ManagerMock) Start() error
func (*ManagerMock) Stop ¶
func (c *ManagerMock) Stop() error
func (*ManagerMock) SubcontainersInfo ¶
func (c *ManagerMock) SubcontainersInfo(containerName string, query *info.ContainerInfoRequest) ([]*info.ContainerInfo, error)
func (*ManagerMock) WatchForEvents ¶
Click to show internal directories.
Click to hide internal directories.