tpod

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderSpec

func RenderSpec(w io.Writer, spec Spec) error

Types

type CacheSpec

type CacheSpec = runtime.CacheSpec

type DeviceSpec

type DeviceSpec = runtime.DeviceSpec

type FileSpec

type FileSpec = runtime.FileSpec

type LaunchOpts

type LaunchOpts struct {
	ProfileName string
	Args        []string
	Command     string
	Workspace   string
	ProfileDir  string
	ExtraTools  []string
	DryRun      bool
	Verbose     bool
	Runtime     runtime.Runtime
	// Progress receives status lines during Prepare (image pull, mise
	// install). If nil, progress goes to stderr. Set to a no-op writer
	// to silence progress entirely.
	Progress runtime.ProgressWriter
	// PortAllocator reserves host ports for auto-allocated bindings. If
	// nil, an ephemeral socket bind is used. Injectable for deterministic
	// tests.
	PortAllocator PortAllocator
}

type MountSpec

type MountSpec = runtime.MountSpec

type PortAllocator

type PortAllocator func(protocol, hostIP string) (string, error)

PortAllocator reserves an unused host port for a published binding. protocol is "tcp", "udp", or "sctp"; hostIP is the requested bind address ("" = all interfaces). Returns the allocated port as a string.

type PortSpec

type PortSpec = runtime.PortSpec

type Repo

type Repo = runtime.Repo

type Result

type Result struct {
	ExitCode int
	Err      error
}

func Launch

func Launch(ctx context.Context, opts LaunchOpts) Result

func LaunchWithWriter

func LaunchWithWriter(ctx context.Context, opts LaunchOpts, w io.Writer) Result

type Spec

type Spec = runtime.Spec

type WorkspaceSpec

type WorkspaceSpec = runtime.WorkspaceSpec

Jump to

Keyboard shortcuts

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