Skip to content

Commit 24e3614

Browse files
authored
Merge pull request #72 from mutablelogic/v4
Added LDAP as a handler
2 parents e9c0269 + 67516f0 commit 24e3614

34 files changed

+2062
-256
lines changed

README.md

+14-16
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,25 @@ is a large "monolith" server which can be composed of many smaller
2525

2626
## Running the server
2727

28-
The easiest way to run an nginx reverse proxy server, with an API to
28+
The easiest way to run an nginx reverse proxy server, with an API to
2929
manage nginx configuration, is through docker:
3030

3131
```bash
32-
docker run -p 8080:80 ghcr.io/mutablelogic/go-server
32+
docker run -p 8080:80 -v /var/lib/go-server:/data ghcr.io/mutablelogic/go-server
3333
```
3434

35-
This will start a server on port 8080. Use API commands to manage the
36-
nginx configuration. Ultimately you'll want to develop your own plugins
37-
and can use this image as the base image for your own server.
35+
This will start a server on port 8080 and use `/var/lib/go-server` for persistent
36+
data. Use API commands to manage the nginx configuration. Ultimately you'll
37+
want to develop your own plugins and can use this image as the base image for your
38+
own server.
39+
40+
When you first run the server, a "root" API token is created which is used to
41+
authenticate API requests. You can find this token in the log output or by running
42+
the following command:
43+
44+
```bash
45+
docker exec <container-id> cat /data/tokenauth.json
46+
```
3847

3948
## Requirements and Building
4049

@@ -56,17 +65,6 @@ other make targets:
5665
- `DOCKER_REPOSITORY=docker.io/user make docker` to build a docker image.
5766
- `DOCKER_REPOSITORY=docker.io/user make docker-push` to push a docker image.
5867

59-
## Running the Server
60-
61-
You can run the server:
62-
63-
1. With a HTTP server over network: You can specify TLS key and certificate
64-
to serve requests over a secure connection;
65-
2. With a HTTP server with FastCGI over a unix socket: You would want to do
66-
this if the server is behind a reverse proxy such as nginx.
67-
3. In a docker container, and expose the port outside the container. The docker
68-
container targets `amd64` and `arm64` architectures on Linux.
69-
7068
## Project Status
7169

7270
This module is currently __in development__ and is not yet ready for any production

cmd/nginx-server/main.go

+78-19
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
auth "github.com/mutablelogic/go-server/pkg/handler/auth"
1616
certmanager "github.com/mutablelogic/go-server/pkg/handler/certmanager"
1717
certstore "github.com/mutablelogic/go-server/pkg/handler/certmanager/certstore"
18+
ldap "github.com/mutablelogic/go-server/pkg/handler/ldap"
1819
logger "github.com/mutablelogic/go-server/pkg/handler/logger"
1920
nginx "github.com/mutablelogic/go-server/pkg/handler/nginx"
2021
router "github.com/mutablelogic/go-server/pkg/handler/router"
@@ -24,8 +25,11 @@ import (
2425
)
2526

2627
var (
27-
binary = flag.String("path", "nginx", "Path to nginx binary")
28-
group = flag.String("group", "", "Group to run unix socket as")
28+
binary = flag.String("nginx", "nginx", "Path to nginx binary")
29+
group = flag.String("group", "", "Group to run unix socket as")
30+
data = flag.String("data", "", "Path to data (emphermeral) directory")
31+
conf = flag.String("conf", "", "Path to conf (persistent) directory")
32+
ldap_password = flag.String("ldap-password", "", "LDAP admin password")
2933
)
3034

