diff options
Diffstat (limited to 'libpod/state.go')
-rw-r--r-- | libpod/state.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libpod/state.go b/libpod/state.go index 44632b02f..074d21740 100644 --- a/libpod/state.go +++ b/libpod/state.go @@ -98,6 +98,19 @@ type State interface { // returned. AllContainers() ([]*Container, error) + // Get networks the container is currently connected to. + GetNetworks(ctr *Container) ([]string, 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). + NetworkConnect(ctr *Container, network string, aliases []string) error + // Remove the container from the given network, removing all aliases for + // the container in that network in the process. + NetworkDisconnect(ctr *Container, network string) error + // Return a container config from the database by full ID GetContainerConfig(id string) (*ContainerConfig, error) |