Loading .meepctl-repocfg.yaml +42 −74 Original line number Diff line number Diff line Loading @@ -300,7 +300,7 @@ repo: - meep-metrics-engine - meep-mg-manager - meep-rnis - meep-dai # - meep-dai - meep-tm - meep-wais - meep-ams Loading Loading @@ -413,7 +413,7 @@ repo: meep-metrics-engine: charts/meep-metrics-engine meep-mg-manager: charts/meep-mg-manager meep-rnis: charts/meep-rnis meep-dai: charts/meep-dai # meep-dai: charts/meep-dai meep-tm: charts/meep-tm meep-wais: charts/meep-wais meep-ams: charts/meep-ams Loading @@ -429,7 +429,7 @@ repo: - meep-metrics-engine - meep-mg-manager - meep-rnis - meep-dai # - meep-dai - meep-tm - meep-wais - meep-ams Loading Loading @@ -718,38 +718,6 @@ repo: docker-data: # location of entry script 'entrypoint.sh': go-apps/meep-rnis/entrypoint.sh meep-sandbox-api: # location of source code src: go-apps/meep-sandbox-api # location of binary bin: bin/meep-sandbox-api # location of deployment chart chart: charts/meep-sandbox-api # user supplied value file located @ .meep/user/values (use below file name) chart-user-values: meep-sandbox-api.yaml # extra build flags build-flags: - -mod=vendor # enable meepctl build build: true # enable meepctl dockerize dockerize: true # enable meepctl deploy/delete deploy: true # supports code coverage measurement when built in codecov mode codecov: true # supports linting lint: true # location of API specifications api: - name: 'AdvantEDGE Sandbox REST API' file: go-apps/meep-sandbox-api/api/swagger.yaml # location of user supplied API specifications user-api: # resources available to docker container image docker-data: # location of entry script 'entrypoint.sh': go-apps/meep-sandbox-api/entrypoint.sh meep-sandbox-ctrl: # location of source code src: go-apps/meep-sandbox-ctrl Loading Loading @@ -913,40 +881,40 @@ repo: docker-data: # location of entry script 'entrypoint.sh': go-apps/meep-vis/entrypoint.sh meep-dai: # location of source code src: go-apps/meep-dai # location of binary bin: bin/meep-dai # location of deployment chart chart: charts/meep-dai # user supplied value file located @ .meep/user/values (use below file name) chart-user-values: meep-dai.yaml # extra build flags build-flags: - -mod=vendor # enable meepctl build build: true # enable meepctl dockerize dockerize: true # enable meepctl deploy/delete deploy: true # supports code coverage measurement when built in codecov mode codecov: true # supports onboarded device application instantiation onboardedapp: true # supports linting lint: true # location of API specifications api: - name: 'AdvantEDGE Device Application Interface Service REST API' file: go-apps/meep-dai/api/swagger.yaml # location of user supplied API specifications user-api: # resources available to docker container image docker-data: # location of entry script 'entrypoint.sh': go-apps/meep-dai/entrypoint.sh # meep-dai: # # location of source code # src: go-apps/meep-dai # # location of binary # bin: bin/meep-dai # # location of deployment chart # chart: charts/meep-dai # # user supplied value file located @ .meep/user/values (use below file name) # chart-user-values: meep-dai.yaml # # extra build flags # build-flags: # - -mod=vendor # # enable meepctl build # build: true # # enable meepctl dockerize # dockerize: true # # enable meepctl deploy/delete # deploy: true # # supports code coverage measurement when built in codecov mode # codecov: true # # supports onboarded device application instantiation # onboardedapp: true # # supports linting # lint: true # # location of API specifications # api: # - name: 'AdvantEDGE Device Application Interface Service REST API' # file: go-apps/meep-dai/api/swagger.yaml # # location of user supplied API specifications # user-api: # # resources available to docker container image # docker-data: # # location of entry script # 'entrypoint.sh': go-apps/meep-dai/entrypoint.sh #------------------------------ # Dependencies Loading Loading @@ -1297,11 +1265,11 @@ repo: src: go-packages/meep-websocket # supports linting lint: true meep-dai-client: # location of source code src: go-packages/meep-dai-client # supports linting lint: false # meep-dai-client: # # location of source code # src: go-packages/meep-dai-client # # supports linting # lint: false # Javascript Packages js-packages: Loading examples/demo6/main.go +25 −18 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ import ( "errors" "fmt" "io" "io/ioutil" "net/http" "net/url" "os" Loading Loading @@ -71,12 +72,12 @@ const ( QUIT = "q" ) // func clearScreen() { // fmt.Println("\033[2J") // } func clearScreen() { fmt.Println("\033[2J") } func menu(message string) []string { //clearScreen() clearScreen() fmt.Printf( "%s:login, %s:logout, %s:get scenario list, %s <index>:get scenario description\n"+ "%s <index>: Activate scenario, %s <index>: Terminate scenario\n"+ Loading Loading @@ -218,37 +219,37 @@ func verify_idx_len(choice string, len int) (int, error) { return idx, nil } func get_v2x_uu_unicast_setting() (*http.Response, error) { func get_v2x_uu_unicast_setting() (body []byte, response *http.Response, err error) { fmt.Println(">>> get_v2x_uu_unicast_setting") // Sanity checks if sandboxName == "" { return nil, errors.New("No sandbox available") return nil, nil, errors.New("No sandbox available") } url := mecServicePath + sandboxName + "/" + mecPlateform + "/vis/2/queries/uu_unicast_provisioning_info?location_info=ecgi,33139970001614,33139971112725" url := mecServicePath + sandboxName + "/" + mecPlateform + "/vis/v2/queries/uu_unicast_provisioning_info?location_info=ecgi,33139970001614,33139971112725" fmt.Println(">>> send_mec_service_request: url: " + url) response, err := send_mec_service_request(http.MethodGet, url, nil, nil, nil, nil) body, response, err = send_mec_service_request(http.MethodGet, url, nil, nil, nil, nil) if err != nil { return nil, err return nil, nil, err } return response, nil return body, response, nil } func send_mec_service_request(method string, path string, body io.Reader, vars url.Values, queryParams url.Values, location *string) (res *http.Response, err error) { func send_mec_service_request(method string, path string, body io.Reader, vars url.Values, queryParams url.Values, location *string) (resbody []byte, res *http.Response, err error) { fmt.Println(">>> send_mec_service_request") // Sanity checks if sandboxName == "" { err = errors.New("No sandbox available") return nil, err return nil, nil, err } // Setup path and query parameters url, err := url.Parse(path) if err != nil { return nil, err return nil, nil, err } // Adding Query Param Loading @@ -270,7 +271,7 @@ func send_mec_service_request(method string, path string, body io.Reader, vars u localVarRequest, err = http.NewRequest(method, url.String(), nil) } if err != nil { return nil, err return nil, nil, err } // Override request host, if applicable Loading @@ -289,10 +290,16 @@ func send_mec_service_request(method string, path string, body io.Reader, vars u res, err = cfg.HTTPClient.Do(localVarRequest) if err != nil { return nil, err return nil, nil, err } resbody, err = ioutil.ReadAll(res.Body) if err != nil { return nil, nil, err } res.Body.Close() return res, err return resbody, res, err } func main() { Loading Loading @@ -386,12 +393,12 @@ func main() { message = fmt.Sprintf("Services: %s", fmt.Sprint(services)) } else if strings.Compare(choice[0], UU_SETTINGS) == 0 { var err error response, err := get_v2x_uu_unicast_setting() body, _, err := get_v2x_uu_unicast_setting() if err != nil { message = err.Error() continue } message = fmt.Sprintf("response: %s", fmt.Sprint(response)) message = fmt.Sprintf("response body: %s", string(body)) } else { message = fmt.Sprintf("Invalid command: %s", choice) } Loading go-apps/meep-virt-engine/entrypoint.sh +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ mv /meep-ams /templates/sandbox/meep-ams mv /meep-sandbox-ctrl /templates/sandbox/meep-sandbox-ctrl mv /meep-tc-engine /templates/sandbox/meep-tc-engine mv /meep-vis /templates/sandbox/meep-vis mv /meep-dai /templates/sandbox/meep-dai #mv /meep-dai /templates/sandbox/meep-dai mv /meep-tm /templates/sandbox/meep-tm mkdir -p /templates/scenario Loading Loading
.meepctl-repocfg.yaml +42 −74 Original line number Diff line number Diff line Loading @@ -300,7 +300,7 @@ repo: - meep-metrics-engine - meep-mg-manager - meep-rnis - meep-dai # - meep-dai - meep-tm - meep-wais - meep-ams Loading Loading @@ -413,7 +413,7 @@ repo: meep-metrics-engine: charts/meep-metrics-engine meep-mg-manager: charts/meep-mg-manager meep-rnis: charts/meep-rnis meep-dai: charts/meep-dai # meep-dai: charts/meep-dai meep-tm: charts/meep-tm meep-wais: charts/meep-wais meep-ams: charts/meep-ams Loading @@ -429,7 +429,7 @@ repo: - meep-metrics-engine - meep-mg-manager - meep-rnis - meep-dai # - meep-dai - meep-tm - meep-wais - meep-ams Loading Loading @@ -718,38 +718,6 @@ repo: docker-data: # location of entry script 'entrypoint.sh': go-apps/meep-rnis/entrypoint.sh meep-sandbox-api: # location of source code src: go-apps/meep-sandbox-api # location of binary bin: bin/meep-sandbox-api # location of deployment chart chart: charts/meep-sandbox-api # user supplied value file located @ .meep/user/values (use below file name) chart-user-values: meep-sandbox-api.yaml # extra build flags build-flags: - -mod=vendor # enable meepctl build build: true # enable meepctl dockerize dockerize: true # enable meepctl deploy/delete deploy: true # supports code coverage measurement when built in codecov mode codecov: true # supports linting lint: true # location of API specifications api: - name: 'AdvantEDGE Sandbox REST API' file: go-apps/meep-sandbox-api/api/swagger.yaml # location of user supplied API specifications user-api: # resources available to docker container image docker-data: # location of entry script 'entrypoint.sh': go-apps/meep-sandbox-api/entrypoint.sh meep-sandbox-ctrl: # location of source code src: go-apps/meep-sandbox-ctrl Loading Loading @@ -913,40 +881,40 @@ repo: docker-data: # location of entry script 'entrypoint.sh': go-apps/meep-vis/entrypoint.sh meep-dai: # location of source code src: go-apps/meep-dai # location of binary bin: bin/meep-dai # location of deployment chart chart: charts/meep-dai # user supplied value file located @ .meep/user/values (use below file name) chart-user-values: meep-dai.yaml # extra build flags build-flags: - -mod=vendor # enable meepctl build build: true # enable meepctl dockerize dockerize: true # enable meepctl deploy/delete deploy: true # supports code coverage measurement when built in codecov mode codecov: true # supports onboarded device application instantiation onboardedapp: true # supports linting lint: true # location of API specifications api: - name: 'AdvantEDGE Device Application Interface Service REST API' file: go-apps/meep-dai/api/swagger.yaml # location of user supplied API specifications user-api: # resources available to docker container image docker-data: # location of entry script 'entrypoint.sh': go-apps/meep-dai/entrypoint.sh # meep-dai: # # location of source code # src: go-apps/meep-dai # # location of binary # bin: bin/meep-dai # # location of deployment chart # chart: charts/meep-dai # # user supplied value file located @ .meep/user/values (use below file name) # chart-user-values: meep-dai.yaml # # extra build flags # build-flags: # - -mod=vendor # # enable meepctl build # build: true # # enable meepctl dockerize # dockerize: true # # enable meepctl deploy/delete # deploy: true # # supports code coverage measurement when built in codecov mode # codecov: true # # supports onboarded device application instantiation # onboardedapp: true # # supports linting # lint: true # # location of API specifications # api: # - name: 'AdvantEDGE Device Application Interface Service REST API' # file: go-apps/meep-dai/api/swagger.yaml # # location of user supplied API specifications # user-api: # # resources available to docker container image # docker-data: # # location of entry script # 'entrypoint.sh': go-apps/meep-dai/entrypoint.sh #------------------------------ # Dependencies Loading Loading @@ -1297,11 +1265,11 @@ repo: src: go-packages/meep-websocket # supports linting lint: true meep-dai-client: # location of source code src: go-packages/meep-dai-client # supports linting lint: false # meep-dai-client: # # location of source code # src: go-packages/meep-dai-client # # supports linting # lint: false # Javascript Packages js-packages: Loading
examples/demo6/main.go +25 −18 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ import ( "errors" "fmt" "io" "io/ioutil" "net/http" "net/url" "os" Loading Loading @@ -71,12 +72,12 @@ const ( QUIT = "q" ) // func clearScreen() { // fmt.Println("\033[2J") // } func clearScreen() { fmt.Println("\033[2J") } func menu(message string) []string { //clearScreen() clearScreen() fmt.Printf( "%s:login, %s:logout, %s:get scenario list, %s <index>:get scenario description\n"+ "%s <index>: Activate scenario, %s <index>: Terminate scenario\n"+ Loading Loading @@ -218,37 +219,37 @@ func verify_idx_len(choice string, len int) (int, error) { return idx, nil } func get_v2x_uu_unicast_setting() (*http.Response, error) { func get_v2x_uu_unicast_setting() (body []byte, response *http.Response, err error) { fmt.Println(">>> get_v2x_uu_unicast_setting") // Sanity checks if sandboxName == "" { return nil, errors.New("No sandbox available") return nil, nil, errors.New("No sandbox available") } url := mecServicePath + sandboxName + "/" + mecPlateform + "/vis/2/queries/uu_unicast_provisioning_info?location_info=ecgi,33139970001614,33139971112725" url := mecServicePath + sandboxName + "/" + mecPlateform + "/vis/v2/queries/uu_unicast_provisioning_info?location_info=ecgi,33139970001614,33139971112725" fmt.Println(">>> send_mec_service_request: url: " + url) response, err := send_mec_service_request(http.MethodGet, url, nil, nil, nil, nil) body, response, err = send_mec_service_request(http.MethodGet, url, nil, nil, nil, nil) if err != nil { return nil, err return nil, nil, err } return response, nil return body, response, nil } func send_mec_service_request(method string, path string, body io.Reader, vars url.Values, queryParams url.Values, location *string) (res *http.Response, err error) { func send_mec_service_request(method string, path string, body io.Reader, vars url.Values, queryParams url.Values, location *string) (resbody []byte, res *http.Response, err error) { fmt.Println(">>> send_mec_service_request") // Sanity checks if sandboxName == "" { err = errors.New("No sandbox available") return nil, err return nil, nil, err } // Setup path and query parameters url, err := url.Parse(path) if err != nil { return nil, err return nil, nil, err } // Adding Query Param Loading @@ -270,7 +271,7 @@ func send_mec_service_request(method string, path string, body io.Reader, vars u localVarRequest, err = http.NewRequest(method, url.String(), nil) } if err != nil { return nil, err return nil, nil, err } // Override request host, if applicable Loading @@ -289,10 +290,16 @@ func send_mec_service_request(method string, path string, body io.Reader, vars u res, err = cfg.HTTPClient.Do(localVarRequest) if err != nil { return nil, err return nil, nil, err } resbody, err = ioutil.ReadAll(res.Body) if err != nil { return nil, nil, err } res.Body.Close() return res, err return resbody, res, err } func main() { Loading Loading @@ -386,12 +393,12 @@ func main() { message = fmt.Sprintf("Services: %s", fmt.Sprint(services)) } else if strings.Compare(choice[0], UU_SETTINGS) == 0 { var err error response, err := get_v2x_uu_unicast_setting() body, _, err := get_v2x_uu_unicast_setting() if err != nil { message = err.Error() continue } message = fmt.Sprintf("response: %s", fmt.Sprint(response)) message = fmt.Sprintf("response body: %s", string(body)) } else { message = fmt.Sprintf("Invalid command: %s", choice) } Loading
go-apps/meep-virt-engine/entrypoint.sh +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ mv /meep-ams /templates/sandbox/meep-ams mv /meep-sandbox-ctrl /templates/sandbox/meep-sandbox-ctrl mv /meep-tc-engine /templates/sandbox/meep-tc-engine mv /meep-vis /templates/sandbox/meep-vis mv /meep-dai /templates/sandbox/meep-dai #mv /meep-dai /templates/sandbox/meep-dai mv /meep-tm /templates/sandbox/meep-tm mkdir -p /templates/scenario Loading