builder

package
v0.0.0-...-24a9058 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImage

func BuildImage(ctx context.Context, params types.BuildImageParams) error

BuildImage encapsulates the complete image building process Note: Before calling this function, you should call SyncBlobs to ensure all blobs referenced in the manifest exist in the target registry. This step is critical for the manifest upload to succeed. Parameters: - ctx: context for the operation - params: BuildImageParams struct containing all parameters needed to build the image Returns: - error: any error that occurred during the build process

func BuildImageFromMap

func BuildImageFromMap(ctx context.Context, files map[string][]byte, targetImage string, targetAuth types.Auth, baseImage string, baseImageAuth types.Auth) error

BuildImageFromMap creates a tar from file mapping, compresses it to tar.gz, and then builds an image Parameters: - ctx: context for the operation - files: map of file paths to file content bytes - targetImage: the target image reference (repository[:tag]) - targetAuth: authentication information for the target registry - baseImage: the base image reference (repository[:tag]) - baseImageAuth: authentication information for the base image registry Returns: - error: any error that occurred during the build process

func SyncBlobs

func SyncBlobs(ctx context.Context, syncParams types.SyncBlobsParams) error

SyncBlobs ensures all referenced blobs exist in target registry. If not, stream-copy them from the base registry to the target registry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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