Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMatchingPrincipals ¶
func GetMatchingPrincipals(as []AllowedSigner, signature *Signature) ([]string, error)
Finds matching principals for the given signature.
Types ¶
type AllowedSigner ¶
func GetAllowedSigners ¶
func GetAllowedSigners(f string) ([]AllowedSigner, error)
Parse a given file and returns a slice of AllowedSigners. This only supports one email address per public key, currently.
type Signature ¶
func Decode ¶
Decodes a PEM encoded signature into a Signature struct. If invalid or unsupported data is found, an error is returned, even if the signature is valid for other use cases outside of the restrictions of this program.
func ParseSignatureFile ¶
Parse a given signature from a file and returns a Signature struct.
Click to show internal directories.
Click to hide internal directories.