localproxy

package
v0.0.0-...-9994f1b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package localproxy provides a temp solution to run shell commands from local environment remotely to execute recovery flows.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAddr

func BuildAddr(hostname string) string

BuildAddr creates address for SSH access for execution. If host is present in the hostProxyAddresses then the proxy address will be used instead of the provided hostname.

func ClosePool

func ClosePool()

ClosePool closes the proxyPool.

func RegHost

func RegHost(ctx context.Context, hostname string, jumpHostname string) error

RegHost registers the hostname for proxy connections map. If hostname i snot known then new proxy will be created and register to map.

func SetHostProxyAddress

func SetHostProxyAddress(ctx context.Context, hostname string, localProxyAddress string)

SetHostProxyAddress sets the proxy address for the hostname.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL