diff --git a/go.mod b/go.mod index 8715f12e..92f97dbc 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( github.com/prometheus/client_golang v1.20.5 github.com/prometheus/common v0.60.1 github.com/rs/cors v1.11.1 - github.com/sapcc/go-api-declarations v1.12.8 + github.com/sapcc/go-api-declarations v1.12.9 github.com/sapcc/go-bits v0.0.0-20241024075658-61a12e76dcad go.uber.org/automaxprocs v1.6.0 gopkg.in/yaml.v2 v2.4.0 diff --git a/go.sum b/go.sum index 4a0ec0c8..a3324a2c 100644 --- a/go.sum +++ b/go.sum @@ -161,8 +161,8 @@ github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= github.com/rs/cors v1.11.1 h1:eU3gRzXLRK57F5rKMGMZURNdIG4EoAmX8k94r9wXWHA= github.com/rs/cors v1.11.1/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= -github.com/sapcc/go-api-declarations v1.12.8 h1:KPH0hblfvfbMAhlMXCn7Mwggi3VsZhqVf9tZ6tQPgSc= -github.com/sapcc/go-api-declarations v1.12.8/go.mod h1:83R3hTANhuRXt/pXDby37IJetw8l7DG41s33Tp9NXxI= +github.com/sapcc/go-api-declarations v1.12.9 h1:4CWkt333oQxGnbka1TH4qApC0bxZe+WIBduygEcxiNw= +github.com/sapcc/go-api-declarations v1.12.9/go.mod h1:83R3hTANhuRXt/pXDby37IJetw8l7DG41s33Tp9NXxI= github.com/sapcc/go-bits v0.0.0-20241024075658-61a12e76dcad h1:KijQUCZWKcv2sS/gEdkCRcB7Ht1NtlWE6dVFa0wpPd4= github.com/sapcc/go-bits v0.0.0-20241024075658-61a12e76dcad/go.mod h1:QoKr/BZp+xDse2+CFY1TNtjswXhHx8lh3Bb/9C0RJ6s= github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= diff --git a/vendor/github.com/sapcc/go-api-declarations/liquid/info.go b/vendor/github.com/sapcc/go-api-declarations/liquid/info.go index 5e484367..00bece66 100644 --- a/vendor/github.com/sapcc/go-api-declarations/liquid/info.go +++ b/vendor/github.com/sapcc/go-api-declarations/liquid/info.go @@ -19,6 +19,8 @@ package liquid +import "encoding/json" + // ServiceInfo is the response payload format for GET /v1/info. type ServiceInfo struct { // This version number shall be increased whenever any part of the ServiceInfo changes. @@ -71,6 +73,13 @@ type ResourceInfo struct { // If false, only usage is reported on the project level. // Limes will abstain from maintaining quota on such resources. HasQuota bool `json:"hasQuota"` + + // Additional resource-specific attributes. + // For example, a resource for baremetal nodes of a certain flavor might report flavor attributes like the CPU and RAM size here, instead of on subcapacities and subresources, to avoid repetition. + // + // This must be shaped like a map[string]any, but is typed as a raw JSON message. + // Limes does not touch these attributes and will just pass them on into its users without deserializing it at all. + Attributes json.RawMessage `json:"attributes,omitempty"` } // RateInfo describes a rate that a liquid's service provides. diff --git a/vendor/modules.txt b/vendor/modules.txt index aad37de1..ca99bbcb 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -150,7 +150,7 @@ github.com/rabbitmq/amqp091-go ## explicit; go 1.13 github.com/rs/cors github.com/rs/cors/internal -# github.com/sapcc/go-api-declarations v1.12.8 +# github.com/sapcc/go-api-declarations v1.12.9 ## explicit; go 1.21 github.com/sapcc/go-api-declarations/bininfo github.com/sapcc/go-api-declarations/cadf