mirror of
https://github.com/containers/podman.git
synced 2025-06-28 22:53:21 +08:00

implement varlink image functions for working with libpod with the exception of a couple due to incompletions on the libpod side of things (build). also, created a first pass at a libpodpy package which will stand as a client to working with libpod's varlink methods using python. Signed-off-by: baude <bbaude@redhat.com> Closes: #669 Approved by: baude
19 lines
450 B
Go
19 lines
450 B
Go
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)
|
|
}
|