config

package
v0.0.0-...-9ab89c9 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultHome = "/home/ec2-user"

DefaultHome user home

View Source
const DefaultUser = "ec2-user"

DefaultUser is ec2 instance , this specity user name , only use Amazon AMI as base image

View Source
const T2Micro = "t2.micro"

T2Micro instance type

View Source
const T2Small = "t2.small"

T2Small instance type

View Source
const TagMaster = "beej-master"
View Source
const TagSlave = "beej"

Variables

This section is empty.

Functions

func IsMaster

func IsMaster(tags []*ec2.Tag) bool

func IsSlave

func IsSlave(tags []*ec2.Tag) bool

func LoadConfig

func LoadConfig(profile, region *string) *session.Session

LoadConfig is func use ~/.aws/config

Types

type InstanceConfig

type InstanceConfig struct {
	ImageId        *string
	InstanceType   *string
	MinCount       *int64
	MaxCount       *int64
	KeyName        *string
	SecurityGroups []*string
}

type JmeterCluster

type JmeterCluster struct {
	Master Server
	Slave  []Server
}

JmeterCluster is beej ec2 instance warpper

type Server

type Server struct {
	PublicDnsName string
	PrivateIP     string
	IsMaster      bool
	RawInstance   *ec2.Instance
}

Server is ec2 instance warpper struct

Jump to

Keyboard shortcuts

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