mirror of
https://github.com/containers/podman.git
synced 2025-10-15 18:23:30 +08:00
Add a way to retrieve all network aliases for a ctr
The original interface only allowed retrieving aliases for a specific network, not for all networks. This will allow aliases to be retrieved for every network the container is present in, in a single DB operation. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
@ -100,6 +100,8 @@ type State interface {
|
||||
|
||||
// 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)
|
||||
// Set network aliases for the given container in the given network.
|
||||
SetNetworkAliases(ctr *Container, network string, aliases []string) error
|
||||
// Remove network aliases for the given container in the given network.
|
||||
|
Reference in New Issue
Block a user