azurenetwork

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListAllNIC

func ListAllNIC() (nic []network.Interface, err error)

func ListAllNetworkSecurityGroup

func ListAllNetworkSecurityGroup() (nsg []network.SecurityGroup, err error)

func ListAllVirtualNetwork

func ListAllVirtualNetwork() (vnet []network.VirtualNetwork, err error)

// CreateVirtualNetwork lists all virtual networks

Types

type IpIn

type IpIn struct {
	ResourceGroup string
	IpName        string `json:"ipname,omitempty"`
	Location      string `json:"location,omitempty"`
}

func (IpIn) CreatePublicIP

func (pubip IpIn) CreatePublicIP() (ip network.PublicIPAddress, err error)

func (IpIn) DeletePublicIP

func (pubip IpIn) DeletePublicIP() (ar autorest.Response, err error)

func (IpIn) GetPublicIP

func (pubip IpIn) GetPublicIP() (ip network.PublicIPAddress, err error)

func (IpIn) ListAllPublicIP

func (pubip IpIn) ListAllPublicIP() (ip []network.PublicIPAddress, err error)

func (IpIn) ListPublicIP

func (pubip IpIn) ListPublicIP() (ip []network.PublicIPAddress, err error)

type NicIn

type NicIn struct {
	ResourceGroup string
	NicName       string `json:"nicname,omitempty"`
	NsgID         string `json:"nsgid,omitempty"`
	SubnetID      string `json:"subnetid,omitempty"`
	IpID          string `json:"ipid,omitempty"`
	Location      string `json:"location,omitempty"`
}

func (NicIn) CreateNIC

func (n NicIn) CreateNIC() (nic network.Interface, err error)

func (NicIn) DeleteNIC

func (n NicIn) DeleteNIC() (ar autorest.Response, err error)

func (NicIn) GetNIC

func (n NicIn) GetNIC() (nic network.Interface, err error)

func (NicIn) ListNIC

func (n NicIn) ListNIC() (nic []network.Interface, err error)

type NsgIn

type NsgIn struct {
	ResourceGroup string
	NsgName       string `json:"nsgname,omitempty"`
	//        SubnetID  string      `json:"subnet,omitempty"`
	Location string `json:"location,omitempty"`
}

func (NsgIn) CreateNetworkSecurityGroup

func (ns NsgIn) CreateNetworkSecurityGroup() (nsg network.SecurityGroup, err error)

func (NsgIn) DeleteNetworkSecurityGroup

func (ns NsgIn) DeleteNetworkSecurityGroup() (ar autorest.Response, err error)

func (NsgIn) GetNetworkSecurityGroup

func (ns NsgIn) GetNetworkSecurityGroup() (nsg network.SecurityGroup, err error)

func (NsgIn) ListNetworkSecurityGroup

func (ns NsgIn) ListNetworkSecurityGroup() (nsg []network.SecurityGroup, err error)

type SecurityRuleIn

type SecurityRuleIn struct {
	ResourceGroup string
	NsgName       string `json:"nsgname,omitempty"`
	RuleName      string `json:"rulename,omitempty"`
	Port          string `json:"port,omitempty"`
	Priority      int32  `json:"priority,omitempty"`
}

func (SecurityRuleIn) CreateNetworkSecurityRule

func (rule SecurityRuleIn) CreateNetworkSecurityRule() (nsgrule network.SecurityRule, err error)

type SubnetIn

type SubnetIn struct {
	ResourceGroup string
	VnetName      string `json:"vnetname,omitempty"`
	SubnetName    string `json:"subnetname,omitempty"`
	SubnetCidr    string `json:"cidr,omitempty"`
	NsgID         string `json:nsg,omitempty`
}

func (SubnetIn) CreateVirtualNetworkSubnet

func (sub SubnetIn) CreateVirtualNetworkSubnet() (subnet network.Subnet, err error)

func (SubnetIn) DeleteVirtualNetworkSubnet

func (sub SubnetIn) DeleteVirtualNetworkSubnet() (ar autorest.Response, err error)

func (SubnetIn) GetVirtualNetworkSubnet

func (sub SubnetIn) GetVirtualNetworkSubnet() (subnet network.Subnet, err error)

func (SubnetIn) ListVirtualNetworkSubnet

func (sub SubnetIn) ListVirtualNetworkSubnet() (subnet []network.Subnet, err error)

type VnetIn

type VnetIn struct {
	ResourceGroup string
	VnetName      string `json:"vnetname,omitempty"`
	Cidr          string `json:"cidr,omitempty"`
	Location      string `json:"location,omitempty"`
}

func (VnetIn) CreateVirtualNetwork

func (net VnetIn) CreateVirtualNetwork() (vnet network.VirtualNetwork, err error)

CreateVirtualNetwork creates a virtual network func CreateVirtualNetwork(resourceGroup string, vnetName string, cidr string, location string) (vnet network.VirtualNetwork, err error) {

func (VnetIn) DeleteVirtualNetwork

func (net VnetIn) DeleteVirtualNetwork() (ar autorest.Response, err error)

CreateVirtualNetwork deletes a virtual network

func (VnetIn) GetVirtualNetwork

func (net VnetIn) GetVirtualNetwork() (vnet network.VirtualNetwork, err error)

CreateVirtualNetwork gets a virtual network

func (VnetIn) ListVirtualNetwork

func (net VnetIn) ListVirtualNetwork() (vnet []network.VirtualNetwork, err error)

CreateVirtualNetwork lists a virtual network

Jump to

Keyboard shortcuts

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