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

@@ -244,6 +244,13 @@ func (obj *GAPI) Init(data *gapi.Data) error {
return nil
}
// Info returns some data about the GAPI implementation.
func (obj *GAPI) Info() *gapi.InfoResult {
return &gapi.InfoResult{
URI: obj.InputURI,
}
}
// Graph returns a current Graph.
func (obj *GAPI) Graph() (*pgraph.Graph, error) {
if !obj.initialized {