You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
746 B
Go
32 lines
746 B
Go
7 months ago
|
package config
|
||
|
|
||
|
type Storage struct {
|
||
|
StorageType string `yaml:"storage-type"`
|
||
|
Oss *Oss
|
||
|
Obs *Obs
|
||
|
Cos *Cos
|
||
|
}
|
||
|
|
||
|
type Cos struct {
|
||
|
BucketURL string `yaml:"bucket-url"`
|
||
|
SecretID string `yaml:"secret-id"`
|
||
|
SecretKey string `yaml:"secret-key"`
|
||
|
Domain string `yaml:"domain"`
|
||
|
}
|
||
|
|
||
|
type Obs struct {
|
||
|
Endpoint string `yaml:"endpoint"`
|
||
|
AccessKey string `yaml:"access-key"`
|
||
|
SecretKey string `yaml:"secret-key"`
|
||
|
Bucket string `yaml:"bucket"`
|
||
|
Domain string `yaml:"domain"`
|
||
|
}
|
||
|
|
||
|
type Oss struct {
|
||
|
Endpoint string `yaml:"endpoint"`
|
||
|
AccessKeyID string `yaml:"access-key-id"`
|
||
|
AccessKeySecret string `yaml:"access-key-secret"`
|
||
|
Bucket string `yaml:"bucket"`
|
||
|
Domain string `yaml:"domain"`
|
||
|
}
|