mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
network db: add new strucutre to container create
Make sure we create new containers in the db with the correct structure. Also remove some unneeded code for alias handling. We no longer need this functions. The specgen format has not been changed for now. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -102,12 +102,7 @@ type State interface {
|
||||
|
||||
// Get networks the container is currently connected to.
|
||||
GetNetworks(ctr *Container) (map[string]types.PerNetworkOptions, error)
|
||||
// Get network aliases for the given container in the given network.
|
||||
GetNetworkAliases(ctr *Container, network string) ([]string, error)
|
||||
// Get all network aliases for the given container.
|
||||
GetAllNetworkAliases(ctr *Container) (map[string][]string, error)
|
||||
// Add the container to the given network, adding the given aliases
|
||||
// (if present).
|
||||
// Add the container to the given network with the given options
|
||||
NetworkConnect(ctr *Container, network string, opts types.PerNetworkOptions) error
|
||||
// Remove the container from the given network, removing all aliases for
|
||||
// the container in that network in the process.
|
||||
|
Reference in New Issue
Block a user