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
Click to show internal directories.
Click to hide internal directories.