cadvisor: github.com/google/cadvisor/cmd/internal/pages Index | Files | Directories

package pages

import "github.com/google/cadvisor/cmd/internal/pages"

Page for /containers/

Index

Package Files

containers.go docker.go pages.go templates.go

Constants

const AssetDebug = false

AssetDebug is true if the assets were built with the debug flag enabled.

const ContainersPage = "/containers/"
const DockerPage = "/docker/"

func Asset Uses

func Asset(name string) ([]byte, error)

Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetDigest Uses

func AssetDigest(name string) ([sha256.Size]byte, error)

AssetDigest returns the digest of the file with the given name. It returns an error if the asset could not be found or the digest could not be loaded.

func AssetDir Uses

func AssetDir(name string) ([]string, error)

AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:

data/
  foo.txt
  img/
    a.png
    b.png

then AssetDir("data") would return []string{"foo.txt", "img"}, AssetDir("data/img") would return []string{"a.png", "b.png"}, AssetDir("foo.txt") and AssetDir("notexist") would return an error, and AssetDir("") will return []string{"data"}.

func AssetInfo Uses

func AssetInfo(name string) (os.FileInfo, error)

AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetNames Uses

func AssetNames() []string

AssetNames returns the names of the assets.

func AssetString Uses

func AssetString(name string) (string, error)

AssetString returns the asset contents as a string (instead of a []byte).

func Digests Uses

func Digests() (map[string][sha256.Size]byte, error)

Digests returns a map of all known files and their checksums.

func MustAsset Uses

func MustAsset(name string) []byte

MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.

func MustAssetString Uses

func MustAssetString(name string) string

MustAssetString is like AssetString but panics when Asset would return an error. It simplifies safe initialization of global variables.

func RegisterHandlersBasic Uses

func RegisterHandlersBasic(mux httpmux.Mux, containerManager manager.Manager, authenticator *auth.BasicAuth, urlBasePrefix string) error

func RegisterHandlersDigest Uses

func RegisterHandlersDigest(mux httpmux.Mux, containerManager manager.Manager, authenticator *auth.DigestAuth, urlBasePrefix string) error

Register http handlers

func RestoreAsset Uses

func RestoreAsset(dir, name string) error

RestoreAsset restores an asset under the given directory.

func RestoreAssets Uses

func RestoreAssets(dir, name string) error

RestoreAssets restores an asset under the given directory recursively.

type ByteSize Uses

type ByteSize float64

from http://golang.org/doc/effective_go.html#constants

const (

    // KB - kilobyte
    KB  ByteSize = 1 << (10 * iota)
    // MB - megabyte
    MB
    // GB - gigabyte
    GB
    // TB - terabyte
    TB
    // PB - petabyte
    PB
    // EB - exabyte
    EB
    // ZB - zettabyte
    ZB
    // YB - yottabyte
    YB
)

func (ByteSize) Size Uses

func (b ByteSize) Size() string

func (ByteSize) Unit Uses

func (b ByteSize) Unit() string

Directories

PathSynopsis
static

Package pages imports 21 packages (graph) and is imported by 1 packages. Updated 2020-08-03. Refresh now. Tools for package owners.