lib

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSCredentials

type AWSCredentials struct {
	Profile         string
	Region          string
	AccessKeyID     string
	SecretAccessKey string
}

AWSCredentials contains information to allow accessing AWS resources Keys have precedence over Profile and Region overrides that specified in the profile

type Config

type Config struct {
	VpcID       string
	SubnetSize  uint64
	Credentials *AWSCredentials
}

Config contains the configuration that needs to be supplied to dignet

type FindAvailableSubnetsResponse

type FindAvailableSubnetsResponse struct {
	SubnetCapacity   uint64
	Region           string
	VpcID            string
	VpcCidr          string
	AvailableSubnets []*net.IPNet
}

FindAvailableSubnetsResponse contains the return value of FindAvailableSubnets()

func FindAvailableSubnets

func FindAvailableSubnets(c *Config) (*FindAvailableSubnetsResponse, error)

FindAvailableSubnets queries the target VPC for existing subnets and returns CIDRs of subnets of the specified size that are available for use

Jump to

Keyboard shortcuts

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