-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
30 lines (23 loc) · 812 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package main
import (
"github.com/mach-composer/mach-composer-plugin-sdk/v2/plugin"
"github.com/mach-composer/mach-composer-plugin-sdk/v2/schema"
"github.com/mach-composer/mach-composer-plugin-sentry/internal"
)
func main() {
p := internal.NewSentryPlugin()
plugin.ServePlugin(plugin.NewPlugin(&schema.PluginSchema{
Identifier: "sentry",
Configure: p.Configure,
GetValidationSchema: p.GetValidationSchema,
// Config
SetGlobalConfig: p.SetGlobalConfig,
SetSiteConfig: p.SetSiteConfig,
SetSiteComponentConfig: p.SetSiteComponentConfig,
SetComponentConfig: p.SetComponentConfig,
// Renders
RenderTerraformProviders: p.RenderTerraformProviders,
RenderTerraformResources: p.RenderTerraformResources,
RenderTerraformComponent: p.RenderTerraformComponent,
}))
}