You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes I guess that would work
If you would like to add a provider you just have to respect the following interface:
type Provider interface {
Open() error
Close() error
GetLatestVersion() (string, error) // Get the latest version (Should be accessible even if Open() was not called)
Walk(walkFn WalkFunc) error
Retrieve(srcPath string, destPath string) error
}
And the GetLatestVersion is up to you to decide, you could retrieve a VERSION file / folder or maybe use buckets or maybe GCS already has a method to do that.
And the Open and Close functions would be pretty straightforward :)
Would like to add a Provider: GCS.
Example code: https://github.com/rudderlabs/rudder-server/blob/master/services/filemanager/gcsmanager.go
Module used:
https://pkg.go.dev/cloud.google.com/go/storage
What do you think ?
The text was updated successfully, but these errors were encountered: