Documentation ¶
Index ¶
- func GenerateInMemoryKey(size int) (*rsa.PrivateKey, *ssh.PublicKey, error)
- type Client
- func (c *Client) Authenticate(instanceId string, pubKey *ssh.PublicKey, user string) error
- func (c *Client) FindInstance(instanceId string) (*ec2.Instance, error)
- func (c *Client) FindInstanceAZ(instanceId string) (string, error)
- func (c *Client) FindInstanceIDByName(instanceName string) (string, error)
- func (c *Client) FindInstancePrivateIP(instanceId string) (string, error)
- func (c *Client) FindInstancePublicIP(instanceId string) (string, error)
- func (c *Client) Jump(instanceId string, privKey *rsa.PrivateKey, username string) error
- func (c *Client) JumpThroughBastion(instanceId string, bastionId string, privKey *rsa.PrivateKey, username string) error
- func (c *Client) ListInstances() ([]*instanceDescription, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateInMemoryKey ¶
Creates in memory key for disposable authentication
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
object to hold the AWS session for successive calls
func InitializeClient ¶
initializes session && return client
func (*Client) Authenticate ¶
Sends Specified Key To instanceID; Handles AZ lookup
func (*Client) FindInstance ¶
func (*Client) FindInstanceIDByName ¶
func (*Client) FindInstancePrivateIP ¶
func (*Client) FindInstancePublicIP ¶
func (*Client) JumpThroughBastion ¶
func (*Client) ListInstances ¶
Click to show internal directories.
Click to hide internal directories.