alpine

package
v0.41.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// ImageVersion is the golang version extracted from the Dockerfile
	ImageVersion = "1.26.2-alpine"

	// DockerfileChecksum is the checksum of the Dockerfile content
	DockerfileChecksum = "d4c24e2e777a36b7f21dc3decbda9b891139f2ec6ca03658fad02e600e4ee7ec"
)

Default Dockerfile (Dockerfile_go)

View Source
const (
	// ImageVersionChromium is the golang version extracted from the Dockerfile
	ImageVersionChromium = "1.26.2-alpine"

	// DockerfileChecksumChromium is the checksum of the Dockerfile content
	DockerfileChecksumChromium = "885702fb7f8ba873a95f2c59155cdf799b8a16c49f0dc5343cabfed417e86173"
)

chromium variant (Dockerfile_chromium_go)

View Source
const (
	PROJ_MOUNT = "/src"
	OUT_DIR    = "/out/"
)

Variables

View Source
var DockerfileContent = `` /* 378-byte string literal not displayed */

DockerfileContent contains the embedded Dockerfile content

View Source
var DockerfileContentChromium = `` /* 387-byte string literal not displayed */

DockerfileContentChromium contains the embedded Dockerfile content

Functions

func CacheFolder

func CacheFolder() string

func GetDockerfileMetadata added in v0.34.0

func GetDockerfileMetadata(variantType string) (version, checksum, content string)

GetDockerfileMetadata returns the metadata for the specified variant type. Pass empty string "" for default variant, or "chromium" for chromium variant.

func GoImage

func GoImage(build container.Build) string

func GoImages added in v0.31.0

func GoImages(build container.Build) []string

func Matches added in v0.31.0

func Matches(build container.Build) bool

func New

func New() build.BuildStep

func NewLinter

func NewLinter() build.BuildStep

func NewProd

func NewProd() build.BuildStep

Types

type CustomGCLFileReader added in v0.15.0

type CustomGCLFileReader struct{}

func (CustomGCLFileReader) FileExists added in v0.15.0

func (c CustomGCLFileReader) FileExists(filename string) bool

func (CustomGCLFileReader) ReadFile added in v0.15.0

func (c CustomGCLFileReader) ReadFile(name string) ([]byte, error)

type CustomGCLReader added in v0.15.0

type CustomGCLReader struct {
	FileReader
}

func (CustomGCLReader) FileExists added in v0.15.0

func (c CustomGCLReader) FileExists(filename string) bool

func (CustomGCLReader) ReadFile added in v0.15.0

func (c CustomGCLReader) ReadFile(name string) ([]byte, error)

type FileReader added in v0.15.0

type FileReader interface {
	FileExists(filename string) bool
	ReadFile(name string) ([]byte, error)
}

type GoContainer

type GoContainer struct {
	*container.Container
	ContainerFiles map[string]*protos2.ContainerFile
	App            string
	File           u.SrcFile
	Folder         string
	Image          string
	ImageTag       string
	Platforms      []*types.PlatformSpec
	Tags           []string
}

func (*GoContainer) Build

func (c *GoContainer) Build() error

func (*GoContainer) BuildGoImage

func (c *GoContainer) BuildGoImage() error

func (*GoContainer) BuildScript

func (c *GoContainer) BuildScript() *buildscript.BuildScript

func (*GoContainer) Lint

func (c *GoContainer) Lint() (string, error)

func (*GoContainer) Prod

func (c *GoContainer) Prod() (string, error)

func (*GoContainer) Pull

func (c *GoContainer) Pull() error

func (*GoContainer) Run

func (c *GoContainer) Run() (string, error)

type GolangCiLint added in v0.15.0

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

func NewGolangCiLint added in v0.15.0

func NewGolangCiLint() GolangCiLint

func (GolangCiLint) Command added in v0.15.0

func (c GolangCiLint) Command(tags string, folder string) string

func (GolangCiLint) LintScript added in v0.15.0

func (c GolangCiLint) LintScript(tags []string, folder string) string

Jump to

Keyboard shortcuts

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