awss3

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package awss3 implements a storage backend for the KMS using AWS S3: https://aws.amazon.com/s3/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

Storage is an implementation of the Storage interface, storing keys in AWS S3 buckets.

func New

func New(ctx context.Context, cfg uri.AWSS3Config) (*Storage, error)

New creates a Storage client for AWS S3 using the provided config.

See the AWS docs for more information: https://aws.amazon.com/s3/

func (*Storage) Delete added in v2.8.0

func (s *Storage) Delete(ctx context.Context, keyID string) error

Delete removes a DEK from AWS S3 Storage by key ID.

func (*Storage) Get

func (s *Storage) Get(ctx context.Context, keyID string) ([]byte, error)

Get returns a DEK from from AWS S3 Storage by key ID.

func (*Storage) Put

func (s *Storage) Put(ctx context.Context, keyID string, data []byte) error

Put saves a DEK to AWS S3 Storage by key ID.

Jump to

Keyboard shortcuts

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