github.com/rawahars/moby@v24.0.4+incompatible/daemon/cluster.go (about) 1 package daemon // import "github.com/docker/docker/daemon" 2 3 import ( 4 apitypes "github.com/docker/docker/api/types" 5 "github.com/docker/docker/api/types/filters" 6 lncluster "github.com/docker/docker/libnetwork/cluster" 7 ) 8 9 // Cluster is the interface for github.com/docker/docker/daemon/cluster.(*Cluster). 10 type Cluster interface { 11 ClusterStatus 12 NetworkManager 13 SendClusterEvent(event lncluster.ConfigEventType) 14 } 15 16 // ClusterStatus interface provides information about the Swarm status of the Cluster 17 type ClusterStatus interface { 18 IsAgent() bool 19 IsManager() bool 20 } 21 22 // NetworkManager provides methods to manage networks 23 type NetworkManager interface { 24 GetNetwork(input string) (apitypes.NetworkResource, error) 25 GetNetworks(filters.Args) ([]apitypes.NetworkResource, error) 26 RemoveNetwork(input string) error 27 }