sourceami

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeFast = iota
	ModeSlow
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Mode int
	AMI  string
}

func Resolve

func Resolve(ctx context.Context, builderImage, version string) (*Response, error)

Resolve determines the source AMI and build mode. If builderImage is provided:

  • If it looks like an AMI ID (ami-*), use it directly with slow mode
  • Otherwise treat it as a name pattern and look it up

If builderImage is empty, try the fast path (easyto builder AMI matching the given version) and fall back to slow path (Debian) if not found.

Jump to

Keyboard shortcuts

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