config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func New

func (*Config) Validate

type RouteTable

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

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(meta instancemetadata.InstanceMetadata, manager aws.RouteTableManager, name string, healthchecks map[string]*healthcheck.Healthcheck, remotehealthchecks map[string]*healthcheck.Healthcheck) error

type RouteTableFindSpec

type RouteTableFindSpec struct {
	NoResultsOk bool                   `yaml:"no_results_ok"`
	Type        string                 `yaml:"type"`
	Not         bool                   `yaml:"not"`
	Config      map[string]interface{} `yaml:"config"`
}

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