launcher

package
v0.0.0-...-79fff4a Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2017 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MagicExgid = "127a7354-290e-11e6-b178-2bc1f6aefc14"

Functions

func New

func New(db store.Store, router router.Router, etcdKAPI etcd.KeysAPI, bus bus.Bus, notifier notifier.Notifier, spanxclient service.SpanxClient, bezos service.BezosClient, cfg *config.Config) (*launcher, error)

Types

type BastionConfig

type BastionConfig struct {
	OwnerID       string `json:"owner_id"`
	Tag           string `json:"tag"`
	KeyPair       string `json:"keypair"`
	VPNRemote     string `json:"vpn_remote"`
	DNSServer     string `json:"dns_server"`
	NSQDHost      string `json:"nsqd_host"`
	BartnetHost   string `json:"bartnet_host"`
	AuthType      string `json:"auth_type"`
	ModifiedIndex uint64 `json:"modified_index"`
}

type Event

type Event struct {
	Err     error
	Message *bus.Message
}

type ImageList

type ImageList []*ec2.Image

func (ImageList) Len

func (l ImageList) Len() int

func (ImageList) Less

func (l ImageList) Less(i, j int) bool

func (ImageList) Swap

func (l ImageList) Swap(i, j int)

type Launch

type Launch struct {
	Bastion                   *com.Bastion
	User                      *schema.User
	Autochecks                *autocheck.Pool
	EventChan                 chan *Event
	Err                       error
	VPCEnvironment            *VPCEnvironment
	BastionIngressTemplateURL string
	ImageID                   string
	ImageTag                  string
	InstanceType              string
	// contains filtered or unexported fields
}

func NewLaunch

func NewLaunch(db store.Store, router router.Router, etcdKAPI etcd.KeysAPI, spanx service.SpanxClient, bezos service.BezosClient, cfg *config.Config, sess *session.Session, user *schema.User) *Launch

func (*Launch) CreateBastion

func (launch *Launch) CreateBastion(executionGroupId, region, vpcID, subnetID, subnetRouting, instanceType string) error

these events happen synchronously in the request cycle, so they are not part of launch stages

func (*Launch) GenerateUserData

func (launch *Launch) GenerateUserData() ([]byte, error)

func (*Launch) Launch

func (launch *Launch) Launch(imageTag string)

func (*Launch) NotifyVars

func (launch *Launch) NotifyVars() interface{}

func (*Launch) State

func (launch *Launch) State() string

type Launcher

type Launcher interface {
	LaunchBastion(*session.Session, *schema.User, string, string, string, string, string, string, string) (*Launch, error)
}

type Stage

type Stage interface {
	Execute(*Launch)
}

type VPCEnvironment

type VPCEnvironment struct {
	SecurityGroupCount    int   `json:"security_group_count"`
	DBSecurityGroupCount  int   `json:"db_security_group_count"`
	LoadBalancerCount     int   `json:"load_balancer_count"`
	AutoscalingGroupCount int   `json:"autoscaling_group_count"`
	InstanceCount         int   `json:"instance_count"`
	DBInstanceCount       int   `json:"db_instance_count"`
	GroupErrorCount       int   `json:"group_error_count"`
	InstanceErrorCount    int   `json:"instance_error_count"`
	LastError             error `json:"last_error"`
}

Jump to

Keyboard shortcuts

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