mirror of
https://github.com/containers/podman.git
synced 2025-06-05 14:06:01 +08:00

* Added support for system service * Enabled linting on the varlinkapi source, needed to support V2 service command * Added support for PODMAN_SOCKET Skip linting deprecated code Rather than introduce bugs by correcting deprecated code, linting the code is being skipped. Code that is being ported into V2 is being checked. Signed-off-by: Jhon Honce <jhonce@redhat.com>
23 lines
522 B
Go
23 lines
522 B
Go
// +build varlink
|
|
|
|
package varlinkapi
|
|
|
|
import (
|
|
"github.com/containers/libpod/libpod"
|
|
iopodman "github.com/containers/libpod/pkg/varlink"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// VarlinkAPI is the basic varlink struct for libpod
|
|
type VarlinkAPI struct {
|
|
Cli *cobra.Command
|
|
iopodman.VarlinkInterface
|
|
Runtime *libpod.Runtime
|
|
}
|
|
|
|
// New creates a new varlink client
|
|
func New(cli *cobra.Command, runtime *libpod.Runtime) *iopodman.VarlinkInterface {
|
|
lp := VarlinkAPI{Cli: cli, Runtime: runtime}
|
|
return iopodman.VarlinkNew(&lp)
|
|
}
|