azureblob

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: 13 Imported by: 0

Documentation

Overview

Package azureblob implements a storage backend for the KMS using Azure Blob Storage.

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 the Azure Blob Store.

func New

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

New initializes a storage client using Azure's Blob Storage using the provided config.

See the Azure docs for more information: https://azure.microsoft.com/en-us/services/storage/blobs/

func (*Storage) Get

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

Get returns a DEK from from Azure Blob Storage by key ID.

func (*Storage) Put

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

Put saves a DEK to Azure Blob Storage by key ID.

Jump to

Keyboard shortcuts

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