platforms

package
v0.5.19 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: Apache-2.0 Imports: 2 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 ContainerInfo added in v0.2.1

type ContainerInfo struct {
	Pids []int
	Name string
}

/ Runs in the squash client: / Information for the squash client to be able to connect debugger to the process

type ContainerLocator

type ContainerLocator interface {
	/// Takes a platform specific attachment object, and returns an updated attachment object, and a Container object.
	/// The updated attachment object will eventually make its way to ContainerProcess.GetContainerInfo
	Locate(context context.Context, attachment interface{}) (interface{}, *Container, error)
}

/ Get the container object from its attachment.

type ContainerProcess added in v0.2.1

type ContainerProcess interface {
	/// Take a platform specific attachment object and return the pid the host pid namespace of the process we want to debug.
	GetContainerInfo(context context.Context, attachment *v1.DebugAttachment) (*ContainerInfo, error)
}

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

Directories

Path Synopsis
alphav1
Package runtime is a generated protocol buffer package.
Package runtime is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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