Documentation ¶
Overview ¶
Package certstorage provides implementations of certmagic's Storage interface.
Index ¶
- Variables
- type GCS
- func (gcs *GCS) Delete(ctx context.Context, key string) (err error)
- func (gcs *GCS) Exists(ctx context.Context, key string) bool
- func (gcs *GCS) List(ctx context.Context, prefix string, recursive bool) (_ []string, err error)
- func (gcs *GCS) Load(ctx context.Context, key string) (_ []byte, err error)
- func (gcs *GCS) Lock(ctx context.Context, name string) (err error)
- func (gcs *GCS) Stat(ctx context.Context, key string) (_ certmagic.KeyInfo, err error)
- func (gcs *GCS) Store(ctx context.Context, key string, value []byte) error
- func (gcs *GCS) Unlock(ctx context.Context, name string) (err error)
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.
Click to show internal directories.
Click to hide internal directories.