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 ¶ added in v1.0.0
func NewTestSeal(opts *TestSealOpts) (Access, *ToggleableWrapper)
Types ¶
type Access ¶ added in v1.0.0
Access is the embedded implementation of autoSeal that contains logic specific to encrypting and decrypting data, or in this case keys.
func NewToggleableTestSeal ¶ added in v1.7.5
func NewToggleableTestSeal(opts *TestSealOpts) (Access, func(error))
type Envelope ¶ added in v1.0.0
type Envelope struct {
// contains filtered or unexported fields
}
func NewEnvelope ¶ added in v1.0.0
func NewEnvelope() *Envelope
type StoredKeysSupport ¶ added in v1.4.0
type StoredKeysSupport int
const ( // The 0 value of StoredKeysSupport is an invalid option StoredKeysInvalid StoredKeysSupport = iota StoredKeysNotSupported StoredKeysSupportedGeneric StoredKeysSupportedShamirRoot )
func (StoredKeysSupport) String ¶ added in v1.4.0
func (s StoredKeysSupport) String() string
type TestSealOpts ¶ added in v1.4.0
type TestSealOpts struct { Logger hclog.Logger StoredKeys StoredKeysSupport Secret []byte Name wrapping.WrapperType }
type ToggleableWrapper ¶ added in v1.7.5
func (*ToggleableWrapper) SetError ¶ added in v1.10.0
func (t *ToggleableWrapper) SetError(err error)
func (*ToggleableWrapper) Type ¶ added in v1.14.0
func (t *ToggleableWrapper) Type(ctx context.Context) (wrapping.WrapperType, error)
Click to show internal directories.
Click to hide internal directories.