package exec
import "github.com/docker/docker/daemon/exec"
Index ¶
- type Config
- func NewConfig() *Config
- func (c *Config) Close()
- func (c *Config) Resize(h, w int) error
- func (c *Config) Wait(cErr chan error) error
- type Store
Types ¶
type Config ¶
type Config struct { sync.Mutex *runconfig.StreamConfig ID string Running bool ExitCode *int ProcessConfig *execdriver.ProcessConfig OpenStdin bool OpenStderr bool OpenStdout bool CanRemove bool ContainerID string DetachKeys []byte // contains filtered or unexported fields }
Config holds the configurations for execs. The Daemon keeps track of both running and finished execs so that they can be examined both during and after completion.
func NewConfig ¶
func NewConfig() *Config
NewConfig initializes the a new exec configuration
func (*Config) Close ¶
func (c *Config) Close()
Close closes the wait channel for the progress.
func (*Config) Resize ¶
Resize changes the size of the terminal for the exec process.
func (*Config) Wait ¶
Wait waits until the exec process finishes or there is an error in the error channel.
type Store ¶
Store keeps track of the exec configurations.
func NewStore ¶
func NewStore() *Store
NewStore initializes a new exec store.
func (*Store) Add ¶
Add adds a new exec configuration to the store.
func (*Store) Commands ¶
Commands returns the exec configurations in the store.
func (*Store) Delete ¶
Delete removes an exec configuration from the store.
func (*Store) Get ¶
Get returns an exec configuration by its id.
func (*Store) List ¶
List returns the list of exec ids in the store.
Source Files ¶
- Version
- v1.10.2
- Published
- Feb 20, 2016
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 14 minutes ago –
Tools for package owners.