Documentation ¶
Index ¶
- Variables
- func AuthMiddleware(accessKeyID, secretAccessKey string, handler http.Handler) http.Handler
- func GenerateAccessKey(randInt RandIntFunc) ([]byte, error)
- func GenerateSecretKey(randInt RandIntFunc) ([]byte, error)
- func NewMinioClient(endpoint string, accessKey, secretKey, caCert []byte) (*minio.Client, error)
- func NewTLSRoundTripper(caCert []byte) (http.RoundTripper, error)
- type RandIntFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRandIntFunc = rand.Int
Functions ¶
func AuthMiddleware ¶
func GenerateAccessKey ¶
func GenerateAccessKey(randInt RandIntFunc) ([]byte, error)
func GenerateSecretKey ¶
func GenerateSecretKey(randInt RandIntFunc) ([]byte, error)
func NewMinioClient ¶
func NewTLSRoundTripper ¶
func NewTLSRoundTripper(caCert []byte) (http.RoundTripper, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.