package
1.0.1
Repository: https://github.com/terramate-io/opentofulib.git
Documentation: pkg.go.dev

# README

OpenTofu State and Plan encryption

[!WARNING] This file is not an end-user documentation, it is intended for developers. Please follow the user documentation on the OpenTofu website unless you want to work on the encryption code.

This folder contains the code for state and plan encryption. For a quick example on how to use this package, please take a look at the example_test.go file.

Structure

The current folder contains the top level API. It requires a registry for holding the available key providers and encryption methods, which is located in the registry folder. The key providers are located in the keyprovider folder, while the encryption methods are located in the method folder. You can also find the configuration struct and its related functions in the config folder.

Further reading

For a detailed design document on state encryption, please read this document.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
New creates a new Encryption provider from the given configuration and registry.
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Interfaces

Encryption contains the methods for obtaining a StateEncryption or PlanEncryption correctly configured for a specific purpose.
PlanEncryption describes the methods that you can use for encrypting a plan file.
StateEncryption describes the interface for encrypting state files.