platforms

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 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, containername string) (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, containername string) (*Container, error)
}

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

type ServiceWatcher

type ServiceWatcher interface {
	WatchService(context context.Context, servicename string) (<-chan Container, error)
}

/ Watch a service and get notifications when new containers of that service are created.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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