Versions in this module Expand all Collapse all v0 v0.1.0 May 5, 2023 Changes in this version + func Connect(bastionEndpoints ...EndpointIface) error + func GenerateKeys() (string, string, error) + func Tunnel(localPort int, remoteHost EndpointIface, bastionHost EndpointIface) error + type EC2Endpoint struct + ConnectClient *connect.Client + EC2Client *ec2.Client + Instance *ec2types.Instance + InstanceID string + Port int + PrivateKey string + PublicKey string + UsePrivate bool + User string + func NewEC2Endpoint(ctx context.Context, InstanceID string, ec2Client *ec2.Client, ...) (*EC2Endpoint, error) + func (e *EC2Endpoint) GetSSHConfig() (*ssh.ClientConfig, error) + func (e *EC2Endpoint) String() string + type Endpoint struct + Host string + Port int + PrivateKey string + PublicKey string + User string + func NewEndpoint(s string) *Endpoint + func (e *Endpoint) GetSSHConfig() (*ssh.ClientConfig, error) + func (e *Endpoint) String() string + type EndpointIface interface + GetSSHConfig func() (*ssh.ClientConfig, error) + String func() string