awss3

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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