MCPcopy Index your code
hub / github.com/cortexproject/cortex / NewS3ClientForMinio

Function NewS3ClientForMinio

integration/e2ecortex/storage.go:40–49  ·  view source on GitHub ↗
(minio *e2e.HTTPService, bucketName string)

Source from the content-addressed store, hash-verified

38}
39
40func NewS3ClientForMinio(minio *e2e.HTTPService, bucketName string) (*S3Client, error) {
41 return NewS3Client(s3.Config{
42 Endpoint: minio.HTTPEndpoint(),
43 BucketName: bucketName,
44 SecretAccessKey: flagext.Secret{Value: e2edb.MinioSecretKey},
45 AccessKeyID: e2edb.MinioAccessKey,
46 Insecure: true,
47 BucketLookupType: s3.BucketAutoLookup,
48 })
49}
50
51// DeleteBlocks deletes all blocks for a tenant.
52func (c *S3Client) DeleteBlocks(userID string) error {

Calls 2

NewS3ClientFunction · 0.85
HTTPEndpointMethod · 0.80