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()
Click to show internal directories.
Click to hide internal directories.