helpers

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseInstanceData

func ParseInstanceData(input *ec2.DescribeInstancesOutput) (string, error)

Types

type AWSClient

type AWSClient struct {
	Client ec2iface.EC2API
}

func NewAWSClient added in v0.0.3

func NewAWSClient(awsProfile, awsRegion string) (*AWSClient, error)

func (*AWSClient) GetInstanceData

func (c *AWSClient) GetInstanceData(privateDnsName string) (*ec2.DescribeInstancesOutput, error)

type KubeConfig

type KubeConfig struct {
	Config     *rest.Config
	AwsProfile string
	AwsRegion  string
}

func NewKubeConfig added in v0.0.3

func NewKubeConfig(config *rest.Config) (*KubeConfig, error)

type SSMClient

type SSMClient struct {
	Cmd *exec.Cmd
}

func NewSSMClient added in v0.0.4

func NewSSMClient(targetId string, params []string,
	awsProfile, awsRegion string) (*SSMClient, error)

func (*SSMClient) RunCMD

func (c *SSMClient) RunCMD() error

Jump to

Keyboard shortcuts

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