attestation

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ParseAttestationRecord = F.Flow5(
	F.Bind2nd(strings.Split, "\n"),
	A.Map(strings.TrimSpace),
	A.Map(reChecksum.FindStringSubmatch),
	A.Filter(A.IsNonEmpty[string]),
	A.Reduce(func(res ChecksumMap, entry []string) ChecksumMap { return R.UpsertAt(entry[2], entry[1])(res) }, make(ChecksumMap)),
)

ParseAttestationRecord parses a text representation of a checksum record into a map

Functions

func DecryptAttestation

func DecryptAttestation(decrypter func(privKey []byte) func(string) E.Either[error, []byte]) func(privKey []byte) func(string) E.Either[error, ChecksumMap]

DecryptAttestation decrypts an attestation record into a mapping

Types

type ChecksumMap

type ChecksumMap = map[string]string

type FileList

type FileList = map[string][]byte

Jump to

Keyboard shortcuts

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