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
Add the ability to browse anywhere on the filesystem #8
Comments
I think we'll want to start by refactoring the filesystem functions to not require a volume, but instead just operate on a path. How do you expect the API to change? |
Alternatively, we could use a keyword(root for example) as the id to key off of to use / vs the volume id, but that wouldn't work if somebody named their actual volume root |
I'm thinking that we should upgrade the API in the following way:
I agree on the fact that we'll need to refactor the filesystem functions, but we need to keep the calls to @kendrickm thoughts? |
So if we don't pass in a query param we should assume that it's for the root file system? I agree the |
Also, do you have thoughts for implementing an API versioning process? |
Yes.
Never thought about it but it's a great idea. I can do a bit of searching around this, do you have any proposal for this? I'll open a separate issue to tackle this though. |
… all the browse functions to not have a volume id as a route variable but instead use a query parameter. #8
Currently, the agent browse feature is limited to the a specific part of the filesystem defined via the constant
SystemVolumePath
.As a part of portainer/portainer#2182, we need to support browsing the FS anywhere.
The filesystem browsing and volume browsing features are fundamentally the same but their target is different. We still need to limit the ability to browse outside of a volume in the context of volume browsing.
The text was updated successfully, but these errors were encountered: