sdkr

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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

type ImageRegistry struct {
	ProjectID       string
	UseGCR          bool
	DeleteAfterPush bool
}

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

Jump to

Keyboard shortcuts

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