Skip to content

Commit 898d8de

Browse files
committed
Rename template name to proper plugin name
1 parent 1dc5af6 commit 898d8de

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
# Dependency directories (remove the comment below to include it)
1515
# vendor/
1616

17-
plugin-template-go
17+
gatewayd-plugin-sql-idp

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ build:
22
go mod tidy && go build -ldflags "-s -w"
33

44
checksum:
5-
sha256sum -b plugin-template-go
5+
sha256sum -b gatewayd-plugin-sql-idp
66

77
update-all:
88
go get -u ./...

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# plugin-template-go
1+
# gatewayd-plugin-sql-idp
22

33
Use this template to create your own plugin.

gatewayd_plugin.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ healthCheckPeriod: 5s
1111

1212
plugins:
1313
# Plugin name
14-
- name: plugin-template-go
14+
- name: gatewayd-plugin-sql-idp
1515
# whether to enable or disable the plugin on the next run
1616
enabled: True
1717
# path to the plugin's binary file
18-
localPath: ../plugin-template-go/plugin-template-go
18+
localPath: ../gatewayd-plugin-sql-idp/gatewayd-plugin-sql-idp
1919
# Pass cmdline args to the plugin
2020
args: ["--log-level", "info"]
2121
# Pass environment variables to the plugin

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/gatewayd-io/plugin-template-go
1+
module github.com/gatewayd-io/gatewayd-plugin-sql-idp
22

33
go 1.20
44

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/gatewayd-io/gatewayd-plugin-sdk/metrics"
1010
p "github.com/gatewayd-io/gatewayd-plugin-sdk/plugin"
1111
v1 "github.com/gatewayd-io/gatewayd-plugin-sdk/plugin/v1"
12-
"github.com/gatewayd-io/plugin-template-go/plugin"
12+
"github.com/gatewayd-io/gatewayd-plugin-sql-idp/plugin"
1313
"github.com/hashicorp/go-hclog"
1414
goplugin "github.com/hashicorp/go-plugin"
1515
)

plugin/module.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import (
77

88
var (
99
PluginID = v1.PluginID{
10-
Name: "plugin-template-go",
10+
Name: "gatewayd-plugin-sql-idp",
1111
Version: "0.0.1",
12-
RemoteUrl: "github.com/gatewayd-io/plugin-template-go",
12+
RemoteUrl: "github.com/gatewayd-io/gatewayd-plugin-sql-idp",
1313
}
1414
PluginMap = map[string]goplugin.Plugin{
15-
"plugin-template-go": &TemplatePlugin{},
15+
"gatewayd-plugin-sql-idp": &TemplatePlugin{},
1616
}
1717
// TODO: Handle this in a better way
1818
// https://github.com/gatewayd-io/gatewayd-plugin-sdk/issues/3
@@ -27,11 +27,11 @@ var (
2727
"Mostafa Moradian <mostafa@gatewayd.io>",
2828
},
2929
"license": "Apache 2.0",
30-
"projectUrl": "https://github.com/gatewayd-io/plugin-template-go",
30+
"projectUrl": "https://github.com/gatewayd-io/gatewayd-plugin-sql-idp",
3131
// Compile-time configuration
3232
"config": map[string]interface{}{
3333
"metricsEnabled": "true",
34-
"metricsUnixDomainSocket": "/tmp/plugin-template-go.sock",
34+
"metricsUnixDomainSocket": "/tmp/gatewayd-plugin-sql-idp.sock",
3535
"metricsEndpoint": "/metrics",
3636
},
3737
// "requires": []interface{}{

0 commit comments

Comments
 (0)