1
0
mirror of https://github.com/rancher/types.git synced 2025-09-19 08:52:46 +00:00

Add DialerFactory type

This commit is contained in:
Darren Shepherd
2018-02-20 12:42:46 -07:00
parent 8bea13cc6c
commit 53d1945459

11
config/dialer/dialer.go Normal file
View File

@@ -0,0 +1,11 @@
package dialer
import "net"
type Dialer func(network, address string) (net.Conn, error)
type Factory interface {
ClusterDialer(clusterName string) (Dialer, error)
DockerDialer(clusterName, machineName string) (Dialer, error)
NodeDialer(clusterName, machineName string) (Dialer, error)
}