unregistry

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package unregistry builds and inspects local images before the deployer transfers their immutable archives through Tako's structured runtime API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildRequest added in v0.6.0

type BuildRequest struct {
	Image      string
	ContextDir string
	Dockerfile string
	Platform   string
	Args       map[string]string
	Target     string
}

BuildRequest describes a platform-specific local build.

type Client added in v0.6.0

type Client struct {
	Runner Runner
	Stdout io.Writer
	Stderr io.Writer
}

Client wraps local Docker buildx, inspection, and immutable export.

func (Client) Build added in v0.6.0

func (c Client) Build(ctx context.Context, req BuildRequest) error

Build builds and loads a single-platform image into local Docker.

func (Client) CheckAvailable added in v0.6.0

func (c Client) CheckAvailable(ctx context.Context) error

CheckAvailable verifies local Docker and buildx are usable.

func (Client) Export added in v0.10.0

func (c Client) Export(ctx context.Context, imageID string, output io.Writer) error

Export writes an immutable image ID to a Docker archive. Saving by ID keeps a concurrent tag change from selecting different bytes.

func (Client) Inspect added in v0.10.0

func (c Client) Inspect(ctx context.Context, image string) (ImageDescriptor, error)

type CommandSpec added in v0.6.0

type CommandSpec struct {
	Dir                 string
	Env                 []string
	Name                string
	Args                []string
	SensitiveArgIndexes []int
}

CommandSpec describes a local command invocation.

type ExecRunner added in v0.6.0

type ExecRunner struct {
	Stdout io.Writer
	Stderr io.Writer
}

ExecRunner runs commands with os/exec.

func (ExecRunner) Run added in v0.6.0

func (r ExecRunner) Run(ctx context.Context, spec CommandSpec) (string, error)

Run executes a local command and returns combined stdout/stderr output.

type ImageDescriptor added in v0.10.0

type ImageDescriptor struct {
	ImageID      string
	OS           string
	Architecture string
	Variant      string
	DaemonID     string
}

type Runner added in v0.6.0

type Runner interface {
	Run(ctx context.Context, spec CommandSpec) (string, error)
}

Runner executes local commands. Tests use this to verify exact Docker CLI invocations without requiring Docker.

Jump to

Keyboard shortcuts

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