local

package
v0.19.1302 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: AGPL-3.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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