Versions in this module Expand all Collapse all v0 v0.10.0 Oct 19, 2026 v0.0.0 Oct 16, 2026 Changes in this version + const BaseTemplateName + const DarwinVMUser + const NixVolumeFileName + const NixVolumeLabel + const NixVolumeSizeGB + const ProvisionedMarkerPath + const S6EnvDir + const S6ServicesDir + func BuildExecCommand(spec ExecSpec) string + func CellHome(home, cellName string) string + func CollectSSHPubKeys(sshDir string) string + func DetectHostNixStore() string + func EnsureHomeDir(home, cellName string) (string, error) + func EnsureNixVolume(home string) (string, error) + func GenerateCreateSessionUserScript(username string) string + func GenerateHomeMountScript(cellName, username string) string + func GenerateHostNixSubstituterScript() string + func GenerateNixDarwinActivateScript(stack, flakeDir string) string + func GenerateNixDiskPrepScript(cellName string) string + func GenerateNixInstallScript() string + func GenerateNixShadowRepairScript() string + func GenerateNixStoreSwapScript(cellName string) string + func GeneratePreflightDiagScript() string + func GenerateProjectMountScript(tag, username, mountPoint string) string + func GenerateProvisionedMarkerScript() string + func GenerateS6SessionActivateScript(cellUser string) string + func GenerateSSHEnablementScript() string + func GenerateSSHKeyPair(dir string) (string, error) + func GenerateSSHKeyScript(pubKey string) string + func GenerateSetHostnameScript(cellName string) string + func GenerateSetupSessionHomeScript(username string) string + func GenerateSudoersScript(username string) string + func GenerateVerifySSHdFDAScript() string + func GenerateVirtioFSMountScript(tag, mountPoint string) string + func InstanceVMName(cellName string) string + func IsNixStore(nixPath string) bool + func NixVolumePath(home string) string + func PrepareArtifactDir(dir string) error + func ProjectPathInVM(hostHome, baseDir, cellUser string) string + func TartClone(ctx context.Context, ref, localName string) error + func TartDelete(ctx context.Context, name string) error + func TartExec(ctx context.Context, name string, command []string, stdout, stderr *os.File) error + func TartIP(ctx context.Context, name string) (string, error) + func TartSet(ctx context.Context, name string, cpus uint, memoryMB uint64) error + func TartStop(ctx context.Context, name string) error + func TartVersion(ctx context.Context) string + func TemplateVMName(stack string, modules []string) string + func WaitForSSH(host string, port uint16, timeout, interval time.Duration) error + func WaitForSSHObserved(host string, port uint16, timeout, interval time.Duration, obs Observer, ...) error + type AcquireInputs struct + Disks []string + ExternalVM bool + InitFunc func() error + NoGraphics bool + SSHHost string + SSHPort uint16 + SSHTimeout time.Duration + SharedDirs map[string]string + TemplateName string + VMName string + func (a *AcquireInputs) ApplyDefaults() + func (a *AcquireInputs) Validate() error + type AcquireResult struct + Managed bool + SSHHost string + SSHPort uint16 + VM *VM + func AcquireDarwinVM(_ context.Context, _ AcquireInputs) (*AcquireResult, error) + type BuildConfig struct + CPUs uint + CellName string + HomeDir string + MemoryGB uint64 + Modules []string + SSHPort uint16 + Stack string + Username string + func (c *BuildConfig) ApplyDefaults() + func (c *BuildConfig) Validate() error + type CellSSHPaths struct + Dir string + PrivateKey string + PublicKey string + func NewCellSSHPaths(home, cellName string) CellSSHPaths + type DiscoveredVM struct + CellName string + IP string + VNCPort string + func DiscoverRunningVMs(ctx context.Context) []DiscoveredVM + type Engine struct + func (Engine) Build(ctx context.Context, opts engine.BuildOpts) error + func (Engine) Init(context.Context, engine.InitOpts) error + func (Engine) Run(ctx context.Context, opts engine.RunOpts) error + type ExecSpec struct + Binary string + EnvVars []string + Flags []string + ProjectDir string + RunAsUser string + UserArgs []string + WorkDir string + type InitConfig struct + CPUs uint + CellName string + DiskGB uint64 + HasHostNix bool + HomeDir string + MemoryGB uint64 + Password string + SSHPort uint16 + Stack string + Username string + func (c *InitConfig) ApplyDefaults() + func (c *InitConfig) Validate() error + type NopObserver struct + func (NopObserver) Logf(string, ...any) + func (NopObserver) Progress(float64, string) + type Observer interface + Logf func(format string, args ...any) + Progress func(fraction float64, message string) + type ProvisionStep struct + Command string + Name string + NeedsPassword bool + func BaseProvisionSteps(cfg InitConfig, pubKey string) []ProvisionStep + func ProvisionSteps(cfg InitConfig, pubKey string, offlineProvisioned bool) []ProvisionStep + func StackProvisionSteps(cfg InitConfig) []ProvisionStep + type TartGetInfo struct + CPU int + Disk int + DiskFormat string + Display string + Memory uint64 + OS string + Running bool + Size string + State string + func TartGet(ctx context.Context, name string) (TartGetInfo, error) + type VM struct + Name string + func TartRun(ctx context.Context, name string, dirs map[string]string, disks []string, ...) (*VM, error) + func (vm *VM) ForceStop() error + func (vm *VM) Stderr() string + func (vm *VM) Stop() error + func (vm *VM) WaitForIP(ctx context.Context, timeout, interval time.Duration) (string, error) + type VMStateFunc func() string