package
1.12.0-alpha20250213
Repository: https://github.com/hashicorp/terraform.git
Documentation: pkg.go.dev
# Functions
AllAuthenticators creates a meta Authenticator that ensures all the given Authenticators return without failure.
NewChecksumAuthentication creates an instance of ChecksumAuthentication with the given checksum and file location.
NewSignatureAuthentication creates a new Authenticator given some signature data (the SHA256SUMS.sig file), the signed data (the SHA256SUMS file), and a public key.
No description provided by the author
SHA256FromHex decodes a SHA256Hash from a hex string dump.
# Constants
No description provided by the author
HashicorpPublicKey is the HashiCorp public key, also available at https://www.hashicorp.com/security.
# Variables
ErrChecksumDoesNotMatch is the error returned when the archive checksum does not match the given checksum.
ErrInvalidSHA256Hash is returned when the hash is invalid.
ErrNotSignedByHashiCorp is the error returned when there is a mismatch between the SHA256SUMS signature data and the data itself.
# Structs
All is a meta Authenticator that wraps other Authenticators and ensures they all return without failure.
ChecksumAuthentication is an archive Authenticator that ensures a given file matches a SHA-256 checksum.
SignatureAuthentication is an archive Authenticator that validates that SHA256SUMS data was signed by the given signing key.
# Interfaces
Authenticator is a generic interface for interacting with types that authenticate an archive.
# Type aliases
SHA256Checksums decodes a file generated by the sha256sum program.
SHA256Hash represents a 256-bit SHA hash.