qutils

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

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

Go to latest
Published: Apr 6, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffCPUStats

func DiffCPUStats(pre types.CPUStats, cur types.CPUStats) types.CPUStats

DiffCPUStats create a diff out of two CPUStats

func DiffCPUUsage

func DiffCPUUsage(pre types.CPUUsage, cur types.CPUUsage) types.CPUUsage

DiffCPUUsage create a diff out ot two (plus knowledge about the system usage)

func DiffThrottlingData

func DiffThrottlingData(pre types.ThrottlingData, cur types.ThrottlingData) types.ThrottlingData

DiffThrottlingData diffs two ThrottlingData

func GetParams

func GetParams(regEx *regexp.Regexp, str string) (paramsMap map[string]string)

func SanatizeContainerName

func SanatizeContainerName(names []string) string

func TransformFsouzaToDocker

func TransformFsouzaToDocker(stats docker.CPUStats) types.CPUStats

Types

type DockerServiceTask

type DockerServiceTask struct {
	Name   string
	Slot   string
	TaskID string
}

func ContainerNameExtractService

func ContainerNameExtractService(names []string) (task DockerServiceTask, err error)

Jump to

Keyboard shortcuts

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