network

package
v0.0.0-...-31b15bb Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceDafault = "default"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network interface {
	CreateVPC(ctx context.Context, params *awsec2.CreateVpcInput) (*awsec2.CreateVpcOutput, error)
	CreateSubnet(ctx context.Context, params *awsec2.CreateSubnetInput) (*awsec2.CreateSubnetOutput, error)
	CreateSG(ctx context.Context, params *awsec2.CreateSecurityGroupInput) (*awsec2.CreateSecurityGroupOutput, error)
	CreateNAT(ctx context.Context, dp *v1.DataPlanes) (*awsec2.CreateNatGatewayOutput, error)
	CreateElasticIP(ctx context.Context, params *awsec2.AllocateAddressInput) (*awsec2.AllocateAddressOutput, error)
	AssociateNATWithRT(ctx context.Context, dp *v1.DataPlanes) error
	CreateInternetGateway(ctx context.Context, params *awsec2.CreateInternetGatewayInput) (*awsec2.CreateInternetGatewayOutput, error)
	AttachInternetGateway(ctx context.Context, igId, vpcId string) (*awsec2.AttachInternetGatewayOutput, error)
	AddSGInboundRule(ctx context.Context, sgGroupId, vpcId string) (*awsec2.AuthorizeSecurityGroupIngressOutput, error)
	SubnetAutoAssignPublicIP(ctx context.Context, subnetId string) (*awsec2.ModifySubnetAttributeOutput, error)
	CreateRouteTable(ctx context.Context, vpcId string, params *awsec2.CreateRouteTableInput) (*awsec2.CreateRouteTableOutput, error)
	CreateRoute(ctx context.Context, input *awsec2.CreateRouteInput) (*awsec2.CreateRouteOutput, error)
	AssociateRTWithSubnet(ctx context.Context, rtId, subnetId string) error
	DeleteNatGateway(ctx context.Context, id string) error
	DetachInternetGateway(ctx context.Context, id, vpcId string) error
	DeleteInternetGateway(ctx context.Context, id string) error
	DeleteLBs(ctx context.Context, names []string) error
	DeleteVPC(ctx context.Context, vpcId string) error
	DeleteSubnets(ctx context.Context, subnetIds []string) error
	DeleteSGs(ctx context.Context, vpcId string) error
	DeleteRouteTables(ctx context.Context, vpcId string) error
}

func NewProvisioner

func NewProvisioner(ctx context.Context, region string) (Network, error)

Jump to

Keyboard shortcuts

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