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

import (
	iopodman "github.com/containers/libpod/cmd/podman/varlink"
	"github.com/containers/libpod/libpod"
	"github.com/urfave/cli"
)

// LibpodAPI is the basic varlink struct for libpod
type LibpodAPI struct {
	Cli *cli.Context
	iopodman.VarlinkInterface
	Runtime *libpod.Runtime
}

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