pierce

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PierceVpcVeil

func PierceVpcVeil(ctx context.Context, config aws.Config,
	instanceId string, targetHost string, port uint16) (*gimlet.ConnInfo, error)

PierceVpcVeil prepares a tunnel to the `targetHost:port` endpoint via the EC2 instance identified by `instanceId`. Leave `targetHost` empty to connect to the EC2 instance identified by `instanceId` itself. Returns the ConnInfo object that can be serialized into JSON and communicated to another host that will in turn use it to open the Gimlet channel using gimlet.NewChannel call.

Types

This section is empty.

Jump to

Keyboard shortcuts

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