Documentation ¶
Overview ¶
TODO(cAdvisor): Package comment.
Index ¶
- type Client
- func (self *Client) AllDockerContainers(query *v1.ContainerInfoRequest) (cinfo []v1.ContainerInfo, err error)
- func (self *Client) ContainerInfo(name string, query *v1.ContainerInfoRequest) (cinfo *v1.ContainerInfo, err error)
- func (self *Client) DockerContainer(name string, query *v1.ContainerInfoRequest) (cinfo v1.ContainerInfo, err error)
- func (self *Client) EventStaticInfo(name string) (einfo []*v1.Event, err error)
- func (self *Client) EventStreamingInfo(name string, einfo chan *v1.Event) (err error)
- func (self *Client) MachineInfo() (minfo *v1.MachineInfo, err error)
- func (self *Client) SubcontainersInfo(name string, query *v1.ContainerInfoRequest) ([]v1.ContainerInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents the base URL for a cAdvisor client.
func (*Client) AllDockerContainers ¶
func (self *Client) AllDockerContainers(query *v1.ContainerInfoRequest) (cinfo []v1.ContainerInfo, err error)
Returns the JSON container information for all Docker containers.
func (*Client) ContainerInfo ¶
func (self *Client) ContainerInfo(name string, query *v1.ContainerInfoRequest) (cinfo *v1.ContainerInfo, err error)
ContainerInfo returns the JSON container information for the specified container and request.
func (*Client) DockerContainer ¶
func (self *Client) DockerContainer(name string, query *v1.ContainerInfoRequest) (cinfo v1.ContainerInfo, err error)
Returns the JSON container information for the specified Docker container and request.
func (*Client) EventStaticInfo ¶
Returns all past events that satisfy the request
func (*Client) EventStreamingInfo ¶
Streams all events that occur that satisfy the request into the channel that is passed
func (*Client) MachineInfo ¶
func (self *Client) MachineInfo() (minfo *v1.MachineInfo, err error)
MachineInfo returns the JSON machine information for this client. A non-nil error result indicates a problem with obtaining the JSON machine information data.
func (*Client) SubcontainersInfo ¶
func (self *Client) SubcontainersInfo(name string, query *v1.ContainerInfoRequest) ([]v1.ContainerInfo, error)
Returns the information about all subcontainers (recursive) of the specified container (including itself).
Directories ¶
Path | Synopsis |
---|---|
Client library to programmatically access cAdvisor API.
|
Client library to programmatically access cAdvisor API. |