debian

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

func GoImage

func GoImage() string

func LintImage

func LintImage() string

func NewLinter

func NewLinter() build.Build

func NewProd

func NewProd() build.Build

Types

type GoBuild

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

func (GoBuild) Images

func (g GoBuild) Images() []string

func (GoBuild) IsAsync added in v0.2.1

func (g GoBuild) IsAsync() bool

func (GoBuild) Name

func (g GoBuild) Name() string

func (GoBuild) Run

func (g GoBuild) Run() error

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

Jump to

Keyboard shortcuts

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