debian

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 GoImage

func GoImage() string

func LintImage

func LintImage() string

func NewLinter

func NewLinter() build.Build

func NewProd

func NewProd() build.Build

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 GoBuild

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

func (GoBuild) Images

func (g GoBuild) Images() []string

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
	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

type Image

type Image string

Jump to

Keyboard shortcuts

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