Documentation ¶
Index ¶
- Constants
- func Async(fn func() error) <-chan error
- func ControlURL(conn net.Conn) string
- func GetClientTLSConfig(clientCertFile, clientKeyFile, caCertFile string) (tlsConfig *tls.Config, err error)
- func GetTLSConfig(host, caCertFile string, certOpt tls.ClientAuthType) *tls.Config
- func NewForeverBackoff() *expBackoff
- func NewLogger(name string, debug bool) logging.Logger
- func Umask(mask int) (old int, err error)
- type Callbacks
Constants ¶
View Source
const (
//UNIXAGENTSOCKET prefix path for unix socket
UNIXAGENTSOCKET = "/tmp/tunnel-agent-unix-"
)
Variables ¶
This section is empty.
Functions ¶
func Async ¶
Async is a helper function to convert a blocking function to a function returning an error. Useful for plugging function closures into select and co
func ControlURL ¶
Returns server control url as a string. Reads scheme and remote address from connection.
func GetClientTLSConfig ¶
func GetTLSConfig ¶
func GetTLSConfig(host, caCertFile string, certOpt tls.ClientAuthType) *tls.Config
func NewForeverBackoff ¶
func NewForeverBackoff() *expBackoff
Types ¶
type Callbacks ¶
type Callbacks struct {
// contains filtered or unexported fields
}
func NewCallbacks ¶
Click to show internal directories.
Click to hide internal directories.