commands

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.1.4

type Client struct {
	SSM   awsclient.SSM
	S3    awsclient.S3
	Store *store.Store
}

func (*Client) Cancel added in v0.1.4

func (c *Client) Cancel(command *Command, signal int) error

Cancel a command by sending signal

func (*Client) Get added in v0.1.4

func (c *Client) Get(commandID string) (*Command, error)

Get a command by ID

func (*Client) GetInstanceIDToNameMap added in v0.1.4

func (c *Client) GetInstanceIDToNameMap() (map[string]string, error)

GetInstanceIDToNameMap returns a map between instance ID and name

func (*Client) GetInstances added in v0.1.4

func (c *Client) GetInstances(instanceIDs []string, tags map[string][]string) ([]*Instance, error)

GetInstances returns filtered instances

func (*Client) GetInvocations added in v0.1.4

func (c *Client) GetInvocations(commandID string) ([]*CommandInvocation, error)

GetInvocations finds command invocations by command ID

func (*Client) Send added in v0.1.4

func (c *Client) Send(opts *SendOptions) (*Command, error)

Send a new command

func (*Client) WaitStatus added in v0.1.4

func (c *Client) WaitStatus(commandID string, statuses []string) chan *Command

WaitStatus waits a command to be in specified status

type Command

type Command struct {
	CommandID    string
	PcommandID   string
	Status       string
	Targets      map[string][]string
	DocumentName string

	OutputLogGroup        string
	OutputLogStreamPrefix string
	SignalS3Bucket        string
	SignalS3Key           string
}

type CommandInvocation added in v0.1.1

type CommandInvocation struct {
	CommandID    string
	InstanceID   string
	InstanceName string
	Status       string
}

type Instance

type Instance struct {
	InstanceID   string
	ComputerName string
	PingStatus   string
}

type SendOptions

type SendOptions struct {
	DocumentName      string
	InstanceIDs       []string
	Tags              map[string][]string
	MaxConcurrency    string
	MaxErrors         string
	OutputLogGroup    string
	SignalS3Bucket    string
	SignalS3KeyPrefix string
}

SendOptions is options for Send

Jump to

Keyboard shortcuts

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