types

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2018 License: Apache-2.0 Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	// common
	ID, Name       string
	Image, Command string
	State, Status  string // "running"  "Up 13 minutes"
	IPs            []string
	Shell          string
	// k8s
	PodName, ContainerName string
	Namespace, RunningNode string
}

type ContainerActionMessage added in v0.1.4

type ContainerActionMessage struct {
	Error   string `json:"err"`
	Code    int    `json:"code"`
	Message string `json:"msg"`
}

type Containers added in v0.1.5

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

func (*Containers) Append added in v0.1.5

func (cs *Containers) Append(c Container)

func (*Containers) Find added in v0.1.5

func (cs *Containers) Find(cID string) Container

func (*Containers) Len added in v0.1.5

func (cs *Containers) Len() int

func (*Containers) Set added in v0.1.5

func (cs *Containers) Set(containers []Container)

func (*Containers) SetShell added in v0.1.5

func (cs *Containers) SetShell(cID, shell string)

type InitMessage added in v0.1.5

type InitMessage struct {
	Arguments string `json:"Arguments,omitempty"`
	AuthToken string `json:"AuthToken,omitempty"`
}

type TTY added in v0.1.5

type TTY interface {
	webtty.Slave
	Exit() error
}

Slave is webtty.Slave with some additional methods.

Jump to

Keyboard shortcuts

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