build

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructImageName

func ConstructImageName(tag string) string

constructImageName constructs the image name using the ImageNameBuilder

Types

type ImageNameBuilder

type ImageNameBuilder struct {
	// contains filtered or unexported fields
}

ImageNameBuilder handles the construction of Docker image names with proper formatting

func NewImageNameBuilder

func NewImageNameBuilder(baseName, registry string) *ImageNameBuilder

NewImageNameBuilder creates a new image name builder with default values

func (*ImageNameBuilder) Build

func (b *ImageNameBuilder) Build() (string, error)

Build constructs the final image name according to the configured strategy

func (*ImageNameBuilder) WithBranch

func (b *ImageNameBuilder) WithBranch(branch string) *ImageNameBuilder

WithBranch sets the branch name for branch-based strategies

func (*ImageNameBuilder) WithNameStrategy

func (b *ImageNameBuilder) WithNameStrategy(strategy string) *ImageNameBuilder

WithNameStrategy sets the naming strategy

func (*ImageNameBuilder) WithTag

func (b *ImageNameBuilder) WithTag(tag string) *ImageNameBuilder

WithTag sets the explicit tag for the image

func (*ImageNameBuilder) WithTimestamp

func (b *ImageNameBuilder) WithTimestamp(use bool) *ImageNameBuilder

WithTimestamp controls whether to append timestamp

Jump to

Keyboard shortcuts

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