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

feat: cache resolved refs, improve URI reader extensibility #469

Merged
merged 1 commit into from
Feb 23, 2022

Commits on Feb 22, 2022

  1. feat: cache resolved refs

    This introduces simple URI-based caching.
    
    A basic map-based cache implementation is provided, which may cover many
    simple use cases. This caching is now used by default in the Loader.
    
    File and HTTP URI readers are extracted from the loader internals so
    that they may be extended, replaced, or configured. ReadFromHTTP allows
    specifying the http.Client used to read HTTP $refs, for example.
    
    Relative file paths are not cached, since their interpretation is
    subject to change wrt current working directory.
    cmars committed Feb 22, 2022
    Configuration menu
    Copy the full SHA
    a097877 View commit details
    Browse the repository at this point in the history