Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerExecutor ¶
type DockerExecutor struct {
// contains filtered or unexported fields
}
func (DockerExecutor) Close ¶
func (e DockerExecutor) Close() error
Close stops previously started container by sending "exit" to shell - it is much faster than stopping with container API
func (DockerExecutor) ReadDir ¶
func (e DockerExecutor) ReadDir(path string) (io.ReadCloser, error)
ReadDir reads the files from container directory and returns the content as TAR stream
type Executor ¶
type Executor interface { Exec(cmd []string) (stdout, stderr []byte, exitCode int, err error) ReadFile(path string) ([]byte, error) ReadDir(path string) (io.ReadCloser, error) Close() error }
func NewDockerExecutor ¶
NewDockerExecutor starts a new container and returns an executor for the container
Click to show internal directories.
Click to hide internal directories.