install

package
v0.3.0-dev.15 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 15 Imported by: 0 modules, 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 install puts pinned provider zips into an OpenTofu filesystem mirror. Every zip is downloaded over HTTPS from its pinned release and must match both its SHA-256 and its OpenTofu h1 hash before it is written.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CLIConfig

func CLIConfig(m *core.Manifest, dir string) string

CLIConfig returns an OpenTofu CLI configuration that installs the mirrored providers from dir only, and everything else from its registry.

func H1

func H1(zipBytes []byte) (string, error)

H1 computes OpenTofu's h1 hash (the Go module "dirhash" of the zip contents).

func HTTPS

func HTTPS(rawURL string) ([]byte, error)

HTTPS downloads over HTTPS only (including redirects), with a size bound.

func Mirror

func Mirror(m *core.Manifest, dir, platform string, fetch Fetcher) ([]string, error)

Mirror installs every provider in the manifest for one platform into a packed filesystem mirror at dir (registry/namespace/type/<zip>).

Types

type Fetcher

type Fetcher func(url string) ([]byte, error)

Fetcher downloads a URL. Tests replace it.

Jump to

Keyboard shortcuts

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