bs3

package
v0.20260720.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package bs3 contains utilities for interacting with S3-compatible object storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*s3.Client
	// contains filtered or unexported fields
}

func FromConfig

func FromConfig(c Config, logger blog.Logger) (*Client, error)

func (*Client) Bucket

func (c *Client) Bucket() string

type Config

type Config struct {
	// S3Endpoint is the URL at which the S3-API-compatible object storage
	// service can be reached. This can be used to point to a non-Amazon storage
	// service, or to point to a fake service for testing. It should be left
	// blank by default.
	S3Endpoint string
	// S3Bucket is the AWS S3Bucket that uploads should go to. Must be created
	// (and have appropriate permissions set) beforehand.
	S3Bucket string
	// AWSConfigFile is the path to a file on disk containing an AWS config.
	// The format of the configuration file is specified at
	// https://docs.aws.amazon.com/sdkref/latest/guide/file-format.html.
	AWSConfigFile string
	// AWSCredsFile is the path to a file on disk containing AWS credentials.
	// The format of the credentials file is specified at
	// https://docs.aws.amazon.com/sdkref/latest/guide/file-format.html.
	AWSCredsFile string
}

Jump to

Keyboard shortcuts

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