network

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package network implements the Microsoft.Network ARM resources we expose: virtualNetworks, subnets (nested), and networkSecurityGroups. Real armnetwork clients hit this handler the same way they hit management.azure.com.

Supported operations (compute parity with AWS EC2 networking):

PUT/GET/DELETE  /subscriptions/{s}/resourceGroups/{rg}/providers/
    Microsoft.Network/virtualNetworks/{name}
GET .../virtualNetworks                              — list in RG
PUT/GET/DELETE  .../virtualNetworks/{vn}/subnets/{n} — nested subnet
GET .../virtualNetworks/{vn}/subnets                 — list subnets
PUT/GET/DELETE  .../networkSecurityGroups/{name}     — NSG CRUD
GET .../networkSecurityGroups                        — list NSGs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler serves Microsoft.Network ARM requests against a networking driver.

func New

New returns a network handler.

func (*Handler) Matches

func (*Handler) Matches(r *http.Request) bool

Matches returns true for ARM URLs targeting Microsoft.Network/virtualNetworks or networkSecurityGroups (and the locations operationStatuses sub-path used by async polling).

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP routes the request based on path shape.

Jump to

Keyboard shortcuts

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