Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TunnelSyncHealthChecker ¶
func TunnelSyncHealthChecker(tunneler Tunneler) func(req *http.Request) error
TunnelSyncHealthChecker returns a health func that indicates if a tunneler is healthy. It's compatible with healthz.NamedCheck
Types ¶
type AddressFunc ¶
type AddressFunc func() (addresses []string, err error)
type InstallSSHKey ¶
type InstallSSHKey func(ctx context.Context, user string, data []byte) error
type SSHTunneler ¶
type SSHTunneler struct {
SSHUser string
SSHKeyfile string
InstallSSHKey InstallSSHKey
HealthCheckURL *url.URL
// contains filtered or unexported fields
}
func (*SSHTunneler) Run ¶
func (c *SSHTunneler) Run(getAddresses AddressFunc)
Run establishes tunnel loops and returns
func (*SSHTunneler) SecondsSinceSSHKeySync ¶
func (c *SSHTunneler) SecondsSinceSSHKeySync() int64
func (*SSHTunneler) SecondsSinceSync ¶
func (c *SSHTunneler) SecondsSinceSync() int64
Click to show internal directories.
Click to hide internal directories.