MCPcopy
hub / github.com/dgraph-io/dgraph / s3Handler

Struct s3Handler

worker/backup_handler.go:249–255  ·  view source on GitHub ↗

s3Handler is used for 's3:' and 'minio:' URI schemes.

Source from the content-addressed store, hash-verified

247
248// s3Handler is used for 's3:' and 'minio:' URI schemes.
249type s3Handler struct {
250 bucketName string
251 objectPrefix string
252 creds *x.MinioCredentials
253 uri *url.URL
254 mc *x.MinioClient
255}
256
257// NewS3Handler creates a new session, checks valid bucket at uri.Path, and configures a
258// minio client. It also fills in values used by the handler in subsequent calls.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected