-
Notifications
You must be signed in to change notification settings - Fork 340
/
s3_options.go
30 lines (21 loc) · 1.02 KB
/
s3_options.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package s3
import "time"
// Options defines options for S3-based storage.
type Options struct {
// BucketName is the name of the bucket where data is stored.
BucketName string `json:"bucket"`
// Prefix specifies additional string to prepend to all objects.
Prefix string `json:"prefix,omitempty"`
Endpoint string `json:"endpoint"`
DoNotUseTLS bool `json:"doNotUseTLS,omitempty"`
DoNotVerifyTLS bool `json:"doNotVerifyTLS,omitempty"`
AccessKeyID string `json:"accessKeyID"`
SecretAccessKey string `json:"secretAccessKey" kopia:"sensitive"`
SessionToken string `json:"sessionToken" kopia:"sensitive"`
// Region is an optional region to pass in authorization header.
Region string `json:"region,omitempty"`
MaxUploadSpeedBytesPerSecond int `json:"maxUploadSpeedBytesPerSecond,omitempty"`
MaxDownloadSpeedBytesPerSecond int `json:"maxDownloadSpeedBytesPerSecond,omitempty"`
// PointInTime specifies a view of the (versioned) store at that time
PointInTime *time.Time `json:"pointInTime,omitempty"`
}