Documentation
¶
Overview ¶
Package images builds and verifies immutable service images for deployment adapters.
Index ¶
- Constants
- func Build(ctx context.Context, runner execx.Runner, root string, p *plan.Plan, ...) (map[string]model.Image, error)
- func ConfigDir(root string, d *model.Deployment) (string, error)
- func Connect(ctx context.Context, runner execx.Runner, ...) error
- func ConnectionDir(projectRoot, name, host string) (string, error)
- func DockerEnv() []string
- func Dockerfile(d *model.Deployment, s model.Service, root string) ([]byte, error)
- func Ignore(d *model.Deployment) []byte
- func IncludedSource(relative string, isDir bool) bool
- func LocalIdentity(ctx context.Context, runner execx.Runner, root string, d *model.Deployment, ...) (model.Image, error)
- func PrepareDocker(ctx context.Context, runner execx.Runner, rootPath string, d *model.Deployment, ...) error
- func Ref(image model.Image) string
- func SourceDigest(raw []byte, mode fs.FileMode) string
- func SourceHasher(mode fs.FileMode) hash.Hash
- func Verify(ctx context.Context, runner execx.Runner, root string, d *model.Deployment, ...) error
- type Connection
Constants ¶
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 ¶
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 Ignore ¶
func Ignore(d *model.Deployment) []byte
func IncludedSource ¶
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 SourceHasher ¶
SourceHasher includes permissions because Docker COPY preserves executable assets.
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)