s3

package module
v3.0.0-...-9d75b9b Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBackup

func NewBackup(opts ...Option) store2.Backup

func NewBlobStore

func NewBlobStore(opts ...Option) (store.BlobStore, error)

NewBlobStore returns an initialized s3 blob store

Types

type Option

type Option func(o *Options)

Option configures one or more options

func Bucket

func Bucket(name string) Option

Bucket sets the bucket name option

func Credentials

func Credentials(id, secret string) Option

Credentials sets the AccessKeyID and SecretAccessKey options

func Endpoint

func Endpoint(e string) Option

Endpoint sets the endpoint option

func Insecure

func Insecure() Option

Insecure sets the secure option to false. It is enabled by default.

func Region

func Region(r string) Option

Region sets the region option

func TLSConfig

func TLSConfig(c *tls.Config) Option

TLSConfig sets the tls config for the client

type Options

type Options struct {
	Bucket          string
	Endpoint        string
	Region          string
	AccessKeyID     string
	SecretAccessKey string
	Secure          bool
	TLSConfig       *tls.Config
}

Options used to configure the s3 blob store

Jump to

Keyboard shortcuts

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