Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Public Key constant for Attestation Secrets. PrivateKey = "private" // Private Key constant for Attestation Secrets. PublicKey = "public" // Passphrase constant for Attestation Secrets. Passphrase = "passphrase" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher func(namespace string, name string) (*PGPSigningSecret, error)
Fetcher is the function used to fetch kubernetes secret.
type PGPSigningSecret ¶
PGPSigningSecret represents gpg private/public key pair secret in your kubernetes cluster, where private key was decrypted with the passphrase. The secret expects private and public key to be stored in "private" and "public" keys, and private key to be decrypted with the "passphrase" key e.g. kubectl create secret generic my-secret --from-file=public=pub.gpg \ --from-file=private=priv.key --from-literal=passphrase=<value>
type PgpKey ¶
type PgpKey struct {
// contains filtered or unexported fields
}
PgpKey struct converts the base64 encoded PEM keys into openpgp private and public keys
func (*PgpKey) Fingerprint ¶
func (*PgpKey) PrivateKey ¶
func (key *PgpKey) PrivateKey() *packet.PrivateKey
Click to show internal directories.
Click to hide internal directories.