Documentation
¶
Index ¶
- Constants
- 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(ctx 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 ¶
View Source
const (
NonceSize = 24
)
Variables ¶
View Source
var ( LockExpiration = 2 * time.Minute LockPollInterval = 1 * time.Second LockTimeout = 15 * time.Second )
View Source
var ErrInvalidKey = errors.New("invalid key")
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 *s3sdk.Client
Host string `json:"host"`
Endpoint string `json:"endpoint"`
Insecure bool `json:"insecure"`
Bucket string `json:"bucket"`
Region string `json:"region"`
AccessKey string `json:"access_key"`
SecretKey string `json:"secret_key"`
Profile string `json:"profile"`
RoleARN string `json:"role_arn"`
Prefix string `json:"prefix"`
UsePathStyle bool `json:"use_path_style,omitempty"`
// 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 NewSecretBoxIO ¶
func NewSecretBoxIO(key [32]byte) *SecretBoxIO
func (*SecretBoxIO) ByteReader ¶
func (sb *SecretBoxIO) ByteReader(msg []byte) Reader
func (*SecretBoxIO) IsValid ¶
func (sb *SecretBoxIO) IsValid() bool
func (*SecretBoxIO) WrapReader ¶
func (sb *SecretBoxIO) WrapReader(r io.Reader) io.Reader
Click to show internal directories.
Click to hide internal directories.