cadvisor

package
v0.0.0-...-1cbf0bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2014 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(URL string) (*Client, error)

NewClient returns a new client with the specified base URL. TODO(cAdvisor): Currently the error result is always nil.

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) 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL