images

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package images builds and verifies immutable service images for deployment adapters.

Index

Constants

View Source
const BuildIgnore = "" /* 169-byte string literal not displayed */

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, runner execx.Runner, root string, p *plan.Plan, st *state.Store, values map[string]string) (map[string]model.Image, error)

Build verifies all selected images before any backend, migration or workload changes.

func ConfigDir

func ConfigDir(root string, d *model.Deployment) (string, error)

ConfigDir supplies the same authenticated connection to deployment pulls.

func Connect

func Connect(ctx context.Context, runner execx.Runner, projectRoot, name, host, username, token string) error

Connect publishes a private connection only after Docker persists its login.

func ConnectionDir

func ConnectionDir(projectRoot, name, host string) (string, error)

ConnectionDir returns a host-bound isolated Docker config, never a credential value.

func DockerEnv

func DockerEnv() []string

DockerEnv keeps configured Buildx builders available without changing global credentials.

func Dockerfile

func Dockerfile(d *model.Deployment, s model.Service, root string) ([]byte, error)

func Ignore

func Ignore(d *model.Deployment) []byte

func IncludedSource

func IncludedSource(relative string, isDir bool) bool

IncludedSource is shared with planning so nested source directories remain hashed.

func LocalIdentity

func LocalIdentity(ctx context.Context, runner execx.Runner, root string, d *model.Deployment, image model.Image) (model.Image, error)

LocalIdentity verifies a pulled registry image in the selected Docker store.

func PrepareDocker

func PrepareDocker(ctx context.Context, runner execx.Runner, rootPath string, d *model.Deployment, config string) error

PrepareDocker preserves named daemon contexts in isolated registry credentials.

func Ref

func Ref(image model.Image) string

func SourceDigest

func SourceDigest(raw []byte, mode fs.FileMode) string

func SourceHasher

func SourceHasher(mode fs.FileMode) hash.Hash

SourceHasher includes permissions because Docker COPY preserves executable assets.

func Verify

func Verify(ctx context.Context, runner execx.Runner, root string, d *model.Deployment, image model.Image) error

Verify checks an immutable artifact without reading or rebuilding source.

Types

type Connection

type Connection struct {
	Name      string `json:"name"`
	Host      string `json:"host"`
	Username  string `json:"username"`
	Connected bool   `json:"connected"`
}

Connection contains public registry metadata without credentials or paths.

func Connections

func Connections(projectRoot string) ([]Connection, error)

Jump to

Keyboard shortcuts

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