Initial commit
This commit is contained in:
commit
19296f4188
18 changed files with 2562 additions and 0 deletions
21
plugin/plugin.go
Normal file
21
plugin/plugin.go
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
// Command plugin is the happyDomain plugin entrypoint for the
|
||||
// OPENPGPKEY/SMIMEA checker. Built as a Go plugin and loaded at runtime
|
||||
// by happyDomain.
|
||||
package main
|
||||
|
||||
import (
|
||||
emailkeys "git.happydns.org/checker-email-keys/checker"
|
||||
sdk "git.happydns.org/checker-sdk-go/checker"
|
||||
)
|
||||
|
||||
// Version is the plugin's version, meant to be overridden by CI:
|
||||
//
|
||||
// go build -buildmode=plugin -ldflags "-X main.Version=1.2.3" -o checker-email-keys.so ./plugin
|
||||
var Version = "custom-build"
|
||||
|
||||
// NewCheckerPlugin is the symbol resolved by happyDomain when loading
|
||||
// the .so file.
|
||||
func NewCheckerPlugin() (*sdk.CheckerDefinition, sdk.ObservationProvider, error) {
|
||||
emailkeys.Version = Version
|
||||
return emailkeys.Definition(), emailkeys.Provider(), nil
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue