progress

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package progress exposes bounded, read-only local image availability.

Index

Constants

View Source
const MaxLayers = 512

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(store *containerdstore.Store, ranges *rangecache.Cache, gatherer prometheus.Gatherer, storagePath string) http.Handler

Types

type Activity

type Activity struct {
	OriginActive     int64   `json:"originActive"`
	PeerActive       int64   `json:"peerActive"`
	OriginFailures   float64 `json:"originFailures"`
	PeerBusy         float64 `json:"peerBusy"`
	PeerDialFailures float64 `json:"peerDialFailures"`
}

type Response

type Response struct {
	Blobs        []containerdstore.BlobProgress `json:"blobs"`
	Traffic      Traffic                        `json:"traffic"`
	Activity     *Activity                      `json:"activity,omitempty"`
	Storage      *Storage                       `json:"storage,omitempty"`
	StorageError string                         `json:"storageError,omitempty"`
}

type Storage

type Storage struct {
	Path      string `json:"path"`
	Total     uint64 `json:"total"`
	Used      uint64 `json:"used"`
	Available uint64 `json:"available"`
}

type Traffic

type Traffic struct {
	OriginBytes float64 `json:"originBytes"`
	PeerBytes   float64 `json:"peerBytes"`
}

Jump to

Keyboard shortcuts

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