1
0
mirror of https://github.com/rancher/types.git synced 2025-09-05 15:12:09 +00:00
Files
types/config/dialer/dialer.go

15 lines
330 B
Go
Raw Normal View History

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