kubernetes/vendor/github.com/google/cadvisor/client/v2/client.go

type Client

// NewClient returns a new client with the specified base URL.
func NewClient(url string) (*Client, 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 (c *Client) MachineInfo() (minfo *v1.MachineInfo, err error) {}

// MachineStats returns the JSON machine statistics for this client.
// A non-nil error result indicates a problem with obtaining
// the JSON machine information data.
func (c *Client) MachineStats() ([]v2.MachineStats, error) {}

// VersionInfo returns the version info for cAdvisor.
func (c *Client) VersionInfo() (version string, err error) {}

// Attributes returns hardware and software attributes of the machine.
func (c *Client) Attributes() (attr *v2.Attributes, err error) {}

// Stats returns stats for the requested container.
func (c *Client) Stats(name string, request *v2.RequestOptions) (map[string]v2.ContainerInfo, error) {}

func (c *Client) machineInfoURL() string {}

func (c *Client) machineStatsURL() string {}

func (c *Client) versionInfoURL() string {}

func (c *Client) attributesURL() string {}

func (c *Client) statsURL(name string) string {}

func (c *Client) httpGetResponse(postData interface{}

func (c *Client) httpGetString(url, infoName string) (string, error) {}

func (c *Client) httpGetJSONData(data, postData interface{}