cmd

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecWrapper

func ExecWrapper(f func(ctx *cli.Context) (int, error)) cli.ActionFunc

ExecWrapper gracefully logs and exits our `run` functions.

func Run

func Run(ctx *cli.Context) (int, error)

Run is the main handler for all our functions. TODO: Break it apart in smaller ones.

Types

type Clients

type Clients struct {
	Autoscaling *autoscaling.AutoScaling
	EC2         *ec2.EC2
	MDS         *ec2metadata.EC2Metadata
}

Clients of AWS libs.

type Params

type Params struct {
	Backoff   *backoff.Backoff
	InputTag  string
	OutputTag string
	Separator string
}

Params of the app.

type Values

type Values struct {
	AZ           string
	Base         string
	Hostname     string
	InstanceID   string
	Region       string
	SequentialID int
}

Values computed/generated.

Jump to

Keyboard shortcuts

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