Documentation
¶
Index ¶
- Constants
- func CacheFolder() string
- func GoImage() string
- func LintImage() string
- func NewLinter() build.Build
- func NewProd() build.Build
- 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) IsAsync() bool
- 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
Constants ¶
View Source
const ( DEFAULT_GO = "1.23.3" PROJ_MOUNT = "/src" LINT_IMAGE = "golangci/golangci-lint:v1.61.0" OUT_DIR = "/out/" )
Variables ¶
This section is empty.
Functions ¶
func CacheFolder ¶
func CacheFolder() string
Types ¶
type GoContainer ¶
type GoContainer struct { //TODO add option to fail on linter or not App string File string Folder 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) IsAsync ¶ added in v0.2.1
func (c *GoContainer) IsAsync() bool
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.