aws

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IssuersStorage

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

IssuersStorage is a key value store backed by S3 on AWS to store issuer chains.

func NewIssuerStorage

func NewIssuerStorage(ctx context.Context, opts Options) (*IssuersStorage, error)

NewIssuerStorage creates a new IssuerStorage.

The specified bucket must exist or an error will be returned.

func (*IssuersStorage) AddIssuersIfNotExist

func (s *IssuersStorage) AddIssuersIfNotExist(ctx context.Context, kv []storage.KV) error

AddIssuers stores Issuers values under their Key if there isn't an object under Key already.

type Options

type Options struct {
	// Bucket is the bucket to use for storing issuers.
	Bucket string
	// SDKConfig is an optional configuration for the AWS SDK, if nil the default config will be used.
	SDKConfig *aws.Config
	// S3Options are used when creating a new AWS S3 client. This MUST be provided if SDKConfig is not nil.
	S3Options func(*s3.Options)
}

Options holds various settings for NewIssuerStorage.

Jump to

Keyboard shortcuts

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