Documentation ¶
Index ¶
- Variables
- func Cleanup() error
- func Cmd(ctx context.Context, additionalEnvironment map[string]string, name string, ...) (string, string, error)
- func CmdWithLogger(ctx context.Context, additionalEnvironment map[string]string, ...) (string, string, error)
- func Installed() bool
- func PrePull(ctx context.Context, image string, logger *echelon.Logger) error
- type Info
- type Option
- type Tart
- func (tart *Tart) Attributes() []attribute.KeyValue
- func (tart *Tart) Close(ctx context.Context) error
- func (tart *Tart) Image() string
- func (tart *Tart) Run(ctx context.Context, config *runconfig.RunConfig) (err error)
- func (tart *Tart) Warmup(ctx context.Context, ident string, additionalEnvironment map[string]string, ...) error
- func (tart *Tart) WorkingDirectory(projectDir string, dirtyMode bool) string
- type VM
- func (vm *VM) Close() error
- func (vm *VM) Configure(ctx context.Context, cpu uint32, memory uint32, diskSize uint32, ...) error
- func (vm *VM) ErrChan() chan error
- func (vm *VM) Ident() string
- func (vm *VM) Info(ctx context.Context) (*Info, error)
- func (vm *VM) RetrieveIP(ctx context.Context) (string, error)
- func (vm *VM) Start(ctx context.Context, softnet bool, directoryMounts []directoryMount)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTartNotFound = errors.New("tart command not found") ErrTartFailed = errors.New("tart command returned non-zero exit code") )
View Source
var ( ErrFailed = errors.New("tart isolation failed") ErrSyncFailed = errors.New("failed to sync project directory") )
Functions ¶
func CmdWithLogger ¶ added in v0.77.0
Types ¶
type Option ¶
type Option func(*Tart)
func WithDiskSize ¶ added in v0.108.3
func WithDisplay ¶ added in v0.97.0
func WithLogger ¶
func WithLogger(logger logger.Lightweight) Option
func WithSoftnet ¶ added in v0.81.0
func WithSoftnet() Option
func WithVolumes ¶ added in v0.105.0
func WithVolumes(volumes []*api.Isolation_Tart_Volume) Option
type Tart ¶
type Tart struct {
// contains filtered or unexported fields
}
func (*Tart) Attributes ¶ added in v0.114.2
Click to show internal directories.
Click to hide internal directories.