bastion

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Ec2User = "ec2-user"

Variables

View Source
var ErrNoInstances = errors.New("No bastion instances found")

Functions

This section is empty.

Types

type EC2BastionService

type EC2BastionService struct {
	// contains filtered or unexported fields
}

func NewEC2BastionService

func NewEC2BastionService(
	ec2Client *ec2.Client,
	instanceConnect *ec2instanceconnect.Client,
	filters []ec2Types.Filter,
) *EC2BastionService

func (*EC2BastionService) GetBastion

func (self *EC2BastionService) GetBastion(ctx context.Context) (*tunnels.BastionEntity, error)

GetBastion implements services.BastionService.

func (*EC2BastionService) PushKey

func (self *EC2BastionService) PushKey(
	ctx context.Context,
	bastion *tunnels.BastionEntity,
	pub string,
) error

PushKey implements tunnels.BastionService.

Jump to

Keyboard shortcuts

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