Documentation
¶
Index ¶
- Variables
- type CleartextIO
- type IO
- type Reader
- type S3
- func (s3 *S3) CaddyModule() caddy.ModuleInfo
- func (s3 *S3) CertMagicStorage() (certmagic.Storage, error)
- func (s3 *S3) Delete(ctx context.Context, key string) error
- func (s3 *S3) Exists(ctx context.Context, key string) bool
- func (s3 *S3) List(ctx context.Context, prefix string, recursive bool) ([]string, error)
- func (s3 *S3) Load(ctx context.Context, key string) ([]byte, error)
- func (s3 *S3) Lock(ctx context.Context, key string) error
- func (s3 *S3) Provision(context caddy.Context) error
- func (s3 *S3) Stat(ctx context.Context, key string) (certmagic.KeyInfo, error)
- func (s3 *S3) Store(ctx context.Context, key string, value []byte) error
- func (s3 *S3) Unlock(ctx context.Context, key string) error
- func (s3 *S3) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- type SecretBoxIO
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CleartextIO ¶
type CleartextIO struct{}
func (*CleartextIO) ByteReader ¶
func (ci *CleartextIO) ByteReader(buf []byte) Reader
func (*CleartextIO) WrapReader ¶
func (ci *CleartextIO) WrapReader(r io.Reader) io.Reader
type S3 ¶
type S3 struct {
Logger *zap.Logger
// S3
Client *minio.Client
Host string `json:"host"`
Bucket string `json:"bucket"`
AccessKey string `json:"access_key"`
SecretKey string `json:"secret_key"`
Prefix string `json:"prefix"`
Insecure bool `json:"insecure"`
// EncryptionKey is optional. If you do not wish to encrypt your certficates and key inside the S3 bucket, leave it empty.
EncryptionKey string `json:"encryption_key"`
// contains filtered or unexported fields
}
func (*S3) CaddyModule ¶
func (s3 *S3) CaddyModule() caddy.ModuleInfo
func (*S3) CertMagicStorage ¶
CertMagicStorage converts s to a certmagic.Storage instance.
type SecretBoxIO ¶
type SecretBoxIO struct {
SecretKey [32]byte
}
func (*SecretBoxIO) ByteReader ¶
func (sb *SecretBoxIO) ByteReader(msg []byte) Reader
func (*SecretBoxIO) WrapReader ¶
func (sb *SecretBoxIO) WrapReader(r io.Reader) io.Reader
Click to show internal directories.
Click to hide internal directories.