local

package
v0.19.903 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package local implements a binary.Binary that points at an existing terraform CLI binary on disk. It is the install-runner counterpart of the build-time binary vendoring step: when the build runner shipped a terraform CLI inside the OCI artifact under pkg/terraform/workspace.DefaultBundledBinaryDir, the install runner instantiates this package's `local` binary instead of remotebinary so `terraform init`/`apply` can run fully airgapped.

Lifecycle is intentionally tiny: no download, no copy, no cleanup. `Install` only validates the path is a regular executable file and returns it. The bundled binary lives inside the unpacked OCI archive, whose lifecycle is owned by the runner's archive layer — not by this binary implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(v *validator.Validate, opts ...localOption) (*local, error)

func WithPath

func WithPath(p string) localOption

WithPath sets the absolute path to the terraform CLI binary the workspace should execute. Caller is responsible for resolving and validating the path beforehand (see workspace.DetectBundledBinary).

Types

This section is empty.

Jump to

Keyboard shortcuts

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