Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPublicKeyReconstruction = errors.New("can not reconstruct public key from sig")
Functions ¶
This section is empty.
Types ¶
type KeyManagementSystem ¶
type KeyManagementSystem struct {
// contains filtered or unexported fields
}
KeyManagementSystem is a wrapper around the AWS KMS client to provide additional functionality.
func NewKeyManagementSystem ¶
func NewKeyManagementSystem(region, accessKeyID, secretKey string) *KeyManagementSystem
NewKeyManagementSystem creates a new KeyManagementSystem instance with the provided AWS region and credentials.
func NewKeyManagementSystemFromConfig ¶
func NewKeyManagementSystemFromConfig(cfg aws.Config) *KeyManagementSystem
NewKeyManagementSystem creates a new KeyManagementSystem instance.
func (*KeyManagementSystem) GenerateKey ¶
func (awsKms *KeyManagementSystem) GenerateKey(ctx context.Context) (string, error)
GenerateKey uses the AWS KMS to generate a new key.
func (*KeyManagementSystem) GetSigner ¶
func (awsKms *KeyManagementSystem) GetSigner(id string) (types.TxSigner, error)
GetSigner returns a TxSigner instance that uses the AWS KMS.
func (*KeyManagementSystem) ListKeysByID ¶
func (awsKms *KeyManagementSystem) ListKeysByID(ctx context.Context) ([]string, error)
ListKeysByID retrieves all keys managed by the AWS KMS.
Click to show internal directories.
Click to hide internal directories.