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:
11
config/dialer/dialer.go
Normal file
11
config/dialer/dialer.go
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user