runss

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RunShellScriptDocumentName = "AWS-RunShellScript"
)

Variables

This section is empty.

Functions

func ParseFlag

func ParseFlag(cmd *Cmd) (prompt bool, err error)

Types

type Cmd

type Cmd struct {
	Command     string
	InstanceIds []string
	CommandId   *string
	Results     map[string]*Result
}

func NewCmd added in v0.1.5

func NewCmd() (cmd *Cmd)

func (*Cmd) PrintResults

func (cmd *Cmd) PrintResults(writer io.Writer)

func (*Cmd) Prompt added in v0.1.6

func (cmd *Cmd) Prompt(writer io.Writer) (err error)

func (*Cmd) Run

func (cmd *Cmd) Run() (err error)

type CommandStatus

type CommandStatus int
const (
	Pending CommandStatus = iota
	InProgress
	Cancelling
	Success
	TimedOut
	Cancelled
	Failed
)

func (CommandStatus) String

func (i CommandStatus) String() string

type Result

type Result struct {
	Output string
	Status string
}

Jump to

Keyboard shortcuts

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