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 }
Click to show internal directories.
Click to hide internal directories.