forked from devstream-io/devstream
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
39 lines (30 loc) · 1.25 KB
/
main.go
File metadata and controls
39 lines (30 loc) · 1.25 KB
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
31
32
33
34
35
36
37
38
39
package main
import (
"github.com/devstream-io/devstream/internal/pkg/plugin/githubactions/golang"
"github.com/devstream-io/devstream/pkg/util/log"
)
// NAME is the name of this DevStream plugin.
const NAME = "githubactions-golang"
// Plugin is the type used by DevStream core. It's a string.
type Plugin string
// Create implements the installation of some GitHub Actions workflows.
func (p Plugin) Create(options map[string]interface{}) (map[string]interface{}, error) {
return golang.Create(options)
}
// Update implements the installation of some GitHub Actions workflows.
func (p Plugin) Update(options map[string]interface{}) (map[string]interface{}, error) {
return golang.Update(options)
}
// Read implements the healthy check of GitHub Actions workflows.
func (p Plugin) Read(options map[string]interface{}) (map[string]interface{}, error) {
return golang.Read(options)
}
// Delete implements the installation of some GitHub Actions workflows.
func (p Plugin) Delete(options map[string]interface{}) (bool, error) {
return golang.Delete(options)
}
// DevStreamPlugin is the exported variable used by the DevStream core.
var DevStreamPlugin Plugin
func main() {
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
}