Documentation ¶
Index ¶
- type GoRunnerEnvironment
- func (r *GoRunnerEnvironment) BinName(hash string) string
- func (r *GoRunnerEnvironment) BuildBinary(ctx context.Context) error
- func (r *GoRunnerEnvironment) BuildTargetPath(ctx context.Context, hash string) string
- func (r *GoRunnerEnvironment) Env() runners.RunnerEnvironment
- func (r *GoRunnerEnvironment) GoModuleHandling(ctx context.Context) error
- func (r *GoRunnerEnvironment) Init(ctx context.Context) error
- func (r *GoRunnerEnvironment) LocalCacheDir(ctx context.Context) string
- func (r *GoRunnerEnvironment) LocalTargetPath(ctx context.Context, hash string) string
- func (r *GoRunnerEnvironment) Runner(args ...string) (runners.Proc, error)
- func (r *GoRunnerEnvironment) Setup(ctx context.Context)
- func (r *GoRunnerEnvironment) Shutdown(ctx context.Context) error
- func (r *GoRunnerEnvironment) Stop(ctx context.Context) error
- func (r *GoRunnerEnvironment) UsedCache() bool
- func (r *GoRunnerEnvironment) WithCGO(b bool)
- func (r *GoRunnerEnvironment) WithDebugSymbol(debug bool)
- func (r *GoRunnerEnvironment) WithEnvironmentVariables(ctx context.Context, envs ...*resources.EnvironmentVariable)
- func (r *GoRunnerEnvironment) WithFile(file string, location string)
- func (r *GoRunnerEnvironment) WithGoModDir(dir string)
- func (r *GoRunnerEnvironment) WithLocalCacheDir(dir string)
- func (r *GoRunnerEnvironment) WithOutput(out io.Writer)
- func (r *GoRunnerEnvironment) WithPort(ctx context.Context, port uint32)
- func (r *GoRunnerEnvironment) WithRaceConditionDetection(b bool)
- func (r *GoRunnerEnvironment) WithWorkspace(b bool)
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 (*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 (r *GoRunnerEnvironment) Env() runners.RunnerEnvironment
func (*GoRunnerEnvironment) GoModuleHandling ¶
func (r *GoRunnerEnvironment) GoModuleHandling(ctx context.Context) error
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) 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)
Click to show internal directories.
Click to hide internal directories.