S3BackendOptions contains options for s3 storage.
| 174 | |
| 175 | // S3BackendOptions contains options for s3 storage. |
| 176 | type S3BackendOptions struct { |
| 177 | Endpoint string `json:"endpoint" toml:"endpoint"` |
| 178 | Region string `json:"region" toml:"region"` |
| 179 | StorageClass string `json:"storage-class" toml:"storage-class"` |
| 180 | Sse string `json:"sse" toml:"sse"` |
| 181 | SseKmsKeyID string `json:"sse-kms-key-id" toml:"sse-kms-key-id"` |
| 182 | ACL string `json:"acl" toml:"acl"` |
| 183 | AccessKey string `json:"access-key" toml:"access-key"` |
| 184 | SecretAccessKey string `json:"secret-access-key" toml:"secret-access-key"` |
| 185 | SessionToken string `json:"session-token" toml:"session-token"` |
| 186 | Provider string `json:"provider" toml:"provider"` |
| 187 | ForcePathStyle bool `json:"force-path-style" toml:"force-path-style"` |
| 188 | UseAccelerateEndpoint bool `json:"use-accelerate-endpoint" toml:"use-accelerate-endpoint"` |
| 189 | RoleARN string `json:"role-arn" toml:"role-arn"` |
| 190 | ExternalID string `json:"external-id" toml:"external-id"` |
| 191 | ObjectLockEnabled bool `json:"object-lock-enabled" toml:"object-lock-enabled"` |
| 192 | } |
| 193 | |
| 194 | // Apply apply s3 options on backuppb.S3. |
| 195 | func (options *S3BackendOptions) Apply(s3 *backuppb.S3) error { |
nothing calls this directly
no outgoing calls
no test coverage detected