api

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: LGPL-2.1 Imports: 31 Imported by: 0

Documentation

Overview

Code generated by goopenapigen; DO NOT EDIT.

Code generated by ogen, DO NOT EDIT.

Code generated by goopenapigen; DO NOT EDIT.

Code generated by goopenapigen; DO NOT EDIT.

Code generated by goopenapigen; DO NOT EDIT.

Index

Constants

View Source
const (
	Name string = "yggvault public API"

	Version      string = "0.1.4"
	VersionMajor uint16 = 0
	VersionMinor uint16 = 1
	VersionPatch uint16 = 4

	Hash       string = "3041332ab3062aa75608b2e3c5e16e5643abb1d469f8cb841207a073e4ccada2"
	DateUpdate string = "2026-07-05"
)

Variables

This section is empty.

Functions

func NewDefaultHandler

func NewDefaultHandler(funcObj FuncInterface, optionsArr ...ServerOption) (http.Handler, error)

func NewHandler

func NewHandler(funcObj FuncInterface, optionsArr ...ServerOption) (http.Handler, error)

func OpenAPIJSON

func OpenAPIJSON() ([]byte, error)

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type ArtifactEntryObj

type ArtifactEntryObj struct {
	// BLAKE3-24 XOF digest of the artifact body, encoded as 48 lowercase hex characters.
	Hash string `json:"hash"`
	// Artifact class: `go-zip`, `composer-dist`, `tree-zip`, or `tree-targz`.
	Kind string `json:"kind"`
	// File name shown to clients for this derived artifact.
	Name string `json:"name"`
	// SHA-256 body digest in hex, intended for ecosystems that require SHA-256 integrity such as Bazel
	// `http_archive`.
	SHA256 OptString `json:"sha256"`
	// SHA-1 body digest in hex. Present for Composer dist artifacts as `dist.shasum`.
	Shasum OptString `json:"shasum"`
	// Artifact body size in bytes.
	Size int64 `json:"size"`
	// Download path for the artifact, relative to the current API mount.
	URL string `json:"url"`
}

Ref: #/components/schemas/ArtifactEntryObj

func (*ArtifactEntryObj) Decode

func (s *ArtifactEntryObj) Decode(d *jx.Decoder) error

Decode decodes ArtifactEntryObj from json.

func (*ArtifactEntryObj) Encode

func (s *ArtifactEntryObj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ArtifactEntryObj) GetHash

func (s *ArtifactEntryObj) GetHash() string

GetHash returns the value of Hash.

func (*ArtifactEntryObj) GetKind

func (s *ArtifactEntryObj) GetKind() string

GetKind returns the value of Kind.

func (*ArtifactEntryObj) GetName

func (s *ArtifactEntryObj) GetName() string

GetName returns the value of Name.

func (*ArtifactEntryObj) GetSHA256

func (s *ArtifactEntryObj) GetSHA256() OptString

GetSHA256 returns the value of SHA256.

func (*ArtifactEntryObj) GetShasum

func (s *ArtifactEntryObj) GetShasum() OptString

GetShasum returns the value of Shasum.

func (*ArtifactEntryObj) GetSize

func (s *ArtifactEntryObj) GetSize() int64

GetSize returns the value of Size.

func (*ArtifactEntryObj) GetURL

func (s *ArtifactEntryObj) GetURL() string

GetURL returns the value of URL.

func (*ArtifactEntryObj) MarshalJSON

func (s *ArtifactEntryObj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ArtifactEntryObj) SetHash

func (s *ArtifactEntryObj) SetHash(val string)

SetHash sets the value of Hash.

func (*ArtifactEntryObj) SetKind

func (s *ArtifactEntryObj) SetKind(val string)

SetKind sets the value of Kind.

func (*ArtifactEntryObj) SetName

func (s *ArtifactEntryObj) SetName(val string)

SetName sets the value of Name.

func (*ArtifactEntryObj) SetSHA256

func (s *ArtifactEntryObj) SetSHA256(val OptString)

SetSHA256 sets the value of SHA256.

func (*ArtifactEntryObj) SetShasum

func (s *ArtifactEntryObj) SetShasum(val OptString)

SetShasum sets the value of Shasum.

func (*ArtifactEntryObj) SetSize

func (s *ArtifactEntryObj) SetSize(val int64)

SetSize sets the value of Size.

func (*ArtifactEntryObj) SetURL

func (s *ArtifactEntryObj) SetURL(val string)

SetURL sets the value of URL.

func (*ArtifactEntryObj) UnmarshalJSON

func (s *ArtifactEntryObj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CatalogObj

type CatalogObj struct {
	// Catalog entries for all visible mirror keys, ordered by the server catalog builder.
	Keys []CatalogObjKeysItem `json:"keys"`
}

Ref: #/components/schemas/CatalogObj

func (*CatalogObj) Decode

func (s *CatalogObj) Decode(d *jx.Decoder) error

Decode decodes CatalogObj from json.

func (*CatalogObj) Encode

func (s *CatalogObj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CatalogObj) GetKeys

func (s *CatalogObj) GetKeys() []CatalogObjKeysItem

GetKeys returns the value of Keys.

func (*CatalogObj) MarshalJSON

func (s *CatalogObj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CatalogObj) SetKeys

func (s *CatalogObj) SetKeys(val []CatalogObjKeysItem)

SetKeys sets the value of Keys.

func (*CatalogObj) UnmarshalJSON

func (s *CatalogObj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CatalogObj) Validate

func (s *CatalogObj) Validate() error

type CatalogObjHeaders

type CatalogObjHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     CatalogObj
}

CatalogObjHeaders wraps CatalogObj with response headers.

func (*CatalogObjHeaders) GetCacheControl

func (s *CatalogObjHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*CatalogObjHeaders) GetETag

func (s *CatalogObjHeaders) GetETag() OptString

GetETag returns the value of ETag.

func (*CatalogObjHeaders) GetResponse

func (s *CatalogObjHeaders) GetResponse() CatalogObj

GetResponse returns the value of Response.

func (*CatalogObjHeaders) SetCacheControl

func (s *CatalogObjHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*CatalogObjHeaders) SetETag

func (s *CatalogObjHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*CatalogObjHeaders) SetResponse

func (s *CatalogObjHeaders) SetResponse(val CatalogObj)

SetResponse sets the value of Response.

func (*CatalogObjHeaders) Validate

func (s *CatalogObjHeaders) Validate() error

type CatalogObjKeysItem

type CatalogObjKeysItem struct {
	// Source class selected by discovery for this key.
	Classification OptCatalogObjKeysItemClassification `json:"classification"`
	// Registry key from `release_mirrors`.
	Key string `json:"key"`
	// Latest active version known for the key, if one exists.
	Latest OptString       `json:"latest"`
	Source SourceStatusObj `json:"source"`
	// Operational status of this mirror key, not the upstream repository status.
	Status CatalogObjKeysItemStatus `json:"status"`
	// Path to the key release list, normally `<key>/releases.json`.
	URL OptString `json:"url"`
}

func (*CatalogObjKeysItem) Decode

func (s *CatalogObjKeysItem) Decode(d *jx.Decoder) error

Decode decodes CatalogObjKeysItem from json.

func (*CatalogObjKeysItem) Encode

func (s *CatalogObjKeysItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CatalogObjKeysItem) GetClassification

GetClassification returns the value of Classification.

func (*CatalogObjKeysItem) GetKey

func (s *CatalogObjKeysItem) GetKey() string

GetKey returns the value of Key.

func (*CatalogObjKeysItem) GetLatest

func (s *CatalogObjKeysItem) GetLatest() OptString

GetLatest returns the value of Latest.

func (*CatalogObjKeysItem) GetSource

func (s *CatalogObjKeysItem) GetSource() SourceStatusObj

GetSource returns the value of Source.

func (*CatalogObjKeysItem) GetStatus

GetStatus returns the value of Status.

func (*CatalogObjKeysItem) GetURL

func (s *CatalogObjKeysItem) GetURL() OptString

GetURL returns the value of URL.

func (*CatalogObjKeysItem) MarshalJSON

func (s *CatalogObjKeysItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CatalogObjKeysItem) SetClassification

func (s *CatalogObjKeysItem) SetClassification(val OptCatalogObjKeysItemClassification)

SetClassification sets the value of Classification.

func (*CatalogObjKeysItem) SetKey

func (s *CatalogObjKeysItem) SetKey(val string)

SetKey sets the value of Key.

func (*CatalogObjKeysItem) SetLatest

func (s *CatalogObjKeysItem) SetLatest(val OptString)

SetLatest sets the value of Latest.

func (*CatalogObjKeysItem) SetSource

func (s *CatalogObjKeysItem) SetSource(val SourceStatusObj)

SetSource sets the value of Source.

func (*CatalogObjKeysItem) SetStatus

func (s *CatalogObjKeysItem) SetStatus(val CatalogObjKeysItemStatus)

SetStatus sets the value of Status.

func (*CatalogObjKeysItem) SetURL

func (s *CatalogObjKeysItem) SetURL(val OptString)

SetURL sets the value of URL.

func (*CatalogObjKeysItem) UnmarshalJSON

func (s *CatalogObjKeysItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CatalogObjKeysItem) Validate

func (s *CatalogObjKeysItem) Validate() error

type CatalogObjKeysItemClassification

type CatalogObjKeysItemClassification string

Source class selected by discovery for this key.

const (
	CatalogObjKeysItemClassificationGit     CatalogObjKeysItemClassification = "git"
	CatalogObjKeysItemClassificationBrother CatalogObjKeysItemClassification = "brother"
)

func (CatalogObjKeysItemClassification) AllValues

AllValues returns all CatalogObjKeysItemClassification values.

func (*CatalogObjKeysItemClassification) Decode

Decode decodes CatalogObjKeysItemClassification from json.

func (CatalogObjKeysItemClassification) Encode

Encode encodes CatalogObjKeysItemClassification as json.

func (CatalogObjKeysItemClassification) MarshalJSON

func (s CatalogObjKeysItemClassification) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CatalogObjKeysItemClassification) MarshalText

func (s CatalogObjKeysItemClassification) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CatalogObjKeysItemClassification) UnmarshalJSON

func (s *CatalogObjKeysItemClassification) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CatalogObjKeysItemClassification) UnmarshalText

func (s *CatalogObjKeysItemClassification) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CatalogObjKeysItemClassification) Validate

type CatalogObjKeysItemStatus

type CatalogObjKeysItemStatus string

Operational status of this mirror key, not the upstream repository status.

const (
	CatalogObjKeysItemStatusOk       CatalogObjKeysItemStatus = "ok"
	CatalogObjKeysItemStatusDegraded CatalogObjKeysItemStatus = "degraded"
	CatalogObjKeysItemStatusError    CatalogObjKeysItemStatus = "error"
)

func (CatalogObjKeysItemStatus) AllValues

AllValues returns all CatalogObjKeysItemStatus values.

func (*CatalogObjKeysItemStatus) Decode

func (s *CatalogObjKeysItemStatus) Decode(d *jx.Decoder) error

Decode decodes CatalogObjKeysItemStatus from json.

func (CatalogObjKeysItemStatus) Encode

func (s CatalogObjKeysItemStatus) Encode(e *jx.Encoder)

Encode encodes CatalogObjKeysItemStatus as json.

func (CatalogObjKeysItemStatus) MarshalJSON

func (s CatalogObjKeysItemStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CatalogObjKeysItemStatus) MarshalText

func (s CatalogObjKeysItemStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CatalogObjKeysItemStatus) UnmarshalJSON

func (s *CatalogObjKeysItemStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CatalogObjKeysItemStatus) UnmarshalText

func (s *CatalogObjKeysItemStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CatalogObjKeysItemStatus) Validate

func (s CatalogObjKeysItemStatus) Validate() error

type Client

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

Client implements OAS client.

func NewClient

func NewClient(serverURL string, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) GetCatalog

func (c *Client) GetCatalog(ctx context.Context, params GetCatalogParams) (GetCatalogRes, error)

GetCatalog invokes getCatalog operation.

Lightweight cross-key snapshot containing each key, latest version, operational status, source classification, and source availability. Release notes and artifact lists are omitted. The body is served from the metadata cache and does not perform a live storage scan. Clients should treat both `application/json` and `text/plain` variants as the same JSON document. Query parameters are rejected.

GET /catalog.json

func (*Client) GetComposerP2Package

func (c *Client) GetComposerP2Package(ctx context.Context, params GetComposerP2PackageParams) (GetComposerP2PackageRes, error)

GetComposerP2Package invokes getComposerP2Package operation.

Returns Composer v2 p2 metadata for one package name. `packageFile` contains the package segment with `.json` for stable metadata or `~dev.json` for the dev variant, for example `monolog.json` or `monolog~dev.json`. Unknown package names, dev-only misses, and invalid filenames return 404. Query parameters are rejected.

GET /p2/{vendor}/{packageFile}

func (*Client) GetComposerPackageList

func (c *Client) GetComposerPackageList(ctx context.Context, params GetComposerPackageListParams) (GetComposerPackageListRes, error)

GetComposerPackageList invokes getComposerPackageList operation.

Returns available Composer package names after package-name collision resolution. The optional `filter` supports Composer-style `*` wildcards and is validated before matching so oversized or malformed filters return 400.

GET /packages/list.json

func (*Client) GetComposerPackages

func (c *Client) GetComposerPackages(ctx context.Context, params GetComposerPackagesParams) (GetComposerPackagesRes, error)

GetComposerPackages invokes getComposerPackages operation.

Returns the Composer repository `packages.json` document. yggvault uses the Composer v2 lazy metadata flow: the root document advertises the p2 `metadata-url`, the complete prebuilt package-name list, and the package list endpoint. Query parameters are rejected.

GET /packages.json

func (*Client) GetFavicon

func (c *Client) GetFavicon(ctx context.Context, params GetFaviconParams) (GetFaviconRes, error)

GetFavicon invokes getFavicon operation.

Multi-resolution favicon (16/32/48) generated from the node logo. Pre-rendered at startup and served with a strong content ETag. Query parameters are rejected.

GET /favicon.ico

func (*Client) GetFeed

func (c *Client) GetFeed(ctx context.Context, params GetFeedParams) (GetFeedRes, error)

GetFeed invokes getFeed operation.

Atom 1.0 feed built from the cross-key release history. New events come first. The feed includes publish events and archive mutation events; a mutation is a separate entry with an ID that includes the content hash. The number of entries is capped by `web.pages.feed_size`. Query parameters are rejected.

GET /feed.xml

func (*Client) GetGoLatest

func (c *Client) GetGoLatest(ctx context.Context, params GetGoLatestParams) (GetGoLatestRes, error)

GetGoLatest invokes getGoLatest operation.

Returns the Go proxy `@latest` JSON document for the newest active canonical version in the requested major line. The route is available only when content detection has published a Go overlay for the key and major path.

GET /{key}/@latest

func (*Client) GetGoVersionList

func (c *Client) GetGoVersionList(ctx context.Context, params GetGoVersionListParams) (GetGoVersionListRes, error)

GetGoVersionList invokes getGoVersionList operation.

Returns the Go proxy `@v/list` body: one canonical version per line, newest first. The route is available only for keys and major lines where content detection has published a Go overlay. Query parameters are rejected.

GET /{key}/@v/list

func (*Client) GetHealth

func (c *Client) GetHealth(ctx context.Context) (GetHealthRes, error)

GetHealth invokes getHealth operation.

Returns the live node health snapshot for the listener that handled the request. The response is not cached and includes the entry source (`web` or `yggdrasil`), current runtime status, recent diagnostic count, and the last completed rescan timestamp when available.

GET /health

func (*Client) GetInfo

func (c *Client) GetInfo(ctx context.Context) (GetInfoRes, error)

GetInfo invokes getInfo operation.

Public node identity shared by all routes: name, optional description, optional location, public contacts, clearnet domain, and Yggdrasil host. The same identity data is also published through mesh `info`/`inet` signals. Empty `domain` or `ygg_host` means the matching entry is disabled.

GET /info

func (*Client) GetKeyFeed

func (c *Client) GetKeyFeed(ctx context.Context, params GetKeyFeedParams) (GetKeyFeedRes, error)

GetKeyFeed invokes getKeyFeed operation.

Atom 1.0 feed for release history events of one key. New events come first. The feed includes publish events and archive mutation events; a mutation is a separate entry with an ID that includes the content hash. The number of entries is capped by `web.pages.feed_size`. Query parameters are rejected.

GET /{key}/releases.xml

func (*Client) GetKeyReleases

func (c *Client) GetKeyReleases(ctx context.Context, params GetKeyReleasesParams) (GetKeyReleasesRes, error)

GetKeyReleases invokes getKeyReleases operation.

Lightweight release snapshot for one key. Each item contains version, time, size, and a link to the detail document; release notes and artifact lists are intentionally omitted. Pagination uses keyset cursors: `?after=<next-from-previous-response>`. The `next` field is omitted on the last page. Clients should treat both `application/json` and `text/plain` variants as the same JSON document.

GET /{key}/releases.json

func (c *Client) GetLogo(ctx context.Context, params GetLogoParams) (GetLogoRes, error)

GetLogo invokes getLogo operation.

Square transparent PNG of the node logo at a whitelisted edge size (16, 32, 48, 180, 192, 512). Pre-rendered at startup; other sizes return 404. Query parameters are rejected.

GET /logo/{size}

func (*Client) GetMetricsCache

func (c *Client) GetMetricsCache(ctx context.Context) (GetMetricsCacheRes, error)

GetMetricsCache invokes getMetricsCache operation.

JSON snapshot of the metadata/hot-file RAM cache and the storage engine (Pebble gauges, event counters, hot-cache enforcement). Served only when public metrics are enabled for the current entry (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns 404.

GET /metrics/cache

func (*Client) GetMetricsCore

func (c *Client) GetMetricsCore(ctx context.Context) (GetMetricsCoreRes, error)

GetMetricsCore invokes getMetricsCore operation.

JSON snapshot of core HTTP request signals aggregated across operations: request and error totals and request-duration sum/count. Served only when public metrics are enabled for the current entry (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns 404.

GET /metrics/core

func (*Client) GetMetricsErrors

func (c *Client) GetMetricsErrors(ctx context.Context) (GetMetricsErrorsRes, error)

GetMetricsErrors invokes getMetricsErrors operation.

JSON view of the Error Registry: active and dropped diagnostic counts plus the bounded newest-first recent buffer for real-time triage. Served only when public metrics are enabled for the current entry (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns 404.

GET /metrics/errors

func (*Client) GetMetricsIndex

func (c *Client) GetMetricsIndex(ctx context.Context) (GetMetricsIndexRes, error)

GetMetricsIndex invokes getMetricsIndex operation.

Returns a small HTML page linking the enabled metric groups for the current entry. If both public and internal metric groups are disabled on that entry, the route is not advertised and returns 404.

GET /metrics

func (*Client) GetMetricsInternal

func (c *Client) GetMetricsInternal(ctx context.Context) (GetMetricsInternalRes, error)

GetMetricsInternal invokes getMetricsInternal operation.

Complete Prometheus-compatible text exposition (version 0.0.4) covering every metric group: core, cache, rescan, errors, and internal runtime signals. Built for scrapers such as VictoriaMetrics and Prometheus. Served only when internal metrics are enabled for the current entry (`metrics.web.internal` or `metrics.ygg.internal`); otherwise the endpoint returns 404.

GET /metrics/internal

func (*Client) GetMetricsRescan

func (c *Client) GetMetricsRescan(ctx context.Context) (GetMetricsRescanRes, error)

GetMetricsRescan invokes getMetricsRescan operation.

JSON snapshot of the rescan integrator: cycle, publish, and unavailability totals, mean cycle duration, and the last completed rescan timestamp. Served only when public metrics are enabled for the current entry (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns 404.

GET /metrics/rescan

func (*Client) GetMirrorLatest

func (c *Client) GetMirrorLatest(ctx context.Context, params GetMirrorLatestParams) (GetMirrorLatestRes, error)

GetMirrorLatest invokes getMirrorLatest operation.

Returns the latest indexed version for a mirrored key as a newline-terminated plain-text body. Unknown keys or keys without indexed versions return 404.

GET /{key}/latest

func (*Client) GetMirrorList

func (c *Client) GetMirrorList(ctx context.Context, params GetMirrorListParams) (GetMirrorListRes, error)

GetMirrorList invokes getMirrorList operation.

Returns all indexed versions for a mirrored key as a newest-first plain-text list with one version per line. Unknown keys or keys without indexed versions return 404.

GET /{key}/list

func (*Client) GetMirrorListFull

func (c *Client) GetMirrorListFull(ctx context.Context, params GetMirrorListFullParams) (GetMirrorListFullRes, error)

GetMirrorListFull invokes getMirrorListFull operation.

Returns all indexed versions for a mirrored key as a newest-first JSON array body. The current handler serves this JSON body as `text/plain`; clients should parse the body content instead of relying on an `application/json` media type.

GET /{key}/list/full

func (*Client) GetOgKey

func (c *Client) GetOgKey(ctx context.Context, params GetOgKeyParams) (GetOgKeyRes, error)

GetOgKey invokes getOgKey operation.

Open Graph banner for one mirror key: key name, latest version, version count, and last publish date. Unknown or empty keys return 404. Generated on demand and cached. Query parameters are rejected.

GET /og/{key}

func (*Client) GetOgNode

func (c *Client) GetOgNode(ctx context.Context, params GetOgNodeParams) (GetOgNodeRes, error)

GetOgNode invokes getOgNode operation.

Open Graph banner for the whole node (catalog page): mirror-key and version counts, plus the last publish date. Generated on demand and cached. Query parameters are rejected.

GET /og.png

func (*Client) GetOgVersion

func (c *Client) GetOgVersion(ctx context.Context, params GetOgVersionParams) (GetOgVersionRes, error)

GetOgVersion invokes getOgVersion operation.

Open Graph banner for one version: version string, mirror key, source size, and detected overlays. Unknown key/version pairs return 404. Generated on demand and cached. Query parameters are rejected.

GET /og/{key}/{version}

func (*Client) GetSitemap

func (c *Client) GetSitemap(ctx context.Context, params GetSitemapParams) (GetSitemapRes, error)

GetSitemap invokes getSitemap operation.

Sitemap of crawlable HTML pages for the current entry: catalog, mirror-key pages, version pages with path-safe version labels, and the metrics index when public metrics are enabled. Absolute URLs use the entry scheme, host, and nested prefix; the URL count is capped by `web.pages.sitemap_size`. Query parameters are rejected.

GET /sitemap.xml

func (*Client) GetVersionArtifact

func (c *Client) GetVersionArtifact(ctx context.Context, params GetVersionArtifactParams) (GetVersionArtifactRes, error)

GetVersionArtifact invokes getVersionArtifact operation.

Go module proxy endpoint. The file extension selects the body: `.info` returns the Go proxy info JSON, `.mod` returns the raw or rewritten `go.mod`, and `.zip` streams the Go module zip from the hot cache. Versions are unescaped before lookup. The route is available only when content detection has published a Go overlay. If import rewriting is required but `overlay.go.rewrite_enabled` is false, the Go artifact is not published. Composer dist and universal `.tar.gz` archives are served from `/<key>/<version>.{zip,tar.gz}` instead.

GET /{key}/@v/{versionFile}

func (*Client) GetVersionFile

func (c *Client) GetVersionFile(ctx context.Context, params GetVersionFileParams) (GetVersionFileRes, error)

GetVersionFile invokes getVersionFile operation.

Dispatches by file extension. `.json` returns the release detail document, `.zip` returns a deterministic zip artifact, and `.tar.gz` returns a deterministic tar.gz artifact. Archive artifacts are always the raw uploaded source tree (top-dir `<key>-<version>/`) and are host-independent; Go-module import-path rewriting is exposed only on the go-proxy `@v/<version>.zip` endpoint. A bare `<version>` without an extension renders the browser HTML version page. Query parameters are rejected.

GET /{key}/{versionFile}

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type ComposerDistObj

type ComposerDistObj struct {
	// Version string or upstream reference used by Composer.
	Reference string `json:"reference"`
	// SHA-1 digest of the dist zip body.
	Shasum OptString `json:"shasum"`
	// Composer dist type. yggvault currently publishes zip dist URLs.
	Type ComposerDistObjType `json:"type"`
	// Universal zip URL for this version, for example `/<key>/<version>.zip`.
	URL             string `json:"url"`
	AdditionalProps ComposerDistObjAdditional
}

Ref: #/components/schemas/ComposerDistObj

func (*ComposerDistObj) Decode

func (s *ComposerDistObj) Decode(d *jx.Decoder) error

Decode decodes ComposerDistObj from json.

func (*ComposerDistObj) Encode

func (s *ComposerDistObj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ComposerDistObj) GetAdditionalProps

func (s *ComposerDistObj) GetAdditionalProps() ComposerDistObjAdditional

GetAdditionalProps returns the value of AdditionalProps.

func (*ComposerDistObj) GetReference

func (s *ComposerDistObj) GetReference() string

GetReference returns the value of Reference.

func (*ComposerDistObj) GetShasum

func (s *ComposerDistObj) GetShasum() OptString

GetShasum returns the value of Shasum.

func (*ComposerDistObj) GetType

func (s *ComposerDistObj) GetType() ComposerDistObjType

GetType returns the value of Type.

func (*ComposerDistObj) GetURL

func (s *ComposerDistObj) GetURL() string

GetURL returns the value of URL.

func (*ComposerDistObj) MarshalJSON

func (s *ComposerDistObj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ComposerDistObj) SetAdditionalProps

func (s *ComposerDistObj) SetAdditionalProps(val ComposerDistObjAdditional)

SetAdditionalProps sets the value of AdditionalProps.

func (*ComposerDistObj) SetReference

func (s *ComposerDistObj) SetReference(val string)

SetReference sets the value of Reference.

func (*ComposerDistObj) SetShasum

func (s *ComposerDistObj) SetShasum(val OptString)

SetShasum sets the value of Shasum.

func (*ComposerDistObj) SetType

func (s *ComposerDistObj) SetType(val ComposerDistObjType)

SetType sets the value of Type.

func (*ComposerDistObj) SetURL

func (s *ComposerDistObj) SetURL(val string)

SetURL sets the value of URL.

func (*ComposerDistObj) UnmarshalJSON

func (s *ComposerDistObj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ComposerDistObj) Validate

func (s *ComposerDistObj) Validate() error

type ComposerDistObjAdditional

type ComposerDistObjAdditional map[string]jx.Raw

func (*ComposerDistObjAdditional) Decode

func (s *ComposerDistObjAdditional) Decode(d *jx.Decoder) error

Decode decodes ComposerDistObjAdditional from json.

func (ComposerDistObjAdditional) Encode

func (s ComposerDistObjAdditional) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (ComposerDistObjAdditional) MarshalJSON

func (s ComposerDistObjAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ComposerDistObjAdditional) UnmarshalJSON

func (s *ComposerDistObjAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ComposerDistObjType

type ComposerDistObjType string

Composer dist type. yggvault currently publishes zip dist URLs.

const (
	ComposerDistObjTypeZip ComposerDistObjType = "zip"
	ComposerDistObjTypeTar ComposerDistObjType = "tar"
)

func (ComposerDistObjType) AllValues

AllValues returns all ComposerDistObjType values.

func (*ComposerDistObjType) Decode

func (s *ComposerDistObjType) Decode(d *jx.Decoder) error

Decode decodes ComposerDistObjType from json.

func (ComposerDistObjType) Encode

func (s ComposerDistObjType) Encode(e *jx.Encoder)

Encode encodes ComposerDistObjType as json.

func (ComposerDistObjType) MarshalJSON

func (s ComposerDistObjType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ComposerDistObjType) MarshalText

func (s ComposerDistObjType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ComposerDistObjType) UnmarshalJSON

func (s *ComposerDistObjType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ComposerDistObjType) UnmarshalText

func (s *ComposerDistObjType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ComposerDistObjType) Validate

func (s ComposerDistObjType) Validate() error

type ComposerP2Obj

type ComposerP2Obj struct {
	// One package name mapped to its Composer versions; yggvault serves non-minified p2 metadata.
	Packages        ComposerP2ObjPackages `json:"packages"`
	AdditionalProps ComposerP2ObjAdditional
}

Ref: #/components/schemas/ComposerP2Obj

func (*ComposerP2Obj) Decode

func (s *ComposerP2Obj) Decode(d *jx.Decoder) error

Decode decodes ComposerP2Obj from json.

func (*ComposerP2Obj) Encode

func (s *ComposerP2Obj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ComposerP2Obj) GetAdditionalProps

func (s *ComposerP2Obj) GetAdditionalProps() ComposerP2ObjAdditional

GetAdditionalProps returns the value of AdditionalProps.

func (*ComposerP2Obj) GetPackages

func (s *ComposerP2Obj) GetPackages() ComposerP2ObjPackages

GetPackages returns the value of Packages.

func (*ComposerP2Obj) MarshalJSON

func (s *ComposerP2Obj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ComposerP2Obj) SetAdditionalProps

func (s *ComposerP2Obj) SetAdditionalProps(val ComposerP2ObjAdditional)

SetAdditionalProps sets the value of AdditionalProps.

func (*ComposerP2Obj) SetPackages

func (s *ComposerP2Obj) SetPackages(val ComposerP2ObjPackages)

SetPackages sets the value of Packages.

func (*ComposerP2Obj) UnmarshalJSON

func (s *ComposerP2Obj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ComposerP2Obj) Validate

func (s *ComposerP2Obj) Validate() error

type ComposerP2ObjAdditional

type ComposerP2ObjAdditional map[string]jx.Raw

func (*ComposerP2ObjAdditional) Decode

func (s *ComposerP2ObjAdditional) Decode(d *jx.Decoder) error

Decode decodes ComposerP2ObjAdditional from json.

func (ComposerP2ObjAdditional) Encode

func (s ComposerP2ObjAdditional) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (ComposerP2ObjAdditional) MarshalJSON

func (s ComposerP2ObjAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ComposerP2ObjAdditional) UnmarshalJSON

func (s *ComposerP2ObjAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ComposerP2ObjHeaders

type ComposerP2ObjHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     ComposerP2Obj
}

ComposerP2ObjHeaders wraps ComposerP2Obj with response headers.

func (*ComposerP2ObjHeaders) GetCacheControl

func (s *ComposerP2ObjHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*ComposerP2ObjHeaders) GetETag

func (s *ComposerP2ObjHeaders) GetETag() OptString

GetETag returns the value of ETag.

func (*ComposerP2ObjHeaders) GetResponse

func (s *ComposerP2ObjHeaders) GetResponse() ComposerP2Obj

GetResponse returns the value of Response.

func (*ComposerP2ObjHeaders) SetCacheControl

func (s *ComposerP2ObjHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*ComposerP2ObjHeaders) SetETag

func (s *ComposerP2ObjHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*ComposerP2ObjHeaders) SetResponse

func (s *ComposerP2ObjHeaders) SetResponse(val ComposerP2Obj)

SetResponse sets the value of Response.

func (*ComposerP2ObjHeaders) Validate

func (s *ComposerP2ObjHeaders) Validate() error

type ComposerP2ObjPackages

type ComposerP2ObjPackages map[string][]ComposerPackageVersionObj

One package name mapped to its Composer versions; yggvault serves non-minified p2 metadata.

func (*ComposerP2ObjPackages) Decode

func (s *ComposerP2ObjPackages) Decode(d *jx.Decoder) error

Decode decodes ComposerP2ObjPackages from json.

func (ComposerP2ObjPackages) Encode

func (s ComposerP2ObjPackages) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (ComposerP2ObjPackages) MarshalJSON

func (s ComposerP2ObjPackages) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ComposerP2ObjPackages) UnmarshalJSON

func (s *ComposerP2ObjPackages) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ComposerP2ObjPackages) Validate

func (s ComposerP2ObjPackages) Validate() error

type ComposerPackageListObj

type ComposerPackageListObj struct {
	// Composer package names available through this repository after collision resolution.
	PackageNames []string `json:"packageNames"`
}

Ref: #/components/schemas/ComposerPackageListObj

func (*ComposerPackageListObj) Decode

func (s *ComposerPackageListObj) Decode(d *jx.Decoder) error

Decode decodes ComposerPackageListObj from json.

func (*ComposerPackageListObj) Encode

func (s *ComposerPackageListObj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ComposerPackageListObj) GetPackageNames

func (s *ComposerPackageListObj) GetPackageNames() []string

GetPackageNames returns the value of PackageNames.

func (*ComposerPackageListObj) MarshalJSON

func (s *ComposerPackageListObj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ComposerPackageListObj) SetPackageNames

func (s *ComposerPackageListObj) SetPackageNames(val []string)

SetPackageNames sets the value of PackageNames.

func (*ComposerPackageListObj) UnmarshalJSON

func (s *ComposerPackageListObj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ComposerPackageListObj) Validate

func (s *ComposerPackageListObj) Validate() error

type ComposerPackageListObjHeaders

type ComposerPackageListObjHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     ComposerPackageListObj
}

ComposerPackageListObjHeaders wraps ComposerPackageListObj with response headers.

func (*ComposerPackageListObjHeaders) GetCacheControl

func (s *ComposerPackageListObjHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*ComposerPackageListObjHeaders) GetETag

GetETag returns the value of ETag.

func (*ComposerPackageListObjHeaders) GetResponse

GetResponse returns the value of Response.

func (*ComposerPackageListObjHeaders) SetCacheControl

func (s *ComposerPackageListObjHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*ComposerPackageListObjHeaders) SetETag

func (s *ComposerPackageListObjHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*ComposerPackageListObjHeaders) SetResponse

SetResponse sets the value of Response.

func (*ComposerPackageListObjHeaders) Validate

func (s *ComposerPackageListObjHeaders) Validate() error

type ComposerPackageVersionObj

type ComposerPackageVersionObj struct {
	// Composer autoload section copied from upstream metadata.
	Autoload OptComposerPackageVersionObjAutoload `json:"autoload"`
	Dist     ComposerDistObj                      `json:"dist"`
	// License identifiers copied from upstream metadata, when present.
	License []string `json:"license"`
	// Composer package name in `vendor/name` form.
	Name string `json:"name"`
	// Runtime dependency constraints copied from upstream `composer.json`.
	Require OptComposerPackageVersionObjRequire `json:"require"`
	// Development dependency constraints copied from upstream `composer.json`.
	RequireMinusDev OptComposerPackageVersionObjRequireMinusDev `json:"require-dev"`
	// Upstream Composer source object, preserved when present.
	Source OptComposerPackageVersionObjSource `json:"source"`
	// Release timestamp used by Composer clients.
	Time OptDateTime `json:"time"`
	// Composer package type copied from upstream metadata when present.
	Type OptString `json:"type"`
	// Composer version string exposed to clients.
	Version string `json:"version"`
	// Composer-normalized version, when available from the upstream package metadata.
	VersionNormalized OptString `json:"version_normalized"`
	AdditionalProps   ComposerPackageVersionObjAdditional
}

Ref: #/components/schemas/ComposerPackageVersionObj

func (*ComposerPackageVersionObj) Decode

func (s *ComposerPackageVersionObj) Decode(d *jx.Decoder) error

Decode decodes ComposerPackageVersionObj from json.

func (*ComposerPackageVersionObj) Encode

func (s *ComposerPackageVersionObj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ComposerPackageVersionObj) GetAdditionalProps

GetAdditionalProps returns the value of AdditionalProps.

func (*ComposerPackageVersionObj) GetAutoload

GetAutoload returns the value of Autoload.

func (*ComposerPackageVersionObj) GetDist

GetDist returns the value of Dist.

func (*ComposerPackageVersionObj) GetLicense

func (s *ComposerPackageVersionObj) GetLicense() []string

GetLicense returns the value of License.

func (*ComposerPackageVersionObj) GetName

func (s *ComposerPackageVersionObj) GetName() string

GetName returns the value of Name.

func (*ComposerPackageVersionObj) GetRequire

GetRequire returns the value of Require.

func (*ComposerPackageVersionObj) GetRequireMinusDev

GetRequireMinusDev returns the value of RequireMinusDev.

func (*ComposerPackageVersionObj) GetSource

GetSource returns the value of Source.

func (*ComposerPackageVersionObj) GetTime

GetTime returns the value of Time.

func (*ComposerPackageVersionObj) GetType

func (s *ComposerPackageVersionObj) GetType() OptString

GetType returns the value of Type.

func (*ComposerPackageVersionObj) GetVersion

func (s *ComposerPackageVersionObj) GetVersion() string

GetVersion returns the value of Version.

func (*ComposerPackageVersionObj) GetVersionNormalized

func (s *ComposerPackageVersionObj) GetVersionNormalized() OptString

GetVersionNormalized returns the value of VersionNormalized.

func (*ComposerPackageVersionObj) MarshalJSON

func (s *ComposerPackageVersionObj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ComposerPackageVersionObj) SetAdditionalProps

SetAdditionalProps sets the value of AdditionalProps.

func (*ComposerPackageVersionObj) SetAutoload

SetAutoload sets the value of Autoload.

func (*ComposerPackageVersionObj) SetDist

SetDist sets the value of Dist.

func (*ComposerPackageVersionObj) SetLicense

func (s *ComposerPackageVersionObj) SetLicense(val []string)

SetLicense sets the value of License.

func (*ComposerPackageVersionObj) SetName

func (s *ComposerPackageVersionObj) SetName(val string)

SetName sets the value of Name.

func (*ComposerPackageVersionObj) SetRequire

SetRequire sets the value of Require.

func (*ComposerPackageVersionObj) SetRequireMinusDev

SetRequireMinusDev sets the value of RequireMinusDev.

func (*ComposerPackageVersionObj) SetSource

SetSource sets the value of Source.

func (*ComposerPackageVersionObj) SetTime

func (s *ComposerPackageVersionObj) SetTime(val OptDateTime)

SetTime sets the value of Time.

func (*ComposerPackageVersionObj) SetType

func (s *ComposerPackageVersionObj) SetType(val OptString)

SetType sets the value of Type.

func (*ComposerPackageVersionObj) SetVersion

func (s *ComposerPackageVersionObj) SetVersion(val string)

SetVersion sets the value of Version.

func (*ComposerPackageVersionObj) SetVersionNormalized

func (s *ComposerPackageVersionObj) SetVersionNormalized(val OptString)

SetVersionNormalized sets the value of VersionNormalized.

func (*ComposerPackageVersionObj) UnmarshalJSON

func (s *ComposerPackageVersionObj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ComposerPackageVersionObj) Validate

func (s *ComposerPackageVersionObj) Validate() error

type ComposerPackageVersionObjAdditional

type ComposerPackageVersionObjAdditional map[string]jx.Raw

func (*ComposerPackageVersionObjAdditional) Decode

Decode decodes ComposerPackageVersionObjAdditional from json.

func (ComposerPackageVersionObjAdditional) Encode

Encode implements json.Marshaler.

func (ComposerPackageVersionObjAdditional) MarshalJSON

func (s ComposerPackageVersionObjAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ComposerPackageVersionObjAdditional) UnmarshalJSON

func (s *ComposerPackageVersionObjAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ComposerPackageVersionObjAutoload

type ComposerPackageVersionObjAutoload map[string]jx.Raw

Composer autoload section copied from upstream metadata.

func (*ComposerPackageVersionObjAutoload) Decode

Decode decodes ComposerPackageVersionObjAutoload from json.

func (ComposerPackageVersionObjAutoload) Encode

Encode implements json.Marshaler.

func (ComposerPackageVersionObjAutoload) MarshalJSON

func (s ComposerPackageVersionObjAutoload) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ComposerPackageVersionObjAutoload) UnmarshalJSON

func (s *ComposerPackageVersionObjAutoload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ComposerPackageVersionObjRequire

type ComposerPackageVersionObjRequire map[string]string

Runtime dependency constraints copied from upstream `composer.json`.

func (*ComposerPackageVersionObjRequire) Decode

Decode decodes ComposerPackageVersionObjRequire from json.

func (ComposerPackageVersionObjRequire) Encode

Encode implements json.Marshaler.

func (ComposerPackageVersionObjRequire) MarshalJSON

func (s ComposerPackageVersionObjRequire) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ComposerPackageVersionObjRequire) UnmarshalJSON

func (s *ComposerPackageVersionObjRequire) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ComposerPackageVersionObjRequireMinusDev

type ComposerPackageVersionObjRequireMinusDev map[string]string

Development dependency constraints copied from upstream `composer.json`.

func (*ComposerPackageVersionObjRequireMinusDev) Decode

Decode decodes ComposerPackageVersionObjRequireMinusDev from json.

func (ComposerPackageVersionObjRequireMinusDev) Encode

Encode implements json.Marshaler.

func (ComposerPackageVersionObjRequireMinusDev) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*ComposerPackageVersionObjRequireMinusDev) UnmarshalJSON

func (s *ComposerPackageVersionObjRequireMinusDev) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ComposerPackageVersionObjSource

type ComposerPackageVersionObjSource map[string]jx.Raw

Upstream Composer source object, preserved when present.

func (*ComposerPackageVersionObjSource) Decode

Decode decodes ComposerPackageVersionObjSource from json.

func (ComposerPackageVersionObjSource) Encode

Encode implements json.Marshaler.

func (ComposerPackageVersionObjSource) MarshalJSON

func (s ComposerPackageVersionObjSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ComposerPackageVersionObjSource) UnmarshalJSON

func (s *ComposerPackageVersionObjSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ComposerPackagesObj

type ComposerPackagesObj struct {
	// Complete prebuilt list of package names currently available from this node.
	AvailableMinusPackages []string `json:"available-packages"`
	// Package-list endpoint, for example `/packages/list.json`.
	List OptString `json:"list"`
	// Composer v2 package metadata URL template, for example `/p2/%package%.json`.
	MetadataMinusURL string `json:"metadata-url"`
	// Inline package map. It is normally empty because yggvault uses Composer v2 lazy metadata.
	Packages        OptComposerPackagesObjPackages `json:"packages"`
	AdditionalProps ComposerPackagesObjAdditional
}

Ref: #/components/schemas/ComposerPackagesObj

func (*ComposerPackagesObj) Decode

func (s *ComposerPackagesObj) Decode(d *jx.Decoder) error

Decode decodes ComposerPackagesObj from json.

func (*ComposerPackagesObj) Encode

func (s *ComposerPackagesObj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ComposerPackagesObj) GetAdditionalProps

func (s *ComposerPackagesObj) GetAdditionalProps() ComposerPackagesObjAdditional

GetAdditionalProps returns the value of AdditionalProps.

func (*ComposerPackagesObj) GetAvailableMinusPackages

func (s *ComposerPackagesObj) GetAvailableMinusPackages() []string

GetAvailableMinusPackages returns the value of AvailableMinusPackages.

func (*ComposerPackagesObj) GetList

func (s *ComposerPackagesObj) GetList() OptString

GetList returns the value of List.

func (*ComposerPackagesObj) GetMetadataMinusURL

func (s *ComposerPackagesObj) GetMetadataMinusURL() string

GetMetadataMinusURL returns the value of MetadataMinusURL.

func (*ComposerPackagesObj) GetPackages

GetPackages returns the value of Packages.

func (*ComposerPackagesObj) MarshalJSON

func (s *ComposerPackagesObj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ComposerPackagesObj) SetAdditionalProps

func (s *ComposerPackagesObj) SetAdditionalProps(val ComposerPackagesObjAdditional)

SetAdditionalProps sets the value of AdditionalProps.

func (*ComposerPackagesObj) SetAvailableMinusPackages

func (s *ComposerPackagesObj) SetAvailableMinusPackages(val []string)

SetAvailableMinusPackages sets the value of AvailableMinusPackages.

func (*ComposerPackagesObj) SetList

func (s *ComposerPackagesObj) SetList(val OptString)

SetList sets the value of List.

func (*ComposerPackagesObj) SetMetadataMinusURL

func (s *ComposerPackagesObj) SetMetadataMinusURL(val string)

SetMetadataMinusURL sets the value of MetadataMinusURL.

func (*ComposerPackagesObj) SetPackages

SetPackages sets the value of Packages.

func (*ComposerPackagesObj) UnmarshalJSON

func (s *ComposerPackagesObj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ComposerPackagesObj) Validate

func (s *ComposerPackagesObj) Validate() error

type ComposerPackagesObjAdditional

type ComposerPackagesObjAdditional map[string]jx.Raw

func (*ComposerPackagesObjAdditional) Decode

Decode decodes ComposerPackagesObjAdditional from json.

func (ComposerPackagesObjAdditional) Encode

Encode implements json.Marshaler.

func (ComposerPackagesObjAdditional) MarshalJSON

func (s ComposerPackagesObjAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ComposerPackagesObjAdditional) UnmarshalJSON

func (s *ComposerPackagesObjAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ComposerPackagesObjHeaders

type ComposerPackagesObjHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     ComposerPackagesObj
}

ComposerPackagesObjHeaders wraps ComposerPackagesObj with response headers.

func (*ComposerPackagesObjHeaders) GetCacheControl

func (s *ComposerPackagesObjHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*ComposerPackagesObjHeaders) GetETag

GetETag returns the value of ETag.

func (*ComposerPackagesObjHeaders) GetResponse

GetResponse returns the value of Response.

func (*ComposerPackagesObjHeaders) SetCacheControl

func (s *ComposerPackagesObjHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*ComposerPackagesObjHeaders) SetETag

func (s *ComposerPackagesObjHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*ComposerPackagesObjHeaders) SetResponse

func (s *ComposerPackagesObjHeaders) SetResponse(val ComposerPackagesObj)

SetResponse sets the value of Response.

func (*ComposerPackagesObjHeaders) Validate

func (s *ComposerPackagesObjHeaders) Validate() error

type ComposerPackagesObjPackages

type ComposerPackagesObjPackages map[string]ComposerPackagesObjPackagesItem

Inline package map. It is normally empty because yggvault uses Composer v2 lazy metadata.

func (*ComposerPackagesObjPackages) Decode

Decode decodes ComposerPackagesObjPackages from json.

func (ComposerPackagesObjPackages) Encode

func (s ComposerPackagesObjPackages) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (ComposerPackagesObjPackages) MarshalJSON

func (s ComposerPackagesObjPackages) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ComposerPackagesObjPackages) UnmarshalJSON

func (s *ComposerPackagesObjPackages) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ComposerPackagesObjPackages) Validate

func (s ComposerPackagesObjPackages) Validate() error

type ComposerPackagesObjPackagesItem

type ComposerPackagesObjPackagesItem map[string]ComposerPackageVersionObj

func (*ComposerPackagesObjPackagesItem) Decode

Decode decodes ComposerPackagesObjPackagesItem from json.

func (ComposerPackagesObjPackagesItem) Encode

Encode implements json.Marshaler.

func (ComposerPackagesObjPackagesItem) MarshalJSON

func (s ComposerPackagesObjPackagesItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ComposerPackagesObjPackagesItem) UnmarshalJSON

func (s *ComposerPackagesObjPackagesItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ComposerPackagesObjPackagesItem) Validate

type DefaultErrorObj

type DefaultErrorObj struct {
	// Short machine-oriented error code or stable error class.
	Error string `json:"error"`
	// Human-readable error description. Error text is always emitted in English.
	Message string `json:"message"`
	// Request identifier that can be used to find the matching access log entry.
	RequestID OptString `json:"request_id"`
}

Ref: #/components/schemas/DefaultErrorObj

func (*DefaultErrorObj) Decode

func (s *DefaultErrorObj) Decode(d *jx.Decoder) error

Decode decodes DefaultErrorObj from json.

func (*DefaultErrorObj) Encode

func (s *DefaultErrorObj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DefaultErrorObj) GetError

func (s *DefaultErrorObj) GetError() string

GetError returns the value of Error.

func (*DefaultErrorObj) GetMessage

func (s *DefaultErrorObj) GetMessage() string

GetMessage returns the value of Message.

func (*DefaultErrorObj) GetRequestID

func (s *DefaultErrorObj) GetRequestID() OptString

GetRequestID returns the value of RequestID.

func (*DefaultErrorObj) MarshalJSON

func (s *DefaultErrorObj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DefaultErrorObj) SetError

func (s *DefaultErrorObj) SetError(val string)

SetError sets the value of Error.

func (*DefaultErrorObj) SetMessage

func (s *DefaultErrorObj) SetMessage(val string)

SetMessage sets the value of Message.

func (*DefaultErrorObj) SetRequestID

func (s *DefaultErrorObj) SetRequestID(val OptString)

SetRequestID sets the value of RequestID.

func (*DefaultErrorObj) UnmarshalJSON

func (s *DefaultErrorObj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

type ErrorType

type ErrorType = DefaultErrorObj

type FuncInterface

type FuncInterface interface {
	// GetCatalog handles GET /catalog.json.
	//
	// Catalog of all configured mirror keys
	//
	// Lightweight cross-key snapshot containing each key, latest version, operational status, source classification, and source availability. Release notes and artifact lists are omitted. The body is served from the metadata cache and does not perform a live storage scan. Clients should treat both `application/json` and `text/plain` variants as the same JSON document. Query parameters are rejected.
	GetCatalog(ctx context.Context, params GetCatalogParams) (GetCatalogRes, error)
	// GetComposerP2Package handles GET /p2/{vendor}/{packageFile}.
	//
	// Composer v2 package metadata
	//
	// Returns Composer v2 p2 metadata for one package name. `packageFile` contains the package segment with `.json` for stable metadata or `~dev.json` for the dev variant, for example `monolog.json` or `monolog~dev.json`. Unknown package names, dev-only misses, and invalid filenames return 404. Query parameters are rejected.
	GetComposerP2Package(ctx context.Context, params GetComposerP2PackageParams) (GetComposerP2PackageRes, error)
	// GetComposerPackageList handles GET /packages/list.json.
	//
	// Composer package-name list
	//
	// Returns available Composer package names after package-name collision resolution. The optional `filter` supports Composer-style `*` wildcards and is validated before matching so oversized or malformed filters return 400.
	GetComposerPackageList(ctx context.Context, params GetComposerPackageListParams) (GetComposerPackageListRes, error)
	// GetComposerPackages handles GET /packages.json.
	//
	// Composer repository root metadata
	//
	// Returns the Composer repository `packages.json` document. yggvault uses the Composer v2 lazy metadata flow: the root document advertises the p2 `metadata-url`, the complete prebuilt package-name list, and the package list endpoint. Query parameters are rejected.
	GetComposerPackages(ctx context.Context, params GetComposerPackagesParams) (GetComposerPackagesRes, error)
	// GetFavicon handles GET /favicon.ico.
	//
	// Node favicon
	//
	// Multi-resolution favicon (16/32/48) generated from the node logo. Pre-rendered at startup and served with a strong content ETag. Query parameters are rejected.
	GetFavicon(ctx context.Context, params GetFaviconParams) (GetFaviconRes, error)
	// GetFeed handles GET /feed.xml.
	//
	// Global Atom release-event feed
	//
	// Atom 1.0 feed built from the cross-key release history. New events come first. The feed includes publish events and archive mutation events; a mutation is a separate entry with an ID that includes the content hash. The number of entries is capped by `web.pages.feed_size`. Query parameters are rejected.
	GetFeed(ctx context.Context, params GetFeedParams) (GetFeedRes, error)
	// GetGoLatest handles GET /{key}/@latest.
	//
	// Latest version metadata for the Go module proxy
	//
	// Returns the Go proxy `@latest` JSON document for the newest active canonical version in the requested major line. The route is available only when content detection has published a Go overlay for the key and major path.
	GetGoLatest(ctx context.Context, params GetGoLatestParams) (GetGoLatestRes, error)
	// GetGoVersionList handles GET /{key}/@v/list.
	//
	// Unpaginated Go-compatible version list
	//
	// Returns the Go proxy `@v/list` body: one canonical version per line, newest first. The route is available only for keys and major lines where content detection has published a Go overlay. Query parameters are rejected.
	GetGoVersionList(ctx context.Context, params GetGoVersionListParams) (GetGoVersionListRes, error)
	// GetHealth handles GET /health.
	//
	// Health status for the current entry channel
	//
	// Returns the live node health snapshot for the listener that handled the request. The response is not cached and includes the entry source (`web` or `yggdrasil`), current runtime status, recent diagnostic count, and the last completed rescan timestamp when available.
	GetHealth(ctx context.Context) (GetHealthRes, error)
	// GetInfo handles GET /info.
	//
	// Public node identity card
	//
	// Public node identity shared by all routes: name, optional description, optional location, public contacts, clearnet domain, and Yggdrasil host. The same identity data is also published through mesh `info`/`inet` signals. Empty `domain` or `ygg_host` means the matching entry is disabled.
	GetInfo(ctx context.Context) (GetInfoRes, error)
	// GetKeyFeed handles GET /{key}/releases.xml.
	//
	// Atom release-event feed for one key
	//
	// Atom 1.0 feed for release history events of one key. New events come first. The feed includes publish events and archive mutation events; a mutation is a separate entry with an ID that includes the content hash. The number of entries is capped by `web.pages.feed_size`. Query parameters are rejected.
	GetKeyFeed(ctx context.Context, params GetKeyFeedParams) (GetKeyFeedRes, error)
	// GetKeyReleases handles GET /{key}/releases.json.
	//
	// Paginated release list for one key
	//
	// Lightweight release snapshot for one key. Each item contains version, time, size, and a link to the detail document; release notes and artifact lists are intentionally omitted. Pagination uses keyset cursors: `?after=<next-from-previous-response>`. The `next` field is omitted on the last page. Clients should treat both `application/json` and `text/plain` variants as the same JSON document.
	GetKeyReleases(ctx context.Context, params GetKeyReleasesParams) (GetKeyReleasesRes, error)
	//
	// Node logo PNG
	//
	// Square transparent PNG of the node logo at a whitelisted edge size (16, 32, 48, 180, 192, 512). Pre-rendered at startup; other sizes return 404. Query parameters are rejected.
	GetLogo(ctx context.Context, params GetLogoParams) (GetLogoRes, error)
	// GetMetricsCache handles GET /metrics/cache.
	//
	// Cache and storage-serving metrics
	//
	// JSON snapshot of the metadata/hot-file RAM cache and the storage engine (Pebble gauges, event counters, hot-cache enforcement). Served only when public metrics are enabled for the current entry (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns 404.
	GetMetricsCache(ctx context.Context) (GetMetricsCacheRes, error)
	// GetMetricsCore handles GET /metrics/core.
	//
	// Core HTTP request metrics
	//
	// JSON snapshot of core HTTP request signals aggregated across operations: request and error totals and request-duration sum/count. Served only when public metrics are enabled for the current entry (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns 404.
	GetMetricsCore(ctx context.Context) (GetMetricsCoreRes, error)
	// GetMetricsErrors handles GET /metrics/errors.
	//
	// Error registry metrics
	//
	// JSON view of the Error Registry: active and dropped diagnostic counts plus the bounded newest-first recent buffer for real-time triage. Served only when public metrics are enabled for the current entry (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns 404.
	GetMetricsErrors(ctx context.Context) (GetMetricsErrorsRes, error)
	// GetMetricsIndex handles GET /metrics.
	//
	// Human-readable metrics index
	//
	// Returns a small HTML page linking the enabled metric groups for the current entry. If both public and internal metric groups are disabled on that entry, the route is not advertised and returns 404.
	GetMetricsIndex(ctx context.Context) (GetMetricsIndexRes, error)
	// GetMetricsInternal handles GET /metrics/internal.
	//
	// Full Prometheus text exposition
	//
	// Complete Prometheus-compatible text exposition (version 0.0.4) covering every metric group: core, cache, rescan, errors, and internal runtime signals. Built for scrapers such as VictoriaMetrics and Prometheus. Served only when internal metrics are enabled for the current entry (`metrics.web.internal` or `metrics.ygg.internal`); otherwise the endpoint returns 404.
	GetMetricsInternal(ctx context.Context) (GetMetricsInternalRes, error)
	// GetMetricsRescan handles GET /metrics/rescan.
	//
	// Rescan and upstream-source metrics
	//
	// JSON snapshot of the rescan integrator: cycle, publish, and unavailability totals, mean cycle duration, and the last completed rescan timestamp. Served only when public metrics are enabled for the current entry (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns 404.
	GetMetricsRescan(ctx context.Context) (GetMetricsRescanRes, error)
	// GetMirrorLatest handles GET /{key}/latest.
	//
	// Latest mirrored version as plain text
	//
	// Returns the latest indexed version for a mirrored key as a newline-terminated plain-text body. Unknown keys or keys without indexed versions return 404.
	GetMirrorLatest(ctx context.Context, params GetMirrorLatestParams) (GetMirrorLatestRes, error)
	// GetMirrorList handles GET /{key}/list.
	//
	// Mirrored version list as plain text
	//
	// Returns all indexed versions for a mirrored key as a newest-first plain-text list with one version per line. Unknown keys or keys without indexed versions return 404.
	GetMirrorList(ctx context.Context, params GetMirrorListParams) (GetMirrorListRes, error)
	// GetMirrorListFull handles GET /{key}/list/full.
	//
	// Mirrored version list with tree hash and source size
	//
	// Returns all indexed versions for a mirrored key as a newest-first JSON array body. The current handler serves this JSON body as `text/plain`; clients should parse the body content instead of relying on an `application/json` media type.
	GetMirrorListFull(ctx context.Context, params GetMirrorListFullParams) (GetMirrorListFullRes, error)
	// GetOgKey handles GET /og/{key}.
	//
	// Module Open Graph banner
	//
	// Open Graph banner for one mirror key: key name, latest version, version count, and last publish date. Unknown or empty keys return 404. Generated on demand and cached. Query parameters are rejected.
	GetOgKey(ctx context.Context, params GetOgKeyParams) (GetOgKeyRes, error)
	// GetOgNode handles GET /og.png.
	//
	// Node Open Graph banner
	//
	// Open Graph banner for the whole node (catalog page): mirror-key and version counts, plus the last publish date. Generated on demand and cached. Query parameters are rejected.
	GetOgNode(ctx context.Context, params GetOgNodeParams) (GetOgNodeRes, error)
	// GetOgVersion handles GET /og/{key}/{version}.
	//
	// Version Open Graph banner
	//
	// Open Graph banner for one version: version string, mirror key, source size, and detected overlays. Unknown key/version pairs return 404. Generated on demand and cached. Query parameters are rejected.
	GetOgVersion(ctx context.Context, params GetOgVersionParams) (GetOgVersionRes, error)
	// GetSitemap handles GET /sitemap.xml.
	//
	// Node sitemap
	//
	// Sitemap of crawlable HTML pages for the current entry: catalog, mirror-key pages, version pages with path-safe version labels, and the metrics index when public metrics are enabled. Absolute URLs use the entry scheme, host, and nested prefix; the URL count is capped by `web.pages.sitemap_size`. Query parameters are rejected.
	GetSitemap(ctx context.Context, params GetSitemapParams) (GetSitemapRes, error)
	// GetVersionArtifact handles GET /{key}/@v/{versionFile}.
	//
	// Go proxy version artifact: .info, .mod, or .zip
	//
	// Go module proxy endpoint. The file extension selects the body: `.info` returns the Go proxy info JSON, `.mod` returns the raw or rewritten `go.mod`, and `.zip` streams the Go module zip from the hot cache. Versions are unescaped before lookup. The route is available only when content detection has published a Go overlay. If import rewriting is required but `overlay.go.rewrite_enabled` is false, the Go artifact is not published. Composer dist and universal `.tar.gz` archives are served from `/<key>/<version>.{zip,tar.gz}` instead.
	GetVersionArtifact(ctx context.Context, params GetVersionArtifactParams) (GetVersionArtifactRes, error)
	// GetVersionFile handles GET /{key}/{versionFile}.
	//
	// Per-version file: <version>.json, <version>.zip, or <version>.tar.gz
	//
	// Dispatches by file extension. `.json` returns the release detail document, `.zip` returns a deterministic zip artifact, and `.tar.gz` returns a deterministic tar.gz artifact. Archive artifacts are always the raw uploaded source tree (top-dir `<key>-<version>/`) and are host-independent; Go-module import-path rewriting is exposed only on the go-proxy `@v/<version>.zip` endpoint. A bare `<version>` without an extension renders the browser HTML version page. Query parameters are rejected.
	GetVersionFile(ctx context.Context, params GetVersionFileParams) (GetVersionFileRes, error)
}

type GetCatalogBadRequest

type GetCatalogBadRequest DefaultErrorObj

func (*GetCatalogBadRequest) Decode

func (s *GetCatalogBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetCatalogBadRequest from json.

func (*GetCatalogBadRequest) Encode

func (s *GetCatalogBadRequest) Encode(e *jx.Encoder)

Encode encodes GetCatalogBadRequest as json.

func (*GetCatalogBadRequest) MarshalJSON

func (s *GetCatalogBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetCatalogBadRequest) UnmarshalJSON

func (s *GetCatalogBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetCatalogInternalServerError

type GetCatalogInternalServerError DefaultErrorObj

func (*GetCatalogInternalServerError) Decode

Decode decodes GetCatalogInternalServerError from json.

func (*GetCatalogInternalServerError) Encode

Encode encodes GetCatalogInternalServerError as json.

func (*GetCatalogInternalServerError) MarshalJSON

func (s *GetCatalogInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetCatalogInternalServerError) UnmarshalJSON

func (s *GetCatalogInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetCatalogMethodNotAllowed

type GetCatalogMethodNotAllowed DefaultErrorObj

func (*GetCatalogMethodNotAllowed) Decode

Decode decodes GetCatalogMethodNotAllowed from json.

func (*GetCatalogMethodNotAllowed) Encode

func (s *GetCatalogMethodNotAllowed) Encode(e *jx.Encoder)

Encode encodes GetCatalogMethodNotAllowed as json.

func (*GetCatalogMethodNotAllowed) MarshalJSON

func (s *GetCatalogMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetCatalogMethodNotAllowed) UnmarshalJSON

func (s *GetCatalogMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetCatalogOKTextPlain

type GetCatalogOKTextPlain struct {
	Data io.Reader
}

func (GetCatalogOKTextPlain) Read

func (s GetCatalogOKTextPlain) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetCatalogOKTextPlainHeaders

type GetCatalogOKTextPlainHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     GetCatalogOKTextPlain
}

GetCatalogOKTextPlainHeaders wraps GetCatalogOKTextPlain with response headers.

func (*GetCatalogOKTextPlainHeaders) GetCacheControl

func (s *GetCatalogOKTextPlainHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*GetCatalogOKTextPlainHeaders) GetETag

GetETag returns the value of ETag.

func (*GetCatalogOKTextPlainHeaders) GetResponse

GetResponse returns the value of Response.

func (*GetCatalogOKTextPlainHeaders) SetCacheControl

func (s *GetCatalogOKTextPlainHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*GetCatalogOKTextPlainHeaders) SetETag

func (s *GetCatalogOKTextPlainHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*GetCatalogOKTextPlainHeaders) SetResponse

SetResponse sets the value of Response.

type GetCatalogParams

type GetCatalogParams struct {
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
}

GetCatalogParams is parameters of getCatalog operation.

type GetCatalogRequestHeaderFieldsTooLarge

type GetCatalogRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetCatalogRequestHeaderFieldsTooLarge) Decode

Decode decodes GetCatalogRequestHeaderFieldsTooLarge from json.

func (*GetCatalogRequestHeaderFieldsTooLarge) Encode

Encode encodes GetCatalogRequestHeaderFieldsTooLarge as json.

func (*GetCatalogRequestHeaderFieldsTooLarge) MarshalJSON

func (s *GetCatalogRequestHeaderFieldsTooLarge) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetCatalogRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetCatalogRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetCatalogRequestURITooLong

type GetCatalogRequestURITooLong DefaultErrorObj

func (*GetCatalogRequestURITooLong) Decode

Decode decodes GetCatalogRequestURITooLong from json.

func (*GetCatalogRequestURITooLong) Encode

func (s *GetCatalogRequestURITooLong) Encode(e *jx.Encoder)

Encode encodes GetCatalogRequestURITooLong as json.

func (*GetCatalogRequestURITooLong) MarshalJSON

func (s *GetCatalogRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetCatalogRequestURITooLong) UnmarshalJSON

func (s *GetCatalogRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetCatalogRes

type GetCatalogRes interface {
	// contains filtered or unexported methods
}

type GetCatalogTooManyRequests

type GetCatalogTooManyRequests DefaultErrorObj

func (*GetCatalogTooManyRequests) Decode

func (s *GetCatalogTooManyRequests) Decode(d *jx.Decoder) error

Decode decodes GetCatalogTooManyRequests from json.

func (*GetCatalogTooManyRequests) Encode

func (s *GetCatalogTooManyRequests) Encode(e *jx.Encoder)

Encode encodes GetCatalogTooManyRequests as json.

func (*GetCatalogTooManyRequests) MarshalJSON

func (s *GetCatalogTooManyRequests) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetCatalogTooManyRequests) UnmarshalJSON

func (s *GetCatalogTooManyRequests) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetComposerP2PackageBadRequest

type GetComposerP2PackageBadRequest DefaultErrorObj

func (*GetComposerP2PackageBadRequest) Decode

Decode decodes GetComposerP2PackageBadRequest from json.

func (*GetComposerP2PackageBadRequest) Encode

Encode encodes GetComposerP2PackageBadRequest as json.

func (*GetComposerP2PackageBadRequest) MarshalJSON

func (s *GetComposerP2PackageBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetComposerP2PackageBadRequest) UnmarshalJSON

func (s *GetComposerP2PackageBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetComposerP2PackageInternalServerError

type GetComposerP2PackageInternalServerError DefaultErrorObj

func (*GetComposerP2PackageInternalServerError) Decode

Decode decodes GetComposerP2PackageInternalServerError from json.

func (*GetComposerP2PackageInternalServerError) Encode

Encode encodes GetComposerP2PackageInternalServerError as json.

func (*GetComposerP2PackageInternalServerError) MarshalJSON

func (s *GetComposerP2PackageInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetComposerP2PackageInternalServerError) UnmarshalJSON

func (s *GetComposerP2PackageInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetComposerP2PackageMethodNotAllowed

type GetComposerP2PackageMethodNotAllowed DefaultErrorObj

func (*GetComposerP2PackageMethodNotAllowed) Decode

Decode decodes GetComposerP2PackageMethodNotAllowed from json.

func (*GetComposerP2PackageMethodNotAllowed) Encode

Encode encodes GetComposerP2PackageMethodNotAllowed as json.

func (*GetComposerP2PackageMethodNotAllowed) MarshalJSON

func (s *GetComposerP2PackageMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetComposerP2PackageMethodNotAllowed) UnmarshalJSON

func (s *GetComposerP2PackageMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetComposerP2PackageNotFound

type GetComposerP2PackageNotFound DefaultErrorObj

func (*GetComposerP2PackageNotFound) Decode

Decode decodes GetComposerP2PackageNotFound from json.

func (*GetComposerP2PackageNotFound) Encode

func (s *GetComposerP2PackageNotFound) Encode(e *jx.Encoder)

Encode encodes GetComposerP2PackageNotFound as json.

func (*GetComposerP2PackageNotFound) MarshalJSON

func (s *GetComposerP2PackageNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetComposerP2PackageNotFound) UnmarshalJSON

func (s *GetComposerP2PackageNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetComposerP2PackageParams

type GetComposerP2PackageParams struct {
	// Composer vendor segment.
	Vendor string
	// Composer package metadata filename, for example `monolog.json` or `monolog~dev.json`.
	PackageFile string
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
}

GetComposerP2PackageParams is parameters of getComposerP2Package operation.

type GetComposerP2PackageRequestHeaderFieldsTooLarge

type GetComposerP2PackageRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetComposerP2PackageRequestHeaderFieldsTooLarge) Decode

Decode decodes GetComposerP2PackageRequestHeaderFieldsTooLarge from json.

func (*GetComposerP2PackageRequestHeaderFieldsTooLarge) Encode

Encode encodes GetComposerP2PackageRequestHeaderFieldsTooLarge as json.

func (*GetComposerP2PackageRequestHeaderFieldsTooLarge) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetComposerP2PackageRequestHeaderFieldsTooLarge) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type GetComposerP2PackageRequestURITooLong

type GetComposerP2PackageRequestURITooLong DefaultErrorObj

func (*GetComposerP2PackageRequestURITooLong) Decode

Decode decodes GetComposerP2PackageRequestURITooLong from json.

func (*GetComposerP2PackageRequestURITooLong) Encode

Encode encodes GetComposerP2PackageRequestURITooLong as json.

func (*GetComposerP2PackageRequestURITooLong) MarshalJSON

func (s *GetComposerP2PackageRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetComposerP2PackageRequestURITooLong) UnmarshalJSON

func (s *GetComposerP2PackageRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetComposerP2PackageRes

type GetComposerP2PackageRes interface {
	// contains filtered or unexported methods
}

type GetComposerP2PackageTooManyRequests

type GetComposerP2PackageTooManyRequests DefaultErrorObj

func (*GetComposerP2PackageTooManyRequests) Decode

Decode decodes GetComposerP2PackageTooManyRequests from json.

func (*GetComposerP2PackageTooManyRequests) Encode

Encode encodes GetComposerP2PackageTooManyRequests as json.

func (*GetComposerP2PackageTooManyRequests) MarshalJSON

func (s *GetComposerP2PackageTooManyRequests) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetComposerP2PackageTooManyRequests) UnmarshalJSON

func (s *GetComposerP2PackageTooManyRequests) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetComposerPackageListBadRequest

type GetComposerPackageListBadRequest DefaultErrorObj

func (*GetComposerPackageListBadRequest) Decode

Decode decodes GetComposerPackageListBadRequest from json.

func (*GetComposerPackageListBadRequest) Encode

Encode encodes GetComposerPackageListBadRequest as json.

func (*GetComposerPackageListBadRequest) MarshalJSON

func (s *GetComposerPackageListBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetComposerPackageListBadRequest) UnmarshalJSON

func (s *GetComposerPackageListBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetComposerPackageListInternalServerError

type GetComposerPackageListInternalServerError DefaultErrorObj

func (*GetComposerPackageListInternalServerError) Decode

Decode decodes GetComposerPackageListInternalServerError from json.

func (*GetComposerPackageListInternalServerError) Encode

Encode encodes GetComposerPackageListInternalServerError as json.

func (*GetComposerPackageListInternalServerError) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetComposerPackageListInternalServerError) UnmarshalJSON

func (s *GetComposerPackageListInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetComposerPackageListMethodNotAllowed

type GetComposerPackageListMethodNotAllowed DefaultErrorObj

func (*GetComposerPackageListMethodNotAllowed) Decode

Decode decodes GetComposerPackageListMethodNotAllowed from json.

func (*GetComposerPackageListMethodNotAllowed) Encode

Encode encodes GetComposerPackageListMethodNotAllowed as json.

func (*GetComposerPackageListMethodNotAllowed) MarshalJSON

func (s *GetComposerPackageListMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetComposerPackageListMethodNotAllowed) UnmarshalJSON

func (s *GetComposerPackageListMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetComposerPackageListParams

type GetComposerPackageListParams struct {
	// Composer filter with optional `*` wildcards.
	Filter OptString `json:",omitempty,omitzero"`
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
}

GetComposerPackageListParams is parameters of getComposerPackageList operation.

type GetComposerPackageListRequestHeaderFieldsTooLarge

type GetComposerPackageListRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetComposerPackageListRequestHeaderFieldsTooLarge) Decode

Decode decodes GetComposerPackageListRequestHeaderFieldsTooLarge from json.

func (*GetComposerPackageListRequestHeaderFieldsTooLarge) Encode

Encode encodes GetComposerPackageListRequestHeaderFieldsTooLarge as json.

func (*GetComposerPackageListRequestHeaderFieldsTooLarge) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetComposerPackageListRequestHeaderFieldsTooLarge) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type GetComposerPackageListRequestURITooLong

type GetComposerPackageListRequestURITooLong DefaultErrorObj

func (*GetComposerPackageListRequestURITooLong) Decode

Decode decodes GetComposerPackageListRequestURITooLong from json.

func (*GetComposerPackageListRequestURITooLong) Encode

Encode encodes GetComposerPackageListRequestURITooLong as json.

func (*GetComposerPackageListRequestURITooLong) MarshalJSON

func (s *GetComposerPackageListRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetComposerPackageListRequestURITooLong) UnmarshalJSON

func (s *GetComposerPackageListRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetComposerPackageListRes

type GetComposerPackageListRes interface {
	// contains filtered or unexported methods
}

type GetComposerPackageListTooManyRequests

type GetComposerPackageListTooManyRequests DefaultErrorObj

func (*GetComposerPackageListTooManyRequests) Decode

Decode decodes GetComposerPackageListTooManyRequests from json.

func (*GetComposerPackageListTooManyRequests) Encode

Encode encodes GetComposerPackageListTooManyRequests as json.

func (*GetComposerPackageListTooManyRequests) MarshalJSON

func (s *GetComposerPackageListTooManyRequests) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetComposerPackageListTooManyRequests) UnmarshalJSON

func (s *GetComposerPackageListTooManyRequests) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetComposerPackagesBadRequest

type GetComposerPackagesBadRequest DefaultErrorObj

func (*GetComposerPackagesBadRequest) Decode

Decode decodes GetComposerPackagesBadRequest from json.

func (*GetComposerPackagesBadRequest) Encode

Encode encodes GetComposerPackagesBadRequest as json.

func (*GetComposerPackagesBadRequest) MarshalJSON

func (s *GetComposerPackagesBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetComposerPackagesBadRequest) UnmarshalJSON

func (s *GetComposerPackagesBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetComposerPackagesInternalServerError

type GetComposerPackagesInternalServerError DefaultErrorObj

func (*GetComposerPackagesInternalServerError) Decode

Decode decodes GetComposerPackagesInternalServerError from json.

func (*GetComposerPackagesInternalServerError) Encode

Encode encodes GetComposerPackagesInternalServerError as json.

func (*GetComposerPackagesInternalServerError) MarshalJSON

func (s *GetComposerPackagesInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetComposerPackagesInternalServerError) UnmarshalJSON

func (s *GetComposerPackagesInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetComposerPackagesMethodNotAllowed

type GetComposerPackagesMethodNotAllowed DefaultErrorObj

func (*GetComposerPackagesMethodNotAllowed) Decode

Decode decodes GetComposerPackagesMethodNotAllowed from json.

func (*GetComposerPackagesMethodNotAllowed) Encode

Encode encodes GetComposerPackagesMethodNotAllowed as json.

func (*GetComposerPackagesMethodNotAllowed) MarshalJSON

func (s *GetComposerPackagesMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetComposerPackagesMethodNotAllowed) UnmarshalJSON

func (s *GetComposerPackagesMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetComposerPackagesParams

type GetComposerPackagesParams struct {
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
}

GetComposerPackagesParams is parameters of getComposerPackages operation.

type GetComposerPackagesRequestHeaderFieldsTooLarge

type GetComposerPackagesRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetComposerPackagesRequestHeaderFieldsTooLarge) Decode

Decode decodes GetComposerPackagesRequestHeaderFieldsTooLarge from json.

func (*GetComposerPackagesRequestHeaderFieldsTooLarge) Encode

Encode encodes GetComposerPackagesRequestHeaderFieldsTooLarge as json.

func (*GetComposerPackagesRequestHeaderFieldsTooLarge) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetComposerPackagesRequestHeaderFieldsTooLarge) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type GetComposerPackagesRequestURITooLong

type GetComposerPackagesRequestURITooLong DefaultErrorObj

func (*GetComposerPackagesRequestURITooLong) Decode

Decode decodes GetComposerPackagesRequestURITooLong from json.

func (*GetComposerPackagesRequestURITooLong) Encode

Encode encodes GetComposerPackagesRequestURITooLong as json.

func (*GetComposerPackagesRequestURITooLong) MarshalJSON

func (s *GetComposerPackagesRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetComposerPackagesRequestURITooLong) UnmarshalJSON

func (s *GetComposerPackagesRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetComposerPackagesRes

type GetComposerPackagesRes interface {
	// contains filtered or unexported methods
}

type GetComposerPackagesTooManyRequests

type GetComposerPackagesTooManyRequests DefaultErrorObj

func (*GetComposerPackagesTooManyRequests) Decode

Decode decodes GetComposerPackagesTooManyRequests from json.

func (*GetComposerPackagesTooManyRequests) Encode

Encode encodes GetComposerPackagesTooManyRequests as json.

func (*GetComposerPackagesTooManyRequests) MarshalJSON

func (s *GetComposerPackagesTooManyRequests) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetComposerPackagesTooManyRequests) UnmarshalJSON

func (s *GetComposerPackagesTooManyRequests) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetFaviconBadRequest

type GetFaviconBadRequest DefaultErrorObj

func (*GetFaviconBadRequest) Decode

func (s *GetFaviconBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetFaviconBadRequest from json.

func (*GetFaviconBadRequest) Encode

func (s *GetFaviconBadRequest) Encode(e *jx.Encoder)

Encode encodes GetFaviconBadRequest as json.

func (*GetFaviconBadRequest) MarshalJSON

func (s *GetFaviconBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetFaviconBadRequest) UnmarshalJSON

func (s *GetFaviconBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetFaviconInternalServerError

type GetFaviconInternalServerError DefaultErrorObj

func (*GetFaviconInternalServerError) Decode

Decode decodes GetFaviconInternalServerError from json.

func (*GetFaviconInternalServerError) Encode

Encode encodes GetFaviconInternalServerError as json.

func (*GetFaviconInternalServerError) MarshalJSON

func (s *GetFaviconInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetFaviconInternalServerError) UnmarshalJSON

func (s *GetFaviconInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetFaviconMethodNotAllowed

type GetFaviconMethodNotAllowed DefaultErrorObj

func (*GetFaviconMethodNotAllowed) Decode

Decode decodes GetFaviconMethodNotAllowed from json.

func (*GetFaviconMethodNotAllowed) Encode

func (s *GetFaviconMethodNotAllowed) Encode(e *jx.Encoder)

Encode encodes GetFaviconMethodNotAllowed as json.

func (*GetFaviconMethodNotAllowed) MarshalJSON

func (s *GetFaviconMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetFaviconMethodNotAllowed) UnmarshalJSON

func (s *GetFaviconMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetFaviconOK

type GetFaviconOK struct {
	Data io.Reader
}

func (GetFaviconOK) Read

func (s GetFaviconOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetFaviconOKHeaders

type GetFaviconOKHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     GetFaviconOK
}

GetFaviconOKHeaders wraps GetFaviconOK with response headers.

func (*GetFaviconOKHeaders) GetCacheControl

func (s *GetFaviconOKHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*GetFaviconOKHeaders) GetETag

func (s *GetFaviconOKHeaders) GetETag() OptString

GetETag returns the value of ETag.

func (*GetFaviconOKHeaders) GetResponse

func (s *GetFaviconOKHeaders) GetResponse() GetFaviconOK

GetResponse returns the value of Response.

func (*GetFaviconOKHeaders) SetCacheControl

func (s *GetFaviconOKHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*GetFaviconOKHeaders) SetETag

func (s *GetFaviconOKHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*GetFaviconOKHeaders) SetResponse

func (s *GetFaviconOKHeaders) SetResponse(val GetFaviconOK)

SetResponse sets the value of Response.

type GetFaviconParams

type GetFaviconParams struct {
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
}

GetFaviconParams is parameters of getFavicon operation.

type GetFaviconRequestHeaderFieldsTooLarge

type GetFaviconRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetFaviconRequestHeaderFieldsTooLarge) Decode

Decode decodes GetFaviconRequestHeaderFieldsTooLarge from json.

func (*GetFaviconRequestHeaderFieldsTooLarge) Encode

Encode encodes GetFaviconRequestHeaderFieldsTooLarge as json.

func (*GetFaviconRequestHeaderFieldsTooLarge) MarshalJSON

func (s *GetFaviconRequestHeaderFieldsTooLarge) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetFaviconRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetFaviconRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetFaviconRequestURITooLong

type GetFaviconRequestURITooLong DefaultErrorObj

func (*GetFaviconRequestURITooLong) Decode

Decode decodes GetFaviconRequestURITooLong from json.

func (*GetFaviconRequestURITooLong) Encode

func (s *GetFaviconRequestURITooLong) Encode(e *jx.Encoder)

Encode encodes GetFaviconRequestURITooLong as json.

func (*GetFaviconRequestURITooLong) MarshalJSON

func (s *GetFaviconRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetFaviconRequestURITooLong) UnmarshalJSON

func (s *GetFaviconRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetFaviconRes

type GetFaviconRes interface {
	// contains filtered or unexported methods
}

type GetFeedBadRequest

type GetFeedBadRequest DefaultErrorObj

func (*GetFeedBadRequest) Decode

func (s *GetFeedBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetFeedBadRequest from json.

func (*GetFeedBadRequest) Encode

func (s *GetFeedBadRequest) Encode(e *jx.Encoder)

Encode encodes GetFeedBadRequest as json.

func (*GetFeedBadRequest) MarshalJSON

func (s *GetFeedBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetFeedBadRequest) UnmarshalJSON

func (s *GetFeedBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetFeedInternalServerError

type GetFeedInternalServerError DefaultErrorObj

func (*GetFeedInternalServerError) Decode

Decode decodes GetFeedInternalServerError from json.

func (*GetFeedInternalServerError) Encode

func (s *GetFeedInternalServerError) Encode(e *jx.Encoder)

Encode encodes GetFeedInternalServerError as json.

func (*GetFeedInternalServerError) MarshalJSON

func (s *GetFeedInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetFeedInternalServerError) UnmarshalJSON

func (s *GetFeedInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetFeedMethodNotAllowed

type GetFeedMethodNotAllowed DefaultErrorObj

func (*GetFeedMethodNotAllowed) Decode

func (s *GetFeedMethodNotAllowed) Decode(d *jx.Decoder) error

Decode decodes GetFeedMethodNotAllowed from json.

func (*GetFeedMethodNotAllowed) Encode

func (s *GetFeedMethodNotAllowed) Encode(e *jx.Encoder)

Encode encodes GetFeedMethodNotAllowed as json.

func (*GetFeedMethodNotAllowed) MarshalJSON

func (s *GetFeedMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetFeedMethodNotAllowed) UnmarshalJSON

func (s *GetFeedMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetFeedOK

type GetFeedOK struct {
	Data io.Reader
}

func (GetFeedOK) Read

func (s GetFeedOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetFeedOKHeaders

type GetFeedOKHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     GetFeedOK
}

GetFeedOKHeaders wraps GetFeedOK with response headers.

func (*GetFeedOKHeaders) GetCacheControl

func (s *GetFeedOKHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*GetFeedOKHeaders) GetETag

func (s *GetFeedOKHeaders) GetETag() OptString

GetETag returns the value of ETag.

func (*GetFeedOKHeaders) GetResponse

func (s *GetFeedOKHeaders) GetResponse() GetFeedOK

GetResponse returns the value of Response.

func (*GetFeedOKHeaders) SetCacheControl

func (s *GetFeedOKHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*GetFeedOKHeaders) SetETag

func (s *GetFeedOKHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*GetFeedOKHeaders) SetResponse

func (s *GetFeedOKHeaders) SetResponse(val GetFeedOK)

SetResponse sets the value of Response.

type GetFeedParams

type GetFeedParams struct {
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
}

GetFeedParams is parameters of getFeed operation.

type GetFeedRequestHeaderFieldsTooLarge

type GetFeedRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetFeedRequestHeaderFieldsTooLarge) Decode

Decode decodes GetFeedRequestHeaderFieldsTooLarge from json.

func (*GetFeedRequestHeaderFieldsTooLarge) Encode

Encode encodes GetFeedRequestHeaderFieldsTooLarge as json.

func (*GetFeedRequestHeaderFieldsTooLarge) MarshalJSON

func (s *GetFeedRequestHeaderFieldsTooLarge) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetFeedRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetFeedRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetFeedRequestURITooLong

type GetFeedRequestURITooLong DefaultErrorObj

func (*GetFeedRequestURITooLong) Decode

func (s *GetFeedRequestURITooLong) Decode(d *jx.Decoder) error

Decode decodes GetFeedRequestURITooLong from json.

func (*GetFeedRequestURITooLong) Encode

func (s *GetFeedRequestURITooLong) Encode(e *jx.Encoder)

Encode encodes GetFeedRequestURITooLong as json.

func (*GetFeedRequestURITooLong) MarshalJSON

func (s *GetFeedRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetFeedRequestURITooLong) UnmarshalJSON

func (s *GetFeedRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetFeedRes

type GetFeedRes interface {
	// contains filtered or unexported methods
}

type GetFeedTooManyRequests

type GetFeedTooManyRequests DefaultErrorObj

func (*GetFeedTooManyRequests) Decode

func (s *GetFeedTooManyRequests) Decode(d *jx.Decoder) error

Decode decodes GetFeedTooManyRequests from json.

func (*GetFeedTooManyRequests) Encode

func (s *GetFeedTooManyRequests) Encode(e *jx.Encoder)

Encode encodes GetFeedTooManyRequests as json.

func (*GetFeedTooManyRequests) MarshalJSON

func (s *GetFeedTooManyRequests) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetFeedTooManyRequests) UnmarshalJSON

func (s *GetFeedTooManyRequests) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetGoLatestBadRequest

type GetGoLatestBadRequest DefaultErrorObj

func (*GetGoLatestBadRequest) Decode

func (s *GetGoLatestBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetGoLatestBadRequest from json.

func (*GetGoLatestBadRequest) Encode

func (s *GetGoLatestBadRequest) Encode(e *jx.Encoder)

Encode encodes GetGoLatestBadRequest as json.

func (*GetGoLatestBadRequest) MarshalJSON

func (s *GetGoLatestBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetGoLatestBadRequest) UnmarshalJSON

func (s *GetGoLatestBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetGoLatestInternalServerError

type GetGoLatestInternalServerError DefaultErrorObj

func (*GetGoLatestInternalServerError) Decode

Decode decodes GetGoLatestInternalServerError from json.

func (*GetGoLatestInternalServerError) Encode

Encode encodes GetGoLatestInternalServerError as json.

func (*GetGoLatestInternalServerError) MarshalJSON

func (s *GetGoLatestInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetGoLatestInternalServerError) UnmarshalJSON

func (s *GetGoLatestInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetGoLatestMethodNotAllowed

type GetGoLatestMethodNotAllowed DefaultErrorObj

func (*GetGoLatestMethodNotAllowed) Decode

Decode decodes GetGoLatestMethodNotAllowed from json.

func (*GetGoLatestMethodNotAllowed) Encode

func (s *GetGoLatestMethodNotAllowed) Encode(e *jx.Encoder)

Encode encodes GetGoLatestMethodNotAllowed as json.

func (*GetGoLatestMethodNotAllowed) MarshalJSON

func (s *GetGoLatestMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetGoLatestMethodNotAllowed) UnmarshalJSON

func (s *GetGoLatestMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetGoLatestNotFound

type GetGoLatestNotFound DefaultErrorObj

func (*GetGoLatestNotFound) Decode

func (s *GetGoLatestNotFound) Decode(d *jx.Decoder) error

Decode decodes GetGoLatestNotFound from json.

func (*GetGoLatestNotFound) Encode

func (s *GetGoLatestNotFound) Encode(e *jx.Encoder)

Encode encodes GetGoLatestNotFound as json.

func (*GetGoLatestNotFound) MarshalJSON

func (s *GetGoLatestNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetGoLatestNotFound) UnmarshalJSON

func (s *GetGoLatestNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetGoLatestParams

type GetGoLatestParams struct {
	// Registry key configured in `release_mirrors`. Valid configuration keys match
	// `^[a-z0-9][a-z0-9._-]{1,38}[a-z0-9]$`, cannot look like a Go major suffix such as `v2`, and cannot
	// use reserved route names including `list`, `latest`, `@v`, `@latest`, `health`, `info`, `metrics`,
	// `openapi.json`, `p`, `p2`, `packages`, `packages.json`, `rpc`, `catalog.json`, `feed.xml`, `logo`,
	// `og.png`, `favicon.ico`, and `sitemap.xml`.
	Key string
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
}

GetGoLatestParams is parameters of getGoLatest operation.

type GetGoLatestRequestHeaderFieldsTooLarge

type GetGoLatestRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetGoLatestRequestHeaderFieldsTooLarge) Decode

Decode decodes GetGoLatestRequestHeaderFieldsTooLarge from json.

func (*GetGoLatestRequestHeaderFieldsTooLarge) Encode

Encode encodes GetGoLatestRequestHeaderFieldsTooLarge as json.

func (*GetGoLatestRequestHeaderFieldsTooLarge) MarshalJSON

func (s *GetGoLatestRequestHeaderFieldsTooLarge) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetGoLatestRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetGoLatestRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetGoLatestRequestURITooLong

type GetGoLatestRequestURITooLong DefaultErrorObj

func (*GetGoLatestRequestURITooLong) Decode

Decode decodes GetGoLatestRequestURITooLong from json.

func (*GetGoLatestRequestURITooLong) Encode

func (s *GetGoLatestRequestURITooLong) Encode(e *jx.Encoder)

Encode encodes GetGoLatestRequestURITooLong as json.

func (*GetGoLatestRequestURITooLong) MarshalJSON

func (s *GetGoLatestRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetGoLatestRequestURITooLong) UnmarshalJSON

func (s *GetGoLatestRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetGoLatestRes

type GetGoLatestRes interface {
	// contains filtered or unexported methods
}

type GetGoLatestTooManyRequests

type GetGoLatestTooManyRequests DefaultErrorObj

func (*GetGoLatestTooManyRequests) Decode

Decode decodes GetGoLatestTooManyRequests from json.

func (*GetGoLatestTooManyRequests) Encode

func (s *GetGoLatestTooManyRequests) Encode(e *jx.Encoder)

Encode encodes GetGoLatestTooManyRequests as json.

func (*GetGoLatestTooManyRequests) MarshalJSON

func (s *GetGoLatestTooManyRequests) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetGoLatestTooManyRequests) UnmarshalJSON

func (s *GetGoLatestTooManyRequests) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetGoVersionListBadRequest

type GetGoVersionListBadRequest DefaultErrorObj

func (*GetGoVersionListBadRequest) Decode

Decode decodes GetGoVersionListBadRequest from json.

func (*GetGoVersionListBadRequest) Encode

func (s *GetGoVersionListBadRequest) Encode(e *jx.Encoder)

Encode encodes GetGoVersionListBadRequest as json.

func (*GetGoVersionListBadRequest) MarshalJSON

func (s *GetGoVersionListBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetGoVersionListBadRequest) UnmarshalJSON

func (s *GetGoVersionListBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetGoVersionListInternalServerError

type GetGoVersionListInternalServerError DefaultErrorObj

func (*GetGoVersionListInternalServerError) Decode

Decode decodes GetGoVersionListInternalServerError from json.

func (*GetGoVersionListInternalServerError) Encode

Encode encodes GetGoVersionListInternalServerError as json.

func (*GetGoVersionListInternalServerError) MarshalJSON

func (s *GetGoVersionListInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetGoVersionListInternalServerError) UnmarshalJSON

func (s *GetGoVersionListInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetGoVersionListMethodNotAllowed

type GetGoVersionListMethodNotAllowed DefaultErrorObj

func (*GetGoVersionListMethodNotAllowed) Decode

Decode decodes GetGoVersionListMethodNotAllowed from json.

func (*GetGoVersionListMethodNotAllowed) Encode

Encode encodes GetGoVersionListMethodNotAllowed as json.

func (*GetGoVersionListMethodNotAllowed) MarshalJSON

func (s *GetGoVersionListMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetGoVersionListMethodNotAllowed) UnmarshalJSON

func (s *GetGoVersionListMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetGoVersionListNotFound

type GetGoVersionListNotFound DefaultErrorObj

func (*GetGoVersionListNotFound) Decode

func (s *GetGoVersionListNotFound) Decode(d *jx.Decoder) error

Decode decodes GetGoVersionListNotFound from json.

func (*GetGoVersionListNotFound) Encode

func (s *GetGoVersionListNotFound) Encode(e *jx.Encoder)

Encode encodes GetGoVersionListNotFound as json.

func (*GetGoVersionListNotFound) MarshalJSON

func (s *GetGoVersionListNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetGoVersionListNotFound) UnmarshalJSON

func (s *GetGoVersionListNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetGoVersionListOK

type GetGoVersionListOK struct {
	Data io.Reader
}

func (GetGoVersionListOK) Read

func (s GetGoVersionListOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetGoVersionListOKHeaders

type GetGoVersionListOKHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     GetGoVersionListOK
}

GetGoVersionListOKHeaders wraps GetGoVersionListOK with response headers.

func (*GetGoVersionListOKHeaders) GetCacheControl

func (s *GetGoVersionListOKHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*GetGoVersionListOKHeaders) GetETag

func (s *GetGoVersionListOKHeaders) GetETag() OptString

GetETag returns the value of ETag.

func (*GetGoVersionListOKHeaders) GetResponse

GetResponse returns the value of Response.

func (*GetGoVersionListOKHeaders) SetCacheControl

func (s *GetGoVersionListOKHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*GetGoVersionListOKHeaders) SetETag

func (s *GetGoVersionListOKHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*GetGoVersionListOKHeaders) SetResponse

func (s *GetGoVersionListOKHeaders) SetResponse(val GetGoVersionListOK)

SetResponse sets the value of Response.

type GetGoVersionListParams

type GetGoVersionListParams struct {
	// Registry key configured in `release_mirrors`. Valid configuration keys match
	// `^[a-z0-9][a-z0-9._-]{1,38}[a-z0-9]$`, cannot look like a Go major suffix such as `v2`, and cannot
	// use reserved route names including `list`, `latest`, `@v`, `@latest`, `health`, `info`, `metrics`,
	// `openapi.json`, `p`, `p2`, `packages`, `packages.json`, `rpc`, `catalog.json`, `feed.xml`, `logo`,
	// `og.png`, `favicon.ico`, and `sitemap.xml`.
	Key string
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
}

GetGoVersionListParams is parameters of getGoVersionList operation.

type GetGoVersionListRequestHeaderFieldsTooLarge

type GetGoVersionListRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetGoVersionListRequestHeaderFieldsTooLarge) Decode

Decode decodes GetGoVersionListRequestHeaderFieldsTooLarge from json.

func (*GetGoVersionListRequestHeaderFieldsTooLarge) Encode

Encode encodes GetGoVersionListRequestHeaderFieldsTooLarge as json.

func (*GetGoVersionListRequestHeaderFieldsTooLarge) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetGoVersionListRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetGoVersionListRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetGoVersionListRequestURITooLong

type GetGoVersionListRequestURITooLong DefaultErrorObj

func (*GetGoVersionListRequestURITooLong) Decode

Decode decodes GetGoVersionListRequestURITooLong from json.

func (*GetGoVersionListRequestURITooLong) Encode

Encode encodes GetGoVersionListRequestURITooLong as json.

func (*GetGoVersionListRequestURITooLong) MarshalJSON

func (s *GetGoVersionListRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetGoVersionListRequestURITooLong) UnmarshalJSON

func (s *GetGoVersionListRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetGoVersionListRes

type GetGoVersionListRes interface {
	// contains filtered or unexported methods
}

type GetGoVersionListTooManyRequests

type GetGoVersionListTooManyRequests DefaultErrorObj

func (*GetGoVersionListTooManyRequests) Decode

Decode decodes GetGoVersionListTooManyRequests from json.

func (*GetGoVersionListTooManyRequests) Encode

Encode encodes GetGoVersionListTooManyRequests as json.

func (*GetGoVersionListTooManyRequests) MarshalJSON

func (s *GetGoVersionListTooManyRequests) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetGoVersionListTooManyRequests) UnmarshalJSON

func (s *GetGoVersionListTooManyRequests) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetHealthBadRequest

type GetHealthBadRequest DefaultErrorObj

func (*GetHealthBadRequest) Decode

func (s *GetHealthBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetHealthBadRequest from json.

func (*GetHealthBadRequest) Encode

func (s *GetHealthBadRequest) Encode(e *jx.Encoder)

Encode encodes GetHealthBadRequest as json.

func (*GetHealthBadRequest) MarshalJSON

func (s *GetHealthBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetHealthBadRequest) UnmarshalJSON

func (s *GetHealthBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetHealthInternalServerError

type GetHealthInternalServerError DefaultErrorObj

func (*GetHealthInternalServerError) Decode

Decode decodes GetHealthInternalServerError from json.

func (*GetHealthInternalServerError) Encode

func (s *GetHealthInternalServerError) Encode(e *jx.Encoder)

Encode encodes GetHealthInternalServerError as json.

func (*GetHealthInternalServerError) MarshalJSON

func (s *GetHealthInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetHealthInternalServerError) UnmarshalJSON

func (s *GetHealthInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetHealthMethodNotAllowed

type GetHealthMethodNotAllowed DefaultErrorObj

func (*GetHealthMethodNotAllowed) Decode

func (s *GetHealthMethodNotAllowed) Decode(d *jx.Decoder) error

Decode decodes GetHealthMethodNotAllowed from json.

func (*GetHealthMethodNotAllowed) Encode

func (s *GetHealthMethodNotAllowed) Encode(e *jx.Encoder)

Encode encodes GetHealthMethodNotAllowed as json.

func (*GetHealthMethodNotAllowed) MarshalJSON

func (s *GetHealthMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetHealthMethodNotAllowed) UnmarshalJSON

func (s *GetHealthMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetHealthRequestHeaderFieldsTooLarge

type GetHealthRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetHealthRequestHeaderFieldsTooLarge) Decode

Decode decodes GetHealthRequestHeaderFieldsTooLarge from json.

func (*GetHealthRequestHeaderFieldsTooLarge) Encode

Encode encodes GetHealthRequestHeaderFieldsTooLarge as json.

func (*GetHealthRequestHeaderFieldsTooLarge) MarshalJSON

func (s *GetHealthRequestHeaderFieldsTooLarge) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetHealthRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetHealthRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetHealthRequestURITooLong

type GetHealthRequestURITooLong DefaultErrorObj

func (*GetHealthRequestURITooLong) Decode

Decode decodes GetHealthRequestURITooLong from json.

func (*GetHealthRequestURITooLong) Encode

func (s *GetHealthRequestURITooLong) Encode(e *jx.Encoder)

Encode encodes GetHealthRequestURITooLong as json.

func (*GetHealthRequestURITooLong) MarshalJSON

func (s *GetHealthRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetHealthRequestURITooLong) UnmarshalJSON

func (s *GetHealthRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetHealthRes

type GetHealthRes interface {
	// contains filtered or unexported methods
}

type GetInfoBadRequest

type GetInfoBadRequest DefaultErrorObj

func (*GetInfoBadRequest) Decode

func (s *GetInfoBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetInfoBadRequest from json.

func (*GetInfoBadRequest) Encode

func (s *GetInfoBadRequest) Encode(e *jx.Encoder)

Encode encodes GetInfoBadRequest as json.

func (*GetInfoBadRequest) MarshalJSON

func (s *GetInfoBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetInfoBadRequest) UnmarshalJSON

func (s *GetInfoBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetInfoInternalServerError

type GetInfoInternalServerError DefaultErrorObj

func (*GetInfoInternalServerError) Decode

Decode decodes GetInfoInternalServerError from json.

func (*GetInfoInternalServerError) Encode

func (s *GetInfoInternalServerError) Encode(e *jx.Encoder)

Encode encodes GetInfoInternalServerError as json.

func (*GetInfoInternalServerError) MarshalJSON

func (s *GetInfoInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetInfoInternalServerError) UnmarshalJSON

func (s *GetInfoInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetInfoMethodNotAllowed

type GetInfoMethodNotAllowed DefaultErrorObj

func (*GetInfoMethodNotAllowed) Decode

func (s *GetInfoMethodNotAllowed) Decode(d *jx.Decoder) error

Decode decodes GetInfoMethodNotAllowed from json.

func (*GetInfoMethodNotAllowed) Encode

func (s *GetInfoMethodNotAllowed) Encode(e *jx.Encoder)

Encode encodes GetInfoMethodNotAllowed as json.

func (*GetInfoMethodNotAllowed) MarshalJSON

func (s *GetInfoMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetInfoMethodNotAllowed) UnmarshalJSON

func (s *GetInfoMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetInfoRequestHeaderFieldsTooLarge

type GetInfoRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetInfoRequestHeaderFieldsTooLarge) Decode

Decode decodes GetInfoRequestHeaderFieldsTooLarge from json.

func (*GetInfoRequestHeaderFieldsTooLarge) Encode

Encode encodes GetInfoRequestHeaderFieldsTooLarge as json.

func (*GetInfoRequestHeaderFieldsTooLarge) MarshalJSON

func (s *GetInfoRequestHeaderFieldsTooLarge) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetInfoRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetInfoRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetInfoRequestURITooLong

type GetInfoRequestURITooLong DefaultErrorObj

func (*GetInfoRequestURITooLong) Decode

func (s *GetInfoRequestURITooLong) Decode(d *jx.Decoder) error

Decode decodes GetInfoRequestURITooLong from json.

func (*GetInfoRequestURITooLong) Encode

func (s *GetInfoRequestURITooLong) Encode(e *jx.Encoder)

Encode encodes GetInfoRequestURITooLong as json.

func (*GetInfoRequestURITooLong) MarshalJSON

func (s *GetInfoRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetInfoRequestURITooLong) UnmarshalJSON

func (s *GetInfoRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetInfoRes

type GetInfoRes interface {
	// contains filtered or unexported methods
}

type GetKeyFeedBadRequest

type GetKeyFeedBadRequest DefaultErrorObj

func (*GetKeyFeedBadRequest) Decode

func (s *GetKeyFeedBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetKeyFeedBadRequest from json.

func (*GetKeyFeedBadRequest) Encode

func (s *GetKeyFeedBadRequest) Encode(e *jx.Encoder)

Encode encodes GetKeyFeedBadRequest as json.

func (*GetKeyFeedBadRequest) MarshalJSON

func (s *GetKeyFeedBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetKeyFeedBadRequest) UnmarshalJSON

func (s *GetKeyFeedBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetKeyFeedInternalServerError

type GetKeyFeedInternalServerError DefaultErrorObj

func (*GetKeyFeedInternalServerError) Decode

Decode decodes GetKeyFeedInternalServerError from json.

func (*GetKeyFeedInternalServerError) Encode

Encode encodes GetKeyFeedInternalServerError as json.

func (*GetKeyFeedInternalServerError) MarshalJSON

func (s *GetKeyFeedInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetKeyFeedInternalServerError) UnmarshalJSON

func (s *GetKeyFeedInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetKeyFeedMethodNotAllowed

type GetKeyFeedMethodNotAllowed DefaultErrorObj

func (*GetKeyFeedMethodNotAllowed) Decode

Decode decodes GetKeyFeedMethodNotAllowed from json.

func (*GetKeyFeedMethodNotAllowed) Encode

func (s *GetKeyFeedMethodNotAllowed) Encode(e *jx.Encoder)

Encode encodes GetKeyFeedMethodNotAllowed as json.

func (*GetKeyFeedMethodNotAllowed) MarshalJSON

func (s *GetKeyFeedMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetKeyFeedMethodNotAllowed) UnmarshalJSON

func (s *GetKeyFeedMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetKeyFeedNotFound

type GetKeyFeedNotFound DefaultErrorObj

func (*GetKeyFeedNotFound) Decode

func (s *GetKeyFeedNotFound) Decode(d *jx.Decoder) error

Decode decodes GetKeyFeedNotFound from json.

func (*GetKeyFeedNotFound) Encode

func (s *GetKeyFeedNotFound) Encode(e *jx.Encoder)

Encode encodes GetKeyFeedNotFound as json.

func (*GetKeyFeedNotFound) MarshalJSON

func (s *GetKeyFeedNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetKeyFeedNotFound) UnmarshalJSON

func (s *GetKeyFeedNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetKeyFeedOK

type GetKeyFeedOK struct {
	Data io.Reader
}

func (GetKeyFeedOK) Read

func (s GetKeyFeedOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetKeyFeedOKHeaders

type GetKeyFeedOKHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     GetKeyFeedOK
}

GetKeyFeedOKHeaders wraps GetKeyFeedOK with response headers.

func (*GetKeyFeedOKHeaders) GetCacheControl

func (s *GetKeyFeedOKHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*GetKeyFeedOKHeaders) GetETag

func (s *GetKeyFeedOKHeaders) GetETag() OptString

GetETag returns the value of ETag.

func (*GetKeyFeedOKHeaders) GetResponse

func (s *GetKeyFeedOKHeaders) GetResponse() GetKeyFeedOK

GetResponse returns the value of Response.

func (*GetKeyFeedOKHeaders) SetCacheControl

func (s *GetKeyFeedOKHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*GetKeyFeedOKHeaders) SetETag

func (s *GetKeyFeedOKHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*GetKeyFeedOKHeaders) SetResponse

func (s *GetKeyFeedOKHeaders) SetResponse(val GetKeyFeedOK)

SetResponse sets the value of Response.

type GetKeyFeedParams

type GetKeyFeedParams struct {
	// Registry key configured in `release_mirrors`. Valid configuration keys match
	// `^[a-z0-9][a-z0-9._-]{1,38}[a-z0-9]$`, cannot look like a Go major suffix such as `v2`, and cannot
	// use reserved route names including `list`, `latest`, `@v`, `@latest`, `health`, `info`, `metrics`,
	// `openapi.json`, `p`, `p2`, `packages`, `packages.json`, `rpc`, `catalog.json`, `feed.xml`, `logo`,
	// `og.png`, `favicon.ico`, and `sitemap.xml`.
	Key string
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
}

GetKeyFeedParams is parameters of getKeyFeed operation.

type GetKeyFeedRequestHeaderFieldsTooLarge

type GetKeyFeedRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetKeyFeedRequestHeaderFieldsTooLarge) Decode

Decode decodes GetKeyFeedRequestHeaderFieldsTooLarge from json.

func (*GetKeyFeedRequestHeaderFieldsTooLarge) Encode

Encode encodes GetKeyFeedRequestHeaderFieldsTooLarge as json.

func (*GetKeyFeedRequestHeaderFieldsTooLarge) MarshalJSON

func (s *GetKeyFeedRequestHeaderFieldsTooLarge) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetKeyFeedRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetKeyFeedRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetKeyFeedRequestURITooLong

type GetKeyFeedRequestURITooLong DefaultErrorObj

func (*GetKeyFeedRequestURITooLong) Decode

Decode decodes GetKeyFeedRequestURITooLong from json.

func (*GetKeyFeedRequestURITooLong) Encode

func (s *GetKeyFeedRequestURITooLong) Encode(e *jx.Encoder)

Encode encodes GetKeyFeedRequestURITooLong as json.

func (*GetKeyFeedRequestURITooLong) MarshalJSON

func (s *GetKeyFeedRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetKeyFeedRequestURITooLong) UnmarshalJSON

func (s *GetKeyFeedRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetKeyFeedRes

type GetKeyFeedRes interface {
	// contains filtered or unexported methods
}

type GetKeyFeedTooManyRequests

type GetKeyFeedTooManyRequests DefaultErrorObj

func (*GetKeyFeedTooManyRequests) Decode

func (s *GetKeyFeedTooManyRequests) Decode(d *jx.Decoder) error

Decode decodes GetKeyFeedTooManyRequests from json.

func (*GetKeyFeedTooManyRequests) Encode

func (s *GetKeyFeedTooManyRequests) Encode(e *jx.Encoder)

Encode encodes GetKeyFeedTooManyRequests as json.

func (*GetKeyFeedTooManyRequests) MarshalJSON

func (s *GetKeyFeedTooManyRequests) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetKeyFeedTooManyRequests) UnmarshalJSON

func (s *GetKeyFeedTooManyRequests) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetKeyReleasesBadRequest

type GetKeyReleasesBadRequest DefaultErrorObj

func (*GetKeyReleasesBadRequest) Decode

func (s *GetKeyReleasesBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetKeyReleasesBadRequest from json.

func (*GetKeyReleasesBadRequest) Encode

func (s *GetKeyReleasesBadRequest) Encode(e *jx.Encoder)

Encode encodes GetKeyReleasesBadRequest as json.

func (*GetKeyReleasesBadRequest) MarshalJSON

func (s *GetKeyReleasesBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetKeyReleasesBadRequest) UnmarshalJSON

func (s *GetKeyReleasesBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetKeyReleasesInternalServerError

type GetKeyReleasesInternalServerError DefaultErrorObj

func (*GetKeyReleasesInternalServerError) Decode

Decode decodes GetKeyReleasesInternalServerError from json.

func (*GetKeyReleasesInternalServerError) Encode

Encode encodes GetKeyReleasesInternalServerError as json.

func (*GetKeyReleasesInternalServerError) MarshalJSON

func (s *GetKeyReleasesInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetKeyReleasesInternalServerError) UnmarshalJSON

func (s *GetKeyReleasesInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetKeyReleasesMethodNotAllowed

type GetKeyReleasesMethodNotAllowed DefaultErrorObj

func (*GetKeyReleasesMethodNotAllowed) Decode

Decode decodes GetKeyReleasesMethodNotAllowed from json.

func (*GetKeyReleasesMethodNotAllowed) Encode

Encode encodes GetKeyReleasesMethodNotAllowed as json.

func (*GetKeyReleasesMethodNotAllowed) MarshalJSON

func (s *GetKeyReleasesMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetKeyReleasesMethodNotAllowed) UnmarshalJSON

func (s *GetKeyReleasesMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetKeyReleasesNotFound

type GetKeyReleasesNotFound DefaultErrorObj

func (*GetKeyReleasesNotFound) Decode

func (s *GetKeyReleasesNotFound) Decode(d *jx.Decoder) error

Decode decodes GetKeyReleasesNotFound from json.

func (*GetKeyReleasesNotFound) Encode

func (s *GetKeyReleasesNotFound) Encode(e *jx.Encoder)

Encode encodes GetKeyReleasesNotFound as json.

func (*GetKeyReleasesNotFound) MarshalJSON

func (s *GetKeyReleasesNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetKeyReleasesNotFound) UnmarshalJSON

func (s *GetKeyReleasesNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetKeyReleasesOKTextPlain

type GetKeyReleasesOKTextPlain struct {
	Data io.Reader
}

func (GetKeyReleasesOKTextPlain) Read

func (s GetKeyReleasesOKTextPlain) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetKeyReleasesOKTextPlainHeaders

type GetKeyReleasesOKTextPlainHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     GetKeyReleasesOKTextPlain
}

GetKeyReleasesOKTextPlainHeaders wraps GetKeyReleasesOKTextPlain with response headers.

func (*GetKeyReleasesOKTextPlainHeaders) GetCacheControl

func (s *GetKeyReleasesOKTextPlainHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*GetKeyReleasesOKTextPlainHeaders) GetETag

GetETag returns the value of ETag.

func (*GetKeyReleasesOKTextPlainHeaders) GetResponse

GetResponse returns the value of Response.

func (*GetKeyReleasesOKTextPlainHeaders) SetCacheControl

func (s *GetKeyReleasesOKTextPlainHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*GetKeyReleasesOKTextPlainHeaders) SetETag

SetETag sets the value of ETag.

func (*GetKeyReleasesOKTextPlainHeaders) SetResponse

SetResponse sets the value of Response.

type GetKeyReleasesParams

type GetKeyReleasesParams struct {
	// Registry key configured in `release_mirrors`. Valid configuration keys match
	// `^[a-z0-9][a-z0-9._-]{1,38}[a-z0-9]$`, cannot look like a Go major suffix such as `v2`, and cannot
	// use reserved route names including `list`, `latest`, `@v`, `@latest`, `health`, `info`, `metrics`,
	// `openapi.json`, `p`, `p2`, `packages`, `packages.json`, `rpc`, `catalog.json`, `feed.xml`, `logo`,
	// `og.png`, `favicon.ico`, and `sitemap.xml`.
	Key string
	// Opaque keyset cursor copied from the `next` field of the previous response. Omit it to read the
	// first page. The page size is controlled by `web.pages.list_page_size`.
	After OptString `json:",omitempty,omitzero"`
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
}

GetKeyReleasesParams is parameters of getKeyReleases operation.

type GetKeyReleasesRequestHeaderFieldsTooLarge

type GetKeyReleasesRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetKeyReleasesRequestHeaderFieldsTooLarge) Decode

Decode decodes GetKeyReleasesRequestHeaderFieldsTooLarge from json.

func (*GetKeyReleasesRequestHeaderFieldsTooLarge) Encode

Encode encodes GetKeyReleasesRequestHeaderFieldsTooLarge as json.

func (*GetKeyReleasesRequestHeaderFieldsTooLarge) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetKeyReleasesRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetKeyReleasesRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetKeyReleasesRequestURITooLong

type GetKeyReleasesRequestURITooLong DefaultErrorObj

func (*GetKeyReleasesRequestURITooLong) Decode

Decode decodes GetKeyReleasesRequestURITooLong from json.

func (*GetKeyReleasesRequestURITooLong) Encode

Encode encodes GetKeyReleasesRequestURITooLong as json.

func (*GetKeyReleasesRequestURITooLong) MarshalJSON

func (s *GetKeyReleasesRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetKeyReleasesRequestURITooLong) UnmarshalJSON

func (s *GetKeyReleasesRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetKeyReleasesRes

type GetKeyReleasesRes interface {
	// contains filtered or unexported methods
}

type GetKeyReleasesTooManyRequests

type GetKeyReleasesTooManyRequests DefaultErrorObj

func (*GetKeyReleasesTooManyRequests) Decode

Decode decodes GetKeyReleasesTooManyRequests from json.

func (*GetKeyReleasesTooManyRequests) Encode

Encode encodes GetKeyReleasesTooManyRequests as json.

func (*GetKeyReleasesTooManyRequests) MarshalJSON

func (s *GetKeyReleasesTooManyRequests) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetKeyReleasesTooManyRequests) UnmarshalJSON

func (s *GetKeyReleasesTooManyRequests) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetLogoBadRequest

type GetLogoBadRequest DefaultErrorObj

func (*GetLogoBadRequest) Decode

func (s *GetLogoBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetLogoBadRequest from json.

func (*GetLogoBadRequest) Encode

func (s *GetLogoBadRequest) Encode(e *jx.Encoder)

Encode encodes GetLogoBadRequest as json.

func (*GetLogoBadRequest) MarshalJSON

func (s *GetLogoBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetLogoBadRequest) UnmarshalJSON

func (s *GetLogoBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetLogoInternalServerError

type GetLogoInternalServerError DefaultErrorObj

func (*GetLogoInternalServerError) Decode

Decode decodes GetLogoInternalServerError from json.

func (*GetLogoInternalServerError) Encode

func (s *GetLogoInternalServerError) Encode(e *jx.Encoder)

Encode encodes GetLogoInternalServerError as json.

func (*GetLogoInternalServerError) MarshalJSON

func (s *GetLogoInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetLogoInternalServerError) UnmarshalJSON

func (s *GetLogoInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetLogoMethodNotAllowed

type GetLogoMethodNotAllowed DefaultErrorObj

func (*GetLogoMethodNotAllowed) Decode

func (s *GetLogoMethodNotAllowed) Decode(d *jx.Decoder) error

Decode decodes GetLogoMethodNotAllowed from json.

func (*GetLogoMethodNotAllowed) Encode

func (s *GetLogoMethodNotAllowed) Encode(e *jx.Encoder)

Encode encodes GetLogoMethodNotAllowed as json.

func (*GetLogoMethodNotAllowed) MarshalJSON

func (s *GetLogoMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetLogoMethodNotAllowed) UnmarshalJSON

func (s *GetLogoMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetLogoNotFound

type GetLogoNotFound DefaultErrorObj

func (*GetLogoNotFound) Decode

func (s *GetLogoNotFound) Decode(d *jx.Decoder) error

Decode decodes GetLogoNotFound from json.

func (*GetLogoNotFound) Encode

func (s *GetLogoNotFound) Encode(e *jx.Encoder)

Encode encodes GetLogoNotFound as json.

func (*GetLogoNotFound) MarshalJSON

func (s *GetLogoNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetLogoNotFound) UnmarshalJSON

func (s *GetLogoNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetLogoOK

type GetLogoOK struct {
	Data io.Reader
}

func (GetLogoOK) Read

func (s GetLogoOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetLogoOKHeaders

type GetLogoOKHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     GetLogoOK
}

GetLogoOKHeaders wraps GetLogoOK with response headers.

func (*GetLogoOKHeaders) GetCacheControl

func (s *GetLogoOKHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*GetLogoOKHeaders) GetETag

func (s *GetLogoOKHeaders) GetETag() OptString

GetETag returns the value of ETag.

func (*GetLogoOKHeaders) GetResponse

func (s *GetLogoOKHeaders) GetResponse() GetLogoOK

GetResponse returns the value of Response.

func (*GetLogoOKHeaders) SetCacheControl

func (s *GetLogoOKHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*GetLogoOKHeaders) SetETag

func (s *GetLogoOKHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*GetLogoOKHeaders) SetResponse

func (s *GetLogoOKHeaders) SetResponse(val GetLogoOK)

SetResponse sets the value of Response.

type GetLogoParams

type GetLogoParams struct {
	// Whitelisted logo edge in pixels, for example `192`.
	Size string
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
}

GetLogoParams is parameters of getLogo operation.

type GetLogoRequestHeaderFieldsTooLarge

type GetLogoRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetLogoRequestHeaderFieldsTooLarge) Decode

Decode decodes GetLogoRequestHeaderFieldsTooLarge from json.

func (*GetLogoRequestHeaderFieldsTooLarge) Encode

Encode encodes GetLogoRequestHeaderFieldsTooLarge as json.

func (*GetLogoRequestHeaderFieldsTooLarge) MarshalJSON

func (s *GetLogoRequestHeaderFieldsTooLarge) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetLogoRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetLogoRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetLogoRequestURITooLong

type GetLogoRequestURITooLong DefaultErrorObj

func (*GetLogoRequestURITooLong) Decode

func (s *GetLogoRequestURITooLong) Decode(d *jx.Decoder) error

Decode decodes GetLogoRequestURITooLong from json.

func (*GetLogoRequestURITooLong) Encode

func (s *GetLogoRequestURITooLong) Encode(e *jx.Encoder)

Encode encodes GetLogoRequestURITooLong as json.

func (*GetLogoRequestURITooLong) MarshalJSON

func (s *GetLogoRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetLogoRequestURITooLong) UnmarshalJSON

func (s *GetLogoRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetLogoRes

type GetLogoRes interface {
	// contains filtered or unexported methods
}

type GetMetricsCacheBadRequest

type GetMetricsCacheBadRequest DefaultErrorObj

func (*GetMetricsCacheBadRequest) Decode

func (s *GetMetricsCacheBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetMetricsCacheBadRequest from json.

func (*GetMetricsCacheBadRequest) Encode

func (s *GetMetricsCacheBadRequest) Encode(e *jx.Encoder)

Encode encodes GetMetricsCacheBadRequest as json.

func (*GetMetricsCacheBadRequest) MarshalJSON

func (s *GetMetricsCacheBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsCacheBadRequest) UnmarshalJSON

func (s *GetMetricsCacheBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsCacheInternalServerError

type GetMetricsCacheInternalServerError DefaultErrorObj

func (*GetMetricsCacheInternalServerError) Decode

Decode decodes GetMetricsCacheInternalServerError from json.

func (*GetMetricsCacheInternalServerError) Encode

Encode encodes GetMetricsCacheInternalServerError as json.

func (*GetMetricsCacheInternalServerError) MarshalJSON

func (s *GetMetricsCacheInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsCacheInternalServerError) UnmarshalJSON

func (s *GetMetricsCacheInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsCacheMethodNotAllowed

type GetMetricsCacheMethodNotAllowed DefaultErrorObj

func (*GetMetricsCacheMethodNotAllowed) Decode

Decode decodes GetMetricsCacheMethodNotAllowed from json.

func (*GetMetricsCacheMethodNotAllowed) Encode

Encode encodes GetMetricsCacheMethodNotAllowed as json.

func (*GetMetricsCacheMethodNotAllowed) MarshalJSON

func (s *GetMetricsCacheMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsCacheMethodNotAllowed) UnmarshalJSON

func (s *GetMetricsCacheMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsCacheNotFound

type GetMetricsCacheNotFound DefaultErrorObj

func (*GetMetricsCacheNotFound) Decode

func (s *GetMetricsCacheNotFound) Decode(d *jx.Decoder) error

Decode decodes GetMetricsCacheNotFound from json.

func (*GetMetricsCacheNotFound) Encode

func (s *GetMetricsCacheNotFound) Encode(e *jx.Encoder)

Encode encodes GetMetricsCacheNotFound as json.

func (*GetMetricsCacheNotFound) MarshalJSON

func (s *GetMetricsCacheNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsCacheNotFound) UnmarshalJSON

func (s *GetMetricsCacheNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsCacheRequestHeaderFieldsTooLarge

type GetMetricsCacheRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetMetricsCacheRequestHeaderFieldsTooLarge) Decode

Decode decodes GetMetricsCacheRequestHeaderFieldsTooLarge from json.

func (*GetMetricsCacheRequestHeaderFieldsTooLarge) Encode

Encode encodes GetMetricsCacheRequestHeaderFieldsTooLarge as json.

func (*GetMetricsCacheRequestHeaderFieldsTooLarge) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsCacheRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetMetricsCacheRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsCacheRequestURITooLong

type GetMetricsCacheRequestURITooLong DefaultErrorObj

func (*GetMetricsCacheRequestURITooLong) Decode

Decode decodes GetMetricsCacheRequestURITooLong from json.

func (*GetMetricsCacheRequestURITooLong) Encode

Encode encodes GetMetricsCacheRequestURITooLong as json.

func (*GetMetricsCacheRequestURITooLong) MarshalJSON

func (s *GetMetricsCacheRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsCacheRequestURITooLong) UnmarshalJSON

func (s *GetMetricsCacheRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsCacheRes

type GetMetricsCacheRes interface {
	// contains filtered or unexported methods
}

type GetMetricsCoreBadRequest

type GetMetricsCoreBadRequest DefaultErrorObj

func (*GetMetricsCoreBadRequest) Decode

func (s *GetMetricsCoreBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetMetricsCoreBadRequest from json.

func (*GetMetricsCoreBadRequest) Encode

func (s *GetMetricsCoreBadRequest) Encode(e *jx.Encoder)

Encode encodes GetMetricsCoreBadRequest as json.

func (*GetMetricsCoreBadRequest) MarshalJSON

func (s *GetMetricsCoreBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsCoreBadRequest) UnmarshalJSON

func (s *GetMetricsCoreBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsCoreInternalServerError

type GetMetricsCoreInternalServerError DefaultErrorObj

func (*GetMetricsCoreInternalServerError) Decode

Decode decodes GetMetricsCoreInternalServerError from json.

func (*GetMetricsCoreInternalServerError) Encode

Encode encodes GetMetricsCoreInternalServerError as json.

func (*GetMetricsCoreInternalServerError) MarshalJSON

func (s *GetMetricsCoreInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsCoreInternalServerError) UnmarshalJSON

func (s *GetMetricsCoreInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsCoreMethodNotAllowed

type GetMetricsCoreMethodNotAllowed DefaultErrorObj

func (*GetMetricsCoreMethodNotAllowed) Decode

Decode decodes GetMetricsCoreMethodNotAllowed from json.

func (*GetMetricsCoreMethodNotAllowed) Encode

Encode encodes GetMetricsCoreMethodNotAllowed as json.

func (*GetMetricsCoreMethodNotAllowed) MarshalJSON

func (s *GetMetricsCoreMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsCoreMethodNotAllowed) UnmarshalJSON

func (s *GetMetricsCoreMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsCoreNotFound

type GetMetricsCoreNotFound DefaultErrorObj

func (*GetMetricsCoreNotFound) Decode

func (s *GetMetricsCoreNotFound) Decode(d *jx.Decoder) error

Decode decodes GetMetricsCoreNotFound from json.

func (*GetMetricsCoreNotFound) Encode

func (s *GetMetricsCoreNotFound) Encode(e *jx.Encoder)

Encode encodes GetMetricsCoreNotFound as json.

func (*GetMetricsCoreNotFound) MarshalJSON

func (s *GetMetricsCoreNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsCoreNotFound) UnmarshalJSON

func (s *GetMetricsCoreNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsCoreRequestHeaderFieldsTooLarge

type GetMetricsCoreRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetMetricsCoreRequestHeaderFieldsTooLarge) Decode

Decode decodes GetMetricsCoreRequestHeaderFieldsTooLarge from json.

func (*GetMetricsCoreRequestHeaderFieldsTooLarge) Encode

Encode encodes GetMetricsCoreRequestHeaderFieldsTooLarge as json.

func (*GetMetricsCoreRequestHeaderFieldsTooLarge) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsCoreRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetMetricsCoreRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsCoreRequestURITooLong

type GetMetricsCoreRequestURITooLong DefaultErrorObj

func (*GetMetricsCoreRequestURITooLong) Decode

Decode decodes GetMetricsCoreRequestURITooLong from json.

func (*GetMetricsCoreRequestURITooLong) Encode

Encode encodes GetMetricsCoreRequestURITooLong as json.

func (*GetMetricsCoreRequestURITooLong) MarshalJSON

func (s *GetMetricsCoreRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsCoreRequestURITooLong) UnmarshalJSON

func (s *GetMetricsCoreRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsCoreRes

type GetMetricsCoreRes interface {
	// contains filtered or unexported methods
}

type GetMetricsErrorsBadRequest

type GetMetricsErrorsBadRequest DefaultErrorObj

func (*GetMetricsErrorsBadRequest) Decode

Decode decodes GetMetricsErrorsBadRequest from json.

func (*GetMetricsErrorsBadRequest) Encode

func (s *GetMetricsErrorsBadRequest) Encode(e *jx.Encoder)

Encode encodes GetMetricsErrorsBadRequest as json.

func (*GetMetricsErrorsBadRequest) MarshalJSON

func (s *GetMetricsErrorsBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsErrorsBadRequest) UnmarshalJSON

func (s *GetMetricsErrorsBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsErrorsInternalServerError

type GetMetricsErrorsInternalServerError DefaultErrorObj

func (*GetMetricsErrorsInternalServerError) Decode

Decode decodes GetMetricsErrorsInternalServerError from json.

func (*GetMetricsErrorsInternalServerError) Encode

Encode encodes GetMetricsErrorsInternalServerError as json.

func (*GetMetricsErrorsInternalServerError) MarshalJSON

func (s *GetMetricsErrorsInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsErrorsInternalServerError) UnmarshalJSON

func (s *GetMetricsErrorsInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsErrorsMethodNotAllowed

type GetMetricsErrorsMethodNotAllowed DefaultErrorObj

func (*GetMetricsErrorsMethodNotAllowed) Decode

Decode decodes GetMetricsErrorsMethodNotAllowed from json.

func (*GetMetricsErrorsMethodNotAllowed) Encode

Encode encodes GetMetricsErrorsMethodNotAllowed as json.

func (*GetMetricsErrorsMethodNotAllowed) MarshalJSON

func (s *GetMetricsErrorsMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsErrorsMethodNotAllowed) UnmarshalJSON

func (s *GetMetricsErrorsMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsErrorsNotFound

type GetMetricsErrorsNotFound DefaultErrorObj

func (*GetMetricsErrorsNotFound) Decode

func (s *GetMetricsErrorsNotFound) Decode(d *jx.Decoder) error

Decode decodes GetMetricsErrorsNotFound from json.

func (*GetMetricsErrorsNotFound) Encode

func (s *GetMetricsErrorsNotFound) Encode(e *jx.Encoder)

Encode encodes GetMetricsErrorsNotFound as json.

func (*GetMetricsErrorsNotFound) MarshalJSON

func (s *GetMetricsErrorsNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsErrorsNotFound) UnmarshalJSON

func (s *GetMetricsErrorsNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsErrorsRequestHeaderFieldsTooLarge

type GetMetricsErrorsRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetMetricsErrorsRequestHeaderFieldsTooLarge) Decode

Decode decodes GetMetricsErrorsRequestHeaderFieldsTooLarge from json.

func (*GetMetricsErrorsRequestHeaderFieldsTooLarge) Encode

Encode encodes GetMetricsErrorsRequestHeaderFieldsTooLarge as json.

func (*GetMetricsErrorsRequestHeaderFieldsTooLarge) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsErrorsRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetMetricsErrorsRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsErrorsRequestURITooLong

type GetMetricsErrorsRequestURITooLong DefaultErrorObj

func (*GetMetricsErrorsRequestURITooLong) Decode

Decode decodes GetMetricsErrorsRequestURITooLong from json.

func (*GetMetricsErrorsRequestURITooLong) Encode

Encode encodes GetMetricsErrorsRequestURITooLong as json.

func (*GetMetricsErrorsRequestURITooLong) MarshalJSON

func (s *GetMetricsErrorsRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsErrorsRequestURITooLong) UnmarshalJSON

func (s *GetMetricsErrorsRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsErrorsRes

type GetMetricsErrorsRes interface {
	// contains filtered or unexported methods
}

type GetMetricsIndexBadRequest

type GetMetricsIndexBadRequest DefaultErrorObj

func (*GetMetricsIndexBadRequest) Decode

func (s *GetMetricsIndexBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetMetricsIndexBadRequest from json.

func (*GetMetricsIndexBadRequest) Encode

func (s *GetMetricsIndexBadRequest) Encode(e *jx.Encoder)

Encode encodes GetMetricsIndexBadRequest as json.

func (*GetMetricsIndexBadRequest) MarshalJSON

func (s *GetMetricsIndexBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsIndexBadRequest) UnmarshalJSON

func (s *GetMetricsIndexBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsIndexInternalServerError

type GetMetricsIndexInternalServerError DefaultErrorObj

func (*GetMetricsIndexInternalServerError) Decode

Decode decodes GetMetricsIndexInternalServerError from json.

func (*GetMetricsIndexInternalServerError) Encode

Encode encodes GetMetricsIndexInternalServerError as json.

func (*GetMetricsIndexInternalServerError) MarshalJSON

func (s *GetMetricsIndexInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsIndexInternalServerError) UnmarshalJSON

func (s *GetMetricsIndexInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsIndexMethodNotAllowed

type GetMetricsIndexMethodNotAllowed DefaultErrorObj

func (*GetMetricsIndexMethodNotAllowed) Decode

Decode decodes GetMetricsIndexMethodNotAllowed from json.

func (*GetMetricsIndexMethodNotAllowed) Encode

Encode encodes GetMetricsIndexMethodNotAllowed as json.

func (*GetMetricsIndexMethodNotAllowed) MarshalJSON

func (s *GetMetricsIndexMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsIndexMethodNotAllowed) UnmarshalJSON

func (s *GetMetricsIndexMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsIndexOK

type GetMetricsIndexOK struct {
	Data io.Reader
}

func (GetMetricsIndexOK) Read

func (s GetMetricsIndexOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetMetricsIndexOKHeaders

type GetMetricsIndexOKHeaders struct {
	CacheControl OptString
	Response     GetMetricsIndexOK
}

GetMetricsIndexOKHeaders wraps GetMetricsIndexOK with response headers.

func (*GetMetricsIndexOKHeaders) GetCacheControl

func (s *GetMetricsIndexOKHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*GetMetricsIndexOKHeaders) GetResponse

GetResponse returns the value of Response.

func (*GetMetricsIndexOKHeaders) SetCacheControl

func (s *GetMetricsIndexOKHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*GetMetricsIndexOKHeaders) SetResponse

func (s *GetMetricsIndexOKHeaders) SetResponse(val GetMetricsIndexOK)

SetResponse sets the value of Response.

type GetMetricsIndexRequestHeaderFieldsTooLarge

type GetMetricsIndexRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetMetricsIndexRequestHeaderFieldsTooLarge) Decode

Decode decodes GetMetricsIndexRequestHeaderFieldsTooLarge from json.

func (*GetMetricsIndexRequestHeaderFieldsTooLarge) Encode

Encode encodes GetMetricsIndexRequestHeaderFieldsTooLarge as json.

func (*GetMetricsIndexRequestHeaderFieldsTooLarge) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsIndexRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetMetricsIndexRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsIndexRequestURITooLong

type GetMetricsIndexRequestURITooLong DefaultErrorObj

func (*GetMetricsIndexRequestURITooLong) Decode

Decode decodes GetMetricsIndexRequestURITooLong from json.

func (*GetMetricsIndexRequestURITooLong) Encode

Encode encodes GetMetricsIndexRequestURITooLong as json.

func (*GetMetricsIndexRequestURITooLong) MarshalJSON

func (s *GetMetricsIndexRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsIndexRequestURITooLong) UnmarshalJSON

func (s *GetMetricsIndexRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsIndexRes

type GetMetricsIndexRes interface {
	// contains filtered or unexported methods
}

type GetMetricsInternalBadRequest

type GetMetricsInternalBadRequest DefaultErrorObj

func (*GetMetricsInternalBadRequest) Decode

Decode decodes GetMetricsInternalBadRequest from json.

func (*GetMetricsInternalBadRequest) Encode

func (s *GetMetricsInternalBadRequest) Encode(e *jx.Encoder)

Encode encodes GetMetricsInternalBadRequest as json.

func (*GetMetricsInternalBadRequest) MarshalJSON

func (s *GetMetricsInternalBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsInternalBadRequest) UnmarshalJSON

func (s *GetMetricsInternalBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsInternalInternalServerError

type GetMetricsInternalInternalServerError DefaultErrorObj

func (*GetMetricsInternalInternalServerError) Decode

Decode decodes GetMetricsInternalInternalServerError from json.

func (*GetMetricsInternalInternalServerError) Encode

Encode encodes GetMetricsInternalInternalServerError as json.

func (*GetMetricsInternalInternalServerError) MarshalJSON

func (s *GetMetricsInternalInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsInternalInternalServerError) UnmarshalJSON

func (s *GetMetricsInternalInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsInternalMethodNotAllowed

type GetMetricsInternalMethodNotAllowed DefaultErrorObj

func (*GetMetricsInternalMethodNotAllowed) Decode

Decode decodes GetMetricsInternalMethodNotAllowed from json.

func (*GetMetricsInternalMethodNotAllowed) Encode

Encode encodes GetMetricsInternalMethodNotAllowed as json.

func (*GetMetricsInternalMethodNotAllowed) MarshalJSON

func (s *GetMetricsInternalMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsInternalMethodNotAllowed) UnmarshalJSON

func (s *GetMetricsInternalMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsInternalNotFound

type GetMetricsInternalNotFound DefaultErrorObj

func (*GetMetricsInternalNotFound) Decode

Decode decodes GetMetricsInternalNotFound from json.

func (*GetMetricsInternalNotFound) Encode

func (s *GetMetricsInternalNotFound) Encode(e *jx.Encoder)

Encode encodes GetMetricsInternalNotFound as json.

func (*GetMetricsInternalNotFound) MarshalJSON

func (s *GetMetricsInternalNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsInternalNotFound) UnmarshalJSON

func (s *GetMetricsInternalNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsInternalOK

type GetMetricsInternalOK struct {
	Data io.Reader
}

func (GetMetricsInternalOK) Read

func (s GetMetricsInternalOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetMetricsInternalOKHeaders

type GetMetricsInternalOKHeaders struct {
	CacheControl OptString
	Response     GetMetricsInternalOK
}

GetMetricsInternalOKHeaders wraps GetMetricsInternalOK with response headers.

func (*GetMetricsInternalOKHeaders) GetCacheControl

func (s *GetMetricsInternalOKHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*GetMetricsInternalOKHeaders) GetResponse

GetResponse returns the value of Response.

func (*GetMetricsInternalOKHeaders) SetCacheControl

func (s *GetMetricsInternalOKHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*GetMetricsInternalOKHeaders) SetResponse

SetResponse sets the value of Response.

type GetMetricsInternalRequestHeaderFieldsTooLarge

type GetMetricsInternalRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetMetricsInternalRequestHeaderFieldsTooLarge) Decode

Decode decodes GetMetricsInternalRequestHeaderFieldsTooLarge from json.

func (*GetMetricsInternalRequestHeaderFieldsTooLarge) Encode

Encode encodes GetMetricsInternalRequestHeaderFieldsTooLarge as json.

func (*GetMetricsInternalRequestHeaderFieldsTooLarge) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsInternalRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetMetricsInternalRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsInternalRequestURITooLong

type GetMetricsInternalRequestURITooLong DefaultErrorObj

func (*GetMetricsInternalRequestURITooLong) Decode

Decode decodes GetMetricsInternalRequestURITooLong from json.

func (*GetMetricsInternalRequestURITooLong) Encode

Encode encodes GetMetricsInternalRequestURITooLong as json.

func (*GetMetricsInternalRequestURITooLong) MarshalJSON

func (s *GetMetricsInternalRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsInternalRequestURITooLong) UnmarshalJSON

func (s *GetMetricsInternalRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsInternalRes

type GetMetricsInternalRes interface {
	// contains filtered or unexported methods
}

type GetMetricsRescanBadRequest

type GetMetricsRescanBadRequest DefaultErrorObj

func (*GetMetricsRescanBadRequest) Decode

Decode decodes GetMetricsRescanBadRequest from json.

func (*GetMetricsRescanBadRequest) Encode

func (s *GetMetricsRescanBadRequest) Encode(e *jx.Encoder)

Encode encodes GetMetricsRescanBadRequest as json.

func (*GetMetricsRescanBadRequest) MarshalJSON

func (s *GetMetricsRescanBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsRescanBadRequest) UnmarshalJSON

func (s *GetMetricsRescanBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsRescanInternalServerError

type GetMetricsRescanInternalServerError DefaultErrorObj

func (*GetMetricsRescanInternalServerError) Decode

Decode decodes GetMetricsRescanInternalServerError from json.

func (*GetMetricsRescanInternalServerError) Encode

Encode encodes GetMetricsRescanInternalServerError as json.

func (*GetMetricsRescanInternalServerError) MarshalJSON

func (s *GetMetricsRescanInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsRescanInternalServerError) UnmarshalJSON

func (s *GetMetricsRescanInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsRescanMethodNotAllowed

type GetMetricsRescanMethodNotAllowed DefaultErrorObj

func (*GetMetricsRescanMethodNotAllowed) Decode

Decode decodes GetMetricsRescanMethodNotAllowed from json.

func (*GetMetricsRescanMethodNotAllowed) Encode

Encode encodes GetMetricsRescanMethodNotAllowed as json.

func (*GetMetricsRescanMethodNotAllowed) MarshalJSON

func (s *GetMetricsRescanMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsRescanMethodNotAllowed) UnmarshalJSON

func (s *GetMetricsRescanMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsRescanNotFound

type GetMetricsRescanNotFound DefaultErrorObj

func (*GetMetricsRescanNotFound) Decode

func (s *GetMetricsRescanNotFound) Decode(d *jx.Decoder) error

Decode decodes GetMetricsRescanNotFound from json.

func (*GetMetricsRescanNotFound) Encode

func (s *GetMetricsRescanNotFound) Encode(e *jx.Encoder)

Encode encodes GetMetricsRescanNotFound as json.

func (*GetMetricsRescanNotFound) MarshalJSON

func (s *GetMetricsRescanNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsRescanNotFound) UnmarshalJSON

func (s *GetMetricsRescanNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsRescanRequestHeaderFieldsTooLarge

type GetMetricsRescanRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetMetricsRescanRequestHeaderFieldsTooLarge) Decode

Decode decodes GetMetricsRescanRequestHeaderFieldsTooLarge from json.

func (*GetMetricsRescanRequestHeaderFieldsTooLarge) Encode

Encode encodes GetMetricsRescanRequestHeaderFieldsTooLarge as json.

func (*GetMetricsRescanRequestHeaderFieldsTooLarge) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsRescanRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetMetricsRescanRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsRescanRequestURITooLong

type GetMetricsRescanRequestURITooLong DefaultErrorObj

func (*GetMetricsRescanRequestURITooLong) Decode

Decode decodes GetMetricsRescanRequestURITooLong from json.

func (*GetMetricsRescanRequestURITooLong) Encode

Encode encodes GetMetricsRescanRequestURITooLong as json.

func (*GetMetricsRescanRequestURITooLong) MarshalJSON

func (s *GetMetricsRescanRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMetricsRescanRequestURITooLong) UnmarshalJSON

func (s *GetMetricsRescanRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMetricsRescanRes

type GetMetricsRescanRes interface {
	// contains filtered or unexported methods
}

type GetMirrorLatestBadRequest

type GetMirrorLatestBadRequest DefaultErrorObj

func (*GetMirrorLatestBadRequest) Decode

func (s *GetMirrorLatestBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetMirrorLatestBadRequest from json.

func (*GetMirrorLatestBadRequest) Encode

func (s *GetMirrorLatestBadRequest) Encode(e *jx.Encoder)

Encode encodes GetMirrorLatestBadRequest as json.

func (*GetMirrorLatestBadRequest) MarshalJSON

func (s *GetMirrorLatestBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorLatestBadRequest) UnmarshalJSON

func (s *GetMirrorLatestBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorLatestInternalServerError

type GetMirrorLatestInternalServerError DefaultErrorObj

func (*GetMirrorLatestInternalServerError) Decode

Decode decodes GetMirrorLatestInternalServerError from json.

func (*GetMirrorLatestInternalServerError) Encode

Encode encodes GetMirrorLatestInternalServerError as json.

func (*GetMirrorLatestInternalServerError) MarshalJSON

func (s *GetMirrorLatestInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorLatestInternalServerError) UnmarshalJSON

func (s *GetMirrorLatestInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorLatestMethodNotAllowed

type GetMirrorLatestMethodNotAllowed DefaultErrorObj

func (*GetMirrorLatestMethodNotAllowed) Decode

Decode decodes GetMirrorLatestMethodNotAllowed from json.

func (*GetMirrorLatestMethodNotAllowed) Encode

Encode encodes GetMirrorLatestMethodNotAllowed as json.

func (*GetMirrorLatestMethodNotAllowed) MarshalJSON

func (s *GetMirrorLatestMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorLatestMethodNotAllowed) UnmarshalJSON

func (s *GetMirrorLatestMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorLatestNotFound

type GetMirrorLatestNotFound DefaultErrorObj

func (*GetMirrorLatestNotFound) Decode

func (s *GetMirrorLatestNotFound) Decode(d *jx.Decoder) error

Decode decodes GetMirrorLatestNotFound from json.

func (*GetMirrorLatestNotFound) Encode

func (s *GetMirrorLatestNotFound) Encode(e *jx.Encoder)

Encode encodes GetMirrorLatestNotFound as json.

func (*GetMirrorLatestNotFound) MarshalJSON

func (s *GetMirrorLatestNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorLatestNotFound) UnmarshalJSON

func (s *GetMirrorLatestNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorLatestOK

type GetMirrorLatestOK struct {
	Data io.Reader
}

func (GetMirrorLatestOK) Read

func (s GetMirrorLatestOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetMirrorLatestOKHeaders

type GetMirrorLatestOKHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     GetMirrorLatestOK
}

GetMirrorLatestOKHeaders wraps GetMirrorLatestOK with response headers.

func (*GetMirrorLatestOKHeaders) GetCacheControl

func (s *GetMirrorLatestOKHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*GetMirrorLatestOKHeaders) GetETag

func (s *GetMirrorLatestOKHeaders) GetETag() OptString

GetETag returns the value of ETag.

func (*GetMirrorLatestOKHeaders) GetResponse

GetResponse returns the value of Response.

func (*GetMirrorLatestOKHeaders) SetCacheControl

func (s *GetMirrorLatestOKHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*GetMirrorLatestOKHeaders) SetETag

func (s *GetMirrorLatestOKHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*GetMirrorLatestOKHeaders) SetResponse

func (s *GetMirrorLatestOKHeaders) SetResponse(val GetMirrorLatestOK)

SetResponse sets the value of Response.

type GetMirrorLatestParams

type GetMirrorLatestParams struct {
	// Registry key configured in `release_mirrors`. Valid configuration keys match
	// `^[a-z0-9][a-z0-9._-]{1,38}[a-z0-9]$`, cannot look like a Go major suffix such as `v2`, and cannot
	// use reserved route names including `list`, `latest`, `@v`, `@latest`, `health`, `info`, `metrics`,
	// `openapi.json`, `p`, `p2`, `packages`, `packages.json`, `rpc`, `catalog.json`, `feed.xml`, `logo`,
	// `og.png`, `favicon.ico`, and `sitemap.xml`.
	Key string
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
}

GetMirrorLatestParams is parameters of getMirrorLatest operation.

type GetMirrorLatestRequestHeaderFieldsTooLarge

type GetMirrorLatestRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetMirrorLatestRequestHeaderFieldsTooLarge) Decode

Decode decodes GetMirrorLatestRequestHeaderFieldsTooLarge from json.

func (*GetMirrorLatestRequestHeaderFieldsTooLarge) Encode

Encode encodes GetMirrorLatestRequestHeaderFieldsTooLarge as json.

func (*GetMirrorLatestRequestHeaderFieldsTooLarge) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorLatestRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetMirrorLatestRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorLatestRequestURITooLong

type GetMirrorLatestRequestURITooLong DefaultErrorObj

func (*GetMirrorLatestRequestURITooLong) Decode

Decode decodes GetMirrorLatestRequestURITooLong from json.

func (*GetMirrorLatestRequestURITooLong) Encode

Encode encodes GetMirrorLatestRequestURITooLong as json.

func (*GetMirrorLatestRequestURITooLong) MarshalJSON

func (s *GetMirrorLatestRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorLatestRequestURITooLong) UnmarshalJSON

func (s *GetMirrorLatestRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorLatestRes

type GetMirrorLatestRes interface {
	// contains filtered or unexported methods
}

type GetMirrorLatestTooManyRequests

type GetMirrorLatestTooManyRequests DefaultErrorObj

func (*GetMirrorLatestTooManyRequests) Decode

Decode decodes GetMirrorLatestTooManyRequests from json.

func (*GetMirrorLatestTooManyRequests) Encode

Encode encodes GetMirrorLatestTooManyRequests as json.

func (*GetMirrorLatestTooManyRequests) MarshalJSON

func (s *GetMirrorLatestTooManyRequests) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorLatestTooManyRequests) UnmarshalJSON

func (s *GetMirrorLatestTooManyRequests) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorListBadRequest

type GetMirrorListBadRequest DefaultErrorObj

func (*GetMirrorListBadRequest) Decode

func (s *GetMirrorListBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetMirrorListBadRequest from json.

func (*GetMirrorListBadRequest) Encode

func (s *GetMirrorListBadRequest) Encode(e *jx.Encoder)

Encode encodes GetMirrorListBadRequest as json.

func (*GetMirrorListBadRequest) MarshalJSON

func (s *GetMirrorListBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorListBadRequest) UnmarshalJSON

func (s *GetMirrorListBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorListFullBadRequest

type GetMirrorListFullBadRequest DefaultErrorObj

func (*GetMirrorListFullBadRequest) Decode

Decode decodes GetMirrorListFullBadRequest from json.

func (*GetMirrorListFullBadRequest) Encode

func (s *GetMirrorListFullBadRequest) Encode(e *jx.Encoder)

Encode encodes GetMirrorListFullBadRequest as json.

func (*GetMirrorListFullBadRequest) MarshalJSON

func (s *GetMirrorListFullBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorListFullBadRequest) UnmarshalJSON

func (s *GetMirrorListFullBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorListFullInternalServerError

type GetMirrorListFullInternalServerError DefaultErrorObj

func (*GetMirrorListFullInternalServerError) Decode

Decode decodes GetMirrorListFullInternalServerError from json.

func (*GetMirrorListFullInternalServerError) Encode

Encode encodes GetMirrorListFullInternalServerError as json.

func (*GetMirrorListFullInternalServerError) MarshalJSON

func (s *GetMirrorListFullInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorListFullInternalServerError) UnmarshalJSON

func (s *GetMirrorListFullInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorListFullMethodNotAllowed

type GetMirrorListFullMethodNotAllowed DefaultErrorObj

func (*GetMirrorListFullMethodNotAllowed) Decode

Decode decodes GetMirrorListFullMethodNotAllowed from json.

func (*GetMirrorListFullMethodNotAllowed) Encode

Encode encodes GetMirrorListFullMethodNotAllowed as json.

func (*GetMirrorListFullMethodNotAllowed) MarshalJSON

func (s *GetMirrorListFullMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorListFullMethodNotAllowed) UnmarshalJSON

func (s *GetMirrorListFullMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorListFullNotFound

type GetMirrorListFullNotFound DefaultErrorObj

func (*GetMirrorListFullNotFound) Decode

func (s *GetMirrorListFullNotFound) Decode(d *jx.Decoder) error

Decode decodes GetMirrorListFullNotFound from json.

func (*GetMirrorListFullNotFound) Encode

func (s *GetMirrorListFullNotFound) Encode(e *jx.Encoder)

Encode encodes GetMirrorListFullNotFound as json.

func (*GetMirrorListFullNotFound) MarshalJSON

func (s *GetMirrorListFullNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorListFullNotFound) UnmarshalJSON

func (s *GetMirrorListFullNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorListFullOK

type GetMirrorListFullOK struct {
	Data io.Reader
}

func (GetMirrorListFullOK) Read

func (s GetMirrorListFullOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetMirrorListFullOKHeaders

type GetMirrorListFullOKHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     GetMirrorListFullOK
}

GetMirrorListFullOKHeaders wraps GetMirrorListFullOK with response headers.

func (*GetMirrorListFullOKHeaders) GetCacheControl

func (s *GetMirrorListFullOKHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*GetMirrorListFullOKHeaders) GetETag

GetETag returns the value of ETag.

func (*GetMirrorListFullOKHeaders) GetResponse

GetResponse returns the value of Response.

func (*GetMirrorListFullOKHeaders) SetCacheControl

func (s *GetMirrorListFullOKHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*GetMirrorListFullOKHeaders) SetETag

func (s *GetMirrorListFullOKHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*GetMirrorListFullOKHeaders) SetResponse

func (s *GetMirrorListFullOKHeaders) SetResponse(val GetMirrorListFullOK)

SetResponse sets the value of Response.

type GetMirrorListFullParams

type GetMirrorListFullParams struct {
	// Registry key configured in `release_mirrors`. Valid configuration keys match
	// `^[a-z0-9][a-z0-9._-]{1,38}[a-z0-9]$`, cannot look like a Go major suffix such as `v2`, and cannot
	// use reserved route names including `list`, `latest`, `@v`, `@latest`, `health`, `info`, `metrics`,
	// `openapi.json`, `p`, `p2`, `packages`, `packages.json`, `rpc`, `catalog.json`, `feed.xml`, `logo`,
	// `og.png`, `favicon.ico`, and `sitemap.xml`.
	Key string
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
}

GetMirrorListFullParams is parameters of getMirrorListFull operation.

type GetMirrorListFullRequestHeaderFieldsTooLarge

type GetMirrorListFullRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetMirrorListFullRequestHeaderFieldsTooLarge) Decode

Decode decodes GetMirrorListFullRequestHeaderFieldsTooLarge from json.

func (*GetMirrorListFullRequestHeaderFieldsTooLarge) Encode

Encode encodes GetMirrorListFullRequestHeaderFieldsTooLarge as json.

func (*GetMirrorListFullRequestHeaderFieldsTooLarge) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorListFullRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetMirrorListFullRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorListFullRequestURITooLong

type GetMirrorListFullRequestURITooLong DefaultErrorObj

func (*GetMirrorListFullRequestURITooLong) Decode

Decode decodes GetMirrorListFullRequestURITooLong from json.

func (*GetMirrorListFullRequestURITooLong) Encode

Encode encodes GetMirrorListFullRequestURITooLong as json.

func (*GetMirrorListFullRequestURITooLong) MarshalJSON

func (s *GetMirrorListFullRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorListFullRequestURITooLong) UnmarshalJSON

func (s *GetMirrorListFullRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorListFullRes

type GetMirrorListFullRes interface {
	// contains filtered or unexported methods
}

type GetMirrorListFullTooManyRequests

type GetMirrorListFullTooManyRequests DefaultErrorObj

func (*GetMirrorListFullTooManyRequests) Decode

Decode decodes GetMirrorListFullTooManyRequests from json.

func (*GetMirrorListFullTooManyRequests) Encode

Encode encodes GetMirrorListFullTooManyRequests as json.

func (*GetMirrorListFullTooManyRequests) MarshalJSON

func (s *GetMirrorListFullTooManyRequests) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorListFullTooManyRequests) UnmarshalJSON

func (s *GetMirrorListFullTooManyRequests) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorListInternalServerError

type GetMirrorListInternalServerError DefaultErrorObj

func (*GetMirrorListInternalServerError) Decode

Decode decodes GetMirrorListInternalServerError from json.

func (*GetMirrorListInternalServerError) Encode

Encode encodes GetMirrorListInternalServerError as json.

func (*GetMirrorListInternalServerError) MarshalJSON

func (s *GetMirrorListInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorListInternalServerError) UnmarshalJSON

func (s *GetMirrorListInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorListMethodNotAllowed

type GetMirrorListMethodNotAllowed DefaultErrorObj

func (*GetMirrorListMethodNotAllowed) Decode

Decode decodes GetMirrorListMethodNotAllowed from json.

func (*GetMirrorListMethodNotAllowed) Encode

Encode encodes GetMirrorListMethodNotAllowed as json.

func (*GetMirrorListMethodNotAllowed) MarshalJSON

func (s *GetMirrorListMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorListMethodNotAllowed) UnmarshalJSON

func (s *GetMirrorListMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorListNotFound

type GetMirrorListNotFound DefaultErrorObj

func (*GetMirrorListNotFound) Decode

func (s *GetMirrorListNotFound) Decode(d *jx.Decoder) error

Decode decodes GetMirrorListNotFound from json.

func (*GetMirrorListNotFound) Encode

func (s *GetMirrorListNotFound) Encode(e *jx.Encoder)

Encode encodes GetMirrorListNotFound as json.

func (*GetMirrorListNotFound) MarshalJSON

func (s *GetMirrorListNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorListNotFound) UnmarshalJSON

func (s *GetMirrorListNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorListOK

type GetMirrorListOK struct {
	Data io.Reader
}

func (GetMirrorListOK) Read

func (s GetMirrorListOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetMirrorListOKHeaders

type GetMirrorListOKHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     GetMirrorListOK
}

GetMirrorListOKHeaders wraps GetMirrorListOK with response headers.

func (*GetMirrorListOKHeaders) GetCacheControl

func (s *GetMirrorListOKHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*GetMirrorListOKHeaders) GetETag

func (s *GetMirrorListOKHeaders) GetETag() OptString

GetETag returns the value of ETag.

func (*GetMirrorListOKHeaders) GetResponse

func (s *GetMirrorListOKHeaders) GetResponse() GetMirrorListOK

GetResponse returns the value of Response.

func (*GetMirrorListOKHeaders) SetCacheControl

func (s *GetMirrorListOKHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*GetMirrorListOKHeaders) SetETag

func (s *GetMirrorListOKHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*GetMirrorListOKHeaders) SetResponse

func (s *GetMirrorListOKHeaders) SetResponse(val GetMirrorListOK)

SetResponse sets the value of Response.

type GetMirrorListParams

type GetMirrorListParams struct {
	// Registry key configured in `release_mirrors`. Valid configuration keys match
	// `^[a-z0-9][a-z0-9._-]{1,38}[a-z0-9]$`, cannot look like a Go major suffix such as `v2`, and cannot
	// use reserved route names including `list`, `latest`, `@v`, `@latest`, `health`, `info`, `metrics`,
	// `openapi.json`, `p`, `p2`, `packages`, `packages.json`, `rpc`, `catalog.json`, `feed.xml`, `logo`,
	// `og.png`, `favicon.ico`, and `sitemap.xml`.
	Key string
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
}

GetMirrorListParams is parameters of getMirrorList operation.

type GetMirrorListRequestHeaderFieldsTooLarge

type GetMirrorListRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetMirrorListRequestHeaderFieldsTooLarge) Decode

Decode decodes GetMirrorListRequestHeaderFieldsTooLarge from json.

func (*GetMirrorListRequestHeaderFieldsTooLarge) Encode

Encode encodes GetMirrorListRequestHeaderFieldsTooLarge as json.

func (*GetMirrorListRequestHeaderFieldsTooLarge) MarshalJSON

func (s *GetMirrorListRequestHeaderFieldsTooLarge) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorListRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetMirrorListRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorListRequestURITooLong

type GetMirrorListRequestURITooLong DefaultErrorObj

func (*GetMirrorListRequestURITooLong) Decode

Decode decodes GetMirrorListRequestURITooLong from json.

func (*GetMirrorListRequestURITooLong) Encode

Encode encodes GetMirrorListRequestURITooLong as json.

func (*GetMirrorListRequestURITooLong) MarshalJSON

func (s *GetMirrorListRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorListRequestURITooLong) UnmarshalJSON

func (s *GetMirrorListRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetMirrorListRes

type GetMirrorListRes interface {
	// contains filtered or unexported methods
}

type GetMirrorListTooManyRequests

type GetMirrorListTooManyRequests DefaultErrorObj

func (*GetMirrorListTooManyRequests) Decode

Decode decodes GetMirrorListTooManyRequests from json.

func (*GetMirrorListTooManyRequests) Encode

func (s *GetMirrorListTooManyRequests) Encode(e *jx.Encoder)

Encode encodes GetMirrorListTooManyRequests as json.

func (*GetMirrorListTooManyRequests) MarshalJSON

func (s *GetMirrorListTooManyRequests) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetMirrorListTooManyRequests) UnmarshalJSON

func (s *GetMirrorListTooManyRequests) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOgKeyBadRequest

type GetOgKeyBadRequest DefaultErrorObj

func (*GetOgKeyBadRequest) Decode

func (s *GetOgKeyBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetOgKeyBadRequest from json.

func (*GetOgKeyBadRequest) Encode

func (s *GetOgKeyBadRequest) Encode(e *jx.Encoder)

Encode encodes GetOgKeyBadRequest as json.

func (*GetOgKeyBadRequest) MarshalJSON

func (s *GetOgKeyBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOgKeyBadRequest) UnmarshalJSON

func (s *GetOgKeyBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOgKeyInternalServerError

type GetOgKeyInternalServerError DefaultErrorObj

func (*GetOgKeyInternalServerError) Decode

Decode decodes GetOgKeyInternalServerError from json.

func (*GetOgKeyInternalServerError) Encode

func (s *GetOgKeyInternalServerError) Encode(e *jx.Encoder)

Encode encodes GetOgKeyInternalServerError as json.

func (*GetOgKeyInternalServerError) MarshalJSON

func (s *GetOgKeyInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOgKeyInternalServerError) UnmarshalJSON

func (s *GetOgKeyInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOgKeyMethodNotAllowed

type GetOgKeyMethodNotAllowed DefaultErrorObj

func (*GetOgKeyMethodNotAllowed) Decode

func (s *GetOgKeyMethodNotAllowed) Decode(d *jx.Decoder) error

Decode decodes GetOgKeyMethodNotAllowed from json.

func (*GetOgKeyMethodNotAllowed) Encode

func (s *GetOgKeyMethodNotAllowed) Encode(e *jx.Encoder)

Encode encodes GetOgKeyMethodNotAllowed as json.

func (*GetOgKeyMethodNotAllowed) MarshalJSON

func (s *GetOgKeyMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOgKeyMethodNotAllowed) UnmarshalJSON

func (s *GetOgKeyMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOgKeyNotFound

type GetOgKeyNotFound DefaultErrorObj

func (*GetOgKeyNotFound) Decode

func (s *GetOgKeyNotFound) Decode(d *jx.Decoder) error

Decode decodes GetOgKeyNotFound from json.

func (*GetOgKeyNotFound) Encode

func (s *GetOgKeyNotFound) Encode(e *jx.Encoder)

Encode encodes GetOgKeyNotFound as json.

func (*GetOgKeyNotFound) MarshalJSON

func (s *GetOgKeyNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOgKeyNotFound) UnmarshalJSON

func (s *GetOgKeyNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOgKeyOK

type GetOgKeyOK struct {
	Data io.Reader
}

func (GetOgKeyOK) Read

func (s GetOgKeyOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetOgKeyOKHeaders

type GetOgKeyOKHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     GetOgKeyOK
}

GetOgKeyOKHeaders wraps GetOgKeyOK with response headers.

func (*GetOgKeyOKHeaders) GetCacheControl

func (s *GetOgKeyOKHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*GetOgKeyOKHeaders) GetETag

func (s *GetOgKeyOKHeaders) GetETag() OptString

GetETag returns the value of ETag.

func (*GetOgKeyOKHeaders) GetResponse

func (s *GetOgKeyOKHeaders) GetResponse() GetOgKeyOK

GetResponse returns the value of Response.

func (*GetOgKeyOKHeaders) SetCacheControl

func (s *GetOgKeyOKHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*GetOgKeyOKHeaders) SetETag

func (s *GetOgKeyOKHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*GetOgKeyOKHeaders) SetResponse

func (s *GetOgKeyOKHeaders) SetResponse(val GetOgKeyOK)

SetResponse sets the value of Response.

type GetOgKeyParams

type GetOgKeyParams struct {
	// Registry key configured in `release_mirrors`. Valid configuration keys match
	// `^[a-z0-9][a-z0-9._-]{1,38}[a-z0-9]$`, cannot look like a Go major suffix such as `v2`, and cannot
	// use reserved route names including `list`, `latest`, `@v`, `@latest`, `health`, `info`, `metrics`,
	// `openapi.json`, `p`, `p2`, `packages`, `packages.json`, `rpc`, `catalog.json`, `feed.xml`, `logo`,
	// `og.png`, `favicon.ico`, and `sitemap.xml`.
	Key string
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
}

GetOgKeyParams is parameters of getOgKey operation.

type GetOgKeyRequestHeaderFieldsTooLarge

type GetOgKeyRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetOgKeyRequestHeaderFieldsTooLarge) Decode

Decode decodes GetOgKeyRequestHeaderFieldsTooLarge from json.

func (*GetOgKeyRequestHeaderFieldsTooLarge) Encode

Encode encodes GetOgKeyRequestHeaderFieldsTooLarge as json.

func (*GetOgKeyRequestHeaderFieldsTooLarge) MarshalJSON

func (s *GetOgKeyRequestHeaderFieldsTooLarge) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOgKeyRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetOgKeyRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOgKeyRequestURITooLong

type GetOgKeyRequestURITooLong DefaultErrorObj

func (*GetOgKeyRequestURITooLong) Decode

func (s *GetOgKeyRequestURITooLong) Decode(d *jx.Decoder) error

Decode decodes GetOgKeyRequestURITooLong from json.

func (*GetOgKeyRequestURITooLong) Encode

func (s *GetOgKeyRequestURITooLong) Encode(e *jx.Encoder)

Encode encodes GetOgKeyRequestURITooLong as json.

func (*GetOgKeyRequestURITooLong) MarshalJSON

func (s *GetOgKeyRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOgKeyRequestURITooLong) UnmarshalJSON

func (s *GetOgKeyRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOgKeyRes

type GetOgKeyRes interface {
	// contains filtered or unexported methods
}

type GetOgNodeBadRequest

type GetOgNodeBadRequest DefaultErrorObj

func (*GetOgNodeBadRequest) Decode

func (s *GetOgNodeBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetOgNodeBadRequest from json.

func (*GetOgNodeBadRequest) Encode

func (s *GetOgNodeBadRequest) Encode(e *jx.Encoder)

Encode encodes GetOgNodeBadRequest as json.

func (*GetOgNodeBadRequest) MarshalJSON

func (s *GetOgNodeBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOgNodeBadRequest) UnmarshalJSON

func (s *GetOgNodeBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOgNodeInternalServerError

type GetOgNodeInternalServerError DefaultErrorObj

func (*GetOgNodeInternalServerError) Decode

Decode decodes GetOgNodeInternalServerError from json.

func (*GetOgNodeInternalServerError) Encode

func (s *GetOgNodeInternalServerError) Encode(e *jx.Encoder)

Encode encodes GetOgNodeInternalServerError as json.

func (*GetOgNodeInternalServerError) MarshalJSON

func (s *GetOgNodeInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOgNodeInternalServerError) UnmarshalJSON

func (s *GetOgNodeInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOgNodeMethodNotAllowed

type GetOgNodeMethodNotAllowed DefaultErrorObj

func (*GetOgNodeMethodNotAllowed) Decode

func (s *GetOgNodeMethodNotAllowed) Decode(d *jx.Decoder) error

Decode decodes GetOgNodeMethodNotAllowed from json.

func (*GetOgNodeMethodNotAllowed) Encode

func (s *GetOgNodeMethodNotAllowed) Encode(e *jx.Encoder)

Encode encodes GetOgNodeMethodNotAllowed as json.

func (*GetOgNodeMethodNotAllowed) MarshalJSON

func (s *GetOgNodeMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOgNodeMethodNotAllowed) UnmarshalJSON

func (s *GetOgNodeMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOgNodeOK

type GetOgNodeOK struct {
	Data io.Reader
}

func (GetOgNodeOK) Read

func (s GetOgNodeOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetOgNodeOKHeaders

type GetOgNodeOKHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     GetOgNodeOK
}

GetOgNodeOKHeaders wraps GetOgNodeOK with response headers.

func (*GetOgNodeOKHeaders) GetCacheControl

func (s *GetOgNodeOKHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*GetOgNodeOKHeaders) GetETag

func (s *GetOgNodeOKHeaders) GetETag() OptString

GetETag returns the value of ETag.

func (*GetOgNodeOKHeaders) GetResponse

func (s *GetOgNodeOKHeaders) GetResponse() GetOgNodeOK

GetResponse returns the value of Response.

func (*GetOgNodeOKHeaders) SetCacheControl

func (s *GetOgNodeOKHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*GetOgNodeOKHeaders) SetETag

func (s *GetOgNodeOKHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*GetOgNodeOKHeaders) SetResponse

func (s *GetOgNodeOKHeaders) SetResponse(val GetOgNodeOK)

SetResponse sets the value of Response.

type GetOgNodeParams

type GetOgNodeParams struct {
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
}

GetOgNodeParams is parameters of getOgNode operation.

type GetOgNodeRequestHeaderFieldsTooLarge

type GetOgNodeRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetOgNodeRequestHeaderFieldsTooLarge) Decode

Decode decodes GetOgNodeRequestHeaderFieldsTooLarge from json.

func (*GetOgNodeRequestHeaderFieldsTooLarge) Encode

Encode encodes GetOgNodeRequestHeaderFieldsTooLarge as json.

func (*GetOgNodeRequestHeaderFieldsTooLarge) MarshalJSON

func (s *GetOgNodeRequestHeaderFieldsTooLarge) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOgNodeRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetOgNodeRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOgNodeRequestURITooLong

type GetOgNodeRequestURITooLong DefaultErrorObj

func (*GetOgNodeRequestURITooLong) Decode

Decode decodes GetOgNodeRequestURITooLong from json.

func (*GetOgNodeRequestURITooLong) Encode

func (s *GetOgNodeRequestURITooLong) Encode(e *jx.Encoder)

Encode encodes GetOgNodeRequestURITooLong as json.

func (*GetOgNodeRequestURITooLong) MarshalJSON

func (s *GetOgNodeRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOgNodeRequestURITooLong) UnmarshalJSON

func (s *GetOgNodeRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOgNodeRes

type GetOgNodeRes interface {
	// contains filtered or unexported methods
}

type GetOgVersionBadRequest

type GetOgVersionBadRequest DefaultErrorObj

func (*GetOgVersionBadRequest) Decode

func (s *GetOgVersionBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetOgVersionBadRequest from json.

func (*GetOgVersionBadRequest) Encode

func (s *GetOgVersionBadRequest) Encode(e *jx.Encoder)

Encode encodes GetOgVersionBadRequest as json.

func (*GetOgVersionBadRequest) MarshalJSON

func (s *GetOgVersionBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOgVersionBadRequest) UnmarshalJSON

func (s *GetOgVersionBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOgVersionInternalServerError

type GetOgVersionInternalServerError DefaultErrorObj

func (*GetOgVersionInternalServerError) Decode

Decode decodes GetOgVersionInternalServerError from json.

func (*GetOgVersionInternalServerError) Encode

Encode encodes GetOgVersionInternalServerError as json.

func (*GetOgVersionInternalServerError) MarshalJSON

func (s *GetOgVersionInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOgVersionInternalServerError) UnmarshalJSON

func (s *GetOgVersionInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOgVersionMethodNotAllowed

type GetOgVersionMethodNotAllowed DefaultErrorObj

func (*GetOgVersionMethodNotAllowed) Decode

Decode decodes GetOgVersionMethodNotAllowed from json.

func (*GetOgVersionMethodNotAllowed) Encode

func (s *GetOgVersionMethodNotAllowed) Encode(e *jx.Encoder)

Encode encodes GetOgVersionMethodNotAllowed as json.

func (*GetOgVersionMethodNotAllowed) MarshalJSON

func (s *GetOgVersionMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOgVersionMethodNotAllowed) UnmarshalJSON

func (s *GetOgVersionMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOgVersionNotFound

type GetOgVersionNotFound DefaultErrorObj

func (*GetOgVersionNotFound) Decode

func (s *GetOgVersionNotFound) Decode(d *jx.Decoder) error

Decode decodes GetOgVersionNotFound from json.

func (*GetOgVersionNotFound) Encode

func (s *GetOgVersionNotFound) Encode(e *jx.Encoder)

Encode encodes GetOgVersionNotFound as json.

func (*GetOgVersionNotFound) MarshalJSON

func (s *GetOgVersionNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOgVersionNotFound) UnmarshalJSON

func (s *GetOgVersionNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOgVersionOK

type GetOgVersionOK struct {
	Data io.Reader
}

func (GetOgVersionOK) Read

func (s GetOgVersionOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetOgVersionOKHeaders

type GetOgVersionOKHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     GetOgVersionOK
}

GetOgVersionOKHeaders wraps GetOgVersionOK with response headers.

func (*GetOgVersionOKHeaders) GetCacheControl

func (s *GetOgVersionOKHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*GetOgVersionOKHeaders) GetETag

func (s *GetOgVersionOKHeaders) GetETag() OptString

GetETag returns the value of ETag.

func (*GetOgVersionOKHeaders) GetResponse

func (s *GetOgVersionOKHeaders) GetResponse() GetOgVersionOK

GetResponse returns the value of Response.

func (*GetOgVersionOKHeaders) SetCacheControl

func (s *GetOgVersionOKHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*GetOgVersionOKHeaders) SetETag

func (s *GetOgVersionOKHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*GetOgVersionOKHeaders) SetResponse

func (s *GetOgVersionOKHeaders) SetResponse(val GetOgVersionOK)

SetResponse sets the value of Response.

type GetOgVersionParams

type GetOgVersionParams struct {
	// Registry key configured in `release_mirrors`. Valid configuration keys match
	// `^[a-z0-9][a-z0-9._-]{1,38}[a-z0-9]$`, cannot look like a Go major suffix such as `v2`, and cannot
	// use reserved route names including `list`, `latest`, `@v`, `@latest`, `health`, `info`, `metrics`,
	// `openapi.json`, `p`, `p2`, `packages`, `packages.json`, `rpc`, `catalog.json`, `feed.xml`, `logo`,
	// `og.png`, `favicon.ico`, and `sitemap.xml`.
	Key string
	// Version label, for example `v1.2.3`.
	Version string
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
}

GetOgVersionParams is parameters of getOgVersion operation.

type GetOgVersionRequestHeaderFieldsTooLarge

type GetOgVersionRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetOgVersionRequestHeaderFieldsTooLarge) Decode

Decode decodes GetOgVersionRequestHeaderFieldsTooLarge from json.

func (*GetOgVersionRequestHeaderFieldsTooLarge) Encode

Encode encodes GetOgVersionRequestHeaderFieldsTooLarge as json.

func (*GetOgVersionRequestHeaderFieldsTooLarge) MarshalJSON

func (s *GetOgVersionRequestHeaderFieldsTooLarge) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOgVersionRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetOgVersionRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOgVersionRequestURITooLong

type GetOgVersionRequestURITooLong DefaultErrorObj

func (*GetOgVersionRequestURITooLong) Decode

Decode decodes GetOgVersionRequestURITooLong from json.

func (*GetOgVersionRequestURITooLong) Encode

Encode encodes GetOgVersionRequestURITooLong as json.

func (*GetOgVersionRequestURITooLong) MarshalJSON

func (s *GetOgVersionRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOgVersionRequestURITooLong) UnmarshalJSON

func (s *GetOgVersionRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetOgVersionRes

type GetOgVersionRes interface {
	// contains filtered or unexported methods
}

type GetSitemapBadRequest

type GetSitemapBadRequest DefaultErrorObj

func (*GetSitemapBadRequest) Decode

func (s *GetSitemapBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetSitemapBadRequest from json.

func (*GetSitemapBadRequest) Encode

func (s *GetSitemapBadRequest) Encode(e *jx.Encoder)

Encode encodes GetSitemapBadRequest as json.

func (*GetSitemapBadRequest) MarshalJSON

func (s *GetSitemapBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetSitemapBadRequest) UnmarshalJSON

func (s *GetSitemapBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetSitemapInternalServerError

type GetSitemapInternalServerError DefaultErrorObj

func (*GetSitemapInternalServerError) Decode

Decode decodes GetSitemapInternalServerError from json.

func (*GetSitemapInternalServerError) Encode

Encode encodes GetSitemapInternalServerError as json.

func (*GetSitemapInternalServerError) MarshalJSON

func (s *GetSitemapInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetSitemapInternalServerError) UnmarshalJSON

func (s *GetSitemapInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetSitemapMethodNotAllowed

type GetSitemapMethodNotAllowed DefaultErrorObj

func (*GetSitemapMethodNotAllowed) Decode

Decode decodes GetSitemapMethodNotAllowed from json.

func (*GetSitemapMethodNotAllowed) Encode

func (s *GetSitemapMethodNotAllowed) Encode(e *jx.Encoder)

Encode encodes GetSitemapMethodNotAllowed as json.

func (*GetSitemapMethodNotAllowed) MarshalJSON

func (s *GetSitemapMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetSitemapMethodNotAllowed) UnmarshalJSON

func (s *GetSitemapMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetSitemapOK

type GetSitemapOK struct {
	Data io.Reader
}

func (GetSitemapOK) Read

func (s GetSitemapOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetSitemapOKHeaders

type GetSitemapOKHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     GetSitemapOK
}

GetSitemapOKHeaders wraps GetSitemapOK with response headers.

func (*GetSitemapOKHeaders) GetCacheControl

func (s *GetSitemapOKHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*GetSitemapOKHeaders) GetETag

func (s *GetSitemapOKHeaders) GetETag() OptString

GetETag returns the value of ETag.

func (*GetSitemapOKHeaders) GetResponse

func (s *GetSitemapOKHeaders) GetResponse() GetSitemapOK

GetResponse returns the value of Response.

func (*GetSitemapOKHeaders) SetCacheControl

func (s *GetSitemapOKHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*GetSitemapOKHeaders) SetETag

func (s *GetSitemapOKHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*GetSitemapOKHeaders) SetResponse

func (s *GetSitemapOKHeaders) SetResponse(val GetSitemapOK)

SetResponse sets the value of Response.

type GetSitemapParams

type GetSitemapParams struct {
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
}

GetSitemapParams is parameters of getSitemap operation.

type GetSitemapRequestHeaderFieldsTooLarge

type GetSitemapRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetSitemapRequestHeaderFieldsTooLarge) Decode

Decode decodes GetSitemapRequestHeaderFieldsTooLarge from json.

func (*GetSitemapRequestHeaderFieldsTooLarge) Encode

Encode encodes GetSitemapRequestHeaderFieldsTooLarge as json.

func (*GetSitemapRequestHeaderFieldsTooLarge) MarshalJSON

func (s *GetSitemapRequestHeaderFieldsTooLarge) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetSitemapRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetSitemapRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetSitemapRequestURITooLong

type GetSitemapRequestURITooLong DefaultErrorObj

func (*GetSitemapRequestURITooLong) Decode

Decode decodes GetSitemapRequestURITooLong from json.

func (*GetSitemapRequestURITooLong) Encode

func (s *GetSitemapRequestURITooLong) Encode(e *jx.Encoder)

Encode encodes GetSitemapRequestURITooLong as json.

func (*GetSitemapRequestURITooLong) MarshalJSON

func (s *GetSitemapRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetSitemapRequestURITooLong) UnmarshalJSON

func (s *GetSitemapRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetSitemapRes

type GetSitemapRes interface {
	// contains filtered or unexported methods
}

type GetVersionArtifactBadRequest

type GetVersionArtifactBadRequest DefaultErrorObj

func (*GetVersionArtifactBadRequest) Decode

Decode decodes GetVersionArtifactBadRequest from json.

func (*GetVersionArtifactBadRequest) Encode

func (s *GetVersionArtifactBadRequest) Encode(e *jx.Encoder)

Encode encodes GetVersionArtifactBadRequest as json.

func (*GetVersionArtifactBadRequest) MarshalJSON

func (s *GetVersionArtifactBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetVersionArtifactBadRequest) UnmarshalJSON

func (s *GetVersionArtifactBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetVersionArtifactInternalServerError

type GetVersionArtifactInternalServerError DefaultErrorObj

func (*GetVersionArtifactInternalServerError) Decode

Decode decodes GetVersionArtifactInternalServerError from json.

func (*GetVersionArtifactInternalServerError) Encode

Encode encodes GetVersionArtifactInternalServerError as json.

func (*GetVersionArtifactInternalServerError) MarshalJSON

func (s *GetVersionArtifactInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetVersionArtifactInternalServerError) UnmarshalJSON

func (s *GetVersionArtifactInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetVersionArtifactMethodNotAllowed

type GetVersionArtifactMethodNotAllowed DefaultErrorObj

func (*GetVersionArtifactMethodNotAllowed) Decode

Decode decodes GetVersionArtifactMethodNotAllowed from json.

func (*GetVersionArtifactMethodNotAllowed) Encode

Encode encodes GetVersionArtifactMethodNotAllowed as json.

func (*GetVersionArtifactMethodNotAllowed) MarshalJSON

func (s *GetVersionArtifactMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetVersionArtifactMethodNotAllowed) UnmarshalJSON

func (s *GetVersionArtifactMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetVersionArtifactNotFound

type GetVersionArtifactNotFound DefaultErrorObj

func (*GetVersionArtifactNotFound) Decode

Decode decodes GetVersionArtifactNotFound from json.

func (*GetVersionArtifactNotFound) Encode

func (s *GetVersionArtifactNotFound) Encode(e *jx.Encoder)

Encode encodes GetVersionArtifactNotFound as json.

func (*GetVersionArtifactNotFound) MarshalJSON

func (s *GetVersionArtifactNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetVersionArtifactNotFound) UnmarshalJSON

func (s *GetVersionArtifactNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetVersionArtifactOK

type GetVersionArtifactOK struct {
	Data io.Reader
}

func (GetVersionArtifactOK) Read

func (s GetVersionArtifactOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetVersionArtifactOKHeaders

type GetVersionArtifactOKHeaders struct {
	AcceptRanges       OptString
	CacheControl       OptString
	ContentDisposition OptString
	ContentLength      OptInt64
	ETag               OptString
	LastModified       OptString
	Response           GetVersionArtifactOK
}

GetVersionArtifactOKHeaders wraps GetVersionArtifactOK with response headers.

func (*GetVersionArtifactOKHeaders) GetAcceptRanges

func (s *GetVersionArtifactOKHeaders) GetAcceptRanges() OptString

GetAcceptRanges returns the value of AcceptRanges.

func (*GetVersionArtifactOKHeaders) GetCacheControl

func (s *GetVersionArtifactOKHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*GetVersionArtifactOKHeaders) GetContentDisposition added in v0.3.0

func (s *GetVersionArtifactOKHeaders) GetContentDisposition() OptString

GetContentDisposition returns the value of ContentDisposition.

func (*GetVersionArtifactOKHeaders) GetContentLength

func (s *GetVersionArtifactOKHeaders) GetContentLength() OptInt64

GetContentLength returns the value of ContentLength.

func (*GetVersionArtifactOKHeaders) GetETag

GetETag returns the value of ETag.

func (*GetVersionArtifactOKHeaders) GetLastModified

func (s *GetVersionArtifactOKHeaders) GetLastModified() OptString

GetLastModified returns the value of LastModified.

func (*GetVersionArtifactOKHeaders) GetResponse

GetResponse returns the value of Response.

func (*GetVersionArtifactOKHeaders) SetAcceptRanges

func (s *GetVersionArtifactOKHeaders) SetAcceptRanges(val OptString)

SetAcceptRanges sets the value of AcceptRanges.

func (*GetVersionArtifactOKHeaders) SetCacheControl

func (s *GetVersionArtifactOKHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*GetVersionArtifactOKHeaders) SetContentDisposition added in v0.3.0

func (s *GetVersionArtifactOKHeaders) SetContentDisposition(val OptString)

SetContentDisposition sets the value of ContentDisposition.

func (*GetVersionArtifactOKHeaders) SetContentLength

func (s *GetVersionArtifactOKHeaders) SetContentLength(val OptInt64)

SetContentLength sets the value of ContentLength.

func (*GetVersionArtifactOKHeaders) SetETag

func (s *GetVersionArtifactOKHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*GetVersionArtifactOKHeaders) SetLastModified

func (s *GetVersionArtifactOKHeaders) SetLastModified(val OptString)

SetLastModified sets the value of LastModified.

func (*GetVersionArtifactOKHeaders) SetResponse

SetResponse sets the value of Response.

type GetVersionArtifactParams

type GetVersionArtifactParams struct {
	// Registry key configured in `release_mirrors`. Valid configuration keys match
	// `^[a-z0-9][a-z0-9._-]{1,38}[a-z0-9]$`, cannot look like a Go major suffix such as `v2`, and cannot
	// use reserved route names including `list`, `latest`, `@v`, `@latest`, `health`, `info`, `metrics`,
	// `openapi.json`, `p`, `p2`, `packages`, `packages.json`, `rpc`, `catalog.json`, `feed.xml`, `logo`,
	// `og.png`, `favicon.ico`, and `sitemap.xml`.
	Key string
	// Version file name, for example `v1.2.3.info`, `v1.2.3.mod`, or `v1.2.3.zip`.
	VersionFile string
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
	// HTTP date validator accepted on artifact routes for client compatibility. The current handlers do
	// not use this header to decide `304 Not Modified`; use `If-None-Match` for cache revalidation and
	// `If-Range` for ranged downloads.
	IfModifiedSince OptString `json:",omitempty,omitzero"`
	// Single byte range request for artifact bodies. Satisfiable ranges return `206 Partial Content`;
	// out-of-bounds ranges return `416`. Malformed or unsupported ranges are ignored and the full body is
	// returned.
	Range OptString `json:",omitempty,omitzero"`
	// Validator for a `Range` request. The byte range is served only when the value matches the current
	// ETag; otherwise the server ignores `Range` and returns the full resource with `200 OK`.
	IfRange OptString `json:",omitempty,omitzero"`
}

GetVersionArtifactParams is parameters of getVersionArtifact operation.

type GetVersionArtifactRequestHeaderFieldsTooLarge

type GetVersionArtifactRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetVersionArtifactRequestHeaderFieldsTooLarge) Decode

Decode decodes GetVersionArtifactRequestHeaderFieldsTooLarge from json.

func (*GetVersionArtifactRequestHeaderFieldsTooLarge) Encode

Encode encodes GetVersionArtifactRequestHeaderFieldsTooLarge as json.

func (*GetVersionArtifactRequestHeaderFieldsTooLarge) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetVersionArtifactRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetVersionArtifactRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetVersionArtifactRequestURITooLong

type GetVersionArtifactRequestURITooLong DefaultErrorObj

func (*GetVersionArtifactRequestURITooLong) Decode

Decode decodes GetVersionArtifactRequestURITooLong from json.

func (*GetVersionArtifactRequestURITooLong) Encode

Encode encodes GetVersionArtifactRequestURITooLong as json.

func (*GetVersionArtifactRequestURITooLong) MarshalJSON

func (s *GetVersionArtifactRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetVersionArtifactRequestURITooLong) UnmarshalJSON

func (s *GetVersionArtifactRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetVersionArtifactRequestedRangeNotSatisfiable

type GetVersionArtifactRequestedRangeNotSatisfiable DefaultErrorObj

func (*GetVersionArtifactRequestedRangeNotSatisfiable) Decode

Decode decodes GetVersionArtifactRequestedRangeNotSatisfiable from json.

func (*GetVersionArtifactRequestedRangeNotSatisfiable) Encode

Encode encodes GetVersionArtifactRequestedRangeNotSatisfiable as json.

func (*GetVersionArtifactRequestedRangeNotSatisfiable) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetVersionArtifactRequestedRangeNotSatisfiable) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type GetVersionArtifactRes

type GetVersionArtifactRes interface {
	// contains filtered or unexported methods
}

type GetVersionArtifactTooManyRequests

type GetVersionArtifactTooManyRequests DefaultErrorObj

func (*GetVersionArtifactTooManyRequests) Decode

Decode decodes GetVersionArtifactTooManyRequests from json.

func (*GetVersionArtifactTooManyRequests) Encode

Encode encodes GetVersionArtifactTooManyRequests as json.

func (*GetVersionArtifactTooManyRequests) MarshalJSON

func (s *GetVersionArtifactTooManyRequests) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetVersionArtifactTooManyRequests) UnmarshalJSON

func (s *GetVersionArtifactTooManyRequests) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetVersionFileBadRequest

type GetVersionFileBadRequest DefaultErrorObj

func (*GetVersionFileBadRequest) Decode

func (s *GetVersionFileBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetVersionFileBadRequest from json.

func (*GetVersionFileBadRequest) Encode

func (s *GetVersionFileBadRequest) Encode(e *jx.Encoder)

Encode encodes GetVersionFileBadRequest as json.

func (*GetVersionFileBadRequest) MarshalJSON

func (s *GetVersionFileBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetVersionFileBadRequest) UnmarshalJSON

func (s *GetVersionFileBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetVersionFileInternalServerError

type GetVersionFileInternalServerError DefaultErrorObj

func (*GetVersionFileInternalServerError) Decode

Decode decodes GetVersionFileInternalServerError from json.

func (*GetVersionFileInternalServerError) Encode

Encode encodes GetVersionFileInternalServerError as json.

func (*GetVersionFileInternalServerError) MarshalJSON

func (s *GetVersionFileInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetVersionFileInternalServerError) UnmarshalJSON

func (s *GetVersionFileInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetVersionFileMethodNotAllowed

type GetVersionFileMethodNotAllowed DefaultErrorObj

func (*GetVersionFileMethodNotAllowed) Decode

Decode decodes GetVersionFileMethodNotAllowed from json.

func (*GetVersionFileMethodNotAllowed) Encode

Encode encodes GetVersionFileMethodNotAllowed as json.

func (*GetVersionFileMethodNotAllowed) MarshalJSON

func (s *GetVersionFileMethodNotAllowed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetVersionFileMethodNotAllowed) UnmarshalJSON

func (s *GetVersionFileMethodNotAllowed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetVersionFileNotFound

type GetVersionFileNotFound DefaultErrorObj

func (*GetVersionFileNotFound) Decode

func (s *GetVersionFileNotFound) Decode(d *jx.Decoder) error

Decode decodes GetVersionFileNotFound from json.

func (*GetVersionFileNotFound) Encode

func (s *GetVersionFileNotFound) Encode(e *jx.Encoder)

Encode encodes GetVersionFileNotFound as json.

func (*GetVersionFileNotFound) MarshalJSON

func (s *GetVersionFileNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetVersionFileNotFound) UnmarshalJSON

func (s *GetVersionFileNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetVersionFileOKApplicationOctetStream

type GetVersionFileOKApplicationOctetStream struct {
	Data io.Reader
}

func (GetVersionFileOKApplicationOctetStream) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetVersionFileOKApplicationOctetStreamHeaders

type GetVersionFileOKApplicationOctetStreamHeaders struct {
	AcceptRanges       OptString
	CacheControl       OptString
	ContentDisposition OptString
	ContentLength      OptInt64
	ETag               OptString
	LastModified       OptString
	Response           GetVersionFileOKApplicationOctetStream
}

GetVersionFileOKApplicationOctetStreamHeaders wraps GetVersionFileOKApplicationOctetStream with response headers.

func (*GetVersionFileOKApplicationOctetStreamHeaders) GetAcceptRanges

GetAcceptRanges returns the value of AcceptRanges.

func (*GetVersionFileOKApplicationOctetStreamHeaders) GetCacheControl

GetCacheControl returns the value of CacheControl.

func (*GetVersionFileOKApplicationOctetStreamHeaders) GetContentDisposition added in v0.3.0

func (s *GetVersionFileOKApplicationOctetStreamHeaders) GetContentDisposition() OptString

GetContentDisposition returns the value of ContentDisposition.

func (*GetVersionFileOKApplicationOctetStreamHeaders) GetContentLength

GetContentLength returns the value of ContentLength.

func (*GetVersionFileOKApplicationOctetStreamHeaders) GetETag

GetETag returns the value of ETag.

func (*GetVersionFileOKApplicationOctetStreamHeaders) GetLastModified

GetLastModified returns the value of LastModified.

func (*GetVersionFileOKApplicationOctetStreamHeaders) GetResponse

GetResponse returns the value of Response.

func (*GetVersionFileOKApplicationOctetStreamHeaders) SetAcceptRanges

SetAcceptRanges sets the value of AcceptRanges.

func (*GetVersionFileOKApplicationOctetStreamHeaders) SetCacheControl

SetCacheControl sets the value of CacheControl.

func (*GetVersionFileOKApplicationOctetStreamHeaders) SetContentDisposition added in v0.3.0

func (s *GetVersionFileOKApplicationOctetStreamHeaders) SetContentDisposition(val OptString)

SetContentDisposition sets the value of ContentDisposition.

func (*GetVersionFileOKApplicationOctetStreamHeaders) SetContentLength

SetContentLength sets the value of ContentLength.

func (*GetVersionFileOKApplicationOctetStreamHeaders) SetETag

SetETag sets the value of ETag.

func (*GetVersionFileOKApplicationOctetStreamHeaders) SetLastModified

SetLastModified sets the value of LastModified.

func (*GetVersionFileOKApplicationOctetStreamHeaders) SetResponse

SetResponse sets the value of Response.

type GetVersionFileOKTextHTML

type GetVersionFileOKTextHTML struct {
	Data io.Reader
}

func (GetVersionFileOKTextHTML) Read

func (s GetVersionFileOKTextHTML) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type GetVersionFileOKTextHTMLHeaders

type GetVersionFileOKTextHTMLHeaders struct {
	AcceptRanges       OptString
	CacheControl       OptString
	ContentDisposition OptString
	ContentLength      OptInt64
	ETag               OptString
	LastModified       OptString
	Response           GetVersionFileOKTextHTML
}

GetVersionFileOKTextHTMLHeaders wraps GetVersionFileOKTextHTML with response headers.

func (*GetVersionFileOKTextHTMLHeaders) GetAcceptRanges

func (s *GetVersionFileOKTextHTMLHeaders) GetAcceptRanges() OptString

GetAcceptRanges returns the value of AcceptRanges.

func (*GetVersionFileOKTextHTMLHeaders) GetCacheControl

func (s *GetVersionFileOKTextHTMLHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*GetVersionFileOKTextHTMLHeaders) GetContentDisposition added in v0.3.0

func (s *GetVersionFileOKTextHTMLHeaders) GetContentDisposition() OptString

GetContentDisposition returns the value of ContentDisposition.

func (*GetVersionFileOKTextHTMLHeaders) GetContentLength

func (s *GetVersionFileOKTextHTMLHeaders) GetContentLength() OptInt64

GetContentLength returns the value of ContentLength.

func (*GetVersionFileOKTextHTMLHeaders) GetETag

GetETag returns the value of ETag.

func (*GetVersionFileOKTextHTMLHeaders) GetLastModified

func (s *GetVersionFileOKTextHTMLHeaders) GetLastModified() OptString

GetLastModified returns the value of LastModified.

func (*GetVersionFileOKTextHTMLHeaders) GetResponse

GetResponse returns the value of Response.

func (*GetVersionFileOKTextHTMLHeaders) SetAcceptRanges

func (s *GetVersionFileOKTextHTMLHeaders) SetAcceptRanges(val OptString)

SetAcceptRanges sets the value of AcceptRanges.

func (*GetVersionFileOKTextHTMLHeaders) SetCacheControl

func (s *GetVersionFileOKTextHTMLHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*GetVersionFileOKTextHTMLHeaders) SetContentDisposition added in v0.3.0

func (s *GetVersionFileOKTextHTMLHeaders) SetContentDisposition(val OptString)

SetContentDisposition sets the value of ContentDisposition.

func (*GetVersionFileOKTextHTMLHeaders) SetContentLength

func (s *GetVersionFileOKTextHTMLHeaders) SetContentLength(val OptInt64)

SetContentLength sets the value of ContentLength.

func (*GetVersionFileOKTextHTMLHeaders) SetETag

SetETag sets the value of ETag.

func (*GetVersionFileOKTextHTMLHeaders) SetLastModified

func (s *GetVersionFileOKTextHTMLHeaders) SetLastModified(val OptString)

SetLastModified sets the value of LastModified.

func (*GetVersionFileOKTextHTMLHeaders) SetResponse

SetResponse sets the value of Response.

type GetVersionFileParams

type GetVersionFileParams struct {
	// Registry key configured in `release_mirrors`. Valid configuration keys match
	// `^[a-z0-9][a-z0-9._-]{1,38}[a-z0-9]$`, cannot look like a Go major suffix such as `v2`, and cannot
	// use reserved route names including `list`, `latest`, `@v`, `@latest`, `health`, `info`, `metrics`,
	// `openapi.json`, `p`, `p2`, `packages`, `packages.json`, `rpc`, `catalog.json`, `feed.xml`, `logo`,
	// `og.png`, `favicon.ico`, and `sitemap.xml`.
	Key string
	// Version file name, for example `v1.2.3.json`, `v1.2.3.zip`, or `v1.2.3.tar.gz`.
	VersionFile string
	// Client ETag validator. If one supplied tag matches the current resource ETag, the server returns
	// `304 Not Modified` without a response body.
	IfNoneMatch OptString `json:",omitempty,omitzero"`
	// HTTP date validator accepted on artifact routes for client compatibility. The current handlers do
	// not use this header to decide `304 Not Modified`; use `If-None-Match` for cache revalidation and
	// `If-Range` for ranged downloads.
	IfModifiedSince OptString `json:",omitempty,omitzero"`
	// Single byte range request for artifact bodies. Satisfiable ranges return `206 Partial Content`;
	// out-of-bounds ranges return `416`. Malformed or unsupported ranges are ignored and the full body is
	// returned.
	Range OptString `json:",omitempty,omitzero"`
	// Validator for a `Range` request. The byte range is served only when the value matches the current
	// ETag; otherwise the server ignores `Range` and returns the full resource with `200 OK`.
	IfRange OptString `json:",omitempty,omitzero"`
}

GetVersionFileParams is parameters of getVersionFile operation.

type GetVersionFileRequestHeaderFieldsTooLarge

type GetVersionFileRequestHeaderFieldsTooLarge DefaultErrorObj

func (*GetVersionFileRequestHeaderFieldsTooLarge) Decode

Decode decodes GetVersionFileRequestHeaderFieldsTooLarge from json.

func (*GetVersionFileRequestHeaderFieldsTooLarge) Encode

Encode encodes GetVersionFileRequestHeaderFieldsTooLarge as json.

func (*GetVersionFileRequestHeaderFieldsTooLarge) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetVersionFileRequestHeaderFieldsTooLarge) UnmarshalJSON

func (s *GetVersionFileRequestHeaderFieldsTooLarge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetVersionFileRequestURITooLong

type GetVersionFileRequestURITooLong DefaultErrorObj

func (*GetVersionFileRequestURITooLong) Decode

Decode decodes GetVersionFileRequestURITooLong from json.

func (*GetVersionFileRequestURITooLong) Encode

Encode encodes GetVersionFileRequestURITooLong as json.

func (*GetVersionFileRequestURITooLong) MarshalJSON

func (s *GetVersionFileRequestURITooLong) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetVersionFileRequestURITooLong) UnmarshalJSON

func (s *GetVersionFileRequestURITooLong) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetVersionFileRequestedRangeNotSatisfiable

type GetVersionFileRequestedRangeNotSatisfiable DefaultErrorObj

func (*GetVersionFileRequestedRangeNotSatisfiable) Decode

Decode decodes GetVersionFileRequestedRangeNotSatisfiable from json.

func (*GetVersionFileRequestedRangeNotSatisfiable) Encode

Encode encodes GetVersionFileRequestedRangeNotSatisfiable as json.

func (*GetVersionFileRequestedRangeNotSatisfiable) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetVersionFileRequestedRangeNotSatisfiable) UnmarshalJSON

func (s *GetVersionFileRequestedRangeNotSatisfiable) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetVersionFileRes

type GetVersionFileRes interface {
	// contains filtered or unexported methods
}

type GetVersionFileTooManyRequests

type GetVersionFileTooManyRequests DefaultErrorObj

func (*GetVersionFileTooManyRequests) Decode

Decode decodes GetVersionFileTooManyRequests from json.

func (*GetVersionFileTooManyRequests) Encode

Encode encodes GetVersionFileTooManyRequests as json.

func (*GetVersionFileTooManyRequests) MarshalJSON

func (s *GetVersionFileTooManyRequests) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetVersionFileTooManyRequests) UnmarshalJSON

func (s *GetVersionFileTooManyRequests) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GoInfoObj

type GoInfoObj struct {
	// Release timestamp returned in the Go proxy `.info` document.
	Time time.Time `json:"Time"`
	// Canonical Go module version returned by the proxy.
	Version string `json:"Version"`
}

Ref: #/components/schemas/GoInfoObj

func (*GoInfoObj) Decode

func (s *GoInfoObj) Decode(d *jx.Decoder) error

Decode decodes GoInfoObj from json.

func (*GoInfoObj) Encode

func (s *GoInfoObj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GoInfoObj) GetTime

func (s *GoInfoObj) GetTime() time.Time

GetTime returns the value of Time.

func (*GoInfoObj) GetVersion

func (s *GoInfoObj) GetVersion() string

GetVersion returns the value of Version.

func (*GoInfoObj) MarshalJSON

func (s *GoInfoObj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GoInfoObj) SetTime

func (s *GoInfoObj) SetTime(val time.Time)

SetTime sets the value of Time.

func (*GoInfoObj) SetVersion

func (s *GoInfoObj) SetVersion(val string)

SetVersion sets the value of Version.

func (*GoInfoObj) UnmarshalJSON

func (s *GoInfoObj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GoInfoObjHeaders

type GoInfoObjHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     GoInfoObj
}

GoInfoObjHeaders wraps GoInfoObj with response headers.

func (*GoInfoObjHeaders) GetCacheControl

func (s *GoInfoObjHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*GoInfoObjHeaders) GetETag

func (s *GoInfoObjHeaders) GetETag() OptString

GetETag returns the value of ETag.

func (*GoInfoObjHeaders) GetResponse

func (s *GoInfoObjHeaders) GetResponse() GoInfoObj

GetResponse returns the value of Response.

func (*GoInfoObjHeaders) SetCacheControl

func (s *GoInfoObjHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*GoInfoObjHeaders) SetETag

func (s *GoInfoObjHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*GoInfoObjHeaders) SetResponse

func (s *GoInfoObjHeaders) SetResponse(val GoInfoObj)

SetResponse sets the value of Response.

type Handler

type Handler interface {
	// GetCatalog implements getCatalog operation.
	//
	// Lightweight cross-key snapshot containing each key, latest version, operational status, source
	// classification, and source availability. Release notes and artifact lists are omitted. The body is
	// served from the metadata cache and does not perform a live storage scan. Clients should treat both
	// `application/json` and `text/plain` variants as the same JSON document. Query parameters are
	// rejected.
	//
	// GET /catalog.json
	GetCatalog(ctx context.Context, params GetCatalogParams) (GetCatalogRes, error)
	// GetComposerP2Package implements getComposerP2Package operation.
	//
	// Returns Composer v2 p2 metadata for one package name. `packageFile` contains the package segment
	// with `.json` for stable metadata or `~dev.json` for the dev variant, for example `monolog.json` or
	// `monolog~dev.json`. Unknown package names, dev-only misses, and invalid filenames return 404. Query
	// parameters are rejected.
	//
	// GET /p2/{vendor}/{packageFile}
	GetComposerP2Package(ctx context.Context, params GetComposerP2PackageParams) (GetComposerP2PackageRes, error)
	// GetComposerPackageList implements getComposerPackageList operation.
	//
	// Returns available Composer package names after package-name collision resolution. The optional
	// `filter` supports Composer-style `*` wildcards and is validated before matching so oversized or
	// malformed filters return 400.
	//
	// GET /packages/list.json
	GetComposerPackageList(ctx context.Context, params GetComposerPackageListParams) (GetComposerPackageListRes, error)
	// GetComposerPackages implements getComposerPackages operation.
	//
	// Returns the Composer repository `packages.json` document. yggvault uses the Composer v2 lazy
	// metadata flow: the root document advertises the p2 `metadata-url`, the complete prebuilt
	// package-name list, and the package list endpoint. Query parameters are rejected.
	//
	// GET /packages.json
	GetComposerPackages(ctx context.Context, params GetComposerPackagesParams) (GetComposerPackagesRes, error)
	// GetFavicon implements getFavicon operation.
	//
	// Multi-resolution favicon (16/32/48) generated from the node logo. Pre-rendered at startup and served
	// with a strong content ETag. Query parameters are rejected.
	//
	// GET /favicon.ico
	GetFavicon(ctx context.Context, params GetFaviconParams) (GetFaviconRes, error)
	// GetFeed implements getFeed operation.
	//
	// Atom 1.0 feed built from the cross-key release history. New events come first. The feed includes
	// publish events and archive mutation events; a mutation is a separate entry with an ID that includes
	// the content hash. The number of entries is capped by `web.pages.feed_size`. Query parameters are
	// rejected.
	//
	// GET /feed.xml
	GetFeed(ctx context.Context, params GetFeedParams) (GetFeedRes, error)
	// GetGoLatest implements getGoLatest operation.
	//
	// Returns the Go proxy `@latest` JSON document for the newest active canonical version in the
	// requested major line. The route is available only when content detection has published a Go overlay
	// for the key and major path.
	//
	// GET /{key}/@latest
	GetGoLatest(ctx context.Context, params GetGoLatestParams) (GetGoLatestRes, error)
	// GetGoVersionList implements getGoVersionList operation.
	//
	// Returns the Go proxy `@v/list` body: one canonical version per line, newest first. The route is
	// available only for keys and major lines where content detection has published a Go overlay. Query
	// parameters are rejected.
	//
	// GET /{key}/@v/list
	GetGoVersionList(ctx context.Context, params GetGoVersionListParams) (GetGoVersionListRes, error)
	// GetHealth implements getHealth operation.
	//
	// Returns the live node health snapshot for the listener that handled the request. The response is not
	// cached and includes the entry source (`web` or `yggdrasil`), current runtime status, recent
	// diagnostic count, and the last completed rescan timestamp when available.
	//
	// GET /health
	GetHealth(ctx context.Context) (GetHealthRes, error)
	// GetInfo implements getInfo operation.
	//
	// Public node identity shared by all routes: name, optional description, optional location, public
	// contacts, clearnet domain, and Yggdrasil host. The same identity data is also published through mesh
	// `info`/`inet` signals. Empty `domain` or `ygg_host` means the matching entry is disabled.
	//
	// GET /info
	GetInfo(ctx context.Context) (GetInfoRes, error)
	// GetKeyFeed implements getKeyFeed operation.
	//
	// Atom 1.0 feed for release history events of one key. New events come first. The feed includes
	// publish events and archive mutation events; a mutation is a separate entry with an ID that includes
	// the content hash. The number of entries is capped by `web.pages.feed_size`. Query parameters are
	// rejected.
	//
	// GET /{key}/releases.xml
	GetKeyFeed(ctx context.Context, params GetKeyFeedParams) (GetKeyFeedRes, error)
	// GetKeyReleases implements getKeyReleases operation.
	//
	// Lightweight release snapshot for one key. Each item contains version, time, size, and a link to the
	// detail document; release notes and artifact lists are intentionally omitted. Pagination uses keyset
	// cursors: `?after=<next-from-previous-response>`. The `next` field is omitted on the last page.
	// Clients should treat both `application/json` and `text/plain` variants as the same JSON document.
	//
	// GET /{key}/releases.json
	GetKeyReleases(ctx context.Context, params GetKeyReleasesParams) (GetKeyReleasesRes, error)
	//
	// Square transparent PNG of the node logo at a whitelisted edge size (16, 32, 48, 180, 192, 512).
	// Pre-rendered at startup; other sizes return 404. Query parameters are rejected.
	//
	// GET /logo/{size}
	GetLogo(ctx context.Context, params GetLogoParams) (GetLogoRes, error)
	// GetMetricsCache implements getMetricsCache operation.
	//
	// JSON snapshot of the metadata/hot-file RAM cache and the storage engine (Pebble gauges, event
	// counters, hot-cache enforcement). Served only when public metrics are enabled for the current entry
	// (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns 404.
	//
	// GET /metrics/cache
	GetMetricsCache(ctx context.Context) (GetMetricsCacheRes, error)
	// GetMetricsCore implements getMetricsCore operation.
	//
	// JSON snapshot of core HTTP request signals aggregated across operations: request and error totals
	// and request-duration sum/count. Served only when public metrics are enabled for the current entry
	// (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns 404.
	//
	// GET /metrics/core
	GetMetricsCore(ctx context.Context) (GetMetricsCoreRes, error)
	// GetMetricsErrors implements getMetricsErrors operation.
	//
	// JSON view of the Error Registry: active and dropped diagnostic counts plus the bounded newest-first
	// recent buffer for real-time triage. Served only when public metrics are enabled for the current
	// entry (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns 404.
	//
	// GET /metrics/errors
	GetMetricsErrors(ctx context.Context) (GetMetricsErrorsRes, error)
	// GetMetricsIndex implements getMetricsIndex operation.
	//
	// Returns a small HTML page linking the enabled metric groups for the current entry. If both public
	// and internal metric groups are disabled on that entry, the route is not advertised and returns 404.
	//
	// GET /metrics
	GetMetricsIndex(ctx context.Context) (GetMetricsIndexRes, error)
	// GetMetricsInternal implements getMetricsInternal operation.
	//
	// Complete Prometheus-compatible text exposition (version 0.0.4) covering every metric group: core,
	// cache, rescan, errors, and internal runtime signals. Built for scrapers such as VictoriaMetrics and
	// Prometheus. Served only when internal metrics are enabled for the current entry
	// (`metrics.web.internal` or `metrics.ygg.internal`); otherwise the endpoint returns 404.
	//
	// GET /metrics/internal
	GetMetricsInternal(ctx context.Context) (GetMetricsInternalRes, error)
	// GetMetricsRescan implements getMetricsRescan operation.
	//
	// JSON snapshot of the rescan integrator: cycle, publish, and unavailability totals, mean cycle
	// duration, and the last completed rescan timestamp. Served only when public metrics are enabled for
	// the current entry (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns
	// 404.
	//
	// GET /metrics/rescan
	GetMetricsRescan(ctx context.Context) (GetMetricsRescanRes, error)
	// GetMirrorLatest implements getMirrorLatest operation.
	//
	// Returns the latest indexed version for a mirrored key as a newline-terminated plain-text body.
	// Unknown keys or keys without indexed versions return 404.
	//
	// GET /{key}/latest
	GetMirrorLatest(ctx context.Context, params GetMirrorLatestParams) (GetMirrorLatestRes, error)
	// GetMirrorList implements getMirrorList operation.
	//
	// Returns all indexed versions for a mirrored key as a newest-first plain-text list with one version
	// per line. Unknown keys or keys without indexed versions return 404.
	//
	// GET /{key}/list
	GetMirrorList(ctx context.Context, params GetMirrorListParams) (GetMirrorListRes, error)
	// GetMirrorListFull implements getMirrorListFull operation.
	//
	// Returns all indexed versions for a mirrored key as a newest-first JSON array body. The current
	// handler serves this JSON body as `text/plain`; clients should parse the body content instead of
	// relying on an `application/json` media type.
	//
	// GET /{key}/list/full
	GetMirrorListFull(ctx context.Context, params GetMirrorListFullParams) (GetMirrorListFullRes, error)
	// GetOgKey implements getOgKey operation.
	//
	// Open Graph banner for one mirror key: key name, latest version, version count, and last publish
	// date. Unknown or empty keys return 404. Generated on demand and cached. Query parameters are
	// rejected.
	//
	// GET /og/{key}
	GetOgKey(ctx context.Context, params GetOgKeyParams) (GetOgKeyRes, error)
	// GetOgNode implements getOgNode operation.
	//
	// Open Graph banner for the whole node (catalog page): mirror-key and version counts, plus the last
	// publish date. Generated on demand and cached. Query parameters are rejected.
	//
	// GET /og.png
	GetOgNode(ctx context.Context, params GetOgNodeParams) (GetOgNodeRes, error)
	// GetOgVersion implements getOgVersion operation.
	//
	// Open Graph banner for one version: version string, mirror key, source size, and detected overlays.
	// Unknown key/version pairs return 404. Generated on demand and cached. Query parameters are rejected.
	//
	// GET /og/{key}/{version}
	GetOgVersion(ctx context.Context, params GetOgVersionParams) (GetOgVersionRes, error)
	// GetSitemap implements getSitemap operation.
	//
	// Sitemap of crawlable HTML pages for the current entry: catalog, mirror-key pages, version pages with
	// path-safe version labels, and the metrics index when public metrics are enabled. Absolute URLs use
	// the entry scheme, host, and nested prefix; the URL count is capped by `web.pages.sitemap_size`.
	// Query parameters are rejected.
	//
	// GET /sitemap.xml
	GetSitemap(ctx context.Context, params GetSitemapParams) (GetSitemapRes, error)
	// GetVersionArtifact implements getVersionArtifact operation.
	//
	// Go module proxy endpoint. The file extension selects the body: `.info` returns the Go proxy info
	// JSON, `.mod` returns the raw or rewritten `go.mod`, and `.zip` streams the Go module zip from the
	// hot cache. Versions are unescaped before lookup. The route is available only when content detection
	// has published a Go overlay. If import rewriting is required but `overlay.go.rewrite_enabled` is
	// false, the Go artifact is not published. Composer dist and universal `.tar.gz` archives are served
	// from `/<key>/<version>.{zip,tar.gz}` instead.
	//
	// GET /{key}/@v/{versionFile}
	GetVersionArtifact(ctx context.Context, params GetVersionArtifactParams) (GetVersionArtifactRes, error)
	// GetVersionFile implements getVersionFile operation.
	//
	// Dispatches by file extension. `.json` returns the release detail document, `.zip` returns a
	// deterministic zip artifact, and `.tar.gz` returns a deterministic tar.gz artifact. Archive artifacts
	// are always the raw uploaded source tree (top-dir `<key>-<version>/`) and are host-independent;
	// Go-module import-path rewriting is exposed only on the go-proxy `@v/<version>.zip` endpoint. A bare
	// `<version>` without an extension renders the browser HTML version page. Query parameters are
	// rejected.
	//
	// GET /{key}/{versionFile}
	GetVersionFile(ctx context.Context, params GetVersionFileParams) (GetVersionFileRes, error)
}

Handler handles operations described by OpenAPI v3 specification.

type HandlerObj

type HandlerObj struct {
	FuncObj FuncInterface
}

func (*HandlerObj) GetCatalog

func (obj *HandlerObj) GetCatalog(ctx context.Context, params GetCatalogParams) (GetCatalogRes, error)

func (*HandlerObj) GetComposerP2Package

func (obj *HandlerObj) GetComposerP2Package(ctx context.Context, params GetComposerP2PackageParams) (GetComposerP2PackageRes, error)

func (*HandlerObj) GetComposerPackageList

func (obj *HandlerObj) GetComposerPackageList(ctx context.Context, params GetComposerPackageListParams) (GetComposerPackageListRes, error)

func (*HandlerObj) GetComposerPackages

func (obj *HandlerObj) GetComposerPackages(ctx context.Context, params GetComposerPackagesParams) (GetComposerPackagesRes, error)

func (*HandlerObj) GetFavicon

func (obj *HandlerObj) GetFavicon(ctx context.Context, params GetFaviconParams) (GetFaviconRes, error)

func (*HandlerObj) GetFeed

func (obj *HandlerObj) GetFeed(ctx context.Context, params GetFeedParams) (GetFeedRes, error)

func (*HandlerObj) GetGoLatest

func (obj *HandlerObj) GetGoLatest(ctx context.Context, params GetGoLatestParams) (GetGoLatestRes, error)

func (*HandlerObj) GetGoVersionList

func (obj *HandlerObj) GetGoVersionList(ctx context.Context, params GetGoVersionListParams) (GetGoVersionListRes, error)

func (*HandlerObj) GetHealth

func (obj *HandlerObj) GetHealth(ctx context.Context) (GetHealthRes, error)

func (*HandlerObj) GetInfo

func (obj *HandlerObj) GetInfo(ctx context.Context) (GetInfoRes, error)

func (*HandlerObj) GetKeyFeed

func (obj *HandlerObj) GetKeyFeed(ctx context.Context, params GetKeyFeedParams) (GetKeyFeedRes, error)

func (*HandlerObj) GetKeyReleases

func (obj *HandlerObj) GetKeyReleases(ctx context.Context, params GetKeyReleasesParams) (GetKeyReleasesRes, error)
func (obj *HandlerObj) GetLogo(ctx context.Context, params GetLogoParams) (GetLogoRes, error)

func (*HandlerObj) GetMetricsCache

func (obj *HandlerObj) GetMetricsCache(ctx context.Context) (GetMetricsCacheRes, error)

func (*HandlerObj) GetMetricsCore

func (obj *HandlerObj) GetMetricsCore(ctx context.Context) (GetMetricsCoreRes, error)

func (*HandlerObj) GetMetricsErrors

func (obj *HandlerObj) GetMetricsErrors(ctx context.Context) (GetMetricsErrorsRes, error)

func (*HandlerObj) GetMetricsIndex

func (obj *HandlerObj) GetMetricsIndex(ctx context.Context) (GetMetricsIndexRes, error)

func (*HandlerObj) GetMetricsInternal

func (obj *HandlerObj) GetMetricsInternal(ctx context.Context) (GetMetricsInternalRes, error)

func (*HandlerObj) GetMetricsRescan

func (obj *HandlerObj) GetMetricsRescan(ctx context.Context) (GetMetricsRescanRes, error)

func (*HandlerObj) GetMirrorLatest

func (obj *HandlerObj) GetMirrorLatest(ctx context.Context, params GetMirrorLatestParams) (GetMirrorLatestRes, error)

func (*HandlerObj) GetMirrorList

func (obj *HandlerObj) GetMirrorList(ctx context.Context, params GetMirrorListParams) (GetMirrorListRes, error)

func (*HandlerObj) GetMirrorListFull

func (obj *HandlerObj) GetMirrorListFull(ctx context.Context, params GetMirrorListFullParams) (GetMirrorListFullRes, error)

func (*HandlerObj) GetOgKey

func (obj *HandlerObj) GetOgKey(ctx context.Context, params GetOgKeyParams) (GetOgKeyRes, error)

func (*HandlerObj) GetOgNode

func (obj *HandlerObj) GetOgNode(ctx context.Context, params GetOgNodeParams) (GetOgNodeRes, error)

func (*HandlerObj) GetOgVersion

func (obj *HandlerObj) GetOgVersion(ctx context.Context, params GetOgVersionParams) (GetOgVersionRes, error)

func (*HandlerObj) GetSitemap

func (obj *HandlerObj) GetSitemap(ctx context.Context, params GetSitemapParams) (GetSitemapRes, error)

func (*HandlerObj) GetVersionArtifact

func (obj *HandlerObj) GetVersionArtifact(ctx context.Context, params GetVersionArtifactParams) (GetVersionArtifactRes, error)

func (*HandlerObj) GetVersionFile

func (obj *HandlerObj) GetVersionFile(ctx context.Context, params GetVersionFileParams) (GetVersionFileRes, error)

type HealthObj

type HealthObj struct {
	// Number of recent diagnostics currently tracked by the runtime state.
	ErrorsCount OptInt32 `json:"errors_count"`
	// Timestamp of the last completed rescan cycle, omitted before the first completed cycle.
	LastRescan OptDateTime `json:"last_rescan"`
	// Degraded or error reasons as stable reason strings.
	Reasons []string `json:"reasons"`
	// Service name emitted by this binary.
	Service HealthObjService `json:"service"`
	// Entry channel that served this request: `web` or `yggdrasil`.
	Source HealthObjSource `json:"source"`
	// Current node health after runtime self-checks and recent diagnostics.
	Status HealthObjStatus `json:"status"`
	// Timestamp when the health snapshot was produced.
	Ts time.Time `json:"ts"`
}

Ref: #/components/schemas/HealthObj

func (*HealthObj) Decode

func (s *HealthObj) Decode(d *jx.Decoder) error

Decode decodes HealthObj from json.

func (*HealthObj) Encode

func (s *HealthObj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*HealthObj) GetErrorsCount

func (s *HealthObj) GetErrorsCount() OptInt32

GetErrorsCount returns the value of ErrorsCount.

func (*HealthObj) GetLastRescan

func (s *HealthObj) GetLastRescan() OptDateTime

GetLastRescan returns the value of LastRescan.

func (*HealthObj) GetReasons

func (s *HealthObj) GetReasons() []string

GetReasons returns the value of Reasons.

func (*HealthObj) GetService

func (s *HealthObj) GetService() HealthObjService

GetService returns the value of Service.

func (*HealthObj) GetSource

func (s *HealthObj) GetSource() HealthObjSource

GetSource returns the value of Source.

func (*HealthObj) GetStatus

func (s *HealthObj) GetStatus() HealthObjStatus

GetStatus returns the value of Status.

func (*HealthObj) GetTs

func (s *HealthObj) GetTs() time.Time

GetTs returns the value of Ts.

func (*HealthObj) MarshalJSON

func (s *HealthObj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*HealthObj) SetErrorsCount

func (s *HealthObj) SetErrorsCount(val OptInt32)

SetErrorsCount sets the value of ErrorsCount.

func (*HealthObj) SetLastRescan

func (s *HealthObj) SetLastRescan(val OptDateTime)

SetLastRescan sets the value of LastRescan.

func (*HealthObj) SetReasons

func (s *HealthObj) SetReasons(val []string)

SetReasons sets the value of Reasons.

func (*HealthObj) SetService

func (s *HealthObj) SetService(val HealthObjService)

SetService sets the value of Service.

func (*HealthObj) SetSource

func (s *HealthObj) SetSource(val HealthObjSource)

SetSource sets the value of Source.

func (*HealthObj) SetStatus

func (s *HealthObj) SetStatus(val HealthObjStatus)

SetStatus sets the value of Status.

func (*HealthObj) SetTs

func (s *HealthObj) SetTs(val time.Time)

SetTs sets the value of Ts.

func (*HealthObj) UnmarshalJSON

func (s *HealthObj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*HealthObj) Validate

func (s *HealthObj) Validate() error

type HealthObjHeaders

type HealthObjHeaders struct {
	CacheControl OptString
	Response     HealthObj
}

HealthObjHeaders wraps HealthObj with response headers.

func (*HealthObjHeaders) GetCacheControl

func (s *HealthObjHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*HealthObjHeaders) GetResponse

func (s *HealthObjHeaders) GetResponse() HealthObj

GetResponse returns the value of Response.

func (*HealthObjHeaders) SetCacheControl

func (s *HealthObjHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*HealthObjHeaders) SetResponse

func (s *HealthObjHeaders) SetResponse(val HealthObj)

SetResponse sets the value of Response.

func (*HealthObjHeaders) Validate

func (s *HealthObjHeaders) Validate() error

type HealthObjService

type HealthObjService string

Service name emitted by this binary.

const (
	HealthObjServiceYggvault HealthObjService = "yggvault"
)

func (HealthObjService) AllValues

func (HealthObjService) AllValues() []HealthObjService

AllValues returns all HealthObjService values.

func (*HealthObjService) Decode

func (s *HealthObjService) Decode(d *jx.Decoder) error

Decode decodes HealthObjService from json.

func (HealthObjService) Encode

func (s HealthObjService) Encode(e *jx.Encoder)

Encode encodes HealthObjService as json.

func (HealthObjService) MarshalJSON

func (s HealthObjService) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (HealthObjService) MarshalText

func (s HealthObjService) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*HealthObjService) UnmarshalJSON

func (s *HealthObjService) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*HealthObjService) UnmarshalText

func (s *HealthObjService) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (HealthObjService) Validate

func (s HealthObjService) Validate() error

type HealthObjSource

type HealthObjSource string

Entry channel that served this request: `web` or `yggdrasil`.

const (
	HealthObjSourceWeb       HealthObjSource = "web"
	HealthObjSourceYggdrasil HealthObjSource = "yggdrasil"
)

func (HealthObjSource) AllValues

func (HealthObjSource) AllValues() []HealthObjSource

AllValues returns all HealthObjSource values.

func (*HealthObjSource) Decode

func (s *HealthObjSource) Decode(d *jx.Decoder) error

Decode decodes HealthObjSource from json.

func (HealthObjSource) Encode

func (s HealthObjSource) Encode(e *jx.Encoder)

Encode encodes HealthObjSource as json.

func (HealthObjSource) MarshalJSON

func (s HealthObjSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (HealthObjSource) MarshalText

func (s HealthObjSource) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*HealthObjSource) UnmarshalJSON

func (s *HealthObjSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*HealthObjSource) UnmarshalText

func (s *HealthObjSource) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (HealthObjSource) Validate

func (s HealthObjSource) Validate() error

type HealthObjStatus

type HealthObjStatus string

Current node health after runtime self-checks and recent diagnostics.

const (
	HealthObjStatusOk       HealthObjStatus = "ok"
	HealthObjStatusDegraded HealthObjStatus = "degraded"
	HealthObjStatusError    HealthObjStatus = "error"
)

func (HealthObjStatus) AllValues

func (HealthObjStatus) AllValues() []HealthObjStatus

AllValues returns all HealthObjStatus values.

func (*HealthObjStatus) Decode

func (s *HealthObjStatus) Decode(d *jx.Decoder) error

Decode decodes HealthObjStatus from json.

func (HealthObjStatus) Encode

func (s HealthObjStatus) Encode(e *jx.Encoder)

Encode encodes HealthObjStatus as json.

func (HealthObjStatus) MarshalJSON

func (s HealthObjStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (HealthObjStatus) MarshalText

func (s HealthObjStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*HealthObjStatus) UnmarshalJSON

func (s *HealthObjStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*HealthObjStatus) UnmarshalText

func (s *HealthObjStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (HealthObjStatus) Validate

func (s HealthObjStatus) Validate() error

type InfoObj

type InfoObj struct {
	// Public contact map from `info.contacts`, grouped by contact type; omitted when unset.
	Contacts OptInfoObjContacts `json:"contacts"`
	// Free-form public node description or peering policy from `info.description`; omitted when unset.
	Description OptString `json:"description"`
	// Configured clearnet domain from `web.server.domain`; empty when the web entry is disabled.
	Domain string `json:"domain"`
	// Optional physical or administrative location from `info.location`; omitted when unset.
	Location OptString `json:"location"`
	// Public node name from `info.name`; when empty, the server derives it from the configured domain or
	// Yggdrasil host.
	Name string `json:"name"`
	// URL segment the package API is mounted under when the node runs embedded behind a custom static
	// frontend (nested mode); empty when the API is served at the root. For example `pkg` means routes
	// live under `/pkg/...`. Absent on nodes that predate this field.
	RoutePrefix OptString `json:"route_prefix"`
	// Build version of the running node from compiled build metadata (for example `v0.1.7`).
	Version OptString `json:"version"`
	// Public Yggdrasil identity host (`<hex>.pk.ygg`); empty when the Yggdrasil entry is disabled.
	YggHost string `json:"ygg_host"`
}

Ref: #/components/schemas/InfoObj

func (*InfoObj) Decode

func (s *InfoObj) Decode(d *jx.Decoder) error

Decode decodes InfoObj from json.

func (*InfoObj) Encode

func (s *InfoObj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*InfoObj) GetContacts

func (s *InfoObj) GetContacts() OptInfoObjContacts

GetContacts returns the value of Contacts.

func (*InfoObj) GetDescription

func (s *InfoObj) GetDescription() OptString

GetDescription returns the value of Description.

func (*InfoObj) GetDomain

func (s *InfoObj) GetDomain() string

GetDomain returns the value of Domain.

func (*InfoObj) GetLocation

func (s *InfoObj) GetLocation() OptString

GetLocation returns the value of Location.

func (*InfoObj) GetName

func (s *InfoObj) GetName() string

GetName returns the value of Name.

func (*InfoObj) GetRoutePrefix

func (s *InfoObj) GetRoutePrefix() OptString

GetRoutePrefix returns the value of RoutePrefix.

func (*InfoObj) GetVersion

func (s *InfoObj) GetVersion() OptString

GetVersion returns the value of Version.

func (*InfoObj) GetYggHost

func (s *InfoObj) GetYggHost() string

GetYggHost returns the value of YggHost.

func (*InfoObj) MarshalJSON

func (s *InfoObj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*InfoObj) SetContacts

func (s *InfoObj) SetContacts(val OptInfoObjContacts)

SetContacts sets the value of Contacts.

func (*InfoObj) SetDescription

func (s *InfoObj) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*InfoObj) SetDomain

func (s *InfoObj) SetDomain(val string)

SetDomain sets the value of Domain.

func (*InfoObj) SetLocation

func (s *InfoObj) SetLocation(val OptString)

SetLocation sets the value of Location.

func (*InfoObj) SetName

func (s *InfoObj) SetName(val string)

SetName sets the value of Name.

func (*InfoObj) SetRoutePrefix

func (s *InfoObj) SetRoutePrefix(val OptString)

SetRoutePrefix sets the value of RoutePrefix.

func (*InfoObj) SetVersion

func (s *InfoObj) SetVersion(val OptString)

SetVersion sets the value of Version.

func (*InfoObj) SetYggHost

func (s *InfoObj) SetYggHost(val string)

SetYggHost sets the value of YggHost.

func (*InfoObj) UnmarshalJSON

func (s *InfoObj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InfoObj) Validate

func (s *InfoObj) Validate() error

type InfoObjContacts

type InfoObjContacts map[string][]string

Public contact map from `info.contacts`, grouped by contact type; omitted when unset.

func (*InfoObjContacts) Decode

func (s *InfoObjContacts) Decode(d *jx.Decoder) error

Decode decodes InfoObjContacts from json.

func (InfoObjContacts) Encode

func (s InfoObjContacts) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (InfoObjContacts) MarshalJSON

func (s InfoObjContacts) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*InfoObjContacts) UnmarshalJSON

func (s *InfoObjContacts) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (InfoObjContacts) Validate

func (s InfoObjContacts) Validate() error

type InfoObjHeaders

type InfoObjHeaders struct {
	CacheControl OptString
	Response     InfoObj
}

InfoObjHeaders wraps InfoObj with response headers.

func (*InfoObjHeaders) GetCacheControl

func (s *InfoObjHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*InfoObjHeaders) GetResponse

func (s *InfoObjHeaders) GetResponse() InfoObj

GetResponse returns the value of Response.

func (*InfoObjHeaders) SetCacheControl

func (s *InfoObjHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*InfoObjHeaders) SetResponse

func (s *InfoObjHeaders) SetResponse(val InfoObj)

SetResponse sets the value of Response.

func (*InfoObjHeaders) Validate

func (s *InfoObjHeaders) Validate() error

type Invoker

type Invoker interface {
	// GetCatalog invokes getCatalog operation.
	//
	// Lightweight cross-key snapshot containing each key, latest version, operational status, source
	// classification, and source availability. Release notes and artifact lists are omitted. The body is
	// served from the metadata cache and does not perform a live storage scan. Clients should treat both
	// `application/json` and `text/plain` variants as the same JSON document. Query parameters are
	// rejected.
	//
	// GET /catalog.json
	GetCatalog(ctx context.Context, params GetCatalogParams) (GetCatalogRes, error)
	// GetComposerP2Package invokes getComposerP2Package operation.
	//
	// Returns Composer v2 p2 metadata for one package name. `packageFile` contains the package segment
	// with `.json` for stable metadata or `~dev.json` for the dev variant, for example `monolog.json` or
	// `monolog~dev.json`. Unknown package names, dev-only misses, and invalid filenames return 404. Query
	// parameters are rejected.
	//
	// GET /p2/{vendor}/{packageFile}
	GetComposerP2Package(ctx context.Context, params GetComposerP2PackageParams) (GetComposerP2PackageRes, error)
	// GetComposerPackageList invokes getComposerPackageList operation.
	//
	// Returns available Composer package names after package-name collision resolution. The optional
	// `filter` supports Composer-style `*` wildcards and is validated before matching so oversized or
	// malformed filters return 400.
	//
	// GET /packages/list.json
	GetComposerPackageList(ctx context.Context, params GetComposerPackageListParams) (GetComposerPackageListRes, error)
	// GetComposerPackages invokes getComposerPackages operation.
	//
	// Returns the Composer repository `packages.json` document. yggvault uses the Composer v2 lazy
	// metadata flow: the root document advertises the p2 `metadata-url`, the complete prebuilt
	// package-name list, and the package list endpoint. Query parameters are rejected.
	//
	// GET /packages.json
	GetComposerPackages(ctx context.Context, params GetComposerPackagesParams) (GetComposerPackagesRes, error)
	// GetFavicon invokes getFavicon operation.
	//
	// Multi-resolution favicon (16/32/48) generated from the node logo. Pre-rendered at startup and served
	// with a strong content ETag. Query parameters are rejected.
	//
	// GET /favicon.ico
	GetFavicon(ctx context.Context, params GetFaviconParams) (GetFaviconRes, error)
	// GetFeed invokes getFeed operation.
	//
	// Atom 1.0 feed built from the cross-key release history. New events come first. The feed includes
	// publish events and archive mutation events; a mutation is a separate entry with an ID that includes
	// the content hash. The number of entries is capped by `web.pages.feed_size`. Query parameters are
	// rejected.
	//
	// GET /feed.xml
	GetFeed(ctx context.Context, params GetFeedParams) (GetFeedRes, error)
	// GetGoLatest invokes getGoLatest operation.
	//
	// Returns the Go proxy `@latest` JSON document for the newest active canonical version in the
	// requested major line. The route is available only when content detection has published a Go overlay
	// for the key and major path.
	//
	// GET /{key}/@latest
	GetGoLatest(ctx context.Context, params GetGoLatestParams) (GetGoLatestRes, error)
	// GetGoVersionList invokes getGoVersionList operation.
	//
	// Returns the Go proxy `@v/list` body: one canonical version per line, newest first. The route is
	// available only for keys and major lines where content detection has published a Go overlay. Query
	// parameters are rejected.
	//
	// GET /{key}/@v/list
	GetGoVersionList(ctx context.Context, params GetGoVersionListParams) (GetGoVersionListRes, error)
	// GetHealth invokes getHealth operation.
	//
	// Returns the live node health snapshot for the listener that handled the request. The response is not
	// cached and includes the entry source (`web` or `yggdrasil`), current runtime status, recent
	// diagnostic count, and the last completed rescan timestamp when available.
	//
	// GET /health
	GetHealth(ctx context.Context) (GetHealthRes, error)
	// GetInfo invokes getInfo operation.
	//
	// Public node identity shared by all routes: name, optional description, optional location, public
	// contacts, clearnet domain, and Yggdrasil host. The same identity data is also published through mesh
	// `info`/`inet` signals. Empty `domain` or `ygg_host` means the matching entry is disabled.
	//
	// GET /info
	GetInfo(ctx context.Context) (GetInfoRes, error)
	// GetKeyFeed invokes getKeyFeed operation.
	//
	// Atom 1.0 feed for release history events of one key. New events come first. The feed includes
	// publish events and archive mutation events; a mutation is a separate entry with an ID that includes
	// the content hash. The number of entries is capped by `web.pages.feed_size`. Query parameters are
	// rejected.
	//
	// GET /{key}/releases.xml
	GetKeyFeed(ctx context.Context, params GetKeyFeedParams) (GetKeyFeedRes, error)
	// GetKeyReleases invokes getKeyReleases operation.
	//
	// Lightweight release snapshot for one key. Each item contains version, time, size, and a link to the
	// detail document; release notes and artifact lists are intentionally omitted. Pagination uses keyset
	// cursors: `?after=<next-from-previous-response>`. The `next` field is omitted on the last page.
	// Clients should treat both `application/json` and `text/plain` variants as the same JSON document.
	//
	// GET /{key}/releases.json
	GetKeyReleases(ctx context.Context, params GetKeyReleasesParams) (GetKeyReleasesRes, error)
	//
	// Square transparent PNG of the node logo at a whitelisted edge size (16, 32, 48, 180, 192, 512).
	// Pre-rendered at startup; other sizes return 404. Query parameters are rejected.
	//
	// GET /logo/{size}
	GetLogo(ctx context.Context, params GetLogoParams) (GetLogoRes, error)
	// GetMetricsCache invokes getMetricsCache operation.
	//
	// JSON snapshot of the metadata/hot-file RAM cache and the storage engine (Pebble gauges, event
	// counters, hot-cache enforcement). Served only when public metrics are enabled for the current entry
	// (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns 404.
	//
	// GET /metrics/cache
	GetMetricsCache(ctx context.Context) (GetMetricsCacheRes, error)
	// GetMetricsCore invokes getMetricsCore operation.
	//
	// JSON snapshot of core HTTP request signals aggregated across operations: request and error totals
	// and request-duration sum/count. Served only when public metrics are enabled for the current entry
	// (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns 404.
	//
	// GET /metrics/core
	GetMetricsCore(ctx context.Context) (GetMetricsCoreRes, error)
	// GetMetricsErrors invokes getMetricsErrors operation.
	//
	// JSON view of the Error Registry: active and dropped diagnostic counts plus the bounded newest-first
	// recent buffer for real-time triage. Served only when public metrics are enabled for the current
	// entry (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns 404.
	//
	// GET /metrics/errors
	GetMetricsErrors(ctx context.Context) (GetMetricsErrorsRes, error)
	// GetMetricsIndex invokes getMetricsIndex operation.
	//
	// Returns a small HTML page linking the enabled metric groups for the current entry. If both public
	// and internal metric groups are disabled on that entry, the route is not advertised and returns 404.
	//
	// GET /metrics
	GetMetricsIndex(ctx context.Context) (GetMetricsIndexRes, error)
	// GetMetricsInternal invokes getMetricsInternal operation.
	//
	// Complete Prometheus-compatible text exposition (version 0.0.4) covering every metric group: core,
	// cache, rescan, errors, and internal runtime signals. Built for scrapers such as VictoriaMetrics and
	// Prometheus. Served only when internal metrics are enabled for the current entry
	// (`metrics.web.internal` or `metrics.ygg.internal`); otherwise the endpoint returns 404.
	//
	// GET /metrics/internal
	GetMetricsInternal(ctx context.Context) (GetMetricsInternalRes, error)
	// GetMetricsRescan invokes getMetricsRescan operation.
	//
	// JSON snapshot of the rescan integrator: cycle, publish, and unavailability totals, mean cycle
	// duration, and the last completed rescan timestamp. Served only when public metrics are enabled for
	// the current entry (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns
	// 404.
	//
	// GET /metrics/rescan
	GetMetricsRescan(ctx context.Context) (GetMetricsRescanRes, error)
	// GetMirrorLatest invokes getMirrorLatest operation.
	//
	// Returns the latest indexed version for a mirrored key as a newline-terminated plain-text body.
	// Unknown keys or keys without indexed versions return 404.
	//
	// GET /{key}/latest
	GetMirrorLatest(ctx context.Context, params GetMirrorLatestParams) (GetMirrorLatestRes, error)
	// GetMirrorList invokes getMirrorList operation.
	//
	// Returns all indexed versions for a mirrored key as a newest-first plain-text list with one version
	// per line. Unknown keys or keys without indexed versions return 404.
	//
	// GET /{key}/list
	GetMirrorList(ctx context.Context, params GetMirrorListParams) (GetMirrorListRes, error)
	// GetMirrorListFull invokes getMirrorListFull operation.
	//
	// Returns all indexed versions for a mirrored key as a newest-first JSON array body. The current
	// handler serves this JSON body as `text/plain`; clients should parse the body content instead of
	// relying on an `application/json` media type.
	//
	// GET /{key}/list/full
	GetMirrorListFull(ctx context.Context, params GetMirrorListFullParams) (GetMirrorListFullRes, error)
	// GetOgKey invokes getOgKey operation.
	//
	// Open Graph banner for one mirror key: key name, latest version, version count, and last publish
	// date. Unknown or empty keys return 404. Generated on demand and cached. Query parameters are
	// rejected.
	//
	// GET /og/{key}
	GetOgKey(ctx context.Context, params GetOgKeyParams) (GetOgKeyRes, error)
	// GetOgNode invokes getOgNode operation.
	//
	// Open Graph banner for the whole node (catalog page): mirror-key and version counts, plus the last
	// publish date. Generated on demand and cached. Query parameters are rejected.
	//
	// GET /og.png
	GetOgNode(ctx context.Context, params GetOgNodeParams) (GetOgNodeRes, error)
	// GetOgVersion invokes getOgVersion operation.
	//
	// Open Graph banner for one version: version string, mirror key, source size, and detected overlays.
	// Unknown key/version pairs return 404. Generated on demand and cached. Query parameters are rejected.
	//
	// GET /og/{key}/{version}
	GetOgVersion(ctx context.Context, params GetOgVersionParams) (GetOgVersionRes, error)
	// GetSitemap invokes getSitemap operation.
	//
	// Sitemap of crawlable HTML pages for the current entry: catalog, mirror-key pages, version pages with
	// path-safe version labels, and the metrics index when public metrics are enabled. Absolute URLs use
	// the entry scheme, host, and nested prefix; the URL count is capped by `web.pages.sitemap_size`.
	// Query parameters are rejected.
	//
	// GET /sitemap.xml
	GetSitemap(ctx context.Context, params GetSitemapParams) (GetSitemapRes, error)
	// GetVersionArtifact invokes getVersionArtifact operation.
	//
	// Go module proxy endpoint. The file extension selects the body: `.info` returns the Go proxy info
	// JSON, `.mod` returns the raw or rewritten `go.mod`, and `.zip` streams the Go module zip from the
	// hot cache. Versions are unescaped before lookup. The route is available only when content detection
	// has published a Go overlay. If import rewriting is required but `overlay.go.rewrite_enabled` is
	// false, the Go artifact is not published. Composer dist and universal `.tar.gz` archives are served
	// from `/<key>/<version>.{zip,tar.gz}` instead.
	//
	// GET /{key}/@v/{versionFile}
	GetVersionArtifact(ctx context.Context, params GetVersionArtifactParams) (GetVersionArtifactRes, error)
	// GetVersionFile invokes getVersionFile operation.
	//
	// Dispatches by file extension. `.json` returns the release detail document, `.zip` returns a
	// deterministic zip artifact, and `.tar.gz` returns a deterministic tar.gz artifact. Archive artifacts
	// are always the raw uploaded source tree (top-dir `<key>-<version>/`) and are host-independent;
	// Go-module import-path rewriting is exposed only on the go-proxy `@v/<version>.zip` endpoint. A bare
	// `<version>` without an extension renders the browser HTML version page. Query parameters are
	// rejected.
	//
	// GET /{key}/{versionFile}
	GetVersionFile(ctx context.Context, params GetVersionFileParams) (GetVersionFileRes, error)
}

Invoker invokes operations described by OpenAPI v3 specification.

type Labeler

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

Labeler is used to allow adding custom attributes to the server request metrics.

func LabelerFromContext

func LabelerFromContext(ctx context.Context) (*Labeler, bool)

LabelerFromContext retrieves the Labeler from the provided context, if present.

If no Labeler was found in the provided context a new, empty Labeler is returned and the second return value is false. In this case it is safe to use the Labeler but any attributes added to it will not be used.

func (*Labeler) Add

func (l *Labeler) Add(attrs ...attribute.KeyValue)

Add attributes to the Labeler.

func (*Labeler) AttributeSet

func (l *Labeler) AttributeSet() attribute.Set

AttributeSet returns the attributes added to the Labeler as an attribute.Set.

type MetricsCacheObj

type MetricsCacheObj struct {
	// In-memory metadata and hot-artifact cache counters.
	Cache MetricsCacheObjCache `json:"cache"`
	// Pebble engine gauges, event counters, and hot-cache enforcement counters.
	Storage MetricsCacheObjStorage `json:"storage"`
}

RAM metadata cache, hot-artifact cache, and storage-engine serving metrics. Ref: #/components/schemas/MetricsCacheObj

func (*MetricsCacheObj) Decode

func (s *MetricsCacheObj) Decode(d *jx.Decoder) error

Decode decodes MetricsCacheObj from json.

func (*MetricsCacheObj) Encode

func (s *MetricsCacheObj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MetricsCacheObj) GetCache

func (s *MetricsCacheObj) GetCache() MetricsCacheObjCache

GetCache returns the value of Cache.

func (*MetricsCacheObj) GetStorage

func (s *MetricsCacheObj) GetStorage() MetricsCacheObjStorage

GetStorage returns the value of Storage.

func (*MetricsCacheObj) MarshalJSON

func (s *MetricsCacheObj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MetricsCacheObj) SetCache

func (s *MetricsCacheObj) SetCache(val MetricsCacheObjCache)

SetCache sets the value of Cache.

func (*MetricsCacheObj) SetStorage

func (s *MetricsCacheObj) SetStorage(val MetricsCacheObjStorage)

SetStorage sets the value of Storage.

func (*MetricsCacheObj) UnmarshalJSON

func (s *MetricsCacheObj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MetricsCacheObjCache

type MetricsCacheObjCache struct {
	Bytes                   int64 `json:"bytes"`
	Entries                 int64 `json:"entries"`
	Evictions               int64 `json:"evictions"`
	Hits                    int64 `json:"hits"`
	Materializations        int64 `json:"materializations"`
	MaterializationsAborted int64 `json:"materializations_aborted"`
	Misses                  int64 `json:"misses"`
	SingleflightShared      int64 `json:"singleflight_shared"`
}

In-memory metadata and hot-artifact cache counters.

func (*MetricsCacheObjCache) Decode

func (s *MetricsCacheObjCache) Decode(d *jx.Decoder) error

Decode decodes MetricsCacheObjCache from json.

func (*MetricsCacheObjCache) Encode

func (s *MetricsCacheObjCache) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MetricsCacheObjCache) GetBytes

func (s *MetricsCacheObjCache) GetBytes() int64

GetBytes returns the value of Bytes.

func (*MetricsCacheObjCache) GetEntries

func (s *MetricsCacheObjCache) GetEntries() int64

GetEntries returns the value of Entries.

func (*MetricsCacheObjCache) GetEvictions

func (s *MetricsCacheObjCache) GetEvictions() int64

GetEvictions returns the value of Evictions.

func (*MetricsCacheObjCache) GetHits

func (s *MetricsCacheObjCache) GetHits() int64

GetHits returns the value of Hits.

func (*MetricsCacheObjCache) GetMaterializations

func (s *MetricsCacheObjCache) GetMaterializations() int64

GetMaterializations returns the value of Materializations.

func (*MetricsCacheObjCache) GetMaterializationsAborted

func (s *MetricsCacheObjCache) GetMaterializationsAborted() int64

GetMaterializationsAborted returns the value of MaterializationsAborted.

func (*MetricsCacheObjCache) GetMisses

func (s *MetricsCacheObjCache) GetMisses() int64

GetMisses returns the value of Misses.

func (*MetricsCacheObjCache) GetSingleflightShared

func (s *MetricsCacheObjCache) GetSingleflightShared() int64

GetSingleflightShared returns the value of SingleflightShared.

func (*MetricsCacheObjCache) MarshalJSON

func (s *MetricsCacheObjCache) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MetricsCacheObjCache) SetBytes

func (s *MetricsCacheObjCache) SetBytes(val int64)

SetBytes sets the value of Bytes.

func (*MetricsCacheObjCache) SetEntries

func (s *MetricsCacheObjCache) SetEntries(val int64)

SetEntries sets the value of Entries.

func (*MetricsCacheObjCache) SetEvictions

func (s *MetricsCacheObjCache) SetEvictions(val int64)

SetEvictions sets the value of Evictions.

func (*MetricsCacheObjCache) SetHits

func (s *MetricsCacheObjCache) SetHits(val int64)

SetHits sets the value of Hits.

func (*MetricsCacheObjCache) SetMaterializations

func (s *MetricsCacheObjCache) SetMaterializations(val int64)

SetMaterializations sets the value of Materializations.

func (*MetricsCacheObjCache) SetMaterializationsAborted

func (s *MetricsCacheObjCache) SetMaterializationsAborted(val int64)

SetMaterializationsAborted sets the value of MaterializationsAborted.

func (*MetricsCacheObjCache) SetMisses

func (s *MetricsCacheObjCache) SetMisses(val int64)

SetMisses sets the value of Misses.

func (*MetricsCacheObjCache) SetSingleflightShared

func (s *MetricsCacheObjCache) SetSingleflightShared(val int64)

SetSingleflightShared sets the value of SingleflightShared.

func (*MetricsCacheObjCache) UnmarshalJSON

func (s *MetricsCacheObjCache) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MetricsCacheObjHeaders

type MetricsCacheObjHeaders struct {
	CacheControl OptString
	Response     MetricsCacheObj
}

MetricsCacheObjHeaders wraps MetricsCacheObj with response headers.

func (*MetricsCacheObjHeaders) GetCacheControl

func (s *MetricsCacheObjHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*MetricsCacheObjHeaders) GetResponse

func (s *MetricsCacheObjHeaders) GetResponse() MetricsCacheObj

GetResponse returns the value of Response.

func (*MetricsCacheObjHeaders) SetCacheControl

func (s *MetricsCacheObjHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*MetricsCacheObjHeaders) SetResponse

func (s *MetricsCacheObjHeaders) SetResponse(val MetricsCacheObj)

SetResponse sets the value of Response.

type MetricsCacheObjStorage

type MetricsCacheObjStorage struct {
	BackgroundErrors            int64 `json:"background_errors"`
	BlockCacheHits              int64 `json:"block_cache_hits"`
	BlockCacheMisses            int64 `json:"block_cache_misses"`
	CompactionDebtBytes         int64 `json:"compaction_debt_bytes"`
	CompactionDurationNanos     int64 `json:"compaction_duration_nanos"`
	CompactionInprogressBytes   int64 `json:"compaction_inprogress_bytes"`
	Compactions                 int64 `json:"compactions"`
	DataCorruptions             int64 `json:"data_corruptions"`
	DiskSlow                    int64 `json:"disk_slow"`
	FlushDurationNanos          int64 `json:"flush_duration_nanos"`
	Flushes                     int64 `json:"flushes"`
	HotEnforceWalkDurationNanos int64 `json:"hot_enforce_walk_duration_nanos"`
	HotEnforceWalks             int64 `json:"hot_enforce_walks"`
	LiveBytes                   int64 `json:"live_bytes"`
	MemtableBytes               int64 `json:"memtable_bytes"`
	ObsoleteBytes               int64 `json:"obsolete_bytes"`
	PossibleAPIMisuse           int64 `json:"possible_api_misuse"`
	WalBytes                    int64 `json:"wal_bytes"`
	WriteStalls                 int64 `json:"write_stalls"`
	ZombieBytes                 int64 `json:"zombie_bytes"`
}

Pebble engine gauges, event counters, and hot-cache enforcement counters.

func (*MetricsCacheObjStorage) Decode

func (s *MetricsCacheObjStorage) Decode(d *jx.Decoder) error

Decode decodes MetricsCacheObjStorage from json.

func (*MetricsCacheObjStorage) Encode

func (s *MetricsCacheObjStorage) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MetricsCacheObjStorage) GetBackgroundErrors

func (s *MetricsCacheObjStorage) GetBackgroundErrors() int64

GetBackgroundErrors returns the value of BackgroundErrors.

func (*MetricsCacheObjStorage) GetBlockCacheHits

func (s *MetricsCacheObjStorage) GetBlockCacheHits() int64

GetBlockCacheHits returns the value of BlockCacheHits.

func (*MetricsCacheObjStorage) GetBlockCacheMisses

func (s *MetricsCacheObjStorage) GetBlockCacheMisses() int64

GetBlockCacheMisses returns the value of BlockCacheMisses.

func (*MetricsCacheObjStorage) GetCompactionDebtBytes

func (s *MetricsCacheObjStorage) GetCompactionDebtBytes() int64

GetCompactionDebtBytes returns the value of CompactionDebtBytes.

func (*MetricsCacheObjStorage) GetCompactionDurationNanos

func (s *MetricsCacheObjStorage) GetCompactionDurationNanos() int64

GetCompactionDurationNanos returns the value of CompactionDurationNanos.

func (*MetricsCacheObjStorage) GetCompactionInprogressBytes

func (s *MetricsCacheObjStorage) GetCompactionInprogressBytes() int64

GetCompactionInprogressBytes returns the value of CompactionInprogressBytes.

func (*MetricsCacheObjStorage) GetCompactions

func (s *MetricsCacheObjStorage) GetCompactions() int64

GetCompactions returns the value of Compactions.

func (*MetricsCacheObjStorage) GetDataCorruptions

func (s *MetricsCacheObjStorage) GetDataCorruptions() int64

GetDataCorruptions returns the value of DataCorruptions.

func (*MetricsCacheObjStorage) GetDiskSlow

func (s *MetricsCacheObjStorage) GetDiskSlow() int64

GetDiskSlow returns the value of DiskSlow.

func (*MetricsCacheObjStorage) GetFlushDurationNanos

func (s *MetricsCacheObjStorage) GetFlushDurationNanos() int64

GetFlushDurationNanos returns the value of FlushDurationNanos.

func (*MetricsCacheObjStorage) GetFlushes

func (s *MetricsCacheObjStorage) GetFlushes() int64

GetFlushes returns the value of Flushes.

func (*MetricsCacheObjStorage) GetHotEnforceWalkDurationNanos

func (s *MetricsCacheObjStorage) GetHotEnforceWalkDurationNanos() int64

GetHotEnforceWalkDurationNanos returns the value of HotEnforceWalkDurationNanos.

func (*MetricsCacheObjStorage) GetHotEnforceWalks

func (s *MetricsCacheObjStorage) GetHotEnforceWalks() int64

GetHotEnforceWalks returns the value of HotEnforceWalks.

func (*MetricsCacheObjStorage) GetLiveBytes

func (s *MetricsCacheObjStorage) GetLiveBytes() int64

GetLiveBytes returns the value of LiveBytes.

func (*MetricsCacheObjStorage) GetMemtableBytes

func (s *MetricsCacheObjStorage) GetMemtableBytes() int64

GetMemtableBytes returns the value of MemtableBytes.

func (*MetricsCacheObjStorage) GetObsoleteBytes

func (s *MetricsCacheObjStorage) GetObsoleteBytes() int64

GetObsoleteBytes returns the value of ObsoleteBytes.

func (*MetricsCacheObjStorage) GetPossibleAPIMisuse

func (s *MetricsCacheObjStorage) GetPossibleAPIMisuse() int64

GetPossibleAPIMisuse returns the value of PossibleAPIMisuse.

func (*MetricsCacheObjStorage) GetWalBytes

func (s *MetricsCacheObjStorage) GetWalBytes() int64

GetWalBytes returns the value of WalBytes.

func (*MetricsCacheObjStorage) GetWriteStalls

func (s *MetricsCacheObjStorage) GetWriteStalls() int64

GetWriteStalls returns the value of WriteStalls.

func (*MetricsCacheObjStorage) GetZombieBytes

func (s *MetricsCacheObjStorage) GetZombieBytes() int64

GetZombieBytes returns the value of ZombieBytes.

func (*MetricsCacheObjStorage) MarshalJSON

func (s *MetricsCacheObjStorage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MetricsCacheObjStorage) SetBackgroundErrors

func (s *MetricsCacheObjStorage) SetBackgroundErrors(val int64)

SetBackgroundErrors sets the value of BackgroundErrors.

func (*MetricsCacheObjStorage) SetBlockCacheHits

func (s *MetricsCacheObjStorage) SetBlockCacheHits(val int64)

SetBlockCacheHits sets the value of BlockCacheHits.

func (*MetricsCacheObjStorage) SetBlockCacheMisses

func (s *MetricsCacheObjStorage) SetBlockCacheMisses(val int64)

SetBlockCacheMisses sets the value of BlockCacheMisses.

func (*MetricsCacheObjStorage) SetCompactionDebtBytes

func (s *MetricsCacheObjStorage) SetCompactionDebtBytes(val int64)

SetCompactionDebtBytes sets the value of CompactionDebtBytes.

func (*MetricsCacheObjStorage) SetCompactionDurationNanos

func (s *MetricsCacheObjStorage) SetCompactionDurationNanos(val int64)

SetCompactionDurationNanos sets the value of CompactionDurationNanos.

func (*MetricsCacheObjStorage) SetCompactionInprogressBytes

func (s *MetricsCacheObjStorage) SetCompactionInprogressBytes(val int64)

SetCompactionInprogressBytes sets the value of CompactionInprogressBytes.

func (*MetricsCacheObjStorage) SetCompactions

func (s *MetricsCacheObjStorage) SetCompactions(val int64)

SetCompactions sets the value of Compactions.

func (*MetricsCacheObjStorage) SetDataCorruptions

func (s *MetricsCacheObjStorage) SetDataCorruptions(val int64)

SetDataCorruptions sets the value of DataCorruptions.

func (*MetricsCacheObjStorage) SetDiskSlow

func (s *MetricsCacheObjStorage) SetDiskSlow(val int64)

SetDiskSlow sets the value of DiskSlow.

func (*MetricsCacheObjStorage) SetFlushDurationNanos

func (s *MetricsCacheObjStorage) SetFlushDurationNanos(val int64)

SetFlushDurationNanos sets the value of FlushDurationNanos.

func (*MetricsCacheObjStorage) SetFlushes

func (s *MetricsCacheObjStorage) SetFlushes(val int64)

SetFlushes sets the value of Flushes.

func (*MetricsCacheObjStorage) SetHotEnforceWalkDurationNanos

func (s *MetricsCacheObjStorage) SetHotEnforceWalkDurationNanos(val int64)

SetHotEnforceWalkDurationNanos sets the value of HotEnforceWalkDurationNanos.

func (*MetricsCacheObjStorage) SetHotEnforceWalks

func (s *MetricsCacheObjStorage) SetHotEnforceWalks(val int64)

SetHotEnforceWalks sets the value of HotEnforceWalks.

func (*MetricsCacheObjStorage) SetLiveBytes

func (s *MetricsCacheObjStorage) SetLiveBytes(val int64)

SetLiveBytes sets the value of LiveBytes.

func (*MetricsCacheObjStorage) SetMemtableBytes

func (s *MetricsCacheObjStorage) SetMemtableBytes(val int64)

SetMemtableBytes sets the value of MemtableBytes.

func (*MetricsCacheObjStorage) SetObsoleteBytes

func (s *MetricsCacheObjStorage) SetObsoleteBytes(val int64)

SetObsoleteBytes sets the value of ObsoleteBytes.

func (*MetricsCacheObjStorage) SetPossibleAPIMisuse

func (s *MetricsCacheObjStorage) SetPossibleAPIMisuse(val int64)

SetPossibleAPIMisuse sets the value of PossibleAPIMisuse.

func (*MetricsCacheObjStorage) SetWalBytes

func (s *MetricsCacheObjStorage) SetWalBytes(val int64)

SetWalBytes sets the value of WalBytes.

func (*MetricsCacheObjStorage) SetWriteStalls

func (s *MetricsCacheObjStorage) SetWriteStalls(val int64)

SetWriteStalls sets the value of WriteStalls.

func (*MetricsCacheObjStorage) SetZombieBytes

func (s *MetricsCacheObjStorage) SetZombieBytes(val int64)

SetZombieBytes sets the value of ZombieBytes.

func (*MetricsCacheObjStorage) UnmarshalJSON

func (s *MetricsCacheObjStorage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MetricsCoreObj

type MetricsCoreObj struct {
	// Total requests that produced an error response.
	ErrorsTotal int64 `json:"errors_total"`
	// Number of observed request durations.
	RequestDurationSecondsCount int64 `json:"request_duration_seconds_count"`
	// Sum of request durations in seconds across all requests.
	RequestDurationSecondsSum float64 `json:"request_duration_seconds_sum"`
	// Total handled requests since process start.
	RequestsTotal int64 `json:"requests_total"`
}

Core HTTP request metrics aggregated across all operations. Ref: #/components/schemas/MetricsCoreObj

func (*MetricsCoreObj) Decode

func (s *MetricsCoreObj) Decode(d *jx.Decoder) error

Decode decodes MetricsCoreObj from json.

func (*MetricsCoreObj) Encode

func (s *MetricsCoreObj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MetricsCoreObj) GetErrorsTotal

func (s *MetricsCoreObj) GetErrorsTotal() int64

GetErrorsTotal returns the value of ErrorsTotal.

func (*MetricsCoreObj) GetRequestDurationSecondsCount

func (s *MetricsCoreObj) GetRequestDurationSecondsCount() int64

GetRequestDurationSecondsCount returns the value of RequestDurationSecondsCount.

func (*MetricsCoreObj) GetRequestDurationSecondsSum

func (s *MetricsCoreObj) GetRequestDurationSecondsSum() float64

GetRequestDurationSecondsSum returns the value of RequestDurationSecondsSum.

func (*MetricsCoreObj) GetRequestsTotal

func (s *MetricsCoreObj) GetRequestsTotal() int64

GetRequestsTotal returns the value of RequestsTotal.

func (*MetricsCoreObj) MarshalJSON

func (s *MetricsCoreObj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MetricsCoreObj) SetErrorsTotal

func (s *MetricsCoreObj) SetErrorsTotal(val int64)

SetErrorsTotal sets the value of ErrorsTotal.

func (*MetricsCoreObj) SetRequestDurationSecondsCount

func (s *MetricsCoreObj) SetRequestDurationSecondsCount(val int64)

SetRequestDurationSecondsCount sets the value of RequestDurationSecondsCount.

func (*MetricsCoreObj) SetRequestDurationSecondsSum

func (s *MetricsCoreObj) SetRequestDurationSecondsSum(val float64)

SetRequestDurationSecondsSum sets the value of RequestDurationSecondsSum.

func (*MetricsCoreObj) SetRequestsTotal

func (s *MetricsCoreObj) SetRequestsTotal(val int64)

SetRequestsTotal sets the value of RequestsTotal.

func (*MetricsCoreObj) UnmarshalJSON

func (s *MetricsCoreObj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*MetricsCoreObj) Validate

func (s *MetricsCoreObj) Validate() error

type MetricsCoreObjHeaders

type MetricsCoreObjHeaders struct {
	CacheControl OptString
	Response     MetricsCoreObj
}

MetricsCoreObjHeaders wraps MetricsCoreObj with response headers.

func (*MetricsCoreObjHeaders) GetCacheControl

func (s *MetricsCoreObjHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*MetricsCoreObjHeaders) GetResponse

func (s *MetricsCoreObjHeaders) GetResponse() MetricsCoreObj

GetResponse returns the value of Response.

func (*MetricsCoreObjHeaders) SetCacheControl

func (s *MetricsCoreObjHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*MetricsCoreObjHeaders) SetResponse

func (s *MetricsCoreObjHeaders) SetResponse(val MetricsCoreObj)

SetResponse sets the value of Response.

func (*MetricsCoreObjHeaders) Validate

func (s *MetricsCoreObjHeaders) Validate() error

type MetricsDiagnosticObj

type MetricsDiagnosticObj struct {
	// Stable diagnostic code from the Error Registry.
	Code string `json:"code"`
	// Number of times this diagnostic was observed since first seen.
	Count int64 `json:"count"`
	// Timestamp the diagnostic was first observed; omitted when unset.
	FirstSeen OptDateTime `json:"first_seen"`
	// Operational impact this diagnostic contributes to node health.
	Impact MetricsDiagnosticObjImpact `json:"impact"`
	// Affected mirror key; omitted for global diagnostics.
	Key OptString `json:"key"`
	// Timestamp the diagnostic was last observed.
	LastSeen time.Time `json:"last_seen"`
	// Human-readable diagnostic message; omitted when unset.
	Message OptString `json:"message"`
	// Stable reason string classifying the diagnostic.
	Reason string `json:"reason"`
	// Diagnostic scope such as `global` or a per-key scope.
	Scope string `json:"scope"`
	// Affected version; omitted when the diagnostic is not version-scoped.
	Version OptString `json:"version"`
}

Ref: #/components/schemas/MetricsDiagnosticObj

func (*MetricsDiagnosticObj) Decode

func (s *MetricsDiagnosticObj) Decode(d *jx.Decoder) error

Decode decodes MetricsDiagnosticObj from json.

func (*MetricsDiagnosticObj) Encode

func (s *MetricsDiagnosticObj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MetricsDiagnosticObj) GetCode

func (s *MetricsDiagnosticObj) GetCode() string

GetCode returns the value of Code.

func (*MetricsDiagnosticObj) GetCount

func (s *MetricsDiagnosticObj) GetCount() int64

GetCount returns the value of Count.

func (*MetricsDiagnosticObj) GetFirstSeen

func (s *MetricsDiagnosticObj) GetFirstSeen() OptDateTime

GetFirstSeen returns the value of FirstSeen.

func (*MetricsDiagnosticObj) GetImpact

GetImpact returns the value of Impact.

func (*MetricsDiagnosticObj) GetKey

func (s *MetricsDiagnosticObj) GetKey() OptString

GetKey returns the value of Key.

func (*MetricsDiagnosticObj) GetLastSeen

func (s *MetricsDiagnosticObj) GetLastSeen() time.Time

GetLastSeen returns the value of LastSeen.

func (*MetricsDiagnosticObj) GetMessage

func (s *MetricsDiagnosticObj) GetMessage() OptString

GetMessage returns the value of Message.

func (*MetricsDiagnosticObj) GetReason

func (s *MetricsDiagnosticObj) GetReason() string

GetReason returns the value of Reason.

func (*MetricsDiagnosticObj) GetScope

func (s *MetricsDiagnosticObj) GetScope() string

GetScope returns the value of Scope.

func (*MetricsDiagnosticObj) GetVersion

func (s *MetricsDiagnosticObj) GetVersion() OptString

GetVersion returns the value of Version.

func (*MetricsDiagnosticObj) MarshalJSON

func (s *MetricsDiagnosticObj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MetricsDiagnosticObj) SetCode

func (s *MetricsDiagnosticObj) SetCode(val string)

SetCode sets the value of Code.

func (*MetricsDiagnosticObj) SetCount

func (s *MetricsDiagnosticObj) SetCount(val int64)

SetCount sets the value of Count.

func (*MetricsDiagnosticObj) SetFirstSeen

func (s *MetricsDiagnosticObj) SetFirstSeen(val OptDateTime)

SetFirstSeen sets the value of FirstSeen.

func (*MetricsDiagnosticObj) SetImpact

SetImpact sets the value of Impact.

func (*MetricsDiagnosticObj) SetKey

func (s *MetricsDiagnosticObj) SetKey(val OptString)

SetKey sets the value of Key.

func (*MetricsDiagnosticObj) SetLastSeen

func (s *MetricsDiagnosticObj) SetLastSeen(val time.Time)

SetLastSeen sets the value of LastSeen.

func (*MetricsDiagnosticObj) SetMessage

func (s *MetricsDiagnosticObj) SetMessage(val OptString)

SetMessage sets the value of Message.

func (*MetricsDiagnosticObj) SetReason

func (s *MetricsDiagnosticObj) SetReason(val string)

SetReason sets the value of Reason.

func (*MetricsDiagnosticObj) SetScope

func (s *MetricsDiagnosticObj) SetScope(val string)

SetScope sets the value of Scope.

func (*MetricsDiagnosticObj) SetVersion

func (s *MetricsDiagnosticObj) SetVersion(val OptString)

SetVersion sets the value of Version.

func (*MetricsDiagnosticObj) UnmarshalJSON

func (s *MetricsDiagnosticObj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*MetricsDiagnosticObj) Validate

func (s *MetricsDiagnosticObj) Validate() error

type MetricsDiagnosticObjImpact

type MetricsDiagnosticObjImpact string

Operational impact this diagnostic contributes to node health.

const (
	MetricsDiagnosticObjImpactOk       MetricsDiagnosticObjImpact = "ok"
	MetricsDiagnosticObjImpactDegraded MetricsDiagnosticObjImpact = "degraded"
	MetricsDiagnosticObjImpactError    MetricsDiagnosticObjImpact = "error"
)

func (MetricsDiagnosticObjImpact) AllValues

AllValues returns all MetricsDiagnosticObjImpact values.

func (*MetricsDiagnosticObjImpact) Decode

Decode decodes MetricsDiagnosticObjImpact from json.

func (MetricsDiagnosticObjImpact) Encode

func (s MetricsDiagnosticObjImpact) Encode(e *jx.Encoder)

Encode encodes MetricsDiagnosticObjImpact as json.

func (MetricsDiagnosticObjImpact) MarshalJSON

func (s MetricsDiagnosticObjImpact) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (MetricsDiagnosticObjImpact) MarshalText

func (s MetricsDiagnosticObjImpact) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*MetricsDiagnosticObjImpact) UnmarshalJSON

func (s *MetricsDiagnosticObjImpact) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*MetricsDiagnosticObjImpact) UnmarshalText

func (s *MetricsDiagnosticObjImpact) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (MetricsDiagnosticObjImpact) Validate

func (s MetricsDiagnosticObjImpact) Validate() error

type MetricsErrorsObj

type MetricsErrorsObj struct {
	// Number of recent diagnostics currently tracked.
	Active int64 `json:"active"`
	// Diagnostics dropped after the registry reached capacity.
	Dropped int64 `json:"dropped"`
	// Newest diagnostics first, capped by `metrics.errors.recent_buffer`.
	Recent []MetricsDiagnosticObj `json:"recent"`
}

Live Error Registry view. Ref: #/components/schemas/MetricsErrorsObj

func (*MetricsErrorsObj) Decode

func (s *MetricsErrorsObj) Decode(d *jx.Decoder) error

Decode decodes MetricsErrorsObj from json.

func (*MetricsErrorsObj) Encode

func (s *MetricsErrorsObj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MetricsErrorsObj) GetActive

func (s *MetricsErrorsObj) GetActive() int64

GetActive returns the value of Active.

func (*MetricsErrorsObj) GetDropped

func (s *MetricsErrorsObj) GetDropped() int64

GetDropped returns the value of Dropped.

func (*MetricsErrorsObj) GetRecent

func (s *MetricsErrorsObj) GetRecent() []MetricsDiagnosticObj

GetRecent returns the value of Recent.

func (*MetricsErrorsObj) MarshalJSON

func (s *MetricsErrorsObj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MetricsErrorsObj) SetActive

func (s *MetricsErrorsObj) SetActive(val int64)

SetActive sets the value of Active.

func (*MetricsErrorsObj) SetDropped

func (s *MetricsErrorsObj) SetDropped(val int64)

SetDropped sets the value of Dropped.

func (*MetricsErrorsObj) SetRecent

func (s *MetricsErrorsObj) SetRecent(val []MetricsDiagnosticObj)

SetRecent sets the value of Recent.

func (*MetricsErrorsObj) UnmarshalJSON

func (s *MetricsErrorsObj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*MetricsErrorsObj) Validate

func (s *MetricsErrorsObj) Validate() error

type MetricsErrorsObjHeaders

type MetricsErrorsObjHeaders struct {
	CacheControl OptString
	Response     MetricsErrorsObj
}

MetricsErrorsObjHeaders wraps MetricsErrorsObj with response headers.

func (*MetricsErrorsObjHeaders) GetCacheControl

func (s *MetricsErrorsObjHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*MetricsErrorsObjHeaders) GetResponse

func (s *MetricsErrorsObjHeaders) GetResponse() MetricsErrorsObj

GetResponse returns the value of Response.

func (*MetricsErrorsObjHeaders) SetCacheControl

func (s *MetricsErrorsObjHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*MetricsErrorsObjHeaders) SetResponse

func (s *MetricsErrorsObjHeaders) SetResponse(val MetricsErrorsObj)

SetResponse sets the value of Response.

func (*MetricsErrorsObjHeaders) Validate

func (s *MetricsErrorsObjHeaders) Validate() error

type MetricsRescanObj

type MetricsRescanObj struct {
	// Mean rescan cycle wall-clock duration in seconds; 0 before the first cycle.
	CycleDurationSecondsAvg float64 `json:"cycle_duration_seconds_avg"`
	// Completed rescan cycles since process start.
	CyclesTotal int64 `json:"cycles_total"`
	// Key-unavailable events observed across all rescan cycles.
	KeysUnavailableTotal int64 `json:"keys_unavailable_total"`
	// Timestamp of the last completed rescan cycle; omitted before the first completed cycle.
	LastRescan OptDateTime `json:"last_rescan"`
	// Versions published or changed across all rescan cycles.
	VersionsPublishedTotal int64 `json:"versions_published_total"`
}

Rescan-cycle and upstream-ingest metrics. Ref: #/components/schemas/MetricsRescanObj

func (*MetricsRescanObj) Decode

func (s *MetricsRescanObj) Decode(d *jx.Decoder) error

Decode decodes MetricsRescanObj from json.

func (*MetricsRescanObj) Encode

func (s *MetricsRescanObj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MetricsRescanObj) GetCycleDurationSecondsAvg

func (s *MetricsRescanObj) GetCycleDurationSecondsAvg() float64

GetCycleDurationSecondsAvg returns the value of CycleDurationSecondsAvg.

func (*MetricsRescanObj) GetCyclesTotal

func (s *MetricsRescanObj) GetCyclesTotal() int64

GetCyclesTotal returns the value of CyclesTotal.

func (*MetricsRescanObj) GetKeysUnavailableTotal

func (s *MetricsRescanObj) GetKeysUnavailableTotal() int64

GetKeysUnavailableTotal returns the value of KeysUnavailableTotal.

func (*MetricsRescanObj) GetLastRescan

func (s *MetricsRescanObj) GetLastRescan() OptDateTime

GetLastRescan returns the value of LastRescan.

func (*MetricsRescanObj) GetVersionsPublishedTotal

func (s *MetricsRescanObj) GetVersionsPublishedTotal() int64

GetVersionsPublishedTotal returns the value of VersionsPublishedTotal.

func (*MetricsRescanObj) MarshalJSON

func (s *MetricsRescanObj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MetricsRescanObj) SetCycleDurationSecondsAvg

func (s *MetricsRescanObj) SetCycleDurationSecondsAvg(val float64)

SetCycleDurationSecondsAvg sets the value of CycleDurationSecondsAvg.

func (*MetricsRescanObj) SetCyclesTotal

func (s *MetricsRescanObj) SetCyclesTotal(val int64)

SetCyclesTotal sets the value of CyclesTotal.

func (*MetricsRescanObj) SetKeysUnavailableTotal

func (s *MetricsRescanObj) SetKeysUnavailableTotal(val int64)

SetKeysUnavailableTotal sets the value of KeysUnavailableTotal.

func (*MetricsRescanObj) SetLastRescan

func (s *MetricsRescanObj) SetLastRescan(val OptDateTime)

SetLastRescan sets the value of LastRescan.

func (*MetricsRescanObj) SetVersionsPublishedTotal

func (s *MetricsRescanObj) SetVersionsPublishedTotal(val int64)

SetVersionsPublishedTotal sets the value of VersionsPublishedTotal.

func (*MetricsRescanObj) UnmarshalJSON

func (s *MetricsRescanObj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*MetricsRescanObj) Validate

func (s *MetricsRescanObj) Validate() error

type MetricsRescanObjHeaders

type MetricsRescanObjHeaders struct {
	CacheControl OptString
	Response     MetricsRescanObj
}

MetricsRescanObjHeaders wraps MetricsRescanObj with response headers.

func (*MetricsRescanObjHeaders) GetCacheControl

func (s *MetricsRescanObjHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*MetricsRescanObjHeaders) GetResponse

func (s *MetricsRescanObjHeaders) GetResponse() MetricsRescanObj

GetResponse returns the value of Response.

func (*MetricsRescanObjHeaders) SetCacheControl

func (s *MetricsRescanObjHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*MetricsRescanObjHeaders) SetResponse

func (s *MetricsRescanObjHeaders) SetResponse(val MetricsRescanObj)

SetResponse sets the value of Response.

func (*MetricsRescanObjHeaders) Validate

func (s *MetricsRescanObjHeaders) Validate() error

type Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

type NotModifiedRespObj

type NotModifiedRespObj struct{}

Ref: #/components/responses/NotModifiedRespObj

type OperationName

type OperationName = string

OperationName is the ogen operation name

const (
	GetCatalogOperation             OperationName = "GetCatalog"
	GetComposerP2PackageOperation   OperationName = "GetComposerP2Package"
	GetComposerPackageListOperation OperationName = "GetComposerPackageList"
	GetComposerPackagesOperation    OperationName = "GetComposerPackages"
	GetFaviconOperation             OperationName = "GetFavicon"
	GetFeedOperation                OperationName = "GetFeed"
	GetGoLatestOperation            OperationName = "GetGoLatest"
	GetGoVersionListOperation       OperationName = "GetGoVersionList"
	GetHealthOperation              OperationName = "GetHealth"
	GetInfoOperation                OperationName = "GetInfo"
	GetKeyFeedOperation             OperationName = "GetKeyFeed"
	GetKeyReleasesOperation         OperationName = "GetKeyReleases"
	GetLogoOperation                OperationName = "GetLogo"
	GetMetricsCacheOperation        OperationName = "GetMetricsCache"
	GetMetricsCoreOperation         OperationName = "GetMetricsCore"
	GetMetricsErrorsOperation       OperationName = "GetMetricsErrors"
	GetMetricsIndexOperation        OperationName = "GetMetricsIndex"
	GetMetricsInternalOperation     OperationName = "GetMetricsInternal"
	GetMetricsRescanOperation       OperationName = "GetMetricsRescan"
	GetMirrorLatestOperation        OperationName = "GetMirrorLatest"
	GetMirrorListOperation          OperationName = "GetMirrorList"
	GetMirrorListFullOperation      OperationName = "GetMirrorListFull"
	GetOgKeyOperation               OperationName = "GetOgKey"
	GetOgNodeOperation              OperationName = "GetOgNode"
	GetOgVersionOperation           OperationName = "GetOgVersion"
	GetSitemapOperation             OperationName = "GetSitemap"
	GetVersionArtifactOperation     OperationName = "GetVersionArtifact"
	GetVersionFileOperation         OperationName = "GetVersionFile"
)

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCatalogObjKeysItemClassification

type OptCatalogObjKeysItemClassification struct {
	Value CatalogObjKeysItemClassification
	Set   bool
}

OptCatalogObjKeysItemClassification is optional CatalogObjKeysItemClassification.

func NewOptCatalogObjKeysItemClassification

func NewOptCatalogObjKeysItemClassification(v CatalogObjKeysItemClassification) OptCatalogObjKeysItemClassification

NewOptCatalogObjKeysItemClassification returns new OptCatalogObjKeysItemClassification with value set to v.

func (*OptCatalogObjKeysItemClassification) Decode

Decode decodes CatalogObjKeysItemClassification from json.

func (OptCatalogObjKeysItemClassification) Encode

Encode encodes CatalogObjKeysItemClassification as json.

func (OptCatalogObjKeysItemClassification) Get

Get returns value and boolean that denotes whether value was set.

func (OptCatalogObjKeysItemClassification) IsSet

IsSet returns true if OptCatalogObjKeysItemClassification was set.

func (OptCatalogObjKeysItemClassification) MarshalJSON

func (s OptCatalogObjKeysItemClassification) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCatalogObjKeysItemClassification) Or

Or returns value if set, or given parameter if does not.

func (*OptCatalogObjKeysItemClassification) Reset

Reset unsets value.

func (*OptCatalogObjKeysItemClassification) SetTo

SetTo sets value to v.

func (*OptCatalogObjKeysItemClassification) UnmarshalJSON

func (s *OptCatalogObjKeysItemClassification) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptComposerPackageVersionObjAutoload

type OptComposerPackageVersionObjAutoload struct {
	Value ComposerPackageVersionObjAutoload
	Set   bool
}

OptComposerPackageVersionObjAutoload is optional ComposerPackageVersionObjAutoload.

func NewOptComposerPackageVersionObjAutoload

func NewOptComposerPackageVersionObjAutoload(v ComposerPackageVersionObjAutoload) OptComposerPackageVersionObjAutoload

NewOptComposerPackageVersionObjAutoload returns new OptComposerPackageVersionObjAutoload with value set to v.

func (*OptComposerPackageVersionObjAutoload) Decode

Decode decodes ComposerPackageVersionObjAutoload from json.

func (OptComposerPackageVersionObjAutoload) Encode

Encode encodes ComposerPackageVersionObjAutoload as json.

func (OptComposerPackageVersionObjAutoload) Get

Get returns value and boolean that denotes whether value was set.

func (OptComposerPackageVersionObjAutoload) IsSet

IsSet returns true if OptComposerPackageVersionObjAutoload was set.

func (OptComposerPackageVersionObjAutoload) MarshalJSON

func (s OptComposerPackageVersionObjAutoload) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptComposerPackageVersionObjAutoload) Or

Or returns value if set, or given parameter if does not.

func (*OptComposerPackageVersionObjAutoload) Reset

Reset unsets value.

func (*OptComposerPackageVersionObjAutoload) SetTo

SetTo sets value to v.

func (*OptComposerPackageVersionObjAutoload) UnmarshalJSON

func (s *OptComposerPackageVersionObjAutoload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptComposerPackageVersionObjRequire

type OptComposerPackageVersionObjRequire struct {
	Value ComposerPackageVersionObjRequire
	Set   bool
}

OptComposerPackageVersionObjRequire is optional ComposerPackageVersionObjRequire.

func NewOptComposerPackageVersionObjRequire

func NewOptComposerPackageVersionObjRequire(v ComposerPackageVersionObjRequire) OptComposerPackageVersionObjRequire

NewOptComposerPackageVersionObjRequire returns new OptComposerPackageVersionObjRequire with value set to v.

func (*OptComposerPackageVersionObjRequire) Decode

Decode decodes ComposerPackageVersionObjRequire from json.

func (OptComposerPackageVersionObjRequire) Encode

Encode encodes ComposerPackageVersionObjRequire as json.

func (OptComposerPackageVersionObjRequire) Get

Get returns value and boolean that denotes whether value was set.

func (OptComposerPackageVersionObjRequire) IsSet

IsSet returns true if OptComposerPackageVersionObjRequire was set.

func (OptComposerPackageVersionObjRequire) MarshalJSON

func (s OptComposerPackageVersionObjRequire) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptComposerPackageVersionObjRequire) Or

Or returns value if set, or given parameter if does not.

func (*OptComposerPackageVersionObjRequire) Reset

Reset unsets value.

func (*OptComposerPackageVersionObjRequire) SetTo

SetTo sets value to v.

func (*OptComposerPackageVersionObjRequire) UnmarshalJSON

func (s *OptComposerPackageVersionObjRequire) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptComposerPackageVersionObjRequireMinusDev

type OptComposerPackageVersionObjRequireMinusDev struct {
	Value ComposerPackageVersionObjRequireMinusDev
	Set   bool
}

OptComposerPackageVersionObjRequireMinusDev is optional ComposerPackageVersionObjRequireMinusDev.

func NewOptComposerPackageVersionObjRequireMinusDev

func NewOptComposerPackageVersionObjRequireMinusDev(v ComposerPackageVersionObjRequireMinusDev) OptComposerPackageVersionObjRequireMinusDev

NewOptComposerPackageVersionObjRequireMinusDev returns new OptComposerPackageVersionObjRequireMinusDev with value set to v.

func (*OptComposerPackageVersionObjRequireMinusDev) Decode

Decode decodes ComposerPackageVersionObjRequireMinusDev from json.

func (OptComposerPackageVersionObjRequireMinusDev) Encode

Encode encodes ComposerPackageVersionObjRequireMinusDev as json.

func (OptComposerPackageVersionObjRequireMinusDev) Get

Get returns value and boolean that denotes whether value was set.

func (OptComposerPackageVersionObjRequireMinusDev) IsSet

IsSet returns true if OptComposerPackageVersionObjRequireMinusDev was set.

func (OptComposerPackageVersionObjRequireMinusDev) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptComposerPackageVersionObjRequireMinusDev) Or

Or returns value if set, or given parameter if does not.

func (*OptComposerPackageVersionObjRequireMinusDev) Reset

Reset unsets value.

func (*OptComposerPackageVersionObjRequireMinusDev) SetTo

SetTo sets value to v.

func (*OptComposerPackageVersionObjRequireMinusDev) UnmarshalJSON

func (s *OptComposerPackageVersionObjRequireMinusDev) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptComposerPackageVersionObjSource

type OptComposerPackageVersionObjSource struct {
	Value ComposerPackageVersionObjSource
	Set   bool
}

OptComposerPackageVersionObjSource is optional ComposerPackageVersionObjSource.

func NewOptComposerPackageVersionObjSource

func NewOptComposerPackageVersionObjSource(v ComposerPackageVersionObjSource) OptComposerPackageVersionObjSource

NewOptComposerPackageVersionObjSource returns new OptComposerPackageVersionObjSource with value set to v.

func (*OptComposerPackageVersionObjSource) Decode

Decode decodes ComposerPackageVersionObjSource from json.

func (OptComposerPackageVersionObjSource) Encode

Encode encodes ComposerPackageVersionObjSource as json.

func (OptComposerPackageVersionObjSource) Get

Get returns value and boolean that denotes whether value was set.

func (OptComposerPackageVersionObjSource) IsSet

IsSet returns true if OptComposerPackageVersionObjSource was set.

func (OptComposerPackageVersionObjSource) MarshalJSON

func (s OptComposerPackageVersionObjSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptComposerPackageVersionObjSource) Or

Or returns value if set, or given parameter if does not.

func (*OptComposerPackageVersionObjSource) Reset

Reset unsets value.

func (*OptComposerPackageVersionObjSource) SetTo

SetTo sets value to v.

func (*OptComposerPackageVersionObjSource) UnmarshalJSON

func (s *OptComposerPackageVersionObjSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptComposerPackagesObjPackages

type OptComposerPackagesObjPackages struct {
	Value ComposerPackagesObjPackages
	Set   bool
}

OptComposerPackagesObjPackages is optional ComposerPackagesObjPackages.

func NewOptComposerPackagesObjPackages

func NewOptComposerPackagesObjPackages(v ComposerPackagesObjPackages) OptComposerPackagesObjPackages

NewOptComposerPackagesObjPackages returns new OptComposerPackagesObjPackages with value set to v.

func (*OptComposerPackagesObjPackages) Decode

Decode decodes ComposerPackagesObjPackages from json.

func (OptComposerPackagesObjPackages) Encode

Encode encodes ComposerPackagesObjPackages as json.

func (OptComposerPackagesObjPackages) Get

Get returns value and boolean that denotes whether value was set.

func (OptComposerPackagesObjPackages) IsSet

IsSet returns true if OptComposerPackagesObjPackages was set.

func (OptComposerPackagesObjPackages) MarshalJSON

func (s OptComposerPackagesObjPackages) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptComposerPackagesObjPackages) Or

Or returns value if set, or given parameter if does not.

func (*OptComposerPackagesObjPackages) Reset

func (o *OptComposerPackagesObjPackages) Reset()

Reset unsets value.

func (*OptComposerPackagesObjPackages) SetTo

SetTo sets value to v.

func (*OptComposerPackagesObjPackages) UnmarshalJSON

func (s *OptComposerPackagesObjPackages) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDateTime

type OptDateTime struct {
	Value time.Time
	Set   bool
}

OptDateTime is optional time.Time.

func NewOptDateTime

func NewOptDateTime(v time.Time) OptDateTime

NewOptDateTime returns new OptDateTime with value set to v.

func (*OptDateTime) Decode

func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptDateTime) Encode

func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

func (OptDateTime) Get

func (o OptDateTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDateTime) IsSet

func (o OptDateTime) IsSet() bool

IsSet returns true if OptDateTime was set.

func (OptDateTime) MarshalJSON

func (s OptDateTime) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDateTime) Or

func (o OptDateTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptDateTime) Reset

func (o *OptDateTime) Reset()

Reset unsets value.

func (*OptDateTime) SetTo

func (o *OptDateTime) SetTo(v time.Time)

SetTo sets value to v.

func (*OptDateTime) UnmarshalJSON

func (s *OptDateTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInfoObjContacts

type OptInfoObjContacts struct {
	Value InfoObjContacts
	Set   bool
}

OptInfoObjContacts is optional InfoObjContacts.

func NewOptInfoObjContacts

func NewOptInfoObjContacts(v InfoObjContacts) OptInfoObjContacts

NewOptInfoObjContacts returns new OptInfoObjContacts with value set to v.

func (*OptInfoObjContacts) Decode

func (o *OptInfoObjContacts) Decode(d *jx.Decoder) error

Decode decodes InfoObjContacts from json.

func (OptInfoObjContacts) Encode

func (o OptInfoObjContacts) Encode(e *jx.Encoder)

Encode encodes InfoObjContacts as json.

func (OptInfoObjContacts) Get

func (o OptInfoObjContacts) Get() (v InfoObjContacts, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInfoObjContacts) IsSet

func (o OptInfoObjContacts) IsSet() bool

IsSet returns true if OptInfoObjContacts was set.

func (OptInfoObjContacts) MarshalJSON

func (s OptInfoObjContacts) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInfoObjContacts) Or

Or returns value if set, or given parameter if does not.

func (*OptInfoObjContacts) Reset

func (o *OptInfoObjContacts) Reset()

Reset unsets value.

func (*OptInfoObjContacts) SetTo

func (o *OptInfoObjContacts) SetTo(v InfoObjContacts)

SetTo sets value to v.

func (*OptInfoObjContacts) UnmarshalJSON

func (s *OptInfoObjContacts) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt32

type OptInt32 struct {
	Value int32
	Set   bool
}

OptInt32 is optional int32.

func NewOptInt32

func NewOptInt32(v int32) OptInt32

NewOptInt32 returns new OptInt32 with value set to v.

func (*OptInt32) Decode

func (o *OptInt32) Decode(d *jx.Decoder) error

Decode decodes int32 from json.

func (OptInt32) Encode

func (o OptInt32) Encode(e *jx.Encoder)

Encode encodes int32 as json.

func (OptInt32) Get

func (o OptInt32) Get() (v int32, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt32) IsSet

func (o OptInt32) IsSet() bool

IsSet returns true if OptInt32 was set.

func (OptInt32) MarshalJSON

func (s OptInt32) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt32) Or

func (o OptInt32) Or(d int32) int32

Or returns value if set, or given parameter if does not.

func (*OptInt32) Reset

func (o *OptInt32) Reset()

Reset unsets value.

func (*OptInt32) SetTo

func (o *OptInt32) SetTo(v int32)

SetTo sets value to v.

func (*OptInt32) UnmarshalJSON

func (s *OptInt32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt64

type OptInt64 struct {
	Value int64
	Set   bool
}

OptInt64 is optional int64.

func NewOptInt64

func NewOptInt64(v int64) OptInt64

NewOptInt64 returns new OptInt64 with value set to v.

func (*OptInt64) Decode

func (o *OptInt64) Decode(d *jx.Decoder) error

Decode decodes int64 from json.

func (OptInt64) Encode

func (o OptInt64) Encode(e *jx.Encoder)

Encode encodes int64 as json.

func (OptInt64) Get

func (o OptInt64) Get() (v int64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt64) IsSet

func (o OptInt64) IsSet() bool

IsSet returns true if OptInt64 was set.

func (OptInt64) MarshalJSON

func (s OptInt64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt64) Or

func (o OptInt64) Or(d int64) int64

Or returns value if set, or given parameter if does not.

func (*OptInt64) Reset

func (o *OptInt64) Reset()

Reset unsets value.

func (*OptInt64) SetTo

func (o *OptInt64) SetTo(v int64)

SetTo sets value to v.

func (*OptInt64) UnmarshalJSON

func (s *OptInt64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

type Option interface {
	ServerOption
	ClientOption
}

Option is config option.

func WithAttributes

func WithAttributes(attributes ...attribute.KeyValue) Option

WithAttributes specifies default otel attributes.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider specifies a meter provider to use for creating a meter.

If none is specified, the otel.GetMeterProvider() is used.

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) Option

WithTracerProvider specifies a tracer provider to use for creating a tracer.

If none is specified, the global provider is used.

type PartialContentRespObj

type PartialContentRespObj struct {
	Data io.Reader
}

func (PartialContentRespObj) Read

func (s PartialContentRespObj) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type PartialContentRespObjHeaders

type PartialContentRespObjHeaders struct {
	AcceptRanges       OptString
	CacheControl       OptString
	ContentDisposition OptString
	ContentLength      OptInt64
	ContentRange       OptString
	ETag               OptString
	LastModified       OptString
	Response           PartialContentRespObj
}

PartialContentRespObjHeaders wraps PartialContentRespObj with response headers.

func (*PartialContentRespObjHeaders) GetAcceptRanges

func (s *PartialContentRespObjHeaders) GetAcceptRanges() OptString

GetAcceptRanges returns the value of AcceptRanges.

func (*PartialContentRespObjHeaders) GetCacheControl

func (s *PartialContentRespObjHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*PartialContentRespObjHeaders) GetContentDisposition added in v0.3.0

func (s *PartialContentRespObjHeaders) GetContentDisposition() OptString

GetContentDisposition returns the value of ContentDisposition.

func (*PartialContentRespObjHeaders) GetContentLength

func (s *PartialContentRespObjHeaders) GetContentLength() OptInt64

GetContentLength returns the value of ContentLength.

func (*PartialContentRespObjHeaders) GetContentRange

func (s *PartialContentRespObjHeaders) GetContentRange() OptString

GetContentRange returns the value of ContentRange.

func (*PartialContentRespObjHeaders) GetETag

GetETag returns the value of ETag.

func (*PartialContentRespObjHeaders) GetLastModified

func (s *PartialContentRespObjHeaders) GetLastModified() OptString

GetLastModified returns the value of LastModified.

func (*PartialContentRespObjHeaders) GetResponse

GetResponse returns the value of Response.

func (*PartialContentRespObjHeaders) SetAcceptRanges

func (s *PartialContentRespObjHeaders) SetAcceptRanges(val OptString)

SetAcceptRanges sets the value of AcceptRanges.

func (*PartialContentRespObjHeaders) SetCacheControl

func (s *PartialContentRespObjHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*PartialContentRespObjHeaders) SetContentDisposition added in v0.3.0

func (s *PartialContentRespObjHeaders) SetContentDisposition(val OptString)

SetContentDisposition sets the value of ContentDisposition.

func (*PartialContentRespObjHeaders) SetContentLength

func (s *PartialContentRespObjHeaders) SetContentLength(val OptInt64)

SetContentLength sets the value of ContentLength.

func (*PartialContentRespObjHeaders) SetContentRange

func (s *PartialContentRespObjHeaders) SetContentRange(val OptString)

SetContentRange sets the value of ContentRange.

func (*PartialContentRespObjHeaders) SetETag

func (s *PartialContentRespObjHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*PartialContentRespObjHeaders) SetLastModified

func (s *PartialContentRespObjHeaders) SetLastModified(val OptString)

SetLastModified sets the value of LastModified.

func (*PartialContentRespObjHeaders) SetResponse

SetResponse sets the value of Response.

type ReleaseDetailObj

type ReleaseDetailObj struct {
	// Downloadable artifacts published for this version.
	Artifacts []ArtifactEntryObj `json:"artifacts"`
	// Per-version degraded reasons, when some overlay or artifact could not be published.
	Degraded []string `json:"degraded"`
	// BLAKE3-24 XOF digest of the canonical version tree, encoded as 48 lowercase hex characters.
	Hash OptString `json:"hash"`
	// Registry key that owns this version.
	Key string `json:"key"`
	// Raw upstream release notes in Markdown. Sanitized HTML is rendered only for browser pages.
	NotesMarkdown OptString `json:"notes_markdown"`
	// Overlay families detected and published for this version, such as Go or Composer.
	Overlays []string `json:"overlays"`
	// Total source content size in bytes.
	Size   OptInt64        `json:"size"`
	Source SourceStatusObj `json:"source"`
	// Release timestamp used for feeds, lists, and package-manager metadata.
	Time time.Time `json:"time"`
	// Whether this version was still present at the upstream during the last scan. `false` means the
	// mirror kept an upstream-deleted version.
	UpstreamPresent OptBool `json:"upstream_present"`
	// Version label as exposed by the mirror.
	Version string `json:"version"`
}

Ref: #/components/schemas/ReleaseDetailObj

func (*ReleaseDetailObj) Decode

func (s *ReleaseDetailObj) Decode(d *jx.Decoder) error

Decode decodes ReleaseDetailObj from json.

func (*ReleaseDetailObj) Encode

func (s *ReleaseDetailObj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ReleaseDetailObj) GetArtifacts

func (s *ReleaseDetailObj) GetArtifacts() []ArtifactEntryObj

GetArtifacts returns the value of Artifacts.

func (*ReleaseDetailObj) GetDegraded

func (s *ReleaseDetailObj) GetDegraded() []string

GetDegraded returns the value of Degraded.

func (*ReleaseDetailObj) GetHash

func (s *ReleaseDetailObj) GetHash() OptString

GetHash returns the value of Hash.

func (*ReleaseDetailObj) GetKey

func (s *ReleaseDetailObj) GetKey() string

GetKey returns the value of Key.

func (*ReleaseDetailObj) GetNotesMarkdown

func (s *ReleaseDetailObj) GetNotesMarkdown() OptString

GetNotesMarkdown returns the value of NotesMarkdown.

func (*ReleaseDetailObj) GetOverlays

func (s *ReleaseDetailObj) GetOverlays() []string

GetOverlays returns the value of Overlays.

func (*ReleaseDetailObj) GetSize

func (s *ReleaseDetailObj) GetSize() OptInt64

GetSize returns the value of Size.

func (*ReleaseDetailObj) GetSource

func (s *ReleaseDetailObj) GetSource() SourceStatusObj

GetSource returns the value of Source.

func (*ReleaseDetailObj) GetTime

func (s *ReleaseDetailObj) GetTime() time.Time

GetTime returns the value of Time.

func (*ReleaseDetailObj) GetUpstreamPresent

func (s *ReleaseDetailObj) GetUpstreamPresent() OptBool

GetUpstreamPresent returns the value of UpstreamPresent.

func (*ReleaseDetailObj) GetVersion

func (s *ReleaseDetailObj) GetVersion() string

GetVersion returns the value of Version.

func (*ReleaseDetailObj) MarshalJSON

func (s *ReleaseDetailObj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ReleaseDetailObj) SetArtifacts

func (s *ReleaseDetailObj) SetArtifacts(val []ArtifactEntryObj)

SetArtifacts sets the value of Artifacts.

func (*ReleaseDetailObj) SetDegraded

func (s *ReleaseDetailObj) SetDegraded(val []string)

SetDegraded sets the value of Degraded.

func (*ReleaseDetailObj) SetHash

func (s *ReleaseDetailObj) SetHash(val OptString)

SetHash sets the value of Hash.

func (*ReleaseDetailObj) SetKey

func (s *ReleaseDetailObj) SetKey(val string)

SetKey sets the value of Key.

func (*ReleaseDetailObj) SetNotesMarkdown

func (s *ReleaseDetailObj) SetNotesMarkdown(val OptString)

SetNotesMarkdown sets the value of NotesMarkdown.

func (*ReleaseDetailObj) SetOverlays

func (s *ReleaseDetailObj) SetOverlays(val []string)

SetOverlays sets the value of Overlays.

func (*ReleaseDetailObj) SetSize

func (s *ReleaseDetailObj) SetSize(val OptInt64)

SetSize sets the value of Size.

func (*ReleaseDetailObj) SetSource

func (s *ReleaseDetailObj) SetSource(val SourceStatusObj)

SetSource sets the value of Source.

func (*ReleaseDetailObj) SetTime

func (s *ReleaseDetailObj) SetTime(val time.Time)

SetTime sets the value of Time.

func (*ReleaseDetailObj) SetUpstreamPresent

func (s *ReleaseDetailObj) SetUpstreamPresent(val OptBool)

SetUpstreamPresent sets the value of UpstreamPresent.

func (*ReleaseDetailObj) SetVersion

func (s *ReleaseDetailObj) SetVersion(val string)

SetVersion sets the value of Version.

func (*ReleaseDetailObj) UnmarshalJSON

func (s *ReleaseDetailObj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ReleaseDetailObj) Validate

func (s *ReleaseDetailObj) Validate() error

type ReleaseDetailObjHeaders

type ReleaseDetailObjHeaders struct {
	AcceptRanges       OptString
	CacheControl       OptString
	ContentDisposition OptString
	ContentLength      OptInt64
	ETag               OptString
	LastModified       OptString
	Response           ReleaseDetailObj
}

ReleaseDetailObjHeaders wraps ReleaseDetailObj with response headers.

func (*ReleaseDetailObjHeaders) GetAcceptRanges

func (s *ReleaseDetailObjHeaders) GetAcceptRanges() OptString

GetAcceptRanges returns the value of AcceptRanges.

func (*ReleaseDetailObjHeaders) GetCacheControl

func (s *ReleaseDetailObjHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*ReleaseDetailObjHeaders) GetContentDisposition added in v0.3.0

func (s *ReleaseDetailObjHeaders) GetContentDisposition() OptString

GetContentDisposition returns the value of ContentDisposition.

func (*ReleaseDetailObjHeaders) GetContentLength

func (s *ReleaseDetailObjHeaders) GetContentLength() OptInt64

GetContentLength returns the value of ContentLength.

func (*ReleaseDetailObjHeaders) GetETag

func (s *ReleaseDetailObjHeaders) GetETag() OptString

GetETag returns the value of ETag.

func (*ReleaseDetailObjHeaders) GetLastModified

func (s *ReleaseDetailObjHeaders) GetLastModified() OptString

GetLastModified returns the value of LastModified.

func (*ReleaseDetailObjHeaders) GetResponse

func (s *ReleaseDetailObjHeaders) GetResponse() ReleaseDetailObj

GetResponse returns the value of Response.

func (*ReleaseDetailObjHeaders) SetAcceptRanges

func (s *ReleaseDetailObjHeaders) SetAcceptRanges(val OptString)

SetAcceptRanges sets the value of AcceptRanges.

func (*ReleaseDetailObjHeaders) SetCacheControl

func (s *ReleaseDetailObjHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*ReleaseDetailObjHeaders) SetContentDisposition added in v0.3.0

func (s *ReleaseDetailObjHeaders) SetContentDisposition(val OptString)

SetContentDisposition sets the value of ContentDisposition.

func (*ReleaseDetailObjHeaders) SetContentLength

func (s *ReleaseDetailObjHeaders) SetContentLength(val OptInt64)

SetContentLength sets the value of ContentLength.

func (*ReleaseDetailObjHeaders) SetETag

func (s *ReleaseDetailObjHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*ReleaseDetailObjHeaders) SetLastModified

func (s *ReleaseDetailObjHeaders) SetLastModified(val OptString)

SetLastModified sets the value of LastModified.

func (*ReleaseDetailObjHeaders) SetResponse

func (s *ReleaseDetailObjHeaders) SetResponse(val ReleaseDetailObj)

SetResponse sets the value of Response.

func (*ReleaseDetailObjHeaders) Validate

func (s *ReleaseDetailObjHeaders) Validate() error

type ReleaseListObj

type ReleaseListObj struct {
	// Registry key for this page.
	Key string `json:"key"`
	// Opaque keyset cursor for the next page. Omitted on the last page.
	Next OptString `json:"next"`
	// Page of release summaries ordered newest first.
	Releases []ReleaseSummaryObj `json:"releases"`
	Source   SourceStatusObj     `json:"source"`
}

Ref: #/components/schemas/ReleaseListObj

func (*ReleaseListObj) Decode

func (s *ReleaseListObj) Decode(d *jx.Decoder) error

Decode decodes ReleaseListObj from json.

func (*ReleaseListObj) Encode

func (s *ReleaseListObj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ReleaseListObj) GetKey

func (s *ReleaseListObj) GetKey() string

GetKey returns the value of Key.

func (*ReleaseListObj) GetNext

func (s *ReleaseListObj) GetNext() OptString

GetNext returns the value of Next.

func (*ReleaseListObj) GetReleases

func (s *ReleaseListObj) GetReleases() []ReleaseSummaryObj

GetReleases returns the value of Releases.

func (*ReleaseListObj) GetSource

func (s *ReleaseListObj) GetSource() SourceStatusObj

GetSource returns the value of Source.

func (*ReleaseListObj) MarshalJSON

func (s *ReleaseListObj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ReleaseListObj) SetKey

func (s *ReleaseListObj) SetKey(val string)

SetKey sets the value of Key.

func (*ReleaseListObj) SetNext

func (s *ReleaseListObj) SetNext(val OptString)

SetNext sets the value of Next.

func (*ReleaseListObj) SetReleases

func (s *ReleaseListObj) SetReleases(val []ReleaseSummaryObj)

SetReleases sets the value of Releases.

func (*ReleaseListObj) SetSource

func (s *ReleaseListObj) SetSource(val SourceStatusObj)

SetSource sets the value of Source.

func (*ReleaseListObj) UnmarshalJSON

func (s *ReleaseListObj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ReleaseListObj) Validate

func (s *ReleaseListObj) Validate() error

type ReleaseListObjHeaders

type ReleaseListObjHeaders struct {
	CacheControl OptString
	ETag         OptString
	Response     ReleaseListObj
}

ReleaseListObjHeaders wraps ReleaseListObj with response headers.

func (*ReleaseListObjHeaders) GetCacheControl

func (s *ReleaseListObjHeaders) GetCacheControl() OptString

GetCacheControl returns the value of CacheControl.

func (*ReleaseListObjHeaders) GetETag

func (s *ReleaseListObjHeaders) GetETag() OptString

GetETag returns the value of ETag.

func (*ReleaseListObjHeaders) GetResponse

func (s *ReleaseListObjHeaders) GetResponse() ReleaseListObj

GetResponse returns the value of Response.

func (*ReleaseListObjHeaders) SetCacheControl

func (s *ReleaseListObjHeaders) SetCacheControl(val OptString)

SetCacheControl sets the value of CacheControl.

func (*ReleaseListObjHeaders) SetETag

func (s *ReleaseListObjHeaders) SetETag(val OptString)

SetETag sets the value of ETag.

func (*ReleaseListObjHeaders) SetResponse

func (s *ReleaseListObjHeaders) SetResponse(val ReleaseListObj)

SetResponse sets the value of Response.

func (*ReleaseListObjHeaders) Validate

func (s *ReleaseListObjHeaders) Validate() error

type ReleaseSummaryObj

type ReleaseSummaryObj struct {
	// Total source content size in bytes.
	Size int64 `json:"size"`
	// Release timestamp from upstream metadata.
	Time time.Time `json:"time"`
	// Path to the version detail document, normally `<version>.json`.
	URL OptString `json:"url"`
	// Version label.
	Version string `json:"version"`
}

Ref: #/components/schemas/ReleaseSummaryObj

func (*ReleaseSummaryObj) Decode

func (s *ReleaseSummaryObj) Decode(d *jx.Decoder) error

Decode decodes ReleaseSummaryObj from json.

func (*ReleaseSummaryObj) Encode

func (s *ReleaseSummaryObj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ReleaseSummaryObj) GetSize

func (s *ReleaseSummaryObj) GetSize() int64

GetSize returns the value of Size.

func (*ReleaseSummaryObj) GetTime

func (s *ReleaseSummaryObj) GetTime() time.Time

GetTime returns the value of Time.

func (*ReleaseSummaryObj) GetURL

func (s *ReleaseSummaryObj) GetURL() OptString

GetURL returns the value of URL.

func (*ReleaseSummaryObj) GetVersion

func (s *ReleaseSummaryObj) GetVersion() string

GetVersion returns the value of Version.

func (*ReleaseSummaryObj) MarshalJSON

func (s *ReleaseSummaryObj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ReleaseSummaryObj) SetSize

func (s *ReleaseSummaryObj) SetSize(val int64)

SetSize sets the value of Size.

func (*ReleaseSummaryObj) SetTime

func (s *ReleaseSummaryObj) SetTime(val time.Time)

SetTime sets the value of Time.

func (*ReleaseSummaryObj) SetURL

func (s *ReleaseSummaryObj) SetURL(val OptString)

SetURL sets the value of URL.

func (*ReleaseSummaryObj) SetVersion

func (s *ReleaseSummaryObj) SetVersion(val string)

SetVersion sets the value of Version.

func (*ReleaseSummaryObj) UnmarshalJSON

func (s *ReleaseSummaryObj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Route

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

Route is route object.

func (Route) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationGroup

func (r Route) OperationGroup() string

OperationGroup returns the x-ogen-operation-group value.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

func (Route) PathPattern

func (r Route) PathPattern() string

PathPattern returns OpenAPI path.

func (Route) Summary

func (r Route) Summary() string

Summary returns OpenAPI summary.

type Server

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

Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.

func NewServer

func NewServer(h Handler, opts ...ServerOption) (*Server, error)

NewServer creates new Server.

func (*Server) FindPath

func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool)

FindPath finds Route for given method and URL.

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (Route, bool)

FindRoute finds Route for given method and path.

Note: this method does not unescape path or handle reserved characters in path properly. Use FindPath instead.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

type ServerOption

type ServerOption interface {
	// contains filtered or unexported methods
}

ServerOption is server config option.

func WithErrorHandler

func WithErrorHandler(h ErrorHandler) ServerOption

WithErrorHandler specifies error handler to use.

func WithMaxMultipartMemory

func WithMaxMultipartMemory(max int64) ServerOption

WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.

func WithMethodNotAllowed

func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption

WithMethodNotAllowed specifies Method Not Allowed handler to use.

func WithMiddleware

func WithMiddleware(m ...Middleware) ServerOption

WithMiddleware specifies middlewares to use.

func WithNotFound

func WithNotFound(notFound http.HandlerFunc) ServerOption

WithNotFound specifies Not Found handler to use.

func WithPathPrefix

func WithPathPrefix(prefix string) ServerOption

WithPathPrefix specifies server path prefix.

type SourceStatusObj

type SourceStatusObj struct {
	// Scan timestamp that produced this source status.
	LastScan time.Time `json:"last_scan"`
	// Upstream availability as observed by this node during the last scan.
	Status SourceStatusObjStatus `json:"status"`
	// Original upstream URL from `release_mirrors`. It is still reported when the last sync used a brother
	// node.
	URL string `json:"url"`
}

Ref: #/components/schemas/SourceStatusObj

func (*SourceStatusObj) Decode

func (s *SourceStatusObj) Decode(d *jx.Decoder) error

Decode decodes SourceStatusObj from json.

func (*SourceStatusObj) Encode

func (s *SourceStatusObj) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SourceStatusObj) GetLastScan

func (s *SourceStatusObj) GetLastScan() time.Time

GetLastScan returns the value of LastScan.

func (*SourceStatusObj) GetStatus

func (s *SourceStatusObj) GetStatus() SourceStatusObjStatus

GetStatus returns the value of Status.

func (*SourceStatusObj) GetURL

func (s *SourceStatusObj) GetURL() string

GetURL returns the value of URL.

func (*SourceStatusObj) MarshalJSON

func (s *SourceStatusObj) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SourceStatusObj) SetLastScan

func (s *SourceStatusObj) SetLastScan(val time.Time)

SetLastScan sets the value of LastScan.

func (*SourceStatusObj) SetStatus

func (s *SourceStatusObj) SetStatus(val SourceStatusObjStatus)

SetStatus sets the value of Status.

func (*SourceStatusObj) SetURL

func (s *SourceStatusObj) SetURL(val string)

SetURL sets the value of URL.

func (*SourceStatusObj) UnmarshalJSON

func (s *SourceStatusObj) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SourceStatusObj) Validate

func (s *SourceStatusObj) Validate() error

type SourceStatusObjStatus

type SourceStatusObjStatus string

Upstream availability as observed by this node during the last scan.

const (
	SourceStatusObjStatusAvailable     SourceStatusObjStatus = "available"
	SourceStatusObjStatusTemporaryDown SourceStatusObjStatus = "temporary_down"
	SourceStatusObjStatusPermanentDown SourceStatusObjStatus = "permanent_down"
	SourceStatusObjStatusUnknown       SourceStatusObjStatus = "unknown"
)

func (SourceStatusObjStatus) AllValues

AllValues returns all SourceStatusObjStatus values.

func (*SourceStatusObjStatus) Decode

func (s *SourceStatusObjStatus) Decode(d *jx.Decoder) error

Decode decodes SourceStatusObjStatus from json.

func (SourceStatusObjStatus) Encode

func (s SourceStatusObjStatus) Encode(e *jx.Encoder)

Encode encodes SourceStatusObjStatus as json.

func (SourceStatusObjStatus) MarshalJSON

func (s SourceStatusObjStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SourceStatusObjStatus) MarshalText

func (s SourceStatusObjStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SourceStatusObjStatus) UnmarshalJSON

func (s *SourceStatusObjStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SourceStatusObjStatus) UnmarshalText

func (s *SourceStatusObjStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SourceStatusObjStatus) Validate

func (s SourceStatusObjStatus) Validate() error

type UnimplementedHandler

type UnimplementedHandler struct{}

UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.

func (UnimplementedHandler) GetCatalog

GetCatalog implements getCatalog operation.

Lightweight cross-key snapshot containing each key, latest version, operational status, source classification, and source availability. Release notes and artifact lists are omitted. The body is served from the metadata cache and does not perform a live storage scan. Clients should treat both `application/json` and `text/plain` variants as the same JSON document. Query parameters are rejected.

GET /catalog.json

func (UnimplementedHandler) GetComposerP2Package

GetComposerP2Package implements getComposerP2Package operation.

Returns Composer v2 p2 metadata for one package name. `packageFile` contains the package segment with `.json` for stable metadata or `~dev.json` for the dev variant, for example `monolog.json` or `monolog~dev.json`. Unknown package names, dev-only misses, and invalid filenames return 404. Query parameters are rejected.

GET /p2/{vendor}/{packageFile}

func (UnimplementedHandler) GetComposerPackageList

GetComposerPackageList implements getComposerPackageList operation.

Returns available Composer package names after package-name collision resolution. The optional `filter` supports Composer-style `*` wildcards and is validated before matching so oversized or malformed filters return 400.

GET /packages/list.json

func (UnimplementedHandler) GetComposerPackages

GetComposerPackages implements getComposerPackages operation.

Returns the Composer repository `packages.json` document. yggvault uses the Composer v2 lazy metadata flow: the root document advertises the p2 `metadata-url`, the complete prebuilt package-name list, and the package list endpoint. Query parameters are rejected.

GET /packages.json

func (UnimplementedHandler) GetFavicon

GetFavicon implements getFavicon operation.

Multi-resolution favicon (16/32/48) generated from the node logo. Pre-rendered at startup and served with a strong content ETag. Query parameters are rejected.

GET /favicon.ico

func (UnimplementedHandler) GetFeed

func (UnimplementedHandler) GetFeed(ctx context.Context, params GetFeedParams) (r GetFeedRes, _ error)

GetFeed implements getFeed operation.

Atom 1.0 feed built from the cross-key release history. New events come first. The feed includes publish events and archive mutation events; a mutation is a separate entry with an ID that includes the content hash. The number of entries is capped by `web.pages.feed_size`. Query parameters are rejected.

GET /feed.xml

func (UnimplementedHandler) GetGoLatest

GetGoLatest implements getGoLatest operation.

Returns the Go proxy `@latest` JSON document for the newest active canonical version in the requested major line. The route is available only when content detection has published a Go overlay for the key and major path.

GET /{key}/@latest

func (UnimplementedHandler) GetGoVersionList

GetGoVersionList implements getGoVersionList operation.

Returns the Go proxy `@v/list` body: one canonical version per line, newest first. The route is available only for keys and major lines where content detection has published a Go overlay. Query parameters are rejected.

GET /{key}/@v/list

func (UnimplementedHandler) GetHealth

func (UnimplementedHandler) GetHealth(ctx context.Context) (r GetHealthRes, _ error)

GetHealth implements getHealth operation.

Returns the live node health snapshot for the listener that handled the request. The response is not cached and includes the entry source (`web` or `yggdrasil`), current runtime status, recent diagnostic count, and the last completed rescan timestamp when available.

GET /health

func (UnimplementedHandler) GetInfo

func (UnimplementedHandler) GetInfo(ctx context.Context) (r GetInfoRes, _ error)

GetInfo implements getInfo operation.

Public node identity shared by all routes: name, optional description, optional location, public contacts, clearnet domain, and Yggdrasil host. The same identity data is also published through mesh `info`/`inet` signals. Empty `domain` or `ygg_host` means the matching entry is disabled.

GET /info

func (UnimplementedHandler) GetKeyFeed

GetKeyFeed implements getKeyFeed operation.

Atom 1.0 feed for release history events of one key. New events come first. The feed includes publish events and archive mutation events; a mutation is a separate entry with an ID that includes the content hash. The number of entries is capped by `web.pages.feed_size`. Query parameters are rejected.

GET /{key}/releases.xml

func (UnimplementedHandler) GetKeyReleases

GetKeyReleases implements getKeyReleases operation.

Lightweight release snapshot for one key. Each item contains version, time, size, and a link to the detail document; release notes and artifact lists are intentionally omitted. Pagination uses keyset cursors: `?after=<next-from-previous-response>`. The `next` field is omitted on the last page. Clients should treat both `application/json` and `text/plain` variants as the same JSON document.

GET /{key}/releases.json

func (UnimplementedHandler) GetLogo(ctx context.Context, params GetLogoParams) (r GetLogoRes, _ error)

GetLogo implements getLogo operation.

Square transparent PNG of the node logo at a whitelisted edge size (16, 32, 48, 180, 192, 512). Pre-rendered at startup; other sizes return 404. Query parameters are rejected.

GET /logo/{size}

func (UnimplementedHandler) GetMetricsCache

func (UnimplementedHandler) GetMetricsCache(ctx context.Context) (r GetMetricsCacheRes, _ error)

GetMetricsCache implements getMetricsCache operation.

JSON snapshot of the metadata/hot-file RAM cache and the storage engine (Pebble gauges, event counters, hot-cache enforcement). Served only when public metrics are enabled for the current entry (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns 404.

GET /metrics/cache

func (UnimplementedHandler) GetMetricsCore

func (UnimplementedHandler) GetMetricsCore(ctx context.Context) (r GetMetricsCoreRes, _ error)

GetMetricsCore implements getMetricsCore operation.

JSON snapshot of core HTTP request signals aggregated across operations: request and error totals and request-duration sum/count. Served only when public metrics are enabled for the current entry (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns 404.

GET /metrics/core

func (UnimplementedHandler) GetMetricsErrors

func (UnimplementedHandler) GetMetricsErrors(ctx context.Context) (r GetMetricsErrorsRes, _ error)

GetMetricsErrors implements getMetricsErrors operation.

JSON view of the Error Registry: active and dropped diagnostic counts plus the bounded newest-first recent buffer for real-time triage. Served only when public metrics are enabled for the current entry (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns 404.

GET /metrics/errors

func (UnimplementedHandler) GetMetricsIndex

func (UnimplementedHandler) GetMetricsIndex(ctx context.Context) (r GetMetricsIndexRes, _ error)

GetMetricsIndex implements getMetricsIndex operation.

Returns a small HTML page linking the enabled metric groups for the current entry. If both public and internal metric groups are disabled on that entry, the route is not advertised and returns 404.

GET /metrics

func (UnimplementedHandler) GetMetricsInternal

func (UnimplementedHandler) GetMetricsInternal(ctx context.Context) (r GetMetricsInternalRes, _ error)

GetMetricsInternal implements getMetricsInternal operation.

Complete Prometheus-compatible text exposition (version 0.0.4) covering every metric group: core, cache, rescan, errors, and internal runtime signals. Built for scrapers such as VictoriaMetrics and Prometheus. Served only when internal metrics are enabled for the current entry (`metrics.web.internal` or `metrics.ygg.internal`); otherwise the endpoint returns 404.

GET /metrics/internal

func (UnimplementedHandler) GetMetricsRescan

func (UnimplementedHandler) GetMetricsRescan(ctx context.Context) (r GetMetricsRescanRes, _ error)

GetMetricsRescan implements getMetricsRescan operation.

JSON snapshot of the rescan integrator: cycle, publish, and unavailability totals, mean cycle duration, and the last completed rescan timestamp. Served only when public metrics are enabled for the current entry (`metrics.web.public` or `metrics.ygg.public`); otherwise the endpoint returns 404.

GET /metrics/rescan

func (UnimplementedHandler) GetMirrorLatest

GetMirrorLatest implements getMirrorLatest operation.

Returns the latest indexed version for a mirrored key as a newline-terminated plain-text body. Unknown keys or keys without indexed versions return 404.

GET /{key}/latest

func (UnimplementedHandler) GetMirrorList

GetMirrorList implements getMirrorList operation.

Returns all indexed versions for a mirrored key as a newest-first plain-text list with one version per line. Unknown keys or keys without indexed versions return 404.

GET /{key}/list

func (UnimplementedHandler) GetMirrorListFull

GetMirrorListFull implements getMirrorListFull operation.

Returns all indexed versions for a mirrored key as a newest-first JSON array body. The current handler serves this JSON body as `text/plain`; clients should parse the body content instead of relying on an `application/json` media type.

GET /{key}/list/full

func (UnimplementedHandler) GetOgKey

func (UnimplementedHandler) GetOgKey(ctx context.Context, params GetOgKeyParams) (r GetOgKeyRes, _ error)

GetOgKey implements getOgKey operation.

Open Graph banner for one mirror key: key name, latest version, version count, and last publish date. Unknown or empty keys return 404. Generated on demand and cached. Query parameters are rejected.

GET /og/{key}

func (UnimplementedHandler) GetOgNode

func (UnimplementedHandler) GetOgNode(ctx context.Context, params GetOgNodeParams) (r GetOgNodeRes, _ error)

GetOgNode implements getOgNode operation.

Open Graph banner for the whole node (catalog page): mirror-key and version counts, plus the last publish date. Generated on demand and cached. Query parameters are rejected.

GET /og.png

func (UnimplementedHandler) GetOgVersion

GetOgVersion implements getOgVersion operation.

Open Graph banner for one version: version string, mirror key, source size, and detected overlays. Unknown key/version pairs return 404. Generated on demand and cached. Query parameters are rejected.

GET /og/{key}/{version}

func (UnimplementedHandler) GetSitemap

GetSitemap implements getSitemap operation.

Sitemap of crawlable HTML pages for the current entry: catalog, mirror-key pages, version pages with path-safe version labels, and the metrics index when public metrics are enabled. Absolute URLs use the entry scheme, host, and nested prefix; the URL count is capped by `web.pages.sitemap_size`. Query parameters are rejected.

GET /sitemap.xml

func (UnimplementedHandler) GetVersionArtifact

GetVersionArtifact implements getVersionArtifact operation.

Go module proxy endpoint. The file extension selects the body: `.info` returns the Go proxy info JSON, `.mod` returns the raw or rewritten `go.mod`, and `.zip` streams the Go module zip from the hot cache. Versions are unescaped before lookup. The route is available only when content detection has published a Go overlay. If import rewriting is required but `overlay.go.rewrite_enabled` is false, the Go artifact is not published. Composer dist and universal `.tar.gz` archives are served from `/<key>/<version>.{zip,tar.gz}` instead.

GET /{key}/@v/{versionFile}

func (UnimplementedHandler) GetVersionFile

GetVersionFile implements getVersionFile operation.

Dispatches by file extension. `.json` returns the release detail document, `.zip` returns a deterministic zip artifact, and `.tar.gz` returns a deterministic tar.gz artifact. Archive artifacts are always the raw uploaded source tree (top-dir `<key>-<version>/`) and are host-independent; Go-module import-path rewriting is exposed only on the go-proxy `@v/<version>.zip` endpoint. A bare `<version>` without an extension renders the browser HTML version page. Query parameters are rejected.

GET /{key}/{versionFile}

Jump to

Keyboard shortcuts

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