ContainerHelper

package
v0.0.0-...-ce404ba Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerUtil

type ContainerUtil struct {
	// contains filtered or unexported fields
}

func NewContainerUtil

func NewContainerUtil() ContainerUtil

NewContainer instantiates a default password store

func (ContainerUtil) GetContainerId

func (cu ContainerUtil) GetContainerId(pid int) (int, error)

func (ContainerUtil) Init

func (cu ContainerUtil) Init() error

type PidCache

type PidCache struct {
	// contains filtered or unexported fields
}

func NewPidCache

func NewPidCache() PidCache

NewPidCache instantiates a default password store

func (PidCache) Delete

func (pc PidCache) Delete(pid int) error

func (PidCache) Get

func (pc PidCache) Get(pid int) (int, error)

Get retrieves the cid, given the pid.

func (PidCache) Init

func (pc PidCache) Init() error

func (PidCache) Set

func (pc PidCache) Set(pid int, cid int) error

Set stores the PID and the container Id in the map. If the container id is not available, it will be stored as "non-container". If the process tree is killed by the time the container ID is fetched, it will be marked as "killed" as a hint to be purged.

Jump to

Keyboard shortcuts

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