bucket

package
v0.0.0-...-db1a339 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package bucket provides a mechanism to open buckets using configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(ctx context.Context, c *Config) (*blob.Bucket, error)

Open a bucket provided its configuration. Unless specified in the URL field, it will open buckets with s3blob.OpenBucketV2.

Types

type Config

type Config struct {
	// Bucket URL as described in https://gocloud.dev/howto/blob/.
	URL string

	// Alternatively, a less flexible way to access S3-compatible buckets.
	Endpoint  string
	Bucket    string
	AccessKey string
	SecretKey string
	Token     string
	Profile   string
	Region    string
	PathStyle bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL