mirror of
https://github.com/containers/podman.git
synced 2025-06-06 23:08:04 +08:00

This reverts commit bd3154fcf6a48b37cfde5d9b1226900cd863c0d9. Commit in question may be breaking upstream CI. Signed-off-by: Matthew Heon <mheon@redhat.com>
24 lines
597 B
Go
24 lines
597 B
Go
// +build varlink
|
|
|
|
package varlinkapi
|
|
|
|
import (
|
|
"github.com/containers/libpod/cmd/podman/cliconfig"
|
|
iopodman "github.com/containers/libpod/cmd/podman/varlink"
|
|
"github.com/containers/libpod/libpod"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// LibpodAPI is the basic varlink struct for libpod
|
|
type LibpodAPI struct {
|
|
Cli *cobra.Command
|
|
iopodman.VarlinkInterface
|
|
Runtime *libpod.Runtime
|
|
}
|
|
|
|
// New creates a new varlink client
|
|
func New(cli *cliconfig.PodmanCommand, runtime *libpod.Runtime) *iopodman.VarlinkInterface {
|
|
lp := LibpodAPI{Cli: cli.Command, Runtime: runtime}
|
|
return iopodman.VarlinkNew(&lp)
|
|
}
|