+++ /dev/null
-package mockorchestrationapi
-
-import (
- "time"
- "math/rand"
- "log"
- "os"
-
- confdescription "configuremgr/description"
-)
-
-
-var ILog *log.Logger = log.New(os.Stdout, "[mockorchestrationapi] INFO : ", log.LstdFlags)
-var ELog *log.Logger = log.New(os.Stdout, "[mockorchestrationapi] ERROR : ", log.LstdFlags)
-var DLog *log.Logger = log.New(os.Stdout, "[mockorchestrationapi] DEBUG : ", log.LstdFlags)
-
-func PushConfPathDiscoveryDeviceMock (doc *confdescription.Doc) (err error) {
- ILog.Println("pushConfPathDiscoveryDeviceMock")
- ILog.Println(*doc)
- return
-}
-
-func PushConfPathAppExecuteMock(doc *confdescription.Doc) (err error) {
- ILog.Println("pushConfPathAppExecuteMock")
- ILog.Println(*doc)
- return
-}
-
-func PushLibPathScoringAppMock(libPath string, doc *confdescription.Doc, handlersCh chan<- interface{}) (err error) {
- ILog.Println("pushLibPathScoringAppMock")
- ILog.Println(libPath)
- return
-}
-
-func GetEndpointDevices(serviceName string) []string {
- return []string{"localhost", "localhost"}
-}
-
-func GetScore(endpoint string) float64{
- seed := rand.NewSource(time.Now().UnixNano())
- random := rand.New(seed)
-
- return random.Float64() * 100
-}
-
-func ExecuteApp(target string, name string, args []string, notiChan chan string) (serviceID uint64, err error) {
- ILog.Println("ExecuteApp")
- ILog.Println(target)
- ILog.Println(name)
- ILog.Println(args)
- return
-}
-
-func InitServiceMgr() () {
-
-}
\ No newline at end of file