Skip to content

Commit

Permalink
Merge pull request #41 from vshn/feat/subitems
Browse files Browse the repository at this point in the history
Add sub-items to invoice
  • Loading branch information
glrf authored May 11, 2022
2 parents 5b35530 + 398c935 commit 2595f83
Show file tree
Hide file tree
Showing 10 changed files with 160 additions and 16 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ test: test-go ## All-in-one test
test-go: ## Run unit tests against code
go test -race -coverprofile cover.out -covermode atomic ./...

.PHONY: gen-golden
gen-golden:
go test ./description_templates/... -update

.PHONY: fmt
fmt: ## Run 'go fmt' against code
go fmt ./...
Expand Down
15 changes: 15 additions & 0 deletions description_templates/_compute.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- template "_compute" . -}}
{{- define "_compute" -}}
{{- $s:="\u2001" -}}{{- /*We need to use unicode whitespaces to make Odoo render them*/ -}}
Compute

Qty: {{.Quantity | printf "%.2f"}} {{.Unit}}-Minutes
Average Usage: {{.QuantityAvg | perMinute | printf "%.2f"}} {{.Unit}} / Minute
{{if .SubItems.appuio_cloud_memory_subquery_memory_request -}}
{{$s}}Memory Requests: {{.SubItems.appuio_cloud_memory_subquery_memory_request.QuantityAvg | perMinute | printf "%.2f"}} {{.Unit}} / Minute
{{end -}}
{{if .SubItems.appuio_cloud_memory_subquery_cpu_request -}}
{{$s}}CPU Requests: {{.SubItems.appuio_cloud_memory_subquery_cpu_request.QuantityAvg | perMinute | printf "%.2f"}} {{.Unit}} / Minute
{{end -}}
Unit Price: CHF {{.PricePerUnit | printf "%.10f"}} / {{.Unit}} / Minute
{{- end -}}
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
Compute

{{template "_usage" . -}}
{{template "_compute" . -}}
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
Compute

{{template "_usage" . -}}
{{template "_compute" . -}}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ Compute

Qty: 87955674.09 UNIT-Minutes
Average Usage: 7.61 UNIT / Minute
 Memory Requests: 0.70 UNIT / Minute
 CPU Requests: 2.23 UNIT / Minute
Unit Price: CHF 0.0000007460 / UNIT / Minute
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ Compute

Qty: 87955674.09 UNIT-Minutes
Average Usage: 7.61 UNIT / Minute
 Memory Requests: 0.70 UNIT / Minute
 CPU Requests: 2.23 UNIT / Minute
Unit Price: CHF 0.0000007460 / UNIT / Minute
55 changes: 51 additions & 4 deletions description_templates/golden_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,36 @@ package descriptiontemplates_test

import (
"context"
"flag"
"io"
"io/fs"
"os"
"path/filepath"
"strings"
"testing"

"github.com/appuio/appuio-cloud-reporting/pkg/invoice"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/vshn/appuio-odoo-adapter/invoice/desctmpl"
)

const extension = ".gotmpl"

var (
updateGolden = flag.Bool("update", false, "update the golden files of this test")
)

func TestMain(m *testing.M) {
flag.Parse()
os.Exit(m.Run())
}

func TestGenerateGolden(t *testing.T) {
os.RemoveAll("golden")
if *updateGolden {
require.NoError(t, os.RemoveAll("golden"))
}

os.Mkdir("golden", os.ModePerm)

templateFS := os.DirFS(".")
Expand All @@ -36,8 +51,8 @@ func TestGenerateGolden(t *testing.T) {

baseItem := invoice.Item{
Description: "Long form query description",
QueryName: "default_query",
ProductRef: invoice.ProductRef{
ID: "14954680-459B-4A85-8B8D-1EEED2627409",
Target: "1919",
Source: "SET ME",
},
Expand All @@ -49,16 +64,48 @@ func TestGenerateGolden(t *testing.T) {
PricePerUnit: 0.000000746,
Discount: 0.33,
Total: 43.962005025946798,
SubItems: map[string]invoice.SubItem{
"appuio_cloud_memory_subquery_memory_request": {
Description: "Memory request aggregated by namespace",
QueryName: "appuio_cloud_memory_subquery_memory_request",
Quantity: 34923234.04433424,
QuantityMin: 2.251,
QuantityAvg: 42.2,
QuantityMax: 9001.1,
Unit: "TPS",
},
"appuio_cloud_memory_subquery_cpu_request": {
Description: "CPU requests in memory request equivalent",
QueryName: "appuio_cloud_memory_subquery_cpu_request",
Quantity: 44323235.04444221,
QuantityMin: 2.251,
QuantityAvg: 133.7,
QuantityMax: 9001.1,
Unit: "TPS",
},
},
}

for _, key := range sourceKeys {
t.Run(key, func(t *testing.T) {
item := baseItem
item.ProductRef.Source = key
rendered, err := r.RenderItemDescription(context.Background(), item)

actual, err := r.RenderItemDescription(context.Background(), item)
require.NoError(t, err)

os.WriteFile(filepath.Join("golden", key+".txt"), []byte(rendered), os.ModePerm)
fileName := filepath.Join("golden", key+".txt")
if *updateGolden {
require.NoError(t, os.WriteFile(fileName, []byte(actual), os.ModePerm))
return
}
f, err := os.OpenFile(fileName, os.O_RDONLY, 0644)
require.NoErrorf(t, err, "failed to open golden file %s", fileName)
defer f.Close()
expected, err := io.ReadAll(f)
require.NoErrorf(t, err, "failed to read golden file %s", fileName)

assert.Equal(t, string(expected), actual)
})
}
}
48 changes: 48 additions & 0 deletions description_templates/template_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
package descriptiontemplates_test

import (
"context"
"os"
"testing"

"github.com/appuio/appuio-cloud-reporting/pkg/invoice"
"github.com/stretchr/testify/require"
"github.com/vshn/appuio-odoo-adapter/invoice/desctmpl"
)

func TestTempalte_MissingSubItem_NoError(t *testing.T) {
templateFS := os.DirFS(".")
r, err := desctmpl.ItemDescriptionTemplateRendererFromFS(templateFS, extension)
require.NoError(t, err)

item := invoice.Item{
Description: "Long form query description",
QueryName: "default_query",
ProductRef: invoice.ProductRef{
Target: "1919",
Source: "appuio_cloud_memory:c-appuio-exoscale-ch-gva-2-0",
},
Quantity: 87955674.09456764,
QuantityMin: 456.345593,
QuantityAvg: 456.345593,
QuantityMax: 456.345593,
Unit: "UNIT",
PricePerUnit: 0.000000746,
Discount: 0.33,
Total: 43.962005025946798,
SubItems: map[string]invoice.SubItem{
"appuio_cloud_memory_subquery_memory_request": {
Description: "Memory request aggregated by namespace",
QueryName: "appuio_cloud_memory_subquery_memory_request",
Quantity: 34923234.04433424,
QuantityMin: 2.251,
QuantityAvg: 42.2,
QuantityMax: 9001.1,
Unit: "TPS",
},
},
}

_, err = r.RenderItemDescription(context.Background(), item)
require.NoError(t, err)
}
17 changes: 11 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.17

require (
github.com/Masterminds/sprig/v3 v3.2.2
github.com/appuio/appuio-cloud-reporting v0.4.2
github.com/appuio/appuio-cloud-reporting v0.5.0
github.com/go-logr/logr v1.2.3
github.com/go-logr/zapr v1.2.3
github.com/golang/mock v1.6.0
Expand All @@ -24,18 +24,23 @@ require (
github.com/huandu/xstrings v1.3.2 // indirect
github.com/imdario/mergo v0.3.12 // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.11.0 // indirect
github.com/jackc/pgconn v1.12.0 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.2.0 // indirect
github.com/jackc/pgproto3/v2 v2.3.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
github.com/jackc/pgtype v1.10.0 // indirect
github.com/jackc/pgx/v4 v4.15.0 // indirect
github.com/jmoiron/sqlx v1.3.4 // indirect
github.com/jackc/pgtype v1.11.0 // indirect
github.com/jackc/pgx/v4 v4.16.0 // indirect
github.com/jmoiron/sqlx v1.3.5 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/lopezator/migrator v0.3.0 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_golang v1.12.1 // indirect
github.com/prometheus/common v0.34.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/shopspring/decimal v1.2.0 // indirect
github.com/spf13/cast v1.3.1 // indirect
Expand Down
25 changes: 25 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRF
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho=
github.com/appuio/appuio-cloud-reporting v0.4.2 h1:+LWZGp/DclfKjo0TKixRJQZUhTLQJ5OTuhCcjE3nYI4=
github.com/appuio/appuio-cloud-reporting v0.4.2/go.mod h1:PBbO+0Mt8aeT8vDNfvXISyFdK471yQFBDLGh464+ZXo=
github.com/appuio/appuio-cloud-reporting v0.4.3-0.20220505155540-46fbfd689c3d h1:LzWdu6NVe0qMVWz2QfXuQuaPFD5b7LlITcz9gzSVspo=
github.com/appuio/appuio-cloud-reporting v0.4.3-0.20220505155540-46fbfd689c3d/go.mod h1:+GjH2NvBhWEAbUfQj+KgbjJbLkI4yOdpjyON+eAYnCA=
github.com/appuio/appuio-cloud-reporting v0.4.3-0.20220509145106-870db301a81c h1:MeFNgkMiCLtxOJpSPUpxGjlODiUjRgpNlKYYdxxHdM8=
github.com/appuio/appuio-cloud-reporting v0.4.3-0.20220509145106-870db301a81c/go.mod h1:/S0E32wNNoF8Cy1bdY9ewXqvNRFA6u+BSJ61+5SF+ek=
github.com/appuio/appuio-cloud-reporting v0.4.3-0.20220510094803-b9bebb67ec07 h1:dDiuj+omxQUeDAsMkhcQppnuuxw1jE8Qh0Egl5seXtk=
github.com/appuio/appuio-cloud-reporting v0.4.3-0.20220510094803-b9bebb67ec07/go.mod h1:/S0E32wNNoF8Cy1bdY9ewXqvNRFA6u+BSJ61+5SF+ek=
github.com/appuio/appuio-cloud-reporting v0.5.0 h1:u/EaddJ20FCU9sAW/QLgo2KUBGC2qBTckzyyBTvlYBM=
github.com/appuio/appuio-cloud-reporting v0.5.0/go.mod h1:/S0E32wNNoF8Cy1bdY9ewXqvNRFA6u+BSJ61+5SF+ek=
github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
Expand Down Expand Up @@ -93,6 +101,7 @@ github.com/go-logr/zapr v1.2.3/go.mod h1:eIauM6P8qSvTw5o2ez6UEAfGjQKrxQTl5EoK+Qa
github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
github.com/go-sql-driver/mysql v1.5.0 h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs=
github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
github.com/gofrs/uuid v4.0.0+incompatible h1:1SD/1F5pU8p29ybwgQSwpQk+mwdRrXCYuPhW6m+TnJw=
github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
Expand Down Expand Up @@ -175,6 +184,8 @@ github.com/jackc/pgconn v1.9.0/go.mod h1:YctiPyvzfU11JFxoXokUOOKQXQmDMoJL9vJzHH8
github.com/jackc/pgconn v1.9.1-0.20210724152538-d89c8390a530/go.mod h1:4z2w8XhRbP1hYxkpTuBjTS3ne3J48K83+u0zoyvg2pI=
github.com/jackc/pgconn v1.11.0 h1:HiHArx4yFbwl91X3qqIHtUFoiIfLNJXCQRsnzkiwwaQ=
github.com/jackc/pgconn v1.11.0/go.mod h1:4z2w8XhRbP1hYxkpTuBjTS3ne3J48K83+u0zoyvg2pI=
github.com/jackc/pgconn v1.12.0 h1:/RvQ24k3TnNdfBSW0ou9EOi5jx2cX7zfE8n2nLKuiP0=
github.com/jackc/pgconn v1.12.0/go.mod h1:ZkhRC59Llhrq3oSfrikvwQ5NaxYExr6twkdkMLaKono=
github.com/jackc/pgio v1.0.0 h1:g12B9UwVnzGhueNavwioyEEpAmqMe1E/BN9ES+8ovkE=
github.com/jackc/pgio v1.0.0/go.mod h1:oP+2QK2wFfUWgr+gxjoBH9KGBb31Eio69xUb0w5bYf8=
github.com/jackc/pgmock v0.0.0-20190831213851-13a1b77aafa2/go.mod h1:fGZlG77KXmcq05nJLRkk0+p82V8B8Dw8KN2/V9c/OAE=
Expand All @@ -193,6 +204,8 @@ github.com/jackc/pgproto3/v2 v2.0.6/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwX
github.com/jackc/pgproto3/v2 v2.1.1/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA=
github.com/jackc/pgproto3/v2 v2.2.0 h1:r7JypeP2D3onoQTCxWdTpCtJ4D+qpKr0TxvoyMhZ5ns=
github.com/jackc/pgproto3/v2 v2.2.0/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA=
github.com/jackc/pgproto3/v2 v2.3.0 h1:brH0pCGBDkBW07HWlN/oSBXrmo3WB0UvZd1pIuDcL8Y=
github.com/jackc/pgproto3/v2 v2.3.0/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA=
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b h1:C8S2+VttkHFdOOCXJe+YGfa4vHYwlt4Zx+IVXQ97jYg=
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b/go.mod h1:vsD4gTJCa9TptPL8sPkXrLZ+hDuNrZCnj29CQpr4X1E=
github.com/jackc/pgtype v0.0.0-20190421001408-4ed0de4755e0/go.mod h1:hdSHsc1V01CGwFsrv11mJRHWJ6aifDLfdV3aVjFF0zg=
Expand All @@ -201,22 +214,29 @@ github.com/jackc/pgtype v0.0.0-20190828014616-a8802b16cc59/go.mod h1:MWlu30kVJrU
github.com/jackc/pgtype v1.8.1-0.20210724151600-32e20a603178/go.mod h1:C516IlIV9NKqfsMCXTdChteoXmwgUceqaLfjg2e3NlM=
github.com/jackc/pgtype v1.10.0 h1:ILnBWrRMSXGczYvmkYD6PsYyVFUNLTnIUJHHDLmqk38=
github.com/jackc/pgtype v1.10.0/go.mod h1:LUMuVrfsFfdKGLw+AFFVv6KtHOFMwRgDDzBt76IqCA4=
github.com/jackc/pgtype v1.11.0 h1:u4uiGPz/1hryuXzyaBhSk6dnIyyG2683olG2OV+UUgs=
github.com/jackc/pgtype v1.11.0/go.mod h1:LUMuVrfsFfdKGLw+AFFVv6KtHOFMwRgDDzBt76IqCA4=
github.com/jackc/pgx/v4 v4.0.0-20190420224344-cc3461e65d96/go.mod h1:mdxmSJJuR08CZQyj1PVQBHy9XOp5p8/SHH6a0psbY9Y=
github.com/jackc/pgx/v4 v4.0.0-20190421002000-1b8f0016e912/go.mod h1:no/Y67Jkk/9WuGR0JG/JseM9irFbnEPbuWV2EELPNuM=
github.com/jackc/pgx/v4 v4.0.0-pre1.0.20190824185557-6972a5742186/go.mod h1:X+GQnOEnf1dqHGpw7JmHqHc1NxDoalibchSk9/RWuDc=
github.com/jackc/pgx/v4 v4.12.1-0.20210724153913-640aa07df17c/go.mod h1:1QD0+tgSXP7iUjYm9C1NxKhny7lq6ee99u/z+IHFcgs=
github.com/jackc/pgx/v4 v4.15.0 h1:B7dTkXsdILD3MF987WGGCcg+tvLW6bZJdEcqVFeU//w=
github.com/jackc/pgx/v4 v4.15.0/go.mod h1:D/zyOyXiaM1TmVWnOM18p0xdDtdakRBa0RsVGI3U3bw=
github.com/jackc/pgx/v4 v4.16.0 h1:4k1tROTJctHotannFYzu77dY3bgtMRymQP7tXQjqpPk=
github.com/jackc/pgx/v4 v4.16.0/go.mod h1:N0A9sFdWzkw/Jy1lwoiB64F2+ugFZi987zRxcPez/wI=
github.com/jackc/puddle v0.0.0-20190413234325-e4ced69a3a2b/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
github.com/jackc/puddle v0.0.0-20190608224051-11cab39313c9/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
github.com/jackc/puddle v1.1.3/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
github.com/jackc/puddle v1.2.1/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
github.com/jmoiron/sqlx v1.3.4 h1:wv+0IJZfL5z0uZoUjlpKgHkgaFSYD+r9CfrXjEXsO7w=
github.com/jmoiron/sqlx v1.3.4/go.mod h1:2BljVx/86SuTyjE+aPYlHCTNvZrnJXghYGpNiXLBMCQ=
github.com/jmoiron/sqlx v1.3.5 h1:vFFPA71p1o5gAeqtEAwLU4dnX2napprKtHr7PYIcN3g=
github.com/jmoiron/sqlx v1.3.5/go.mod h1:nRVWtLre0KfCLJvgxzCsLVMogSvQ1zNJtpYr2Ccp0mQ=
github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
Expand Down Expand Up @@ -256,9 +276,11 @@ github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx
github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ=
github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
Expand All @@ -272,6 +294,7 @@ github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXP
github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M=
github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0=
github.com/prometheus/client_golang v1.12.1 h1:ZiaPsmm9uiBeaSMRznKsCDNtPCS0T3JVDGF+06gjBzk=
github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY=
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
Expand All @@ -282,6 +305,8 @@ github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB8
github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc=
github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls=
github.com/prometheus/common v0.33.0/go.mod h1:gB3sOl7P0TvJabZpLY5uQMpUqRCPPCyRLCZYc7JZTNE=
github.com/prometheus/common v0.34.0 h1:RBmGO9d/FVjqHT0yUGQwBJhkwKV+wPCn7KGpvfab0uE=
github.com/prometheus/common v0.34.0/go.mod h1:gB3sOl7P0TvJabZpLY5uQMpUqRCPPCyRLCZYc7JZTNE=
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
Expand Down

0 comments on commit 2595f83

Please sign in to comment.