network

package
v0.0.0-...-8fb0621 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDenyOutRule

func CreateDenyOutRule(ctx context.Context, nsgName string) (rule network.SecurityRule, err error)

CreateDenyOutRule creates an network security rule that denies outbound traffic

func CreateHTTPRule

func CreateHTTPRule(ctx context.Context, nsgName string) (rule network.SecurityRule, err error)

CreateHTTPRule creates an inbound network security rule that allows using port 80

func CreateNetworkSecurityGroup

func CreateNetworkSecurityGroup(ctx context.Context, nsgName string) (nsg network.SecurityGroup, err error)

CreateNetworkSecurityGroup creates a new network security group with rules set for allowing SSH and HTTPS use

func CreateSQLRule

func CreateSQLRule(ctx context.Context, nsgName, frontEndAddressPrefix string) (rule network.SecurityRule, err error)

CreateSQLRule creates an inbound network security rule that allows using port 1433

func CreateSSHRule

func CreateSSHRule(ctx context.Context, nsgName string) (rule network.SecurityRule, err error)

CreateSSHRule creates an inbound network security rule that allows using port 22

func CreateSimpleNetworkSecurityGroup

func CreateSimpleNetworkSecurityGroup(ctx context.Context, nsgName string) (nsg network.SecurityGroup, err error)

CreateSimpleNetworkSecurityGroup creates a new network security group, without rules (rules can be set later)

func CreateSubnetWithNetworkSecurityGroup

func CreateSubnetWithNetworkSecurityGroup(ctx context.Context, vnetName, subnetName, addressPrefix, nsgName string) (subnet network.Subnet, err error)

func CreateVirtualNetworkSubnet

func CreateVirtualNetworkSubnet(ctx context.Context, vnetName, subnetName string) (subnet network.Subnet, err error)

func DeleteNetworkSecurityGroup

func DeleteNetworkSecurityGroup(ctx context.Context, nsgName string) (result network.SecurityGroupsDeleteFuture, err error)

DeleteNetworkSecurityGroup deletes an existing network security group

func DeleteVirtualNetworkSubnet

func DeleteVirtualNetworkSubnet()

func GetNetworkSecurityGroup

func GetNetworkSecurityGroup(ctx context.Context, nsgName string) (network.SecurityGroup, error)

GetNetworkSecurityGroup returns an existing network security group

func GetVirtualNetworkSubnet

func GetVirtualNetworkSubnet(ctx context.Context, vnetName string, subnetName string) (network.Subnet, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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