This commit is contained in:
@@ -16,14 +16,14 @@ import (
|
||||
// Orchestrator reconciles the networks.json configuration into Docker networks
|
||||
// and iptables firewall rules
|
||||
type Orchestrator struct {
|
||||
dockerClient *docker.Client
|
||||
iptablesMgr *iptables.Manager
|
||||
dockerClient docker.DockerAPI
|
||||
iptablesMgr iptables.IPTablesAPI
|
||||
resolver *resolver.Resolver
|
||||
debug bool
|
||||
}
|
||||
|
||||
// NewOrchestrator creates a new firewall orchestrator
|
||||
func NewOrchestrator(dockerClient *docker.Client, iptablesMgr *iptables.Manager, cfg *config.NetworksConfig) *Orchestrator {
|
||||
func NewOrchestrator(dockerClient docker.DockerAPI, iptablesMgr iptables.IPTablesAPI, cfg *config.NetworksConfig) *Orchestrator {
|
||||
return &Orchestrator{
|
||||
dockerClient: dockerClient,
|
||||
iptablesMgr: iptablesMgr,
|
||||
|
||||
Reference in New Issue
Block a user