storage

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	S3Client s3client
}

func New

func New(ctx context.Context) *Storage

func (*Storage) Fetch

func (s *Storage) Fetch(ctx context.Context, bucket, object string, version *string) ([]byte, string, error)

Fetch gets a CRL from storage at a particular version The bucket and object names are required. If version is nil, the current version is returned. Returns the retrieved DER CRL bytes and what VersionID it was.

func (*Storage) Previous

func (s *Storage) Previous(ctx context.Context, bucket, object, version string) (string, error)

Previous returns the previous version of a CRL shard, which can then be fetched.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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