oss_aws.go 833 B

12345678910111213
  1. package config
  2. type AwsS3 struct {
  3. Bucket string `mapstructure:"bucket" json:"bucket" yaml:"bucket"`
  4. Region string `mapstructure:"region" json:"region" yaml:"region"`
  5. Endpoint string `mapstructure:"endpoint" json:"endpoint" yaml:"endpoint"`
  6. SecretID string `mapstructure:"secret-id" json:"secret-id" yaml:"secret-id"`
  7. SecretKey string `mapstructure:"secret-key" json:"secret-key" yaml:"secret-key"`
  8. BaseURL string `mapstructure:"base-url" json:"base-url" yaml:"base-url"`
  9. PathPrefix string `mapstructure:"path-prefix" json:"path-prefix" yaml:"path-prefix"`
  10. S3ForcePathStyle bool `mapstructure:"s3-force-path-style" json:"s3-force-path-style" yaml:"s3-force-path-style"`
  11. DisableSSL bool `mapstructure:"disable-ssl" json:"disable-ssl" yaml:"disable-ssl"`
  12. }