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.
Click to show internal directories.
Click to hide internal directories.