aws

package
v0.0.0-...-765bcca Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ec2

type Ec2 struct{}

Ec2 contains EC2 instance info

func (Ec2) GetInstances

func (e Ec2) GetInstances(options config.FilterOption, service IEc2Service) (instances Ec2Instances, err error)

GetInstances returns Instances

func (Ec2) StartInstance

func (e Ec2) StartInstance(target string, service IEc2Service) error

StartInstance starts target instance

func (Ec2) StopInstance

func (e Ec2) StopInstance(target string, service IEc2Service) error

StopInstance stops target instance

type Ec2Client

type Ec2Client interface {
	GetInstances(config.FilterOption, IEc2Service) (Ec2Instances, error)
	StartInstance(string, IEc2Service) error
	StopInstance(string, IEc2Service) error
}

Ec2Client Ec2 Client

type Ec2Instance

type Ec2Instance struct {
	// contains filtered or unexported fields
}

Ec2Instance ec2 instance used in this app

type Ec2Instances

type Ec2Instances []Ec2Instance

Ec2Instances contains EC2 instance info

func (Ec2Instances) GetFilteredInstances

func (instances Ec2Instances) GetFilteredInstances(filter ext.ICommand) (selected string, err error)

GetFilteredInstances returns isntanceID of a selected instance

func (Ec2Instances) ToString

func (instances Ec2Instances) ToString(outputFormat config.OutputFormat) (string, error)

ToString returns string value of Ec2Instance

type Ec2Service

type Ec2Service struct{}

Ec2Service Ec2 Service

type IEc2Service

type IEc2Service interface {
	// contains filtered or unexported methods
}

IEc2Service is an interface for ec2 services

type Instances

type Instances interface {
	GetFilteredInstances(ext.ICommand) (string, error)
	ToString(config.OutputFormat) (string, error)
}

Instances instances

Jump to

Keyboard shortcuts

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