s3

package
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultRandIntFunc = rand.Int

Functions

func AuthMiddleware

func AuthMiddleware(accessKeyID, secretAccessKey string, handler http.Handler) http.Handler

func GenerateAccessKey

func GenerateAccessKey(randInt RandIntFunc) ([]byte, error)

func GenerateSecretKey

func GenerateSecretKey(randInt RandIntFunc) ([]byte, error)

func NewMinioClient

func NewMinioClient(endpoint string, accessKey, secretKey, caCert []byte) (*minio.Client, error)

func NewTLSRoundTripper

func NewTLSRoundTripper(caCert []byte) (http.RoundTripper, error)

Types

type RandIntFunc

type RandIntFunc func(io.Reader, *big.Int) (*big.Int, error)

Jump to

Keyboard shortcuts

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