1
0
mirror of https://github.com/rancher/types.git synced 2025-07-04 09:16:12 +00:00
types/config/dialer/dialer.go
2020-04-03 09:23:16 -07:00

15 lines
330 B
Go

package dialer
import (
"context"
"net"
)
type Dialer func(ctx context.Context, 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)
}