-
Notifications
You must be signed in to change notification settings - Fork 39
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
factor out image serving #11
base: master
Are you sure you want to change the base?
Conversation
APIVersions: apiserver.APIVersions{Versions: []string{VERSION_TAG}}, | ||
MetadataURL: METADATA_URL_PATH, | ||
ContentURL: CONTENT_URL_PREFIX, | ||
ImageServeURL: opts.DstPath, |
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, this won't work here, need to set it later since we manipulate the DstPath
later for tmpfs if it's empty. Will fix up
no worries, I'll rebase as necessary |
@@ -0,0 +1,83 @@ | |||
package imageserver |
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.
why do you call this file webdav.go
and not imageserver.go
? not everything here is served with webdav.
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'll rename.
@enoodle please do |
f51bd4b
to
4282a9e
Compare
Abstract out the impl of serving images which will allow us to inject different types of server (useful for mocking in test if nothing else).
@simon3z @enoodle
I did notice the content url has
/
on it so you have to curlhttp://0.0.0.0:8080/api/v1/content/
vshttp://0.0.0.0:8080/api/v1/content
to get the content. If you curl justhttp://0.0.0.0:8080/api/v1/content
you'll getPermanently Moved
.Testing: