container

package
v0.0.0-...-739142e Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2014 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LIST_SELF = iota
	LIST_RECURSIVE
)

Listing types.

Variables

This section is empty.

Functions

func RegisterContainerHandlerFactory

func RegisterContainerHandlerFactory(path string, factory ContainerHandlerFactory)

Types

type ContainerHandler

type ContainerHandler interface {
	ContainerReference() (info.ContainerReference, error)
	GetSpec() (*info.ContainerSpec, error)
	GetStats() (*info.ContainerStats, error)
	ListContainers(listType ListType) ([]info.ContainerReference, error)
	ListThreads(listType ListType) ([]int, error)
	ListProcesses(listType ListType) ([]int, error)
}

Interface for container operation handlers.

func NewBlackListFilter

func NewBlackListFilter(handler ContainerHandler, forbiddenPaths ...string) ContainerHandler

func NewContainerHandler

func NewContainerHandler(path string) (ContainerHandler, error)

func NewWhiteListFilter

func NewWhiteListFilter(handler ContainerHandler, acceptedPaths ...string) ContainerHandler

type ContainerHandlerFactory

type ContainerHandlerFactory interface {
	NewContainerHandler(name string) (ContainerHandler, error)

	// for testability
	String() string
}

type ListType

type ListType int

Directories

Path Synopsis
Package containers is a generated protocol buffer package.
Package containers is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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