Harmont docs
Pipeline SDKReferenceToolchains

Go

Generated reference for the harmont Go API.

go

Callable singleton for the Go toolchain — access as hm.go.

Call directly to construct a GoToolchain, or use the bare-form action methods (go.build(), go.test(), etc.) for a one-shot leaf.

go(*, path='.', version='1.23.2', image=None, base=None) -> GoToolchain
ParameterTypeDefaultDescription
pathstr'.'Path to the Go module root.
versionstr'1.23.2'Go version to install (e.g. "1.23.2"). Must be a
full MAJOR.MINOR.PATCH version string.
imagestr | NoneNoneLocal-mode Docker base image override.
baseStep | NoneNoneExisting Step to attach to instead of emitting a fresh
apt-base step.

Returns GoToolchain — A GoToolchain ready for action methods.

go.build()

build(**kw) -> Step
ParameterTypeDefaultDescription
kwAny{}

Returns Step

go.fmt()

fmt(**kw) -> Step
ParameterTypeDefaultDescription
kwAny{}

Returns Step

go.test()

test(**kw) -> Step
ParameterTypeDefaultDescription
kwAny{}

Returns Step

go.vet()

vet(**kw) -> Step
ParameterTypeDefaultDescription
kwAny{}

Returns Step

GoEntry

Callable singleton for the Go toolchain — access as hm.go.

Call directly to construct a GoToolchain, or use the bare-form action methods (go.build(), go.test(), etc.) for a one-shot leaf.

GoEntry.build()

build(**kw) -> Step
ParameterTypeDefaultDescription
kwAny{}

Returns Step

GoEntry.fmt()

fmt(**kw) -> Step
ParameterTypeDefaultDescription
kwAny{}

Returns Step

GoEntry.test()

test(**kw) -> Step
ParameterTypeDefaultDescription
kwAny{}

Returns Step

GoEntry.vet()

vet(**kw) -> Step
ParameterTypeDefaultDescription
kwAny{}

Returns Step

GoToolchain

Go toolchain install chain — constructed via hm.go().

Holds the go-install step. Action methods (build, test, vet, fmt) attach leaves to installed.

Fields

FieldTypeDefault
pathstrrequired
installedSteprequired

GoToolchain.build()

build(**kw) -> Step
ParameterTypeDefaultDescription
kwAny{}

Returns Step

GoToolchain.fmt()

fmt(**kw) -> Step
ParameterTypeDefaultDescription
kwAny{}

Returns Step

GoToolchain.test()

test(**kw) -> Step
ParameterTypeDefaultDescription
kwAny{}

Returns Step

GoToolchain.vet()

vet(**kw) -> Step
ParameterTypeDefaultDescription
kwAny{}

Returns Step

On this page