Open
Conversation
| APIVersions: apiserver.APIVersions{Versions: []string{VERSION_TAG}}, | ||
| MetadataURL: METADATA_URL_PATH, | ||
| ContentURL: CONTENT_URL_PREFIX, | ||
| ImageServeURL: opts.DstPath, |
Author
There was a problem hiding this comment.
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
Owner
Author
|
no worries, I'll rebase as necessary |
| @@ -0,0 +1,83 @@ | |||
| package imageserver | |||
Contributor
There was a problem hiding this comment.
why do you call this file webdav.go and not imageserver.go? not everything here is served with webdav.
Contributor
Owner
|
@enoodle please do |
f51bd4b to
4282a9e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/contentto get the content. If you curl justhttp://0.0.0.0:8080/api/v1/contentyou'll getPermanently Moved.Testing: