mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
These comments were added to enforce using the correct import path for
our packages ("github.com/docker/docker", not "github.com/moby/moby").
However, when working in go module mode (not GOPATH / vendor), they have
no effect, so their impact is limited.
Remove these imports in preparation of migrating our code to become an
actual go module.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
28 lines
753 B
Go
28 lines
753 B
Go
package daemon
|
|
|
|
import (
|
|
"github.com/docker/docker/api/types/filters"
|
|
"github.com/docker/docker/api/types/network"
|
|
lncluster "github.com/docker/docker/libnetwork/cluster"
|
|
)
|
|
|
|
// Cluster is the interface for github.com/docker/docker/daemon/cluster.(*Cluster).
|
|
type Cluster interface {
|
|
ClusterStatus
|
|
NetworkManager
|
|
SendClusterEvent(event lncluster.ConfigEventType)
|
|
}
|
|
|
|
// ClusterStatus interface provides information about the Swarm status of the Cluster
|
|
type ClusterStatus interface {
|
|
IsAgent() bool
|
|
IsManager() bool
|
|
}
|
|
|
|
// NetworkManager provides methods to manage networks
|
|
type NetworkManager interface {
|
|
GetNetwork(input string) (network.Inspect, error)
|
|
GetNetworks(filters.Args) ([]network.Inspect, error)
|
|
RemoveNetwork(input string) error
|
|
}
|