command

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stream added in v0.0.7

func Stream(logGroup, commandID, instanceID *string)

Stream invocation logs to stderr/stdout

func WaitForInstance added in v0.0.7

func WaitForInstance(commandID, instanceID *string, wg *sync.WaitGroup)

WaitForInstance waits for an instance to finish executing

Types

type Command

type Command struct {
	DryRun           bool // TODO
	Targets          []string
	TargetLimit      int
	ExecutionTimeout int
	MaxConcurrency   string
	MaxErrors        string
	Comment          string
	LogGroup         string
	Command          []string
	SSMCommand       *ssm.Command
	// contains filtered or unexported fields
}

Command to execute

func (*Command) Run

func (c *Command) Run() (int, error)

Run command and stream results to stdout

func (*Command) RunCommand

func (c *Command) RunCommand(instanceIDs []*string) (err error)

RunCommand against EC2 instances

func (*Command) Status

func (c *Command) Status() string

Status returns a frendly status to show to user

Jump to

Keyboard shortcuts

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