api

package
v0.0.0-...-674f7be Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2016 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package api provides a handler for /api/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCommand

func ExecCommand(input string) (output string, errput string, err error)

func HandleLinkerDockerIdRequest

func HandleLinkerDockerIdRequest(w http.ResponseWriter, r *http.Request) error

func HandleLinkerDockerInfoRequest

func HandleLinkerDockerInfoRequest(w http.ResponseWriter, r *http.Request) error

func HandleLinkerRequest

func HandleLinkerRequest(w http.ResponseWriter, r *http.Request) error

func ParseDockerName

func ParseDockerName(taskid string) (dockername string, err error)

func ParseDockerNameString

func ParseDockerNameString(source string) (output string)

func RegisterHandlers

func RegisterHandlers(mux httpmux.Mux, m manager.Manager) error

Types

type ApiVersion

type ApiVersion interface {
	// Returns the version string.
	Version() string

	// List of supported API endpoints.
	SupportedRequestTypes() []string

	// Handles a request. The second argument is the parameters after /api/<version>/<endpoint>
	HandleRequest(requestType string, request []string, m manager.Manager, w http.ResponseWriter, r *http.Request) error
}

Interface for a cAdvisor API version

Jump to

Keyboard shortcuts

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