Versions in this module Expand all Collapse all v0 v0.4.0 Oct 22, 2026 Changes in this version + func AttachTmuxSession(name string, sess *session.Session) error + func BuildImage(ctx context.Context, tag, contextDir string) error + func CheckAvailable() error + func ContainerName(sessionName string) string + func EnsureTmuxSession(name string, sess *session.Session) error + func ExecInSession(meta session.TargetMeta, cmd []string, interactive bool) *exec.Cmd + func ImageExists(image string) bool + func IsDockerRunning(meta session.TargetMeta) bool + func IsRunning(meta session.TargetMeta) bool + func KillTmuxServer(meta session.TargetMeta) error + func NetworkName(sessionName string) string + func ReprovisionGatepostSecrets(gp session.GatepostMeta, cfg GatepostRuntimeConfig) + func RuntimeName(meta session.TargetMeta) string + func SetGatepostBypass(ctx context.Context, meta session.TargetMeta, bypass bool) error + func StartReadyTmuxSession(name string, sess *session.Session) (func() error, error) + type DockerTarget struct + func (d *DockerTarget) Start(ctx context.Context, opts StartOpts) (*StartResult, error) + func (d *DockerTarget) Stop(ctx context.Context, meta session.TargetMeta) error + func (d *DockerTarget) Type() string + type GatepostRuntimeConfig struct + AuthHome string + LogsCommand string + ProviderBootstrapCommand string + RequiredProviders string + Root string + type GatepostTarget struct + func (g *GatepostTarget) Start(ctx context.Context, opts StartOpts) (*StartResult, error) + func (g *GatepostTarget) Stop(ctx context.Context, meta session.TargetMeta) error + func (g *GatepostTarget) Type() string + type HostTarget struct + func (h *HostTarget) Start(_ context.Context, _ StartOpts) (*StartResult, error) + func (h *HostTarget) Stop(_ context.Context, _ session.TargetMeta) error + func (h *HostTarget) Type() string + type SecurityOpts struct + CPULimit string + CapDrop []string + MemoryLimit string + NoNewPrivs bool + PidsLimit int + ReadOnlyRoot bool + TmpfsMounts []string + func DefaultSecurityOpts() SecurityOpts + type SessionOperator interface + AttachTmuxSession func(name string, sess *session.Session) error + EnsureTmuxSession func(name string, sess *session.Session) error + IsRunning func(meta session.TargetMeta) bool + KillTmuxServer func(meta session.TargetMeta) error + StartReadyTmuxSession func(name string, sess *session.Session) (func() error, error) + func ResolveSessionOperator(meta session.TargetMeta) (SessionOperator, error) + type StartOpts struct + Env map[string]string + GatepostConfig GatepostRuntimeConfig + HostPorts map[string]int + Image string + Labels map[string]string + Security SecurityOpts + SessionName string + WorktreePath string + type StartResult struct + Meta session.TargetMeta + type Target interface + Start func(ctx context.Context, opts StartOpts) (*StartResult, error) + Stop func(ctx context.Context, meta session.TargetMeta) error + Type func() string + func Resolve(targetType string) (Target, error)