minio

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Default bucket
)

Functions

This section is empty.

Types

type MinioConfig

type MinioConfig struct {
	Enable          bool   `mapstructure:"enable" json:"enable" yaml:"enable"`                                // 是否开启
	Endpoint        string `mapstructure:"endpoint" json:"endpoint" yaml:"endpoint"`                          // api节点url,api端口默认为9000,管理页面端口默认9001
	AccessKeyID     string `mapstructure:"access-key-id" json:"accessKeyID" yaml:"access-key-id"`             // 访问ID,在users的ServiceAccount界面生成,可以指定值,也可以随机生成
	SecretAccessKey string `mapstructure:"secret-access-key" json:"secretAccessKey" yaml:"secret-access-key"` // 密钥(与AccessKeyID成对)
	UseSSL          bool   `mapstructure:"use-ssl" json:"useSSL" yaml:"use-ssl"`                              // 是否开启ssl
	Bucket          string `mapstructure:"bucket" json:"bucket" yaml:"bucket"`                                // 桶名
}

minio配置

func (MinioConfig) Load

func (c MinioConfig) Load()

Jump to

Keyboard shortcuts

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