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

Add virtual resource tree #128

Closed
Kaliumhexacyanoferrat opened this issue Nov 3, 2020 · 0 comments · Fixed by #169
Closed

Add virtual resource tree #128

Kaliumhexacyanoferrat opened this issue Nov 3, 2020 · 0 comments · Fixed by #169
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@Kaliumhexacyanoferrat
Copy link
Owner

As the developer of a web application, I would like to combine different sources of resources so that I am more flexible in serving content.

Example

var tree = ResourceTree.Virtual()
                       .Add("reports", ResourceTree.FromFTP(...))
                       .Add("charts", ResourceTree.FromWebDAV(...))
                       .Add("readme.md", Resource.FromWeb(...));

Host.Create()
    .Handler(Listing.From(tree))
    .Run();

Acceptance criteria

  • The functionality is implemented in the IO module
  • The builder allows any IResourceTree or IResource (or their builders) to be added
  • Virtual trees can be chained (.add("section", ResourceTree.Virtual()))
  • Acceptance tests are written
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat added enhancement New feature or request good first issue Good for newcomers labels Nov 3, 2020
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat self-assigned this Jan 8, 2021
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat added this to the Version 5.2 milestone Jan 8, 2021
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat linked a pull request Jan 8, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant