builder

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildInstanceList

func BuildInstanceList(reservations []*ec2.Reservation) map[string]InstanceInfo

func GetReservs

func GetReservs(tags map[string]string, ec2svc *ec2.EC2) *ec2.DescribeInstancesOutput

func GetSession

func GetSession(profile string, region string) *ec2.EC2

func IncrementID

func IncrementID(name string, instanceDict map[string]InstanceInfo) string

func WriteSSHConfig

func WriteSSHConfig(instanceList map[string]InstanceInfo, sshConfig SSHConfigOptions)

Types

type InstanceInfo

type InstanceInfo struct {
	InstanceID       string
	InstanceName     string
	PublicIpAddress  string
	PrivateIpAddress string
}

type SSHConfigOptions

type SSHConfigOptions struct {
	Username     string
	Filepath     string
	BastionHost  string
	PrivateOnly  bool
	IdentityFile string
}

Jump to

Keyboard shortcuts

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