summaryrefslogtreecommitdiff
path: root/pkg/varlinkapi/config.go
blob: 3c6a3311c83f65848fb38515e38ad6253420a59f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package varlinkapi

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
}

// New creates a new varlink client
func New(cli *cli.Context) *ioprojectatomicpodman.VarlinkInterface {
	lp := LibpodAPI{Cli: cli}
	return ioprojectatomicpodman.VarlinkNew(&lp)
}