ec2

package
v0.0.1-lastknown Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package ec2 implements testing utilities using EC2.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertEC2Instance

func ConvertEC2Instance(iv *ec2.Instance) (instance ec2config.Instance)

ConvertEC2Instance converts "aws ec2 describe-instances" to "config.Instance".

func IsReady

func IsReady(txt string) bool

IsReady returns true if the instance cloud init logs indicate it's ready.

Types

type Deployer

type Deployer interface {
	// Create creates a cluster of EC2 instances.
	Create() error
	// Add creates one more instance to the cluster.
	Add() error
	// Stop stops create operation.
	Stop()
	// Delete deletes one instance.
	Delete(id string) error
	// Terminate terminates all EC2 instances in the cluster.
	Terminate() error
	// Logger returns the logger.
	Logger() *zap.Logger
	// UploadToBucketForTests uploads a local file to aws-k8s-tester S3 bucket.
	UploadToBucketForTests(localPath, remotePath string) error
}

Deployer defines EC2 deployer.

func NewDeployer

func NewDeployer(cfg *ec2config.Config) (Deployer, error)

NewDeployer creates a new EKS deployer.

Jump to

Keyboard shortcuts

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