config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2015 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Healthchecks map[string]*healthcheck.Healthcheck `yaml:"healthchecks"`
	RouteTables  map[string]*RouteTable              `yaml:"routetables"`
}

func New

func New(filename string, im instancemetadata.InstanceMetadata) (*Config, error)

func (*Config) Default

func (c *Config) Default(instance string)

func (Config) Validate

func (c Config) Validate() error

type RouteTable

type RouteTable struct {
	Find         RouteTableFindSpec      `yaml:"find"`
	ManageRoutes []*aws.ManageRoutesSpec `yaml:"manage_routes"`
	// contains filtered or unexported fields
}

func (*RouteTable) Default

func (r *RouteTable) Default(instance string)

func (*RouteTable) RunEc2Updates

func (r *RouteTable) RunEc2Updates(manager aws.RouteTableManager, noop bool) error

func (*RouteTable) UpdateEc2RouteTables

func (r *RouteTable) UpdateEc2RouteTables(rt []*ec2.RouteTable) error

func (RouteTable) Validate

func (r RouteTable) Validate(name string, healthchecks map[string]*healthcheck.Healthcheck) error

type RouteTableFindSpec

type RouteTableFindSpec struct {
	Type   string            `yaml:"type"`
	Config map[string]string `yaml:"config"`
}

func (*RouteTableFindSpec) Default

func (r *RouteTableFindSpec) Default()

func (RouteTableFindSpec) GetFilter

func (spec RouteTableFindSpec) GetFilter() (aws.RouteTableFilter, error)

func (*RouteTableFindSpec) Validate

func (r *RouteTableFindSpec) Validate(name string) error

Jump to

Keyboard shortcuts

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