disks

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package disks serves Azure ARM Microsoft.Compute/disks requests against a CloudEmu compute driver's volume operations.

Supported operations:

PUT    .../disks/{name}  — CreateOrUpdate (returns 202 + Azure-AsyncOperation)
GET    .../disks/{name}  — Get
GET    .../disks         — List in resource group
DELETE .../disks/{name}  — Delete (returns 202 + Azure-AsyncOperation)

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.Compute/disks requests.

func New

New returns a disks handler backed by c. The underlying driver's volume methods (CreateVolume, DescribeVolumes, DeleteVolume) provide the storage.

func (*Handler) Matches

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

Matches returns true for ARM disks paths.

func (*Handler) ServeHTTP

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

ServeHTTP routes the request based on method and presence of a name segment.

Jump to

Keyboard shortcuts

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