installer

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prepared

type Prepared struct {
	// contains filtered or unexported fields
}

func Prepare

func Prepare(ctx context.Context, req Request) (*Prepared, error)

func (*Prepared) Apply

func (p *Prepared) Apply(ctx context.Context) error

Apply is atomic: files land in <InstallDir>.tmp and only get renamed into place once every step succeeds.

func (*Prepared) Discard

func (p *Prepared) Discard()

type ProgressFunc

type ProgressFunc func(downloaded, total int64)

type Request

type Request struct {
	Source         catalog.Source
	PackageName    string
	PackageVersion string
	Platform       fetcher.Platform
	InstallDir     string
	Progress       ProgressFunc
}

type SandboxConfig

type SandboxConfig struct {
	Cwd       string
	WriteDirs []string
	Argv      []string
	Env       []string
}

SandboxConfig: filesystem writes are limited to WriteDirs; reads are broadly permitted; network is always denied.

Jump to

Keyboard shortcuts

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