-
Notifications
You must be signed in to change notification settings - Fork 0
/
meta.go
39 lines (31 loc) · 1.05 KB
/
meta.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
31
32
33
34
35
36
37
38
39
package meta
import (
"github.com/hellgate75/go-deploy/types/module"
"github.com/hellgate75/go-deploy/types/threads"
"github.com/hellgate75/go-tcp-common/log"
)
type Symbol interface{}
// Get Required system logger verbosity
func GetVerbosity() string {
if module.RuntimeDeployConfig != nil {
return module.RuntimeDeployConfig.LogVerbosity
} else {
return "INFO"
}
}
// Coverter interface, responsible to comvert raw interface from the parsing to a specific structure
type Converter interface {
// Converts a raw interface element to a command qualified structure <BR/>
// Paramameters: <BR/>
// cmdValues (interface{}) Raw value from the feed file parsing
// Return: <BR/>
// (interface{}) Qualified structure <BR/>
// (error) Error occured during any conversion <BR/>
Convert(cmdValues interface{}) (threads.StepRunnable, error)
// Set locally into the converter the logger to use
SetLogger(l log.Logger)
}
// Interface that defines the Proxy Stub Components behaviors
type ProxyStub interface {
Discover(module string) (Converter, error)
}