Documentation ¶
Overview ¶
Package socker implements a secure runner for docker containers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseImages ¶
ParseImages parses images from docker.
func QueryChildPIDs ¶
QueryChildPIDs lookups child process ids of specified parent process.
Types ¶
type ExecOpts ¶
type ExecOpts struct { TTY bool `short:"t" long:"tty"` Interactive bool `short:"i" long:"interactive"` Detach bool `short:"d" long:"detach"` User string `short:"u" long:"user"` }
ExecOpts represents the socker supported docker exec options.
type Image ¶
type Image struct { ID string `yaml:"id"` Desc string `yaml:"desc"` Repository string `yaml:"repository"` Tag string `yaml:"tag"` CreatedScince string `yaml:"created_since"` CreatedAt string `yaml:"created_at"` Size string `yaml:"size"` }
Image represents the socker/socker availible image format
type Opts ¶
type Opts struct { Volumes []string `short:"v" long:"volume"` TTY bool `short:"t" long:"tty"` Interactive bool `short:"i" long:"interactive"` Detach bool `short:"d" long:"detach"` Runtime string `long:"runtime"` Network string `long:"network"` Name string `long:"name"` Hostname string `short:"h" long:"hostname"` User string `short:"u" long:"user"` StorageOpt string `long:"storage-opt"` ShmSize string `long:"shm-size"` }
Opts represents the socker supported docker options.
type Socker ¶
Socker provides a runner for docker.
func (*Socker) FormatImages ¶
FormatImages lists all available images from registry by map.
func (*Socker) PrintImages ¶
PrintImages prints available images for CLI.
func (*Socker) SyncImages ¶
SyncImages syncs available images for CLI.
Click to show internal directories.
Click to hide internal directories.