Skip to content

Commit ebc7514

Browse files
committedFeb 3, 2025
Switch nginx config parser lib
1 parent fcea9f1 commit ebc7514

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed
 

‎go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/google/uuid v1.6.0
88
github.com/mitchellh/mapstructure v1.5.0
99
github.com/r2dtools/agentintegration v1.3.0
10-
github.com/r2dtools/gonginx v1.1.1
10+
github.com/r2dtools/gonginxconf v1.2.0
1111
github.com/shirou/gopsutil v3.21.11+incompatible
1212
github.com/spf13/cobra v1.8.1
1313
github.com/spf13/viper v1.19.0

‎go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI
4747
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
4848
github.com/r2dtools/agentintegration v1.3.0 h1:3gHp+pKDtYB5IdDZ1AM1t3j10ASQ8zpf3Sl+4wnBBl8=
4949
github.com/r2dtools/agentintegration v1.3.0/go.mod h1:zINos4DC49mvqNZZcwt6CSE+Q0tUhaAYgnyfJUG/JNI=
50-
github.com/r2dtools/gonginx v1.1.1 h1:PoVYIso6R6Iw1PsQkJqYYZQbzYVEm3JCIizAO1UKQoQ=
51-
github.com/r2dtools/gonginx v1.1.1/go.mod h1:HjgpvGAj7m9URplCCtTmIf17Gm1NgzIz3xzEdPKcmNk=
50+
github.com/r2dtools/gonginxconf v1.2.0 h1:Sb2HmsGKGyQ2x9mYWiG1uF30b7c0Tu5Qck800n6usk4=
51+
github.com/r2dtools/gonginxconf v1.2.0/go.mod h1:RquKILFm/m9Z8ze+8umV7/hs0I5z8ZxqOv2+0hUyaIY=
5252
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
5353
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
5454
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=

‎internal/modules/certificates/commondir/nginx.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/r2dtools/agent/internal/pkg/logger"
88
"github.com/r2dtools/agent/internal/pkg/webserver"
99
"github.com/r2dtools/agent/internal/pkg/webserver/reverter"
10-
"github.com/r2dtools/gonginx/config"
10+
"github.com/r2dtools/gonginxconf/config"
1111
)
1212

1313
const (

‎internal/modules/certificates/commondir/nginx_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/r2dtools/agent/internal/pkg/logger"
88
"github.com/r2dtools/agent/internal/pkg/webserver"
99
"github.com/r2dtools/agent/internal/pkg/webserver/reverter"
10-
"github.com/r2dtools/gonginx/config"
10+
"github.com/r2dtools/gonginxconf/config"
1111
"github.com/stretchr/testify/assert"
1212
"golang.org/x/exp/slices"
1313
)

‎internal/modules/certificates/deploy/nginx.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/r2dtools/agent/internal/pkg/webserver"
1212
"github.com/r2dtools/agent/internal/pkg/webserver/reverter"
1313
"github.com/r2dtools/agentintegration"
14-
nginxConfig "github.com/r2dtools/gonginx/config"
14+
nginxConfig "github.com/r2dtools/gonginxconf/config"
1515
)
1616

1717
type NginxCertificateDeployer struct {

‎internal/pkg/webserver/nginx.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/r2dtools/agent/internal/pkg/webserver/hostmng"
1010
"github.com/r2dtools/agent/internal/pkg/webserver/processmng"
1111
"github.com/r2dtools/agentintegration"
12-
nginxConfig "github.com/r2dtools/gonginx/config"
12+
nginxConfig "github.com/r2dtools/gonginxconf/config"
1313
)
1414

1515
const (

0 commit comments

Comments
 (0)
Failed to load comments.