Documentation
¶
Index ¶
- Constants
- Variables
- func Create(projectName, backedURL, cidr string, ...) error
- func Destroy(projectName, backedURL string) (err error)
- func GenerateIntraSubnetCIDRs(azCount int) []string
- func GeneratePrivateSubnetCIDRs(azCount int) []string
- func GeneratePublicSubnetCIDRs(azCount int) []string
- type NetworkRequest
- type NetworkResources
Constants ¶
View Source
const ( StackCreateNetworkName string = "Manage-Network" StackCreateNetworkOutputVPCID string = "VPCID" )
Variables ¶
Functions ¶
func GenerateIntraSubnetCIDRs ¶ added in v0.9.2
GenerateIntraSubnetCIDRs generates CIDR blocks for intra subnets based on the number of availability zones
func GeneratePrivateSubnetCIDRs ¶ added in v0.9.2
GeneratePrivateSubnetCIDRs generates CIDR blocks for private subnets based on the number of availability zones
func GeneratePublicSubnetCIDRs ¶ added in v0.9.2
GeneratePublicSubnetCIDRs generates CIDR blocks for public subnets based on the number of availability zones
Types ¶
type NetworkRequest ¶
type NetworkRequest struct {
CIDR string
Name string
Region string
AvailabilityZones []string
PublicSubnetsCIDRs []string
PrivateSubnetsCIDRs []string
IntraSubnetsCIDRs []string
SingleNatGateway bool
PublicToIntra *bool
MapPublicIp bool
}
func DefaultNetworkRequest ¶
func DefaultNetworkRequest(name, regionName string) NetworkRequest
func (NetworkRequest) CreateNetwork ¶
func (r NetworkRequest) CreateNetwork(ctx *pulumi.Context) (*NetworkResources, error)
type NetworkResources ¶
type NetworkResources struct {
VPCResources *vpc.VPCResources
AvailabilityZones []string
Region string
PublicSNResources []*subnet.PublicSubnetResources
PrivateSNResources []*subnet.PrivateSubnetResources
IntraSNResources []*subnet.PrivateSubnetResources
}
Click to show internal directories.
Click to hide internal directories.