info

package
v0.0.0-...-03ffbd0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RUNNING = "running"
	STOPPED = "stopped"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerNotExist

type ContainerNotExist struct {
	ID string
}

func (ContainerNotExist) Error

func (ce ContainerNotExist) Error() string

type CustomTime

type CustomTime time.Time

func (CustomTime) MarshalJSON

func (ct CustomTime) MarshalJSON() ([]byte, error)

func (CustomTime) String

func (ct CustomTime) String() string

func (*CustomTime) UnmarshalJSON

func (ct *CustomTime) UnmarshalJSON(b []byte) error

type Info

type Info struct {
	Pid           int             `json:"pid"`
	ID            string          `json:"id"`
	Cmd           []string        `json:"cmd"`
	CreateTime    CustomTime      `json:"create_time"`
	Status        string          `json:"status"`
	RootFS        *rootfs.RootFS  `json:"root_fs"`
	LogFile       string          `json:"log_file"`
	PortMap       []string        `json:"port_map"`
	Network       string          `json:"network"`
	IPNet         net.IPNet       `json:"ip_net"`
	NetworkDriver string          `json:"network_driver"`
	Volumes       []volume.Volume `json:"volumes"`
	UnixSocket    string          `json:"unix_socket"`
	TTY           bool            `json:"tty"`
	Detach        bool            `json:"detach"`
	RmAfterRun    bool            `json:"rm_after_run"`
	Envs          []string        `json:"envs"`
	ImageName     string          `json:"image_name"`
	CmdStr        string          `json:"cmd_str"`

	Parent     *exec.Cmd       `json:"-"`
	StoppedCtx context.Context `json:"-"`
	Stdin      io.WriteCloser  `json:"-"`
	Stdout     io.ReadCloser   `json:"-"`
	Stderr     io.ReadCloser   `json:"-"`
}

func GetInfo

func GetInfo(containerID string) (*Info, error)

Jump to

Keyboard shortcuts

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