Versions in this module Expand all Collapse all v6 v6.0.0 Oct 11, 2019 Changes in this version + func DeriveSecretKey(secret, salt []byte) ([]byte, error) + func OpenPGPGrant(ref *reference.Ref, public string, keyring *config.OpenPGPSecret) ([]byte, error) + func OpenPGPReference(grant []byte, keyring *config.OpenPGPSecret) (*reference.Ref, error) + func PlaintextGrant(ref *reference.Ref) []byte + func PlaintextReference(ciphertext []byte) *reference.Ref + func SymmetricGrant(ref *reference.Ref, secret []byte) ([]byte, error) + func SymmetricReference(ciphertext, secret []byte) (*reference.Ref, error) + func Unseal(secret config.SecretsManager, grt *Grant) (*reference.Ref, error) + type Grant struct + EncryptedReference []byte + Spec *Spec + Version int32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func Seal(secret config.SecretsManager, ref *reference.Ref, spec *Spec) (*Grant, error) + func (*Grant) Descriptor() ([]byte, []int) + func (*Grant) ProtoMessage() + func (m *Grant) GetEncryptedReference() []byte + func (m *Grant) GetSpec() *Spec + func (m *Grant) GetVersion() int32 + func (m *Grant) Reset() + func (m *Grant) String() string + func (m *Grant) XXX_DiscardUnknown() + func (m *Grant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Grant) XXX_Merge(src proto.Message) + func (m *Grant) XXX_Size() int + func (m *Grant) XXX_Unmarshal(b []byte) error + type OpenPGPSpec struct + PublicKey string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*OpenPGPSpec) Descriptor() ([]byte, []int) + func (*OpenPGPSpec) ProtoMessage() + func (m *OpenPGPSpec) GetPublicKey() string + func (m *OpenPGPSpec) Reset() + func (m *OpenPGPSpec) String() string + func (m *OpenPGPSpec) XXX_DiscardUnknown() + func (m *OpenPGPSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *OpenPGPSpec) XXX_Merge(src proto.Message) + func (m *OpenPGPSpec) XXX_Size() int + func (m *OpenPGPSpec) XXX_Unmarshal(b []byte) error + type PlaintextSpec struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*PlaintextSpec) Descriptor() ([]byte, []int) + func (*PlaintextSpec) ProtoMessage() + func (m *PlaintextSpec) Reset() + func (m *PlaintextSpec) String() string + func (m *PlaintextSpec) XXX_DiscardUnknown() + func (m *PlaintextSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *PlaintextSpec) XXX_Merge(src proto.Message) + func (m *PlaintextSpec) XXX_Size() int + func (m *PlaintextSpec) XXX_Unmarshal(b []byte) error + type Spec struct + OpenPGP *OpenPGPSpec + Plaintext *PlaintextSpec + Symmetric *SymmetricSpec + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Spec) Descriptor() ([]byte, []int) + func (*Spec) ProtoMessage() + func (m *Spec) GetOpenPGP() *OpenPGPSpec + func (m *Spec) GetPlaintext() *PlaintextSpec + func (m *Spec) GetSymmetric() *SymmetricSpec + func (m *Spec) Reset() + func (m *Spec) String() string + func (m *Spec) XXX_DiscardUnknown() + func (m *Spec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Spec) XXX_Merge(src proto.Message) + func (m *Spec) XXX_Size() int + func (m *Spec) XXX_Unmarshal(b []byte) error + type SymmetricSpec struct + PublicID string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*SymmetricSpec) Descriptor() ([]byte, []int) + func (*SymmetricSpec) ProtoMessage() + func (m *SymmetricSpec) GetPublicID() string + func (m *SymmetricSpec) Reset() + func (m *SymmetricSpec) String() string + func (m *SymmetricSpec) XXX_DiscardUnknown() + func (m *SymmetricSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SymmetricSpec) XXX_Merge(src proto.Message) + func (m *SymmetricSpec) XXX_Size() int + func (m *SymmetricSpec) XXX_Unmarshal(b []byte) error Other modules containing this package github.com/monax/hoard github.com/monax/hoard/v3 github.com/monax/hoard/v4 github.com/monax/hoard/v5 github.com/monax/hoard/v7 github.com/monax/hoard/v8