containerutil

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package containerutil holds small, source-language-agnostic helpers shared by the container-publishing Artifactor providers (providers/go, providers/rust). It deliberately does not live under pkg/shipwright, whose public contract surface is golden-locked by schema_golden_test.go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeEntrypoint

func ComputeEntrypoint(binaryName string) string

ComputeEntrypoint returns the in-image path of a published binary, falling back to defaultBinaryName ("app") when binaryName is empty. Pure helper, unit-testable without a Dagger client.

func RegistryHost

func RegistryHost(ref string) string

RegistryHost extracts the registry address portion of an image reference, e.g. "ghcr.io/acme/api:v1" -> "ghcr.io". A reference with no registry-looking first segment (a bare Docker Hub name such as "acme/api:v1") returns ref unchanged, which Dagger's WithRegistryAuth then treats as docker.io-relative. Pure helper, unit-testable without a Dagger client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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