Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Registry domains ArtifactRegistryDomain = ".pkg.dev" GCRDomain = "gcr.io" // Registry types ArtifactRegistryType = "Artifact Registry" GCRRegistryType = "Google Container Registry" // Default values DefaultTag = "latest" DefaultTimeout = 1500 ArtifactRegistryFormat = "us-central1-docker.pkg.dev/%s/%s:%s" GCRFormat = "gcr.io/%s/%s:%s" )
Constants for registry types and URLs
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildConfig ¶
type BuildConfig struct {
ContextDir string
DockerfilePath string
NoCache bool
BuildArgs []string
Target string
Platform string
Timeout int
}
BuildConfig handles Docker build configuration
func NewBuildConfig ¶
func NewBuildConfig() *BuildConfig
NewBuildConfig creates a new BuildConfig with defaults
func (*BuildConfig) PrepareBuildOptions ¶
func (bc *BuildConfig) PrepareBuildOptions() (docker.BuildOptions, error)
PrepareBuildOptions prepares docker build options from configuration
type ImageReference ¶
type ImageReference struct {
FullPath string
LocalName string
LocalTag string
RegistryType string
BuildImageName string
RegistryURL string
}
ImageReference represents a parsed image reference
type ImageRegistry ¶
ImageRegistry handles image registry operations and parsing
func NewImageRegistry ¶
func NewImageRegistry(projectID string, useGCR, deleteAfterPush bool) *ImageRegistry
NewImageRegistry creates a new ImageRegistry instance
func (*ImageRegistry) GenerateRegistryURL ¶
func (ir *ImageRegistry) GenerateRegistryURL(imageRef *ImageReference) string
GenerateRegistryURL generates the Google Cloud Console URL for the image
func (*ImageRegistry) ParseImageReference ¶
func (ir *ImageRegistry) ParseImageReference(imageRef string) (*ImageReference, error)
ParseImageReference parses and validates image reference
Click to show internal directories.
Click to hide internal directories.