cadvisor: Index | Files

package api

import ""

Package api provides a handler for /api/


Package Files

handler.go versions.go

func RegisterHandlers Uses

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

type ApiVersion Uses

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

Package api imports 17 packages (graph) and is imported by 1 packages. Updated 2020-05-05. Refresh now. Tools for package owners.