7e24c16086
`docker network prune` prunes unused networks, including overlay ones. `docker system prune` also prunes unused networks. Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
12 lines
332 B
Go
12 lines
332 B
Go
package daemon
|
|
|
|
import (
|
|
apitypes "github.com/docker/docker/api/types"
|
|
)
|
|
|
|
// Cluster is the interface for github.com/docker/docker/daemon/cluster.(*Cluster).
|
|
type Cluster interface {
|
|
GetNetwork(input string) (apitypes.NetworkResource, error)
|
|
GetNetworks() ([]apitypes.NetworkResource, error)
|
|
RemoveNetwork(input string) error
|
|
}
|