Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
AWSS3IDKey = http.CanonicalHeaderKey("x-rqlite-auto-backup-id")
)
Functions ¶
Types ¶
type S3Client ¶
type S3Client struct {
// contains filtered or unexported fields
}
S3Client is a client for uploading data to S3.
func NewS3Client ¶
func NewS3Client(endpoint, region, accessKey, secretKey, bucket, key string, opts *S3ClientOpts) (*S3Client, error)
NewS3Client returns an instance of an S3Client. opts can be nil.
type S3ClientOpts ¶ added in v8.24.0
S3ClientOpts are options for creating an S3Client.
type S3Config ¶
type S3Config struct { Endpoint string `json:"endpoint,omitempty"` Region string `json:"region"` AccessKeyID string `json:"access_key_id"` SecretAccessKey string `json:"secret_access_key"` Bucket string `json:"bucket"` Path string `json:"path"` ForcePathStyle bool `json:"force_path_style"` }
S3Config is the subconfig for the S3 storage type
Click to show internal directories.
Click to hide internal directories.