Documentation
¶
Index ¶
- func BuildRoot() *cobra.Command
- func Execute()
- func NewCommandCmd() *cobra.Command
- func NewCreateCmd() *cobra.Command
- func NewDeleteCmd() *cobra.Command
- func NewDescribeCmd() *cobra.Command
- func NewInitCmd() *cobra.Command
- func NewRootCmd() *cobra.Command
- func NewStartCmd() *cobra.Command
- func NewStatusCmd() *cobra.Command
- func NewStopCmd() *cobra.Command
- type CommandCmd
- type ConnectionStrategy
- type CreateCmd
- type DeleteCmd
- type DescribeCmd
- type DirectSSHStrategy
- type InitCmd
- type InstanceConnectStrategy
- type InstanceStatus
- type InstanceStatusAccessConfig
- type InstanceStatusNetworkInterface
- type SessionManagerStrategy
- type StartCmd
- type StatusCmd
- type StopCmd
- type TunnelManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandCmd ¶
type CommandCmd struct{}
CommandCmd holds the cmd flags
func (*CommandCmd) Run ¶
func (cmd *CommandCmd) Run(ctx context.Context, providerAws *aws.AwsProvider) error
Run runs the command logic
type ConnectionStrategy ¶
type ConnectionStrategy interface {
Connect(ctx context.Context, instance *aws.Machine, privateKey []byte) (*gossh.Client, error)
Close() error
Name() string
}
ConnectionStrategy defines how to connect to an EC2 instance
type DescribeCmd ¶
type DescribeCmd struct{}
DescribeCmd holds the cmd flags.
func (*DescribeCmd) Run ¶
func (cmd *DescribeCmd) Run(ctx context.Context, providerAws *aws.AwsProvider) error
Run runs the command logic.
type DirectSSHStrategy ¶
type DirectSSHStrategy struct {
// contains filtered or unexported fields
}
DirectSSHStrategy connects via direct SSH
func (*DirectSSHStrategy) Close ¶
func (s *DirectSSHStrategy) Close() error
func (*DirectSSHStrategy) Name ¶
func (s *DirectSSHStrategy) Name() string
type InstanceConnectStrategy ¶
type InstanceConnectStrategy struct {
// contains filtered or unexported fields
}
InstanceConnectStrategy connects via EC2 Instance Connect
type InstanceStatus ¶
type InstanceStatus struct {
NetworkInterfaces []InstanceStatusNetworkInterface `json:"networkInterfaces,omitempty"`
Status string `json:"status,omitempty"`
}
type InstanceStatusAccessConfig ¶
type InstanceStatusAccessConfig struct {
NatIP string `json:"natIP,omitempty"`
}
type InstanceStatusNetworkInterface ¶
type InstanceStatusNetworkInterface struct {
AccessConfigs []InstanceStatusAccessConfig `json:"accessConfigs,omitempty"`
}
type SessionManagerStrategy ¶
type SessionManagerStrategy struct {
// contains filtered or unexported fields
}
SessionManagerStrategy connects via AWS Session Manager
type TunnelManager ¶
type TunnelManager struct {
// contains filtered or unexported fields
}
TunnelManager manages AWS CLI tunnel processes
func (*TunnelManager) Address ¶
func (t *TunnelManager) Address() string
func (*TunnelManager) Close ¶
func (t *TunnelManager) Close() error
Click to show internal directories.
Click to hide internal directories.