From 63efde15f14b18f5af385e89936b4ab0868cb357 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Tue, 27 Oct 2020 15:50:03 -0400 Subject: 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 --- libpod/state.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libpod/state.go') diff --git a/libpod/state.go b/libpod/state.go index fca0548c4..6b178ec58 100644 --- a/libpod/state.go +++ b/libpod/state.go @@ -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. -- cgit v1.2.3-54-g00ecf