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
- type Option
- 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) RetrieveIP(ctx context.Context) (string, error)
- func (vm *VM) Start(ctx context.Context, bridgedInterface string, hostNetworking bool)
- type Vetu
- func (vetu *Vetu) Attributes() []attribute.KeyValue
- func (vetu *Vetu) Close(ctx context.Context) error
- func (vetu *Vetu) Image() string
- func (vetu *Vetu) Run(ctx context.Context, config *runconfig.RunConfig) error
- func (vetu *Vetu) Warmup(ctx context.Context, ident string, env map[string]string, ...) error
- func (vetu *Vetu) WorkingDirectory(projectDir string, dirtyMode bool) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrVetuNotFound = errors.New("vetu command not found") ErrVetuFailed = errors.New("vetu command returned non-zero exit code") )
View Source
var ( ErrFailed = errors.New("vetu isolation failed") ErrSyncFailed = errors.New("failed to sync project directory") )
Functions ¶
func CmdWithLogger ¶
Types ¶
type Option ¶
type Option func(*Vetu)
func WithBridgedInterface ¶
func WithDiskSize ¶ added in v0.108.3
func WithHostNetworking ¶ added in v0.108.2
func WithHostNetworking() Option
func WithLogger ¶
func WithLogger(logger logger.Lightweight) Option
type VM ¶
type VM struct {
// contains filtered or unexported fields
}
func NewVMClonedFrom ¶
Click to show internal directories.
Click to hide internal directories.