Documentation
¶
Index ¶
- func FinderUsername(users []string) (user string, err error)
- func GetProfileWithAssumeRole(profileWithAssumeRole string) (profile, roleArn, mfaSerial, sourceProfile string)
- func NewSession(profile, region string) *session.Session
- type EC2
- type EC2Iface
- type EC2Instance
- type EC2InstanceConnectIface
- type EC2InstanceConnectInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FinderUsername ¶
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 ¶
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
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 ¶
func NewEC2InstanceConnectClient(svc ec2instanceconnectiface.EC2InstanceConnectAPI) EC2InstanceConnectIface
NewEC2InstanceConnectClient : new ec2 instance connect client
type EC2InstanceConnectInstance ¶
type EC2InstanceConnectInstance struct {
// contains filtered or unexported fields
}
EC2InstanceConnectInstance : ec2 instance connect instance
func (*EC2InstanceConnectInstance) SendSSHPubKey ¶
func (i *EC2InstanceConnectInstance) SendSSHPubKey(p ec2instanceconnect.SendSSHPublicKeyInput) (bool, error)
SendSSHPubKey : send ssh public key to using ec2 instance api
Click to show internal directories.
Click to hide internal directories.