Help us shape the future of Go! Take the 2026 Go Developer Survey

builder

package
v0.33.27 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, version string, opts Options, logger *logs.Logger) error

Build orchestrates the complete package build and publish workflow. It authenticates with the registry, builds images, and publishes versioned artifacts.

Types

type Credentials

type Credentials struct {
	// Repository is the target container registry repository.
	Repository string
	// Username is the registry login username.
	Username string
	// Token is the registry login password or token.
	Token string
}

Credentials configures registry destination and authentication.

type Options

type Options struct {
	// Credentials contains registry destination and authentication settings.
	RepositoryCredentials Credentials
	// FinalRepositoryCredentials contains the final image repository credentials.
	FinalRepositoryCredentials Credentials
	// Force allows rebuilding and publishing a version that already exists.
	Force bool
	// Debug keeps generated build files in the package root after build.
	Debug bool
	// Insecure allows plain HTTP registries and skips TLS certificate verification.
	Insecure bool
	// Sign configures image signing during the build.
	Sign SignOptions
}

Options configures registry authentication, build behavior, and image signing.

type SignOptions

type SignOptions struct {
	// Enabled turns on image manifest signing.
	Enabled bool
	// Cert is a signing certificate path or base64-encoded certificate.
	Cert string
	// Key is a signing key path, base64-encoded key, or vault path.
	Key string
}

SignOptions configures optional image signing.

Jump to

Keyboard shortcuts

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