golang

package
v0.1.144 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoRunnerEnvironment

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

GoRunnerEnvironment is a runner for go - Init:

  • go modules handling
  • binary building

- Start:

  • start the binary

func NewDockerGoRunner

func NewDockerGoRunner(ctx context.Context, image *resources.DockerImage, dir string, relativeSource string, name string) (*GoRunnerEnvironment, error)

func NewNativeGoRunner added in v0.1.89

func NewNativeGoRunner(ctx context.Context, dir string, relativeSource string) (*GoRunnerEnvironment, error)

func (*GoRunnerEnvironment) BinName

func (r *GoRunnerEnvironment) BinName(hash string) string

func (*GoRunnerEnvironment) BuildBinary

func (r *GoRunnerEnvironment) BuildBinary(ctx context.Context) error

func (*GoRunnerEnvironment) BuildTargetPath

func (r *GoRunnerEnvironment) BuildTargetPath(ctx context.Context, hash string) string

func (*GoRunnerEnvironment) Env

func (*GoRunnerEnvironment) GoModuleHandling

func (r *GoRunnerEnvironment) GoModuleHandling(ctx context.Context) error

func (*GoRunnerEnvironment) Init

func (*GoRunnerEnvironment) LocalCacheDir

func (r *GoRunnerEnvironment) LocalCacheDir(ctx context.Context) string

func (*GoRunnerEnvironment) LocalTargetPath

func (r *GoRunnerEnvironment) LocalTargetPath(ctx context.Context, hash string) string

func (*GoRunnerEnvironment) Runner added in v0.1.89

func (r *GoRunnerEnvironment) Runner(args ...string) (runners.Proc, error)

func (*GoRunnerEnvironment) Setup

func (r *GoRunnerEnvironment) Setup(ctx context.Context)

func (*GoRunnerEnvironment) Shutdown

func (r *GoRunnerEnvironment) Shutdown(ctx context.Context) error

func (*GoRunnerEnvironment) Stop

func (*GoRunnerEnvironment) UsedCache

func (r *GoRunnerEnvironment) UsedCache() bool

func (*GoRunnerEnvironment) WithCGO added in v0.1.144

func (r *GoRunnerEnvironment) WithCGO(b bool)

func (*GoRunnerEnvironment) WithDebugSymbol

func (r *GoRunnerEnvironment) WithDebugSymbol(debug bool)

func (*GoRunnerEnvironment) WithEnvironmentVariables

func (r *GoRunnerEnvironment) WithEnvironmentVariables(ctx context.Context, envs ...*resources.EnvironmentVariable)

func (*GoRunnerEnvironment) WithFile

func (r *GoRunnerEnvironment) WithFile(file string, location string)

func (*GoRunnerEnvironment) WithGoModDir

func (r *GoRunnerEnvironment) WithGoModDir(dir string)

func (*GoRunnerEnvironment) WithLocalCacheDir

func (r *GoRunnerEnvironment) WithLocalCacheDir(dir string)

func (*GoRunnerEnvironment) WithOutput

func (r *GoRunnerEnvironment) WithOutput(out io.Writer)

func (*GoRunnerEnvironment) WithPort

func (r *GoRunnerEnvironment) WithPort(ctx context.Context, port uint32)

func (*GoRunnerEnvironment) WithRaceConditionDetection

func (r *GoRunnerEnvironment) WithRaceConditionDetection(b bool)

func (*GoRunnerEnvironment) WithWorkspace added in v0.1.144

func (r *GoRunnerEnvironment) WithWorkspace(b bool)

Jump to

Keyboard shortcuts

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