aws

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hoster

type Hoster struct {
	// contains filtered or unexported fields
}

Hoster represents an hosting provider (here, AWS)

func (*Hoster) Destroy

func (h *Hoster) Destroy() error

Destroy remove route(s) to the IP from our VPC

func (*Hoster) Init

func (h *Hoster) Init(conf *config.CfiConfig, logger log.Logger)

Init prepare an aws hoster for usage

func (*Hoster) OnThisHoster

func (h *Hoster) OnThisHoster() bool

OnThisHoster returns true when we run on an gce instance

func (*Hoster) Preempt

func (h *Hoster) Preempt() error

Preempt takes over the floating IP address

func (*Hoster) Status

func (h *Hoster) Status() bool

Status returns true if the floating IP address route to the instance

Jump to

Keyboard shortcuts

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