Documentation ¶
Index ¶
- Constants
- type TransitClient
- type Wrapper
- func (s *Wrapper) Decrypt(_ context.Context, in *wrapping.EncryptedBlobInfo, _ []byte) (pt []byte, err error)
- func (s *Wrapper) Encrypt(_ context.Context, plaintext, aad []byte) (blob *wrapping.EncryptedBlobInfo, err error)
- func (s *Wrapper) Finalize(_ context.Context) error
- func (s *Wrapper) GetClient() transitClientEncryptor
- func (s *Wrapper) HMACKeyID() string
- func (s *Wrapper) Init(_ context.Context) error
- func (s *Wrapper) KeyID() string
- func (s *Wrapper) SetConfig(config map[string]string) (map[string]string, error)
- func (s *Wrapper) Type() string
Constants ¶
View Source
const ( EnvTransitWrapperMountPath = "TRANSIT_WRAPPER_MOUNT_PATH" EnvVaultTransitSealMountPath = "VAULT_TRANSIT_SEAL_MOUNT_PATH" EnvTransitWrapperKeyName = "TRANSIT_WRAPPER_KEY_NAME" EnvVaultTransitSealKeyName = "VAULT_TRANSIT_SEAL_KEY_NAME" EnvTransitWrapperDisableRenewal = "TRANSIT_WRAPPER_DISABLE_RENEWAL" EnvVaultTransitSealDisableRenewal = "VAULT_TRANSIT_SEAL_DISABLE_RENEWAL" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransitClient ¶
type TransitClient struct {
// contains filtered or unexported fields
}
func (*TransitClient) Close ¶
func (c *TransitClient) Close()
func (*TransitClient) GetApiClient ¶
func (c *TransitClient) GetApiClient() *api.Client
func (*TransitClient) GetMountPath ¶
func (c *TransitClient) GetMountPath() string
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
Wrapper is a wrapper that leverages Vault's Transit secret engine
func NewWrapper ¶
func NewWrapper(opts *wrapping.WrapperOptions) *Wrapper
NewWrapper creates a new transit wrapper
func (*Wrapper) Decrypt ¶
func (s *Wrapper) Decrypt(_ context.Context, in *wrapping.EncryptedBlobInfo, _ []byte) (pt []byte, err error)
Decrypt is used to decrypt the ciphertext
func (*Wrapper) Encrypt ¶
func (s *Wrapper) Encrypt(_ context.Context, plaintext, aad []byte) (blob *wrapping.EncryptedBlobInfo, err error)
Encrypt is used to encrypt using Vault's Transit engine
func (*Wrapper) GetClient ¶
func (s *Wrapper) GetClient() transitClientEncryptor
GetClient returns the transit Wrapper's transitClientEncryptor
Click to show internal directories.
Click to hide internal directories.