engine, gapi, lang, lib: Plumb through new local API

This is a new API that is similar in spirit and plumbing to the World
API, but it intended for all local machine operations and will likely
only ever have one implementation.
This commit is contained in:
James Shubin
2023-12-01 15:18:12 -05:00
parent 12ffac1f06
commit 9d47b6843f
11 changed files with 97 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ import (
"fmt"
"github.com/purpleidea/mgmt/engine"
"github.com/purpleidea/mgmt/engine/local"
"github.com/purpleidea/mgmt/pgraph"
"github.com/urfave/cli/v2"
@@ -72,6 +73,7 @@ type Data struct {
Program string // name of the originating program
Version string // version of the originating program
Hostname string // uuid for the host, required for GAPI
Local *local.API
World engine.World
Noop bool
NoStreamWatch bool