Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
func Connect(bastionEndpoints ...EndpointIface) error
func GenerateKeys ¶
func Tunnel ¶
func Tunnel(localPort int, remoteHost EndpointIface, bastionHost EndpointIface) error
Types ¶
type EC2Endpoint ¶
type EC2Endpoint struct {
InstanceID string
Port int
User string
PrivateKey string
PublicKey string
UsePrivate bool
Instance *ec2types.Instance
EC2Client *ec2.Client
ConnectClient *connect.Client
}
func NewEC2Endpoint ¶
func (*EC2Endpoint) GetSSHConfig ¶
func (e *EC2Endpoint) GetSSHConfig() (*ssh.ClientConfig, error)
func (*EC2Endpoint) String ¶
func (e *EC2Endpoint) String() string
type Endpoint ¶
func NewEndpoint ¶
func (*Endpoint) GetSSHConfig ¶
func (e *Endpoint) GetSSHConfig() (*ssh.ClientConfig, error)
type EndpointIface ¶
type EndpointIface interface {
String() string
GetSSHConfig() (*ssh.ClientConfig, error)
}
Click to show internal directories.
Click to hide internal directories.