state

package
v0.0.0-...-c7a9a19 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptOpenTofuState

func DecryptOpenTofuState(stateData []byte, passphrase string) ([]byte, error)

DecryptOpenTofuState decrypts an encrypted OpenTofu state file

func GetPassphrase

func GetPassphrase() (string, error)

GetPassphrase prompts the user for a passphrase securely

func LoadStateData

func LoadStateData(ctx context.Context, cmd *cli.Command, rootDir string) (map[string]interface{}, error)

LoadStateData loads and decrypts state data from a backend

func LoadStateDataFromFile

func LoadStateDataFromFile(filepath string) (map[string]interface{}, error)

LoadStateDataFromFile loads state data directly from a file (for testing)

Types

This section is empty.

Jump to

Keyboard shortcuts

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