Skip to content

Commit

Permalink
GCS: use minus but not underline in config (pingcap#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
SunRunAway authored and overvenus committed Dec 13, 2019
1 parent ca84583 commit 26cdb19
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/storage/gcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ import (

const (
gcsEndpointOption = "gcs.endpoint"
gcsStorageClassOption = "gcs.storage_class"
gcsPredefinedACL = "gcs.predefined_acl"
gcsCredentialsFile = "gcs.credentials_file"
gcsStorageClassOption = "gcs.storage-class"
gcsPredefinedACL = "gcs.predefined-acl"
gcsCredentialsFile = "gcs.credentials-file"
)

// GCSBackendOptions are options for configuration the GCS storage.
type GCSBackendOptions struct {
Endpoint string `json:"endpoint" toml:"endpoint"`
StorageClass string `json:"storage_class" toml:"storage_class"`
PredefinedACL string `json:"predefined_acl" toml:"predefined_acl"`
CredentialsFile string `json:"credentials_file" toml:"credentials_file"`
StorageClass string `json:"storage-class" toml:"storage-class"`
PredefinedACL string `json:"predefined-acl" toml:"predefined-acl"`
CredentialsFile string `json:"credentials-file" toml:"credentials-file"`
}

func (options *GCSBackendOptions) apply(gcs *backup.GCS) error {
Expand Down

0 comments on commit 26cdb19

Please sign in to comment.