3135
/* command to test the nginx package */
@@ -39,25 +43,38 @@ func main() {
3943
// Create context which cancels on interrupt
4044
ctx := ctx.ContextForSignal(os.Interrupt, syscall.SIGQUIT)
4145

46+
// Set of tasks
47+
var tasks []server.Task
48+
4249
// Logger
4350
logger, err := logger.Config{Flags: []string{"default", "prefix"}}.New()
4451
if err != nil {
45-
log.Fatal(err)
52+
log.Fatal("logger: ", err)
53+
} else {
54+
tasks = append(tasks, logger)
4655
}
4756

4857
// Nginx handler
49-
n, err := nginx.Config{BinaryPath: *binary}.New()
58+
n, err := nginx.Config{
59+
BinaryPath: *binary,
60+
DataPath: *data,
61+
ConfigPath: *conf,
62+
}.New()
5063
if err != nil {
51-
log.Fatal(err)
64+
log.Fatal("nginx: ", err)
65+
} else {
66+
tasks = append(tasks, n)
5267
}
5368

5469
// Token Jar
5570
jar, err := tokenjar.Config{
56-
DataPath: n.(nginx.Nginx).Config(),
71+
DataPath: n.(nginx.Nginx).ConfigPath(),
5772
WriteInterval: 30 * time.Second,
5873
}.New()
5974
if err != nil {
60-
log.Fatal(err)
75+
log.Fatal("tokenjar: ", err)
76+
} else {
77+
tasks = append(tasks, jar)
6178
}
6279

6380
// Auth handler
@@ -67,29 +84,49 @@ func main() {
6784
Bearer: true, // Use bearer token in requests for authorization
6885
}.New()
6986
if err != nil {
70-
log.Fatal(err)
87+
log.Fatal("auth: ", err)
88+
} else {
89+
tasks = append(tasks, auth)
7190
}
7291

73-
// Cert Storage
92+
// Cert storage
7493
certstore, err := certstore.Config{
75-
DataPath: filepath.Join(n.(nginx.Nginx).Config(), "cert"),
94+
DataPath: filepath.Join(n.(nginx.Nginx).ConfigPath(), "cert"),
7695
Group: *group,
7796
}.New()
7897
if err != nil {
79-
log.Fatal(err)
98+
log.Fatal("certstore: ", err)
99+
} else {
100+
tasks = append(tasks, certstore)
80101
}
102+
103+
// Cert manager
81104
certmanager, err := certmanager.Config{
82105
CertStorage: certstore.(certmanager.CertStorage),
106+
X509Name: certmanager.X509Name{
107+
OrganizationalUnit: "mutablelogic.com",
108+
Organization: "mutablelogic",
109+
StreetAddress: "N/A",
110+
Locality: "Berlin",
111+
Province: "Berlin",
112+
PostalCode: "10967",
113+
Country: "DE",
114+
},
83115
}.New()
84116
if err != nil {
85-
log.Fatal(err)
117+
log.Fatal("certmanager: ", err)
118+
} else {
119+
tasks = append(tasks, certmanager)
86120
}
87121

88-
// Location of the FCGI unix socket
89-
socket := filepath.Join(n.(nginx.Nginx).Config(), "run/go-server.sock")
122+
// Location of the FCGI unix socket - this should be the same
123+
// as that listed in the nginx configuration
124+
socket := filepath.Join(n.(nginx.Nginx).DataPath(), "nginx/go-server.sock")
90125

91126
// Router
92-
router, err := router.Config{
127+
// TODO: Promote middleware to the root of the configuration to reduce
128+
// duplication
129+
r, err := router.Config{
93130
Services: router.ServiceConfig{
94131
"nginx": { // /api/nginx/...
95132
Service: n.(server.ServiceEndpoints),
@@ -115,21 +152,43 @@ func main() {
115152
},
116153
}.New()
117154
if err != nil {
118-
log.Fatal(err)
155+
log.Fatal("router: ", err)
156+
} else {
157+
tasks = append(tasks, r)
158+
}
159+
160+
// Add router
161+
r.(router.Router).AddServiceEndpoints("router", r.(server.ServiceEndpoints), logger.(server.Middleware), auth.(server.Middleware))
162+
163+
// LDAP
164+
if *ldap_password != "" {
165+
ldap, err := ldap.Config{
166+
URL: "ldap://admin@cm1.local/",
167+
DN: "dc=mutablelogic,dc=com",
168+
Password: *ldap_password,
169+
}.New()
170+
if err != nil {
171+
log.Fatal("ldap: ", err)
172+
} else {
173+
r.(router.Router).AddServiceEndpoints("ldap", ldap.(server.ServiceEndpoints), logger.(server.Middleware), auth.(server.Middleware))
174+
tasks = append(tasks, ldap)
175+
}
119176
}
120177

121178
// HTTP Server
122179
httpserver, err := httpserver.Config{
123180
Listen: socket,
124181
Group: *group,
125-
Router: router.(http.Handler),
182+
Router: r.(http.Handler),
126183
}.New()
127184
if err != nil {
128-
log.Fatal(err)
185+
log.Fatal("httpserver: ", err)
186+
} else {
187+
tasks = append(tasks, httpserver)
129188
}
130189

131190
// Run until we receive an interrupt
132-
provider := provider.NewProvider(logger, n, jar, auth, certstore, certmanager, router, httpserver)
191+
provider := provider.NewProvider(tasks...)
133192
provider.Print(ctx, "Press CTRL+C to exit")
134193
if err := provider.Run(ctx); err != nil {
135194
log.Fatal(err)

etc/docker/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@ EXPOSE 80 443
3939
STOPSIGNAL SIGQUIT
4040

4141
# Set group to nginx to set group permissions on the FCGI socket
42-
CMD [ "/usr/local/bin/nginx-server", "-group", "nginx" ]
42+
# Set data (ephermeral) directory to /var/run
43+
# Set configuration (persistent) directory to /data
44+
CMD [ "/usr/local/bin/nginx-server", "-group", "nginx", "-data", "/var/run", "-conf", "/data" ]

etc/docker/entrypoint.sh

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ fi
88
# Create the /alloc/logs folder if it doesn't exist
99
install -d -m 0755 /alloc/logs || exit 1
1010

11+
# Create the persistent data folder if it doesn't exist
12+
install -d -m 0755 /data || exit 1
13+
1114
# Run the command
1215
set -e
1316
umask 022

go.mod

+9
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,21 @@ toolchain go1.22.3
77
require (
88
github.com/djthorpe/go-errors v1.0.3
99
github.com/djthorpe/go-tablewriter v0.0.7
10+
github.com/go-ldap/ldap/v3 v3.4.8
1011
github.com/mutablelogic/go-client v1.0.8
1112
github.com/stretchr/testify v1.9.0
1213
)
1314

1415
require (
16+
github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 // indirect
1517
github.com/davecgh/go-spew v1.1.1 // indirect
18+
github.com/go-asn1-ber/asn1-ber v1.5.7 // indirect
19+
github.com/google/uuid v1.6.0 // indirect
20+
github.com/mattn/go-runewidth v0.0.15 // indirect
1621
github.com/pmezard/go-difflib v1.0.0 // indirect
22+
github.com/rivo/uniseg v0.4.7 // indirect
23+
golang.org/x/crypto v0.24.0 // indirect
24+
golang.org/x/sys v0.21.0 // indirect
25+
golang.org/x/term v0.21.0 // indirect
1726
gopkg.in/yaml.v3 v3.0.1 // indirect
1827
)

go.sum

+99
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,115 @@
1+
github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 h1:mFRzDkZVAjdal+s7s0MwaRv9igoPqLRdzOLzw/8Xvq8=
2+
github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358/go.mod h1:chxPXzSsl7ZWRAuOIE23GDNzjWuZquvFlgA8xmpunjU=
3+
github.com/alexbrainman/sspi v0.0.0-20231016080023-1a75b4708caa h1:LHTHcTQiSGT7VVbI0o4wBRNQIgn917usHWOd6VAffYI=
4+
github.com/alexbrainman/sspi v0.0.0-20231016080023-1a75b4708caa/go.mod h1:cEWa1LVoE5KvSD9ONXsZrj0z6KqySlCCNKHlLzbqAt4=
5+
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
16
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
27
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
38
github.com/djthorpe/go-errors v1.0.3 h1:GZeMPkC1mx2vteXLI/gvxZS0Ee9zxzwD1mcYyKU5jD0=
49
github.com/djthorpe/go-errors v1.0.3/go.mod h1:HtfrZnMd6HsX75Mtbv9Qcnn0BqOrrFArvCaj3RMnZhY=
510
github.com/djthorpe/go-tablewriter v0.0.7 h1:jnNsJDjjLLCt0OAqB5DzGZN7V3beT1IpNMQ8GcOwZDU=
611
github.com/djthorpe/go-tablewriter v0.0.7/go.mod h1:NVBvytpL+6fHfCKn0+3lSi15/G3A1HWf2cLNeHg6YBg=
12+
github.com/go-asn1-ber/asn1-ber v1.5.5 h1:MNHlNMBDgEKD4TcKr36vQN68BA00aDfjIt3/bD50WnA=
13+
github.com/go-asn1-ber/asn1-ber v1.5.5/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0=
14+
github.com/go-asn1-ber/asn1-ber v1.5.7 h1:DTX+lbVTWaTw1hQ+PbZPlnDZPEIs0SS/GCZAl535dDk=
15+
github.com/go-asn1-ber/asn1-ber v1.5.7/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0=
16+
github.com/go-ldap/ldap/v3 v3.4.8 h1:loKJyspcRezt2Q3ZRMq2p/0v8iOurlmeXDPw6fikSvQ=
17+
github.com/go-ldap/ldap/v3 v3.4.8/go.mod h1:qS3Sjlu76eHfHGpUdWkAXQTw4beih+cHsco2jXlIXrk=
18+
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
19+
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
20+
github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4=
21+
github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM=
22+
github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
23+
github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8=
24+
github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
25+
github.com/jcmturner/aescts/v2 v2.0.0 h1:9YKLH6ey7H4eDBXW8khjYslgyqG2xZikXP0EQFKrle8=
26+
github.com/jcmturner/aescts/v2 v2.0.0/go.mod h1:AiaICIRyfYg35RUkr8yESTqvSy7csK90qZ5xfvvsoNs=
27+
github.com/jcmturner/dnsutils/v2 v2.0.0 h1:lltnkeZGL0wILNvrNiVCR6Ro5PGU/SeBvVO/8c/iPbo=
28+
github.com/jcmturner/dnsutils/v2 v2.0.0/go.mod h1:b0TnjGOvI/n42bZa+hmXL+kFJZsFT7G4t3HTlQ184QM=
29+
github.com/jcmturner/gofork v1.7.6 h1:QH0l3hzAU1tfT3rZCnW5zXl+orbkNMMRGJfdJjHVETg=
30+
github.com/jcmturner/gofork v1.7.6/go.mod h1:1622LH6i/EZqLloHfE7IeZ0uEJwMSUyQ/nDd82IeqRo=
31+
github.com/jcmturner/goidentity/v6 v6.0.1 h1:VKnZd2oEIMorCTsFBnJWbExfNN7yZr3EhJAxwOkZg6o=
32+
github.com/jcmturner/goidentity/v6 v6.0.1/go.mod h1:X1YW3bgtvwAXju7V3LCIMpY0Gbxyjn/mY9zx4tFonSg=
33+
github.com/jcmturner/gokrb5/v8 v8.4.4 h1:x1Sv4HaTpepFkXbt2IkL29DXRf8sOfZXo8eRKh687T8=
34+
github.com/jcmturner/gokrb5/v8 v8.4.4/go.mod h1:1btQEpgT6k+unzCwX1KdWMEwPPkkgBtP+F6aCACiMrs=
35+
github.com/jcmturner/rpc/v2 v2.0.3 h1:7FXXj8Ti1IaVFpSAziCZWNzbNuZmnvw/i6CqLNdWfZY=
36+
github.com/jcmturner/rpc/v2 v2.0.3/go.mod h1:VUJYCIDm3PVOEHw8sgt091/20OJjskO/YJki3ELg/Hc=
37+
github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U=
38+
github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
739
github.com/mutablelogic/go-client v1.0.8 h1:A3QtP0wdf+W3dE5k7dobwGYqqn4ZpIqRFu+h9vPoy7Y=
840
github.com/mutablelogic/go-client v1.0.8/go.mod h1:aP9ecBd4R/acJEJSyp81U3mey9W3AHQV/G1XzfcrLx0=
941
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
1042
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
43+
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
44+
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
45+
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
46+
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
47+
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
48+
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
49+
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
50+
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
51+
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
52+
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
1153
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
1254
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
55+
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
56+
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
57+
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
58+
golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58=
59+
golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
60+
golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs=
61+
golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI=
62+
golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8=
63+
golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI=
64+
golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM=
65+
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
66+
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
67+
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
68+
golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
69+
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
70+
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
71+
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
72+
golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
73+
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
74+
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
75+
golang.org/x/net v0.22.0 h1:9sGLhx7iRIHEiX0oAJ3MRZMUCElJgy7Br1nO+AMN3Tc=
76+
golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
77+
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
78+
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
79+
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
80+
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
81+
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
82+
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
83+
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
84+
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
85+
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
86+
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
87+
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
88+
golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
89+
golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws=
90+
golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
91+
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
92+
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
93+
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
94+
golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
95+
golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk=
96+
golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58=
97+
golang.org/x/term v0.21.0 h1:WVXCp+/EBEHOj53Rvu+7KiT/iElMrO8ACK16SMZ3jaA=
98+
golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0=
99+
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
100+
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
101+
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
102+
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
103+
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
104+
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
105+
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
106+
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
107+
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
108+
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
109+
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
13110
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
14111
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
112+
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
113+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
15114
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
16115
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

0 commit comments

Comments
 (0)