gcs

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package gcs implements a storage backend for the KMS using Google Cloud Storage (GCS).

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 Google Cloud Storage buckets.

func New

New creates a Storage client for Google Cloud Storage using the provided config.

See the Google docs for more information: https://cloud.google.com/storage/docs/

func (*Storage) Get

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

Get returns a DEK from Google Cloud Storage by key ID.

func (*Storage) Put

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

Put saves a DEK to Google Cloud Storage by key ID.

Jump to

Keyboard shortcuts

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