package
Version:
v1.6.3
Opens a new window with list of versions in this module.
Published: Mar 27, 2023
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
File The name of configuration file.
ReadInConfig Load the configuration file from the specified path.
func ReadInUserHomeConfig() error
ReadInUserHomeConfig Load the configuration file from user home directory.
UserHomeConfigPath Get the user home directory configuration path.
type Aliyun struct {
Endpoint string `yaml:"endpoint"`
Bucket string `yaml:"bucket"`
AccessKeyID string `yaml:"access_key_id"`
AccessKeySecret string `yaml:"access_key_secret"`
}
type DriverType struct {
Driver string `yaml:"driver"`
Aliyun Aliyun `yaml:"aliyun"`
Tencent Tencent `yaml:"tencent"`
Qiniu Qiniu `yaml:"qiniu"`
Huawei Huawei `yaml:"huawei"`
S3 S3 `yaml:"s3"`
Minio Minio `yaml:"minio"`
}
type Huawei struct {
Endpoint string `yaml:"endpoint"`
Location string `yaml:"location"`
Bucket string `yaml:"bucket"`
AccessKey string `yaml:"access_key"`
SecretKey string `yaml:"secret_key"`
}
type Minio struct {
Endpoint string `yaml:"endpoint"`
Bucket string `yaml:"bucket"`
AccessKey string `yaml:"access_key"`
SecretKey string `yaml:"secret_key"`
UseSsl bool `yaml:"use_ssl"`
}
type Qiniu struct {
Bucket string `yaml:"bucket"`
AccessKey string `yaml:"access_key"`
SecretKey string `yaml:"secret_key"`
Zone string `yaml:"zone"`
Domain string `yaml:"domain"`
Private string `yaml:"private"`
}
type S3 struct {
Endpoint string `yaml:"endpoint"`
Region string `yaml:"region"`
Bucket string `yaml:"bucket"`
AccessKey string `yaml:"access_key"`
SecretKey string `yaml:"secret_key"`
}
type Tencent struct {
URL string `yaml:"url"`
SecretID string `yaml:"secret_id"`
SecretKey string `yaml:"secret_key"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.