aws

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*kms.Client

	Config *Config
}

Client is a handler for encryption functions.

func NewClient

func NewClient(ctx context.Context, cfg *Config) (*Client, error)

NewClient configures a client for encryption purposes.

func (*Client) Cipher

func (c *Client) Cipher(ctx context.Context, value string) (string, error)

Cipher a value using the provided key.

func (*Client) Decipher

func (c *Client) Decipher(ctx context.Context, value string) (string, error)

Decipher a value using the provided KMS Key.

type Config

type Config struct {
	// Key in a string format, usually passed from a CLI flag
	KmsKeyArn string
}

Config handles necessary information for AES.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL