elb

package
v0.0.0-...-fd37bb2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2018 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrDatacenterIDInvalid ...
	ErrDatacenterIDInvalid = errors.New("Datacenter VPC ID invalid")
	// ErrDatacenterRegionInvalid ...
	ErrDatacenterRegionInvalid = errors.New("Datacenter Region invalid")
	// ErrDatacenterCredentialsInvalid ...
	ErrDatacenterCredentialsInvalid = errors.New("Datacenter credentials invalid")
	// ErrELBNameInvalid ...
	ErrELBNameInvalid = errors.New("ELB name is invalid")
	// ErrELBProtocolInvalid ...
	ErrELBProtocolInvalid = errors.New("ELB protocol invalid")
	// ErrELBFromPortInvalid ...
	ErrELBFromPortInvalid = errors.New("ELB from port invalid")
	// ErrELBToPortInvalid ...
	ErrELBToPortInvalid = errors.New("ELB to port invalid")
)

Functions

func New

func New(subject string, body []byte, cryptoKey string) ernestaws.Event

New : Constructor

Types

type Collection

type Collection struct {
	ProviderType       string            `json:"_provider"`
	ComponentType      string            `json:"_component"`
	ComponentID        string            `json:"_component_id"`
	State              string            `json:"_state"`
	Action             string            `json:"_action"`
	Service            string            `json:"service"`
	AWSAccessKeyID     string            `json:"aws_access_key_id"`
	AWSSecretAccessKey string            `json:"aws_secret_access_key"`
	DatacenterRegion   string            `json:"datacenter_region"`
	Tags               map[string]string `json:"tags"`
	Results            []interface{}     `json:"components"`
	ErrorMessage       string            `json:"error,omitempty"`
	Subject            string            `json:"-"`
	Body               []byte            `json:"-"`
	CryptoKey          string            `json:"-"`
}

Collection ....

func (*Collection) Complete

func (col *Collection) Complete()

Complete : sets the state of the event to completed

func (*Collection) Create

func (col *Collection) Create() error

Create : Creates an object on aws

func (*Collection) Delete

func (col *Collection) Delete() error

Delete : Delete an object on aws

func (*Collection) Error

func (col *Collection) Error(err error)

Error : Will respond the current event with an error

func (*Collection) Find

func (col *Collection) Find() error

Find : Find elbs on aws

func (*Collection) Get

func (col *Collection) Get() error

Get : Gets a object on aws

func (*Collection) GetBody

func (col *Collection) GetBody() []byte

GetBody : Gets the body for this event

func (*Collection) GetSubject

func (col *Collection) GetSubject() string

GetSubject : Gets the subject for this event

func (*Collection) Process

func (col *Collection) Process() (err error)

Process : starts processing the current message

func (*Collection) Update

func (col *Collection) Update() error

Update : Updates an object on aws

func (*Collection) Validate

func (col *Collection) Validate() error

Validate checks if all criteria are met

type Event

type Event struct {
	ProviderType        string            `json:"_provider"`
	ComponentType       string            `json:"_component"`
	ComponentID         string            `json:"_component_id"`
	State               string            `json:"_state"`
	Action              string            `json:"_action"`
	Name                *string           `json:"name"`
	IsPrivate           *bool             `json:"is_private"`
	Listeners           []Listener        `json:"listeners"`
	DNSName             *string           `json:"dns_name"`
	Instances           []string          `json:"instances"`
	InstanceNames       []string          `json:"instance_names"`
	InstanceAWSIDs      []*string         `json:"instance_aws_ids"`
	Networks            []string          `json:"networks"`
	NetworkAWSIDs       []*string         `json:"network_aws_ids"`
	SecurityGroups      []string          `json:"security_groups"`
	SecurityGroupAWSIDs []*string         `json:"security_group_aws_ids"`
	Tags                map[string]string `json:"tags"`
	DatacenterType      string            `json:"datacenter_type,omitempty"`
	DatacenterName      string            `json:"datacenter_name,omitempty"`
	DatacenterRegion    string            `json:"datacenter_region"`
	AccessKeyID         string            `json:"aws_access_key_id"`
	SecretAccessKey     string            `json:"aws_secret_access_key"`
	Service             string            `json:"service"`
	ErrorMessage        string            `json:"error,omitempty"`
	Subject             string            `json:"-"`
	Body                []byte            `json:"-"`
	CryptoKey           string            `json:"-"`
}

Event stores the template data

func (*Event) Complete

func (ev *Event) Complete()

Complete : sets the state of the event to completed

func (*Event) Create

func (ev *Event) Create() error

Create : Creates a elb object on aws

func (*Event) Delete

func (ev *Event) Delete() error

Delete : Deletes a elb object on aws

func (*Event) Error

func (ev *Event) Error(err error)

Error : Will respond the current event with an error

func (*Event) Find

func (ev *Event) Find() error

Find : Find an object on aws

func (*Event) Get

func (ev *Event) Get() error

Get : Gets a elb object on aws

func (*Event) GetBody

func (ev *Event) GetBody() []byte

GetBody : Gets the body for this event

func (*Event) GetSubject

func (ev *Event) GetSubject() string

GetSubject : Gets the subject for this event

func (*Event) Process

func (ev *Event) Process() (err error)

Process : starts processing the current message

func (*Event) Update

func (ev *Event) Update() error

Update : Updates a elb object on aws

func (*Event) Validate

func (ev *Event) Validate() error

Validate checks if all criteria are met

type Listener

type Listener struct {
	FromPort  *int64  `json:"from_port"`
	ToPort    *int64  `json:"to_port"`
	Protocol  *string `json:"protocol"`
	SSLCertID *string `json:"ssl_cert"`
}

Listener ...

Jump to

Keyboard shortcuts

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