minio

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(New, NewOptions)

Functions

func New

func New(o *Options) (*minio.Client, error)

New returns new minioClient instance with options.

Types

type Options

type Options struct {
	// Endpoint is the endpoint of the MinIO storage.
	Endpoint string

	// AccessKeyID is the access key ID of the MinIO storage.
	AccessKeyID string

	// SecretAccessKey is the secret access key of the MinIO storage.
	SecretAccessKey string

	// UseSSL specifies whether to use SSL when accessing the MinIO storage.
	UseSSL bool

	// UseProxy specifies whether to use proxy when accessing the MinIO storage.
	Region string
}

Options for MinIO storage.

func NewOptions

func NewOptions(v *viper.Viper) (*Options, error)

NewOptions creates a new set of o for the minio client.

Jump to

Keyboard shortcuts

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