mirror of
https://github.com/rancher/types.git
synced 2025-07-04 09:16:12 +00:00
15 lines
330 B
Go
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)
|
|
}
|