image

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package image handles container image selection.

Index

Constants

View Source
const DefaultImage = "ubuntu:22.04"

DefaultImage is the default container image.

Variables

This section is empty.

Functions

func Resolve

func Resolve(depList []deps.Dependency, opts *ResolveOptions) string

Resolve determines the image to use based on dependencies and options. If depList is provided and non-empty, or if options require custom setup, returns the tag for a built image. Otherwise returns the default base image.

Types

type ResolveOptions

type ResolveOptions struct {
	// NeedsSSH indicates the image needs SSH packages and init script.
	NeedsSSH bool

	// NeedsClaudeInit indicates the image needs the init script for Claude setup.
	NeedsClaudeInit bool

	// NeedsCodexInit indicates the image needs the init script for Codex setup.
	NeedsCodexInit bool

	// NeedsGeminiInit indicates the image needs the init script for Gemini setup.
	NeedsGeminiInit bool

	// ClaudePlugins are plugins baked into the image.
	// Format: "plugin-name@marketplace-name"
	ClaudePlugins []string

	// Hooks contains user-defined lifecycle hook commands.
	Hooks *deps.HooksConfig
}

ResolveOptions configures image resolution.

Jump to

Keyboard shortcuts

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