mirror of
https://github.com/containers/podman.git
synced 2025-12-02 19:28:58 +08:00
vendor of containers/common
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
10
vendor/github.com/containers/common/libnetwork/cni/network.go
generated
vendored
10
vendor/github.com/containers/common/libnetwork/cni/network.go
generated
vendored
@@ -17,7 +17,7 @@ import (
|
||||
"github.com/containernetworking/cni/libcni"
|
||||
"github.com/containers/common/libnetwork/types"
|
||||
"github.com/containers/common/pkg/config"
|
||||
cutil "github.com/containers/common/pkg/util"
|
||||
"github.com/containers/common/pkg/version"
|
||||
"github.com/containers/storage/pkg/lockfile"
|
||||
"github.com/containers/storage/pkg/unshare"
|
||||
"github.com/sirupsen/logrus"
|
||||
@@ -302,8 +302,8 @@ func (n *cniNetwork) NetworkInfo() types.NetworkInfo {
|
||||
path := ""
|
||||
packageVersion := ""
|
||||
for _, p := range n.cniPluginDirs {
|
||||
ver := cutil.PackageVersion(p)
|
||||
if ver != cutil.UnknownPackage {
|
||||
ver := version.Package(p)
|
||||
if ver != version.UnknownPackage {
|
||||
path = p
|
||||
packageVersion = ver
|
||||
break
|
||||
@@ -317,8 +317,8 @@ func (n *cniNetwork) NetworkInfo() types.NetworkInfo {
|
||||
}
|
||||
|
||||
dnsPath := filepath.Join(path, "dnsname")
|
||||
dnsPackage := cutil.PackageVersion(dnsPath)
|
||||
dnsProgram, err := cutil.ProgramVersionDnsname(dnsPath)
|
||||
dnsPackage := version.Package(dnsPath)
|
||||
dnsProgram, err := version.ProgramDnsname(dnsPath)
|
||||
if err != nil {
|
||||
logrus.Infof("Failed to get the dnsname plugin version: %v", err)
|
||||
}
|
||||
|
||||
10
vendor/github.com/containers/common/libnetwork/netavark/network.go
generated
vendored
10
vendor/github.com/containers/common/libnetwork/netavark/network.go
generated
vendored
@@ -15,7 +15,7 @@ import (
|
||||
"github.com/containers/common/libnetwork/internal/util"
|
||||
"github.com/containers/common/libnetwork/types"
|
||||
"github.com/containers/common/pkg/config"
|
||||
cutil "github.com/containers/common/pkg/util"
|
||||
"github.com/containers/common/pkg/version"
|
||||
"github.com/containers/storage/pkg/lockfile"
|
||||
"github.com/containers/storage/pkg/unshare"
|
||||
"github.com/sirupsen/logrus"
|
||||
@@ -341,8 +341,8 @@ func (n *netavarkNetwork) DefaultInterfaceName() string {
|
||||
// package version and program version.
|
||||
func (n *netavarkNetwork) NetworkInfo() types.NetworkInfo {
|
||||
path := n.netavarkBinary
|
||||
packageVersion := cutil.PackageVersion(path)
|
||||
programVersion, err := cutil.ProgramVersion(path)
|
||||
packageVersion := version.Package(path)
|
||||
programVersion, err := version.Program(path)
|
||||
if err != nil {
|
||||
logrus.Infof("Failed to get the netavark version: %v", err)
|
||||
}
|
||||
@@ -354,8 +354,8 @@ func (n *netavarkNetwork) NetworkInfo() types.NetworkInfo {
|
||||
}
|
||||
|
||||
dnsPath := n.aardvarkBinary
|
||||
dnsPackage := cutil.PackageVersion(dnsPath)
|
||||
dnsProgram, err := cutil.ProgramVersion(dnsPath)
|
||||
dnsPackage := version.Package(dnsPath)
|
||||
dnsProgram, err := version.Program(dnsPath)
|
||||
if err != nil {
|
||||
logrus.Infof("Failed to get the aardvark version: %v", err)
|
||||
}
|
||||
|
||||
2
vendor/github.com/containers/common/libnetwork/util/filters.go
generated
vendored
2
vendor/github.com/containers/common/libnetwork/util/filters.go
generated
vendored
@@ -38,7 +38,7 @@ func createFilterFuncs(key string, filterValues []string) (types.FilterFunc, err
|
||||
case "id":
|
||||
// matches part of one id
|
||||
return func(net types.Network) bool {
|
||||
return util.FilterID(net.ID, filterValues)
|
||||
return filters.FilterID(net.ID, filterValues)
|
||||
}, nil
|
||||
|
||||
// TODO: add dns enabled, internal filter
|
||||
|
||||
Reference in New Issue
Block a user