Documentation
¶
Overview ¶
Package containerops implements the operations that act from the outside on the container of a service: exec, cp, export and commit.
Index ¶
- type Backend
- type Service
- func (s *Service) Commit(ctx context.Context, projectName string, options api.CommitOptions) error
- func (s *Service) Copy(ctx context.Context, projectName string, options api.CopyOptions) error
- func (s *Service) Exec(ctx context.Context, projectName string, options api.RunOptions) (int, error)
- func (s *Service) Export(ctx context.Context, projectName string, options api.ExportOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface {
engine.Backend
// Events receives the progress of the operations.
Events() api.EventProcessor
// DryRun tells whether the operations only report what they would do.
DryRun() bool
// CLI is the Docker CLI Compose runs in, and the owner of the terminal streams.
CLI() command.Cli
}
Backend is what the operations need from the engine they act on.
The terminal reaches them through CLI: stdin, stdout and the TTY all come from the Docker CLI's streams, the one seam through which an operation that talks to the user does so (exec hands the whole CLI to the Docker CLI's own implementation).
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service runs the container operations on a Backend.
Click to show internal directories.
Click to hide internal directories.