gapi: Plumb through a URI mechanism

This is at least a stop-gap until we redo the whole filesystem API mess.
I think golang is partly to blame because they don't have proper API's
merged yet.
This commit is contained in:
James Shubin
2024-10-13 16:40:50 -04:00
parent b03fdeccae
commit a8c8f09aa3
9 changed files with 67 additions and 0 deletions

View File

@@ -63,6 +63,10 @@ type World interface { // TODO: is there a better name for this interface?
Scheduler(namespace string, opts ...scheduler.Option) (*scheduler.Result, error)
// URI returns the current FS URI.
// TODO: Can we improve this API or deprecate it entirely?
URI() string
// Fs takes a URI and returns the filesystem that corresponds to that.
// This is a way to turn a unique string handle into an appropriate
// filesystem object that we can interact with.