This directory contains the verifier. The directory structure follows the pattern of all EVE pillar services as follows:
lib/
contains core logic, has no dependency on being called command-line or pubsub. It is simply functions that can be called to handle file verification.pubsub/
contains functions to handle pubsub messages, including all handlers.cmd/
contains CLI commands and sub-commands, all in packagemain
. Can be called isgo run ./cmd
. Call either functions inpubsub/
orlib/
depending on the command.run.go
is the entrypoint for calling as part of zedbox, exposes the implementation oftypes.AgentRunner
.
To run as a CLI:
go run ./cmd
To include as a pubsub library elsewhere, like in pillar:
import (
"github.com/lf-edge/eden/pkg/verifier"
)
func main() {
verifier.Run(pubSubImpl, logrusLogger, baseLogObject, []string{argument1, argument2})
}