Documentation ¶
Index ¶
- Constants
- func CacheFolder() string
- func GoImage() string
- func LintImage() string
- func NewLinter() build.Build
- func NewProd() build.Build
- func Script(bs *BuildScript) string
- type BuildScript
- type GoBuild
- type GoContainer
- func (c *GoContainer) Build() error
- func (c *GoContainer) BuildGoImage() error
- func (c *GoContainer) BuildScript() string
- func (c *GoContainer) CopyLintScript() error
- func (c *GoContainer) Images() []string
- func (c *GoContainer) Lint() error
- func (c *GoContainer) Name() string
- func (c *GoContainer) Prod() error
- func (c *GoContainer) Pull() error
- func (c *GoContainer) Run() error
- type Image
Constants ¶
View Source
const ( DEFAULT_GO = "1.22.4" PROJ_MOUNT = "/src" LINT_IMAGE = "golangci/golangci-lint:v1.59.1" OUT_DIR = "/out/" )
Variables ¶
This section is empty.
Functions ¶
func CacheFolder ¶
func CacheFolder() string
func Script ¶
func Script(bs *BuildScript) string
TODO: the -race flag needs CDO enabled for now https://github.com/golang/go/issues/6508
Types ¶
type BuildScript ¶
type BuildScript struct { Tags []string AppName string MainFile string Platforms []*types.PlatformSpec Verbose bool }
func NewBuildScript ¶
func NewBuildScript(appName, mainfile string, tags []string, verbose bool, platforms ...*types.PlatformSpec) *BuildScript
type GoContainer ¶
type GoContainer struct { //TODO add option to fail on linter or not App string File string Image string ImageTag string Platforms []*types.PlatformSpec Tags []string *container.Container }
func New ¶
func New() *GoContainer
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) CopyLintScript ¶
func (c *GoContainer) CopyLintScript() error
func (*GoContainer) Images ¶
func (c *GoContainer) Images() []string
func (*GoContainer) Lint ¶
func (c *GoContainer) Lint() error
func (*GoContainer) Name ¶
func (c *GoContainer) Name() 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.