certstorage

package
v1.87.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package certstorage provides implementations of certmagic's Storage interface.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Error is the error class for this package.
	Error = errs.Class("certstorage")
)

Functions

This section is empty.

Types

type GCS

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

GCS implements certmagic's Storage interface on top of Google Cloud Storage.

func NewGCS

func NewGCS(ctx context.Context, logger *zap.Logger, jsonKey []byte, bucket string) (_ *GCS, err error)

NewGCS returns initialized GCS.

func (*GCS) Delete

func (gcs *GCS) Delete(ctx context.Context, key string) (err error)

Delete implements certmagics's Storage interface.

func (*GCS) Exists

func (gcs *GCS) Exists(ctx context.Context, key string) bool

Exists implements certmagics's Storage interface.

func (*GCS) List

func (gcs *GCS) List(ctx context.Context, prefix string, recursive bool) (_ []string, err error)

List implements certmagics's Storage interface.

func (*GCS) Load

func (gcs *GCS) Load(ctx context.Context, key string) (_ []byte, err error)

Load implements certmagics's Storage interface.

func (*GCS) Lock

func (gcs *GCS) Lock(ctx context.Context, name string) (err error)

Lock implements certmagics's Storage interface.

func (*GCS) Stat

func (gcs *GCS) Stat(ctx context.Context, key string) (_ certmagic.KeyInfo, err error)

Stat implements certmagics's Storage interface.

func (*GCS) Store

func (gcs *GCS) Store(ctx context.Context, key string, value []byte) error

Store implements certmagics's Storage interface.

func (*GCS) Unlock

func (gcs *GCS) Unlock(ctx context.Context, name string) (err error)

Unlock implements certmagics's Storage interface.

Jump to

Keyboard shortcuts

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