standard

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

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

Variables

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

	DefaultLBIPs [3]string = [3]string{
		"10.0.1.15", "10.0.2.15", "10.0.3.15"}
	DefaultAvailabilityZones [3]string = [3]string{
		"us-east-1b", "us-east-1c", "us-east-1d"}
	DefaultRegion string = "us-east-1"
)

Functions

func Create

func Create(mCtxArgs *mc.ContextArgs, cidr string,
	azs, publicSubnets, privateSubnets, intraSubnets []string) error

func Destroy

func Destroy(mCtxArgs *mc.ContextArgs) (err error)

func GenerateIntraSubnetCIDRs added in v0.9.2

func GenerateIntraSubnetCIDRs(azCount int) []string

GenerateIntraSubnetCIDRs generates CIDR blocks for intra subnets based on the number of availability zones

func GeneratePrivateSubnetCIDRs added in v0.9.2

func GeneratePrivateSubnetCIDRs(azCount int) []string

GeneratePrivateSubnetCIDRs generates CIDR blocks for private subnets based on the number of availability zones

func GeneratePublicSubnetCIDRs added in v0.9.2

func GeneratePublicSubnetCIDRs(azCount int) []string

GeneratePublicSubnetCIDRs generates CIDR blocks for public subnets based on the number of availability zones

Types

type NatGatewayMode added in v0.9.7

type NatGatewayMode string
var (
	NatGatewayModeNone   NatGatewayMode = "none"
	NatGatewayModeSingle NatGatewayMode = "single"
	NatGatewayModeHA     NatGatewayMode = "ha"
	NatGatewayModeCustom NatGatewayMode = "ha"
)

type NetworkRequest

type NetworkRequest struct {
	MCtx                *mc.Context
	CIDR                string
	Name                string
	Region              string
	AvailabilityZones   []string
	PublicSubnetsCIDRs  []string
	PrivateSubnetsCIDRs []string
	IntraSubnetsCIDRs   []string
	NatGatewayMode      *NatGatewayMode
	PublicToIntra       *bool
	MapPublicIp         bool
}

func DefaultNetworkRequest

func DefaultNetworkRequest(ctx context.Context, 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
	Region             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