storage

package
v0.6.37 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package storage handles block-device mounting tasks dispatched by base.

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
}

func NewHandler

func NewHandler(m Mounter, l *shared.Logger) *Handler

func (*Handler) HandleMount

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

type MountRequest

type MountRequest struct {
	Device     string `json:"device"`
	MountPoint string `json:"mount_point"`
	Token      string `json:"token"`
}

type Mounter

type Mounter interface {
	Mount(ctx context.Context, device, mountPoint string) error
}

Jump to

Keyboard shortcuts

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