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

Feature: Upgrade indexer to use native io/fs interfaces. #85

Closed
daveshanley opened this issue Feb 21, 2023 · 3 comments
Closed

Feature: Upgrade indexer to use native io/fs interfaces. #85

daveshanley opened this issue Feb 21, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@daveshanley
Copy link
Member

As discussed in #83, This feature would introduce https://pkg.go.dev/io/fs as an interface to allow references to be stored in abstracted storage like databases.

@daveshanley daveshanley added the enhancement New feature or request label Feb 21, 2023
@dedefer
Copy link

dedefer commented Mar 1, 2023

really looking forward to this feature!

Now I use kin-openapi because this is only library that allows you to override fs, and I need to parse openapi specs from inmemory fs.

But it has poor error messages, so i want to replace it with libopenapi

@daveshanley
Copy link
Member Author

I am actively working on this feature.

daveshanley added a commit that referenced this issue Jul 14, 2023
A new configuration option is available to the index, a `RemoteHandler` of type  `fs.FS`. If set, will be used as an override to all other remote fetching code.

Signed-off-by: Dave Shanley <[email protected]>
@daveshanley daveshanley mentioned this issue Jul 15, 2023
daveshanley added a commit that referenced this issue Jul 16, 2023
A new configuration option is available to the index, a `RemoteHandler` of type  `fs.FS`. If set, will be used as an override to all other remote fetching code.

Signed-off-by: Dave Shanley <[email protected]>
@daveshanley
Copy link
Member Author

This feature is now available in v0.9.3

The index configuration now has a new property of FSHandler, which accepts anything that implements the fs.FS interface.

Documentation is available here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants