network

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StackCreateNetworkName        string = "Manage-Network"
	StackCreateNetworkOutputVPCID string = "VPCID"
)

Variables

View Source
var (
	DefaultCIDRNetwork string = "10.0.0.0/16"

	DefaultCIDRPublicSubnets [3]string = [3]string{
		"10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"}
	DefaultLBIPs [3]string = [3]string{
		"10.0.1.15", "10.0.2.15", "10.0.3.15"}
	DefaultCIDRPrivateSubnets [3]string = [3]string{
		"10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"}
	DefaultCIDRIntraSubnets [3]string = [3]string{
		"10.0.201.0/24", "10.0.202.0/24", "10.0.203.0/24"}
	DefaultAvailabilityZones [3]string = [3]string{
		"us-east-1b", "us-east-1c", "us-east-1d"}
)

Functions

func CreateNetwork

func CreateNetwork(projectName, backedURL, cidr string,
	azs, publicSubnets, privateSubnets, intraSubnets []string) error

func DestroyNetwork

func DestroyNetwork(projectName, backedURL string) (err error)

Types

type NetworkRequest

type NetworkRequest struct {
	CIDR                string
	Name                string
	AvailabilityZones   []string
	PublicSubnetsCIDRs  []string
	PrivateSubnetsCIDRs []string
	IntraSubnetsCIDRs   []string
	SingleNatGateway    bool
}

func DefaultNetworkRequest

func DefaultNetworkRequest(name, regionName string) NetworkRequest

func (NetworkRequest) CreateNetwork

func (r NetworkRequest) CreateNetwork(ctx *pulumi.Context) (*NetworkResources, error)

func (NetworkRequest) Deployer

func (r NetworkRequest) Deployer(ctx *pulumi.Context) (err error)

type NetworkResources

type NetworkResources struct {
	VPCResources       *vpc.VPCResources
	AvailabilityZones  []string
	PublicSNResources  []*subnet.PublicSubnetResources
	PrivateSNResources []*subnet.PrivateSubnetResources
	IntraSNResources   []*subnet.PrivateSubnetResources
}

Jump to

Keyboard shortcuts

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