Documentation
¶
Index ¶
- func NewTestSeal(opts *TestSealOpts) (Access, *ToggleableWrapper)
- type Access
- type Envelope
- type StoredKeysSupport
- type TestSealOpts
- type ToggleableWrapper
- func (t ToggleableWrapper) Decrypt(ctx context.Context, info *wrapping.BlobInfo, opts ...wrapping.Option) ([]byte, error)
- func (t *ToggleableWrapper) Encrypt(ctx context.Context, bytes []byte, opts ...wrapping.Option) (*wrapping.BlobInfo, error)
- func (t *ToggleableWrapper) SetError(err error)
- func (t *ToggleableWrapper) Type(ctx context.Context) (wrapping.WrapperType, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestSeal ¶
func NewTestSeal(opts *TestSealOpts) (Access, *ToggleableWrapper)
Types ¶
type Access ¶
Access is the embedded implementation of autoSeal that contains logic specific to encrypting and decrypting data, or in this case keys.
func NewToggleableTestSeal ¶
func NewToggleableTestSeal(opts *TestSealOpts) (Access, func(error))
type Envelope ¶
type Envelope struct {
// contains filtered or unexported fields
}
func NewEnvelope ¶
func NewEnvelope() *Envelope
type StoredKeysSupport ¶
type StoredKeysSupport int
const ( // The 0 value of StoredKeysSupport is an invalid option StoredKeysInvalid StoredKeysSupport = iota StoredKeysNotSupported StoredKeysSupportedGeneric StoredKeysSupportedShamirRoot )
func (StoredKeysSupport) String ¶
func (s StoredKeysSupport) String() string
type TestSealOpts ¶
type TestSealOpts struct { Logger hclog.Logger StoredKeys StoredKeysSupport Secret []byte Name wrapping.WrapperType }
type ToggleableWrapper ¶
func (*ToggleableWrapper) SetError ¶
func (t *ToggleableWrapper) SetError(err error)
func (*ToggleableWrapper) Type ¶
func (t *ToggleableWrapper) Type(ctx context.Context) (wrapping.WrapperType, error)
Click to show internal directories.
Click to hide internal directories.