diff options
Diffstat (limited to 'pkg/varlinkapi/config.go')
-rw-r--r-- | pkg/varlinkapi/config.go | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/pkg/varlinkapi/config.go b/pkg/varlinkapi/config.go index 167270f09..3c6a3311c 100644 --- a/pkg/varlinkapi/config.go +++ b/pkg/varlinkapi/config.go @@ -1,14 +1,18 @@ package varlinkapi -import "github.com/projectatomic/libpod/cmd/podman/ioprojectatomicpodman" +import ( + ioprojectatomicpodman "github.com/projectatomic/libpod/cmd/podman/varlink" + "github.com/urfave/cli" +) // LibpodAPI is the basic varlink struct for libpod type LibpodAPI struct { + Cli *cli.Context ioprojectatomicpodman.VarlinkInterface } -var ( - lp = LibpodAPI{} - // VarlinkLibpod instantiation - VarlinkLibpod = ioprojectatomicpodman.VarlinkNew(&lp) -) +// New creates a new varlink client +func New(cli *cli.Context) *ioprojectatomicpodman.VarlinkInterface { + lp := LibpodAPI{Cli: cli} + return ioprojectatomicpodman.VarlinkNew(&lp) +} |