platforms

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Name, Image, Node string
}

/ Minimal represntation of a container, containing only the data squash cares about - / The container's name, image and the node it runs on.

type Container2Pid

type Container2Pid interface {
	GetPid(context context.Context, attachment interface{}) (int, error)
}

/ Get the pid of a process that runs in the container. the pid should be in our pid namespace, / not in the container's namespace.

type ContainerLocator

type ContainerLocator interface {
	Locate(context context.Context, attachment interface{}) (interface{}, *Container, error)
}

/ Get the container object from its name. Note: in environment like kubernetes, the containername will be namespace:pod-name:container-name

type DataStore added in v0.2.0

type DataStore interface {
	Store()
	Load()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