-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support google cloud storage as das #2643
base: master
Are you sure you want to change the base?
Conversation
283d2c9
to
67a03db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work so far! It just needs some additional testing and addressing my comments, which are fairly minor.
5f6ede4
to
2ae64de
Compare
a9aee5f
to
0750428
Compare
0750428
to
2209476
Compare
8fcdad9
to
67c377d
Compare
type GoogleCloudStorageConfig struct { | ||
AccessToken string `koanf:"access-token"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pattern for the other storage backend types is to have an Enable bool
field, defaulting to false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually it looks like you've got duplicated structs that do almost the same thing. GoogleCloudStorageServiceConfig
is the other one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry but the is one for unit tests only? also defaultStorageRetention not exported from das, so cannot use it here(genericconf)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was referring the s3 part, so GoogleCloudStorageConfig for ut, GoogleCloudStorageServiceConfig is for actual usage, hope i didn't get it wrongly : D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while GoogleCloudStorageServiceConfig follow the same pattern
type GoogleCloudStorageServiceConfig struct {
Enable bool `koanf:"enable"`
AccessToken string `koanf:"access-token"`
Bucket string `koanf:"bucket"`
ObjectPrefix string `koanf:"object-prefix"`
EnableExpiry bool `koanf:"enable-expiry"`
MaxRetention time.Duration `koanf:"max-retention"`
}
261a80f
to
98d42fa
Compare
98d42fa
to
65b2165
Compare
@Tristan-Wilson Hey can we follow up here? |
No description provided.