common

package
v0.0.0-...-0cd89e8 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2016 License: GPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(cmd []string, stdin io.Reader, stdout, stderr io.WriteCloser, tty bool, resize <-chan remotecommand.TerminalSize) error

func PortForward

func PortForward(podSandboxID string, port int32, stream io.ReadWriteCloser) error

Essentially used the same concept of version in dockertools/docker_manager.go

Types

type Container

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

func NewContainer

func NewContainer(id *string,
	podId *string,
	state kubeapi.ContainerState,
	metadata *kubeapi.ContainerMetadata,
	image *kubeapi.ImageSpec,
	mounts []*kubeapi.Mount,
	labels map[string]string,
	annotations map[string]string) *Container

func (*Container) Finished

func (c *Container) Finished()

func (*Container) GetId

func (c *Container) GetId() *string

func (*Container) GetLabels

func (c *Container) GetLabels() map[string]string

func (*Container) GetPodId

func (c *Container) GetPodId() *string

func (*Container) GetState

func (c *Container) GetState() kubeapi.ContainerState

func (*Container) Start

func (c *Container) Start()

func (*Container) ToKubeContainer

func (c *Container) ToKubeContainer() *kubeapi.Container

func (*Container) ToKubeStatus

func (c *Container) ToKubeStatus() *kubeapi.ContainerStatus

Jump to

Keyboard shortcuts

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