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:
@@ -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 {
|
||||
|
||||
@@ -187,6 +187,12 @@ func (obj *GAPI) Init(data *gapi.Data) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Info returns some data about the GAPI implementation.
|
||||
func (obj *GAPI) Info() *gapi.InfoResult {
|
||||
// XXX: Do we want this or obj.puppetGAPI or something else?
|
||||
return obj.langGAPI.Info()
|
||||
}
|
||||
|
||||
// Graph returns a current Graph.
|
||||
func (obj *GAPI) Graph() (*pgraph.Graph, error) {
|
||||
if !obj.initialized {
|
||||
|
||||
Reference in New Issue
Block a user