Documentation
¶
Index ¶
- Constants
- Variables
- func CacheFolder() string
- func GetDockerfileMetadata(variantType string) (version, checksum, content string)
- func GoImage(build container.Build) string
- func Images(build container.Build) []string
- func Matches(build container.Build) bool
- func New() build.BuildStepv3
- func NewProd() build.BuildStepv3
- type GoContainer
Constants ¶
View Source
const ( // ImageVersion is the golang version extracted from the Dockerfile ImageVersion = "1.25.5" // DockerfileChecksum is the checksum of the Dockerfile content DockerfileChecksum = "6771d28b2de472298ffdd193ee421254d2bb9aa3bf90a63f9ce21393728fa834" )
Default Dockerfile (Dockerfilego)
View Source
const ( PROJ_MOUNT = "/src" OUT_DIR = "/out/" )
Variables ¶
View Source
var DockerfileContent = `` /* 601-byte string literal not displayed */
DockerfileContent contains the embedded Dockerfile content
Functions ¶
func CacheFolder ¶
func CacheFolder() string
func GetDockerfileMetadata ¶ added in v0.34.0
GetDockerfileMetadata returns the metadata for the specified variant type. Pass empty string "" for default variant.
func Matches ¶ added in v0.31.0
Matches implements the Build interface - Debian variant runs when from=debian
func New ¶
func New() build.BuildStepv3
func NewProd ¶
func NewProd() build.BuildStepv3
Types ¶
type GoContainer ¶
type GoContainer struct {
//TODO add option to fail on linter or not
*container.Container
App string
File u.SrcFile
Folder string
Image string
ImageTag string
Tags []string
Platforms []*types.PlatformSpec
}
func (*GoContainer) Build ¶
func (c *GoContainer) Build() error
func (*GoContainer) BuildGoImage ¶
func (c *GoContainer) BuildGoImage() error
func (*GoContainer) BuildScript ¶
func (c *GoContainer) BuildScript() string
func (*GoContainer) Prod ¶
func (c *GoContainer) Prod() error
func (*GoContainer) Pull ¶
func (c *GoContainer) Pull() error
func (*GoContainer) Run ¶
func (c *GoContainer) Run() error
Click to show internal directories.
Click to hide internal directories.