package client
import "k8s.io/kubernetes/Godeps/_workspace/src/github.com/google/cadvisor/client"
TODO(cAdvisor): Package comment.
Index ¶
- type Client
- func NewClient(url string) (*Client, error)
- func (self *Client) AllDockerContainers(query *info.ContainerInfoRequest) (cinfo []info.ContainerInfo, err error)
- func (self *Client) ContainerInfo(name string, query *info.ContainerInfoRequest) (cinfo *info.ContainerInfo, err error)
- func (self *Client) DockerContainer(name string, query *info.ContainerInfoRequest) (cinfo info.ContainerInfo, err error)
- func (self *Client) MachineInfo() (minfo *info.MachineInfo, err error)
- func (self *Client) SubcontainersInfo(name string, query *info.ContainerInfoRequest) ([]info.ContainerInfo, error)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents the base URL for a cAdvisor client.
func NewClient ¶
NewClient returns a new client with the specified base URL.
func (*Client) AllDockerContainers ¶
func (self *Client) AllDockerContainers(query *info.ContainerInfoRequest) (cinfo []info.ContainerInfo, err error)
Returns the JSON container information for all Docker containers.
func (*Client) ContainerInfo ¶
func (self *Client) ContainerInfo(name string, query *info.ContainerInfoRequest) (cinfo *info.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 *info.ContainerInfoRequest) (cinfo info.ContainerInfo, err error)
Returns the JSON container information for the specified Docker container and request.
func (*Client) MachineInfo ¶
func (self *Client) MachineInfo() (minfo *info.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 *info.ContainerInfoRequest) ([]info.ContainerInfo, error)
Returns the information about all subcontainers (recursive) of the specified container (including itself).
Source Files ¶
client.go
- Version
- v0.7.3
- Published
- Jan 8, 2015
- Platform
- windows/amd64
- Imports
- 8 packages
- Last checked
- 13 seconds ago –
Tools for package owners.