sandbox

package
v0.0.0-...-12b6483 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewSandbox = func(sandboxId string) Sandbox {
	isRunning := false
	faulted := false
	return Sandbox{
		Id:               sandboxId,
		workingDirectory: filepath.Join(configuration.GetWorkingDirectory(), sandboxWorkingDirectoryName, sandboxId),
		isRunning:        &isRunning,
		faulted:          &faulted,
		commandHandler:   executil.GetAsyncCommandHandler(),
	}
}

Functions

This section is empty.

Types

type Sandbox

type Sandbox struct {
	Id string
	// contains filtered or unexported fields
}

func (*Sandbox) Cleanup

func (s *Sandbox) Cleanup() error

func (*Sandbox) CreateBaseDirectory

func (s *Sandbox) CreateBaseDirectory() error

func (*Sandbox) IsAlive

func (s *Sandbox) IsAlive() bool

func (*Sandbox) Start

func (sandbox *Sandbox) Start() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL