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.BuildStep
- func NewProd() build.BuildStep
- type GoContainer
Constants ¶
View Source
const ( // ImageVersion is the golang version extracted from the Dockerfile ImageVersion = "1.26.2" // DockerfileChecksum is the checksum of the Dockerfile content DockerfileChecksum = "604a39c267888d0d71fab2023cb84253a77a484179cf8e4802060690d573f99a" )
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.
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() (string, error)
func (*GoContainer) Pull ¶
func (c *GoContainer) Pull() error
func (*GoContainer) Run ¶
func (c *GoContainer) Run() (string, error)
Click to show internal directories.
Click to hide internal directories.