awsutil

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CFStackGiveUpThreshold = 10 * time.Minute
	CFStackRetestInterval  = 5 * time.Second
)

Variables

This section is empty.

Functions

func CreateKey

func CreateKey(name string, credentials awsmodels.Credentials) (privateKey string, err error)

This function will create an AWS Key. TODO This presently does not support the idea of using a preexisting key from the user, perhaps it should support that

func DeleteCFStack

func DeleteCFStack(name string, credentials awsutilmodels.Credentials) (err error)

func DeleteKey

func DeleteKey(name string, credentials awsmodels.Credentials) (err error)

func DeployNewVPCHeptioCFStack

func DeployNewVPCHeptioCFStack(cfTemplateOptions awsutilmodels.NewVPCK8SCFTemplateOptions, credentials awsutilmodels.Credentials) (awsStackId string, err error)

func GetCFList

func GetCFList(credentials awsutilmodels.Credentials) (output []*cloudformation.StackSummary, err error)

func GetCFStack

func GetCFStack(name string, credentials awsutilmodels.Credentials) (resources []*cloudformation.StackResource, parameters []*cloudformation.Parameter, err error)

func GetHeptioCFStackOutput

func GetHeptioCFStackOutput(name string, credentials awsutilmodels.Credentials) (output awsutilmodels.ClusterOutput, err error)

func GetInstanceDetails

func GetInstanceDetails(instanceId string, credentials awsmodels.Credentials) (reservation *ec2.Reservation, err error)

func GetInstanceListDetails

func GetInstanceListDetails(instanceIds []*string, credentials awsmodels.Credentials) (reservations []*ec2.Reservation, err error)

func GetKeyList

func GetKeyList(credentials awsmodels.Credentials) (keyPairs []*ec2.KeyPairInfo, err error)

This function will return back a list of key pairs

func IsStackReady

func IsStackReady(resources []*cloudformation.StackResource) (ready bool, masterReady bool, workerReady bool)

func WaitUntilStackIsReady

func WaitUntilStackIsReady(stackName string, printProgress bool, credentials awsutilmodels.Credentials) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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