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
Types ¶
This section is empty.