vpccidr

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 {
	DescribeVpcs(input *ec2.DescribeVpcsInput) (*ec2.DescribeVpcsOutput, error)
}

type Interface

type Interface interface {
	Lookup(vpc string) (string, error)
}

type VPCCIDR

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

func New

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

func (*VPCCIDR) Lookup

func (c *VPCCIDR) Lookup(ctx context.Context, vpc string) (string, error)

Jump to

Keyboard shortcuts

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