gcp

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 19 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 GCS on GCP to store issuer chains.

func NewIssuerStorage

func NewIssuerStorage(ctx context.Context, bucket string, gcsClient *gcs.Client) (*IssuersStorage, error)

NewIssuerStorage creates a new GCS based issuer storage and GCS client.

func NewRootsStorage added in v0.1.2

func NewRootsStorage(ctx context.Context, bucket string, gcsClient *gcs.Client) (*IssuersStorage, error)

NewRootsStorage creates a new GCS based roots storage and GCS client.

func (*IssuersStorage) AddIfNotExist added in v0.1.2

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

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

func (*IssuersStorage) LoadAll added in v0.1.2

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

LoadAll loads all the values in the bucket under the prefix.

Jump to

Keyboard shortcuts

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