mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
use libnetwork from c/common
The libpod/network packages were moved to c/common so that buildah can use it as well. To prevent duplication use it in podman as well and remove it from here. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -3,6 +3,8 @@ package define
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/containers/common/libnetwork/types"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -16,7 +18,7 @@ var (
|
||||
ErrNoSuchVolume = errors.New("no such volume")
|
||||
|
||||
// ErrNoSuchNetwork indicates the requested network does not exist
|
||||
ErrNoSuchNetwork = errors.New("network not found")
|
||||
ErrNoSuchNetwork = types.ErrNoSuchNetwork
|
||||
|
||||
// ErrNoSuchExecSession indicates that the requested exec session does
|
||||
// not exist.
|
||||
@ -48,7 +50,7 @@ var (
|
||||
ErrExecSessionExists = errors.New("exec session already exists")
|
||||
// ErrNetworkExists indicates that a network with the given name already
|
||||
// exists.
|
||||
ErrNetworkExists = errors.New("network already exists")
|
||||
ErrNetworkExists = types.ErrNetworkExists
|
||||
|
||||
// ErrCtrStateInvalid indicates a container is in an improper state for
|
||||
// the requested operation
|
||||
@ -73,7 +75,7 @@ var (
|
||||
ErrVolumeFinalized = errors.New("volume has been finalized")
|
||||
|
||||
// ErrInvalidArg indicates that an invalid argument was passed
|
||||
ErrInvalidArg = errors.New("invalid argument")
|
||||
ErrInvalidArg = types.ErrInvalidArg
|
||||
// ErrEmptyID indicates that an empty ID was passed
|
||||
ErrEmptyID = errors.New("name or ID cannot be empty")
|
||||
|
||||
|
Reference in New Issue
Block a user