1
0
mirror of https://github.com/rancher/types.git synced 2025-07-04 17:26:13 +00:00
types/config/dialer/dialer.go

15 lines
330 B
Go
Raw Normal View History

2018-02-20 19:42:46 +00:00
package dialer
2020-04-03 16:22:29 +00:00
import (
"context"
"net"
)
2018-02-20 19:42:46 +00:00
2020-04-03 16:22:29 +00:00
type Dialer func(ctx context.Context, network, address string) (net.Conn, error)
2018-02-20 19:42:46 +00:00
type Factory interface {
ClusterDialer(clusterName string) (Dialer, error)
DockerDialer(clusterName, machineName string) (Dialer, error)
NodeDialer(clusterName, machineName string) (Dialer, error)
}