Skip to content

Commit a25828d

Browse files
committed
updates
1 parent f540758 commit a25828d

File tree

6 files changed

+397
-97
lines changed

6 files changed

+397
-97
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.0
1+
0.3.1

content.go

Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
package main
2+
3+
import (
4+
"fmt"
5+
"html/template"
6+
"net/http"
7+
"runtime"
8+
"runtime/debug"
9+
10+
"github.com/prometheus/common/version"
11+
)
12+
13+
const (
14+
docsUrl = "https://github.com/peekjef72/nrpe_exporter#readme"
15+
templates = `
16+
{{ define "page" -}}
17+
<html>
18+
<head>
19+
<title>Prometheus {{ .ExporterName }}</title>
20+
<style type="text/css">
21+
body { margin: 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.42857143; color: #333; background-color: #fff; }
22+
.navbar { display: flex; background-color: #222; margin: 0; border-width: 0 0 1px; border-style: solid; border-color: #080808; }
23+
.navbar > * { margin: 0; padding: 15px; }
24+
.navbar * { line-height: 20px; color: #9d9d9d; }
25+
.navbar a { text-decoration: none; }
26+
.navbar a:hover, .navbar a:focus { color: #fff; }
27+
.navbar-header { font-size: 18px; }
28+
body > * { margin: 15px; padding: 0; }
29+
pre { padding: 10px; font-size: 13px; background-color: #f5f5f5; border: 1px solid #ccc; }
30+
h1, h2 { font-weight: 500; }
31+
a { color: #337ab7; }
32+
a:hover, a:focus { color: #23527c; }
33+
table { border: 1px solid #edd2e6; border-collapse: collapse; margin-bottom: 1rem; width: 80%; }
34+
tr { border: 1px solid #edd2e6; padding: 0.3rem; text-align: left; width: 35%; }
35+
th { border: 1px solid #edd2e6; padding: 0.3rem; }
36+
td { border: 1px solid #edd2e6; padding: 0.3rem; }
37+
.odd { background-color: rgba(0,0,0,.05); }
38+
</style>
39+
</head>
40+
<body>
41+
<div class="navbar">
42+
<div class="navbar-header"><a href="/">Prometheus {{ .ExporterName }}</a></div>
43+
<div><a href="/healthz">Health</a></div>
44+
<div><a href="{{ .ExportPath }}?command=check_load&target=127.0.0.1:5666&metric_name=nrpe_load">Export</a></div>
45+
<div><a href="{{ .ProfilePath }}">Profiles</a></div>
46+
<div><a href="/status">Status</a></div>
47+
<div><a href="{{ .MetricsPath }}">Exporter Metrics</a></div>
48+
<div><a href="{{ .DocsUrl }}">Help</a></div>
49+
</div>
50+
{{template "content" .}}
51+
</body>
52+
</html>
53+
{{- end }}
54+
55+
{{ define "content.home" -}}
56+
<h1>This is a <a href="{{ .DocsUrl }}">Prometheus {{ .ExporterName }}</a> instance.</h1>
57+
<p>You are probably looking for its metrics:</p>
58+
<p><strong>E.G.:</strong></p>
59+
<li>nrpe without ssl and no parameter local check_load: <a href="{{ .ExportPath }}?command=check_load&target=127.0.0.1:5666&metric_name=nrpe_load">check_load against localhost:5666 NO SSL</a>.</li>
60+
<li>nrpe with ssl and no parameter local check_load: <a href="{{ .ExportPath }}?ssl=true&command=check_load&target=127.0.0.1:5666&metric_name=nrpe_load&result_message=true&performance=true">check_load against localhost:5666 SSL</a>.</li>
61+
<li>nrpe with ssl and allow parameters local check_load: <a href="{{ .ExportPath }}?ssl=true&command=check_load&params=params=-r%20-w%20.15,.10,.05%20-c%20.30,.25,.20&target=127.0.0.1:5666&metric_name=nrpe_load&result_message=true&performance=true">check_load against localhost:5666 SSL ALLOW param</a>.</li>
62+
{{- end }}
63+
64+
{{ define "content.profiles" -}}
65+
<h2>Profiles</h2>
66+
<pre>{{ .Profiles }}</pre>
67+
{{- end }}
68+
69+
{{ define "content.status" -}}
70+
<h2>Build Information</h2>
71+
<table>
72+
<tbody>
73+
<tr class="odd" >
74+
<th>Version</th>
75+
<td>{{ .Version.Version }}</td>
76+
</tr>
77+
<tr>
78+
<th>Revision</th>
79+
<td>{{ .Version.Revision }}</td>
80+
</tr>
81+
<tr class="odd" >
82+
<th>Branch</th>
83+
<td>{{ .Version.Branch }}</td>
84+
</tr>
85+
<tr>
86+
<th>BuildUser</th>
87+
<td>{{ .Version.BuildUser }}</td>
88+
</tr>
89+
<tr class="odd" >
90+
<th>BuildDate</th>
91+
<td>{{ .Version.BuildDate }}</td>
92+
</tr>
93+
<tr>
94+
<th>BuildTags</th>
95+
<td>{{ .Version.BuildTags }}</td>
96+
</tr>
97+
<tr class="odd" >
98+
<th>GoVersion</th>
99+
<td>{{ .Version.GoVersion }}</td>
100+
</tr>
101+
</tbody>
102+
</table>
103+
{{- end }}
104+
105+
{{ define "content.error" -}}
106+
<h2>Error</h2>
107+
<pre>{{ .Err }}</pre>
108+
{{- end }}
109+
`
110+
)
111+
112+
type versionInfo struct {
113+
Version string
114+
Revision string
115+
Branch string
116+
BuildUser string
117+
BuildDate string
118+
BuildTags string
119+
GoVersion string
120+
}
121+
type tdata struct {
122+
ExporterName string
123+
ExportPath string
124+
MetricsPath string
125+
ProfilePath string
126+
DocsUrl string
127+
128+
// `/profiles` only
129+
Profiles string
130+
131+
// status
132+
Version versionInfo
133+
// `/error` only
134+
Err error
135+
}
136+
137+
var (
138+
allTemplates = template.Must(template.New("").Parse(templates))
139+
homeTemplate = pageTemplate("home")
140+
profileTemplate = pageTemplate("profiles")
141+
statusTemplate = pageTemplate("status")
142+
errorTemplate = pageTemplate("error")
143+
)
144+
145+
func pageTemplate(name string) *template.Template {
146+
pageTemplate := fmt.Sprintf(`{{define "content"}}{{template "content.%s" .}}{{end}}{{template "page" .}}`, name)
147+
return template.Must(template.Must(allTemplates.Clone()).Parse(pageTemplate))
148+
}
149+
150+
// HomeHandlerFunc is the HTTP handler for the home page (`/`).
151+
func HomeHandlerFunc(exporter Exporter) func(http.ResponseWriter, *http.Request) {
152+
return func(w http.ResponseWriter, r *http.Request) {
153+
homeTemplate.Execute(w, &tdata{
154+
ExporterName: exporter.ExporterName,
155+
ExportPath: exporter.ExporterPath,
156+
MetricsPath: exporter.MetricPath,
157+
ProfilePath: exporter.ProfilesPath,
158+
DocsUrl: docsUrl,
159+
})
160+
}
161+
}
162+
163+
// ConfigHandlerFunc is the HTTP handler for the `/config` page. It outputs the configuration marshaled in YAML format.
164+
func ProfilesHandlerFunc(exporter Exporter) func(http.ResponseWriter, *http.Request) {
165+
return func(w http.ResponseWriter, r *http.Request) {
166+
profiles, err := exporter.Profiles.Dump()
167+
if err != nil {
168+
HandleError(0, err, exporter, w, r)
169+
return
170+
}
171+
profileTemplate.Execute(w, &tdata{
172+
ExporterName: exporter.ExporterName,
173+
ExportPath: exporter.ExporterPath,
174+
MetricsPath: exporter.MetricPath,
175+
ProfilePath: exporter.ProfilesPath,
176+
DocsUrl: docsUrl,
177+
Profiles: profiles,
178+
})
179+
}
180+
}
181+
182+
// ConfigHandlerFunc is the HTTP handler for the `/config` page. It outputs the configuration marshaled in YAML format.
183+
func StatusHandlerFunc(exporter Exporter) func(http.ResponseWriter, *http.Request) {
184+
return func(w http.ResponseWriter, r *http.Request) {
185+
186+
vinfos := versionInfo{
187+
Version: version.Version,
188+
Revision: version.Revision,
189+
Branch: version.Branch,
190+
BuildUser: version.BuildUser,
191+
BuildDate: version.BuildDate,
192+
BuildTags: computeTags(),
193+
GoVersion: runtime.Version(),
194+
}
195+
196+
statusTemplate.Execute(w, &tdata{
197+
ExporterName: exporter.ExporterName,
198+
ExportPath: exporter.ExporterPath,
199+
MetricsPath: exporter.MetricPath,
200+
ProfilePath: exporter.ProfilesPath,
201+
DocsUrl: docsUrl,
202+
Version: vinfos,
203+
})
204+
}
205+
}
206+
207+
// HandleError is an error handler that other handlers defer to in case of error. It is important to not have written
208+
// anything to w before calling HandleError(), or the 500 status code won't be set (and the content might be mixed up).
209+
func HandleError(status int, err error, exporter Exporter, w http.ResponseWriter, r *http.Request) {
210+
if status == 0 {
211+
status = http.StatusInternalServerError
212+
}
213+
w.WriteHeader(status)
214+
errorTemplate.Execute(w, &tdata{
215+
ExporterName: exporter.ExporterName,
216+
ExportPath: exporter.ExporterPath,
217+
MetricsPath: exporter.MetricPath,
218+
ProfilePath: exporter.ProfilesPath,
219+
DocsUrl: docsUrl,
220+
Err: err,
221+
})
222+
}
223+
224+
func computeTags() string {
225+
var (
226+
tags = "unknown"
227+
)
228+
229+
buildInfo, ok := debug.ReadBuildInfo()
230+
if !ok {
231+
return tags
232+
}
233+
for _, v := range buildInfo.Settings {
234+
if v.Key == "-tags" {
235+
tags = v.Value
236+
}
237+
}
238+
return tags
239+
}

go.mod

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,26 @@ module github.com/canonical/nrpe_exporter
33
go 1.20
44

55
require (
6-
github.com/alecthomas/kingpin/v2 v2.3.1
6+
github.com/alecthomas/kingpin/v2 v2.3.2
77
github.com/prometheus/client_golang v1.14.0
88
github.com/prometheus/common v0.42.0
99
github.com/spacemonkeygo/openssl v0.0.0-20181017203307-c2dcc5cca94a
1010
gopkg.in/yaml.v2 v2.4.0
1111
)
1212

1313
require (
14-
github.com/kr/pretty v0.3.1 // indirect
14+
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
15+
github.com/jpillora/backoff v1.0.0 // indirect
16+
github.com/kr/text v0.2.0 // indirect
17+
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect
1518
github.com/rogpeppe/go-internal v1.11.0 // indirect
16-
github.com/xhit/go-str2duration v1.2.0 // indirect
17-
gopkg.in/yaml.v3 v3.0.1 // indirect
19+
github.com/xhit/go-str2duration/v2 v2.1.0 // indirect
20+
golang.org/x/crypto v0.8.0 // indirect
21+
golang.org/x/net v0.9.0 // indirect
22+
golang.org/x/oauth2 v0.6.0 // indirect
23+
golang.org/x/sync v0.3.0 // indirect
24+
golang.org/x/text v0.9.0 // indirect
25+
google.golang.org/appengine v1.6.7 // indirect
1826
)
1927

2028
require (
@@ -27,6 +35,7 @@ require (
2735
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
2836
github.com/peekjef72/nrped v0.3.0-local
2937
github.com/prometheus/client_model v0.4.0 // indirect
38+
github.com/prometheus/exporter-toolkit v0.10.0
3039
github.com/prometheus/procfs v0.11.1 // indirect
3140
github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572 // indirect
3241
golang.org/x/sys v0.12.0 // indirect

go.sum

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,39 @@
1-
github.com/alecthomas/kingpin/v2 v2.3.1 h1:ANLJcKmQm4nIaog7xdr/id6FM6zm5hHnfZrvtKPxqGg=
2-
github.com/alecthomas/kingpin/v2 v2.3.1/go.mod h1:oYL5vtsvEHZGHxU7DMp32Dvx+qL+ptGn6lWaot2vCNE=
3-
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
1+
github.com/alecthomas/kingpin/v2 v2.3.2 h1:H0aULhgmSzN8xQ3nX1uxtdlTHYoPLu5AhHxWrKI6ocU=
2+
github.com/alecthomas/kingpin/v2 v2.3.2/go.mod h1:0gyi0zQnjuFk8xrkNKamJoyUo382HRL7ATRpFZCw6tE=
43
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 h1:s6gZFSlWYmbqAuRjVTiNNhvNRfY2Wxp9nhfyel4rklc=
54
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE=
65
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
76
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
87
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
98
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
9+
github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs=
10+
github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
1011
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
1112
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1213
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
13-
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1414
github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU=
1515
github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0=
1616
github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4=
1717
github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs=
18+
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
1819
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
20+
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
1921
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
2022
github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
2123
github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
2224
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
2325
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
26+
github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA=
27+
github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
2428
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
25-
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
2629
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
2730
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
2831
github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo=
2932
github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4=
33+
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU=
34+
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
3035
github.com/peekjef72/nrped v0.3.0-local h1:8DiedgpkKYhYDbpDj9orXkAT0YcqMcFCQQrOkyGgzIk=
3136
github.com/peekjef72/nrped v0.3.0-local/go.mod h1:nltZQ+J3fXO6P1zfCNxn/AuDhskW6YuwOkHIpw/oGsY=
32-
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
3337
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
3438
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
3539
github.com/prometheus/client_golang v1.14.0 h1:nJdhIvne2eSX/XRAFV9PcvFFRbrjbcTUj0VP62TMhnw=
@@ -38,25 +42,43 @@ github.com/prometheus/client_model v0.4.0 h1:5lQXD3cAg1OXBf4Wq03gTrXHeaV0TQvGfUo
3842
github.com/prometheus/client_model v0.4.0/go.mod h1:oMQmHW1/JoDwqLtg57MGgP/Fb1CJEYF2imWWhWtMkYU=
3943
github.com/prometheus/common v0.42.0 h1:EKsfXEYo4JpWMHH5cg+KOUWeuJSov1Id8zGR8eeI1YM=
4044
github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr1yjz4b7Zbc=
45+
github.com/prometheus/exporter-toolkit v0.10.0 h1:yOAzZTi4M22ZzVxD+fhy1URTuNRj/36uQJJ5S8IPza8=
46+
github.com/prometheus/exporter-toolkit v0.10.0/go.mod h1:+sVFzuvV5JDyw+Ih6p3zFxZNVnKQa3x5qPmDSiPu4ZY=
4147
github.com/prometheus/procfs v0.11.1 h1:xRC8Iq1yyca5ypa9n1EZnWZkt7dwcoRPQwX/5gwaUuI=
4248
github.com/prometheus/procfs v0.11.1/go.mod h1:eesXgaPo1q7lBpVMoMy0ZOFTth9hBn4W/y0/p/ScXhY=
43-
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
4449
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
4550
github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA=
4651
github.com/spacemonkeygo/openssl v0.0.0-20181017203307-c2dcc5cca94a h1:/eS3yfGjQKG+9kayBkj0ip1BGhq6zJ3eaVksphxAaek=
4752
github.com/spacemonkeygo/openssl v0.0.0-20181017203307-c2dcc5cca94a/go.mod h1:7AyxJNCJ7SBZ1MfVQCWD6Uqo2oubI2Eq2y2eqf+A5r0=
4853
github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572 h1:RC6RW7j+1+HkWaX/Yh71Ee5ZHaHYt7ZP4sQgUrm6cDU=
4954
github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572/go.mod h1:w0SWMsp6j9O/dk4/ZpIhL+3CkG8ofA2vuv7k+ltqUMc=
5055
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
51-
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
5256
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
53-
github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk=
54-
github.com/xhit/go-str2duration v1.2.0 h1:BcV5u025cITWxEQKGWr1URRzrcXtu7uk8+luz3Yuhwc=
55-
github.com/xhit/go-str2duration v1.2.0/go.mod h1:3cPSlfZlUHVlneIVfePFWcJZsuwf+P1v2SRTV4cUmp4=
57+
github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
58+
github.com/xhit/go-str2duration/v2 v2.1.0 h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8Ydu2Bstc=
59+
github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU=
60+
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
61+
golang.org/x/crypto v0.8.0 h1:pd9TJtTueMTVQXzk8E2XESSMQDj/U7OUu0PqJqPXQjQ=
62+
golang.org/x/crypto v0.8.0/go.mod h1:mRqEX+O9/h5TFCrQhkgjo2yKi0yYA+9ecGkdQoHrywE=
63+
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
64+
golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM=
65+
golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns=
66+
golang.org/x/oauth2 v0.6.0 h1:Lh8GPgSKBfWSwFvtuWOfeI3aAAnbXTSutYxJiOJFgIw=
67+
golang.org/x/oauth2 v0.6.0/go.mod h1:ycmewcwgD4Rpr3eZJLSB4Kyyljb3qDh40vJ8STE5HKw=
5668
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
69+
golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E=
70+
golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
71+
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
5772
golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o=
5873
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
74+
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
75+
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
76+
golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE=
77+
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
78+
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
5979
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
80+
google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c=
81+
google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
6082
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
6183
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
6284
google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8=
@@ -67,4 +89,3 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
6789
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
6890
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
6991
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
70-
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

0 commit comments

Comments
 (0)