commons

package
v0.0.0-...-8dde4ce Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OwnerLabel mark owner of stack
	OwnerLabel = "owner"

	// AppLabel mark name of stack
	AppLabel = "app"

	// IgnoredByteLogSize number of bytes ignored for logs
	IgnoredByteLogSize = 8
)

Variables

View Source
var (
	// DefaultTimeout for context operation
	DefaultTimeout = 30 * time.Second
)
View Source
var ErrUserRequired = errors.New("an user is required")

ErrUserRequired occurs when an user if required

Functions

func EventFilters

func EventFilters(filtersArgs *filters.Args)

EventFilters add filter for wanted events

func FilterContainers

func FilterContainers(containers []*types.ContainerJSON, filter func(*types.ContainerJSON) bool) []*types.ContainerJSON

FilterContainers filters a list of containers

func GetContainersIDs

func GetContainersIDs(containers []*types.ContainerJSON) []string

GetContainersIDs map containers list to IDs

func GetCtx

GetCtx obtains a default timeout context

Types

This section is empty.

Jump to

Keyboard shortcuts

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