routetable

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

NOTE this package is deprecated. As soon as v24 is gone, we can drop this package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsExecutionFailed

func IsExecutionFailed(err error) bool

IsExecutionFailed asserts executionFailedError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Config

type Config struct {
	EC2    EC2
	Logger micrologger.Logger
}

type EC2

type EC2 interface {
	DescribeRouteTables(*ec2.DescribeRouteTablesInput) (*ec2.DescribeRouteTablesOutput, error)
}

type RouteTable

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

RouteTable is a service implementation fetching route table IDs for any given route table name. Once fetched the mapping between name and ID are cached in memory.

func New

func New(config Config) (*RouteTable, error)

New creates a new route table service that has to be booted using Boot to cache the configured route table IDs associated with their names.

func (*RouteTable) IDForName

func (r *RouteTable) IDForName(ctx context.Context, name string) (string, error)

Jump to

Keyboard shortcuts

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