Documentation
¶
Index ¶
- type BasicSandbox
- type DockerSandbox
- func (d *DockerSandbox) Execute(ctx context.Context, cmd string, args ...string) ([]byte, error)
- func (d *DockerSandbox) ReadFile(path string) ([]byte, error)
- func (d *DockerSandbox) Remove(path string) error
- func (d *DockerSandbox) SetTimeout(timeout time.Duration)
- func (d *DockerSandbox) SetWorkDir(dir string)
- func (d *DockerSandbox) WriteFile(path string, data []byte) error
- type Sandbox
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicSandbox ¶
type BasicSandbox struct {
// contains filtered or unexported fields
}
func NewBasicSandbox ¶
func NewBasicSandbox(workDir string) *BasicSandbox
func (*BasicSandbox) Remove ¶
func (s *BasicSandbox) Remove(path string) error
type DockerSandbox ¶
type DockerSandbox struct {
// contains filtered or unexported fields
}
func NewDockerSandbox ¶
func NewDockerSandbox(image string) *DockerSandbox
func (*DockerSandbox) Remove ¶
func (d *DockerSandbox) Remove(path string) error
func (*DockerSandbox) SetTimeout ¶
func (d *DockerSandbox) SetTimeout(timeout time.Duration)
func (*DockerSandbox) SetWorkDir ¶
func (d *DockerSandbox) SetWorkDir(dir string)
Click to show internal directories.
Click to hide internal directories.