awsapi

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FinderUsername

func FinderUsername(users []string) (user string, err error)

FinderUsername : find ssh username through fuzzyfinder

func GetProfileWithAssumeRole

func GetProfileWithAssumeRole(profileWithAssumeRole string) (profile, roleArn, mfaSerial, sourceProfile string)

GetProfileWithAssumeRole : get profile with assume role and etc...

func NewSession

func NewSession(profile, region string) *session.Session

NewSession : return new session

Types

type EC2

type EC2 struct {
	InstanceID       string
	PublicIPAddress  string
	PrivateIPAddress string
	InstanceType     string
	InstanceName     string
	AvailabilityZone string
}

EC2 : required ec2 instance information

func FinderEC2

func FinderEC2(ec2List []EC2) (ec2 EC2, err error)

FinderEC2 : find information of ec2 instance through fuzzyfinder

type EC2Iface

type EC2Iface interface {
	DescribeRunningEC2s() ([]EC2, error)
}

EC2Iface : ec2 interface

func NewEC2Client

func NewEC2Client(svc ec2iface.EC2API) EC2Iface

NewEC2Client : new ec2 client

type EC2Instance

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

EC2Instance : ec2 instance

func (*EC2Instance) DescribeRunningEC2s

func (i *EC2Instance) DescribeRunningEC2s() ([]EC2, error)

DescribeRunningEC2s : get list of running ec2 instances

type EC2InstanceConnectIface

type EC2InstanceConnectIface interface {
	SendSSHPubKey(ec2instanceconnect.SendSSHPublicKeyInput) (bool, error)
}

EC2InstanceConnectIface : ec2 instance connect interface

func NewEC2InstanceConnectClient

NewEC2InstanceConnectClient : new ec2 instance connect client

type EC2InstanceConnectInstance

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

EC2InstanceConnectInstance : ec2 instance connect instance

func (*EC2InstanceConnectInstance) SendSSHPubKey

SendSSHPubKey : send ssh public key to using ec2 instance api

Jump to

Keyboard shortcuts

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