apis

package
v0.0.0-...-145e272 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAutoScalingAPI

func NewAutoScalingAPI(session *session.Session, region string) autoscalingiface.AutoScalingAPI

NewAutoScalingAPI creates new auto-scaling api

func NewEC2API

func NewEC2API(session *session.Session, region string) ec2iface.EC2API

NewEC2API creates new ec2api

func NewECSAPI

func NewECSAPI(session *session.Session, region string) ecsiface.ECSAPI

NewECSAPI creates new ecs api

Types

type ImageSlice

type ImageSlice []*ec2.Image

ImageSlice is slice of ec2images.

func (ImageSlice) Len

func (is ImageSlice) Len() int

sort.Interface implementation for imageSlice

func (ImageSlice) Less

func (is ImageSlice) Less(i, j int) bool

func (ImageSlice) Swap

func (is ImageSlice) Swap(i, j int)

type Instance

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

Instance is am ec2api interface wrapper.

type TargetAMI

type TargetAMI struct {
	ForceDeregister     bool
	ForceDeleteSnapshot bool
	Name                string
}

TargetAMI retains machine image name to delete.

type VolumeSlice

type VolumeSlice []*ec2.Snapshot

VolumeSlice is slice of ec2volumes.

func (VolumeSlice) Len

func (is VolumeSlice) Len() int

func (VolumeSlice) Less

func (is VolumeSlice) Less(i, j int) bool

func (VolumeSlice) Swap

func (is VolumeSlice) Swap(i, j int)

Jump to

Keyboard shortcuts

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