Skip to content
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

Plug to other static hosting #4

Open
augnustin opened this issue May 16, 2019 · 1 comment
Open

Plug to other static hosting #4

augnustin opened this issue May 16, 2019 · 1 comment

Comments

@augnustin
Copy link

Hey,

Flynn user here, but I can't use S3 in the scope of my project. Not a go dev neither.

Is there a way to make copy to static hosting step easily plugged to another service? Like a plugin syntax, eventually more language agnostic?

Cheers

@mattyr
Copy link
Owner

mattyr commented May 16, 2019

The interface used to connect to S3 is pretty simple, and it's set up so that you can implement it other ways. Check here:

flynn-pgbackups/store.go

Lines 14 to 19 in 6ac318b

type Storer interface {
DownloadUrl(appId string, backupId string) (string, error)
// return bytes written
Put(appId string, backupId string, r io.Reader) (int64, error)
Delete(appId string, backupId string) error
}

A pull request implementing another storage mechanism would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants