package
0.0.0-20250307045944-cf6c03992e2e
Repository: https://github.com/sapcc/limes.git
Documentation: pkg.go.dev
# Functions
ForbidClusterIDHeader is a global middleware that rejects the X-Limes-Cluster-Id header (which was removed from the API spec).
Generates a token that is used to transfer a commitment from a source to a target project.
GetDomainReport is a convenience wrapper around reports.GetDomains() for getting a single domain report.
GetGreatestCommonDivisor is used to calculate the conversion ratios between different commitment resoucetypes.
GetProjectRateReport is a convenience wrapper around reports.GetProjectRates() for getting a single project rate report.
GetProjectResourceReport is a convenience wrapper around reports.GetProjectResources() for getting a single project resource report.
No description provided by the author
NewTokenValidator constructs a gopherpolicy.TokenValidator instance.
NewV1API creates an httpapi.API that serves the Limes v1 API.
RequireJSON will parse the request body into the given data structure, or write an error response if that fails.
# Structs
JSONListStream writes a JSON response containing a single array in the form
{ "things": [ thing1, thing2, ..., thingN ] }
without needing to hold the entire list of things in memory at once.
RateLimitRequest describes a single rate limit that a PUT requests wants to change.
RateLimitUpdater contains most of the business logic for PUT on rate limits.
RateValidationError appears in the Limes API in the POST .../simulate-put responses.
VersionData is used by version advertisement handlers.
VersionLinkData is used by version advertisement handlers, as part of the VersionData struct.