Commit 24f12964 authored by Yann Garcia's avatar Yann Garcia
Browse files

Update PoC

parent 0e355b6a
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so

# Folders
_obj
_test

# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out

*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*

_testmain.go

*.exe
*.test
*.prof
+27 −0
Original line number Diff line number Diff line
# Copyright (c) 2022  The AdvantEDGE Authors
# 
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM debian:11.7-slim


# Some ENV variables
ENV SERVICE_NAME = "demo6"

COPY ./demo6 /demo6
COPY ./static /static
COPY entrypoint.sh / 

RUN chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
+3 −0
Original line number Diff line number Diff line
Demo 6 is a MEC application to illustrate the usage of the MEC Sandbox command line APIs.

go version 1.18 is required to build demo 6
+21 −0
Original line number Diff line number Diff line
#!/bin/bash

set -e
set -x

# Get full path to script directory
SCRIPT=$(readlink -f "$0")
BASEDIR=$(dirname "$SCRIPT")

DEMOBIN=$BASEDIR/bin/demo6

echo ""
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
echo ">>> Building Demo 6 Go MEC APP"
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
echo ""

go build -o $DEMOBIN .

echo ""
echo ">>> Demo Service build completed"
+82 −0
Original line number Diff line number Diff line
# Go API client for swagger

The MEC Sandbox API described using OpenAPI

## Overview
This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project.  By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client.

- API version: 0.0.2
- Package version: 1.0.0
- Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen

## Installation
Put the package under your project folder and add the following in import:
```golang
import "./swagger"
```

## Documentation for API Endpoints

All URIs are relative to *http://localhost/sandbox-api/v1*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AuthorizationApi* | [**Login**](docs/AuthorizationApi.md#login) | **Post** /login | Initiate OAuth login procedure and creates MEC Sandbox
*AuthorizationApi* | [**Logout**](docs/AuthorizationApi.md#logout) | **Post** /logout | Terminates User Session and User Sandbox
*SandboxAppInstancesApi* | [**SandboxAppInstancesGET**](docs/SandboxAppInstancesApi.md#sandboxappinstancesget) | **Get** /sandboxAppInstances | get the list of the available application instance identifier
*SandboxLogsSubscriptionsApi* | [**SandboxLogsSubscriptionsDELETE**](docs/SandboxLogsSubscriptionsApi.md#sandboxlogssubscriptionsdelete) | **Delete** /sandboxLogsSubscriptions/{subscription_reference} | Subscription to receive logs from the sandbox
*SandboxLogsSubscriptionsApi* | [**SandboxLogsSubscriptionsPOST**](docs/SandboxLogsSubscriptionsApi.md#sandboxlogssubscriptionspost) | **Post** /sandboxLogsSubscriptions | Subscription to receive logs from the sandbox
*SandboxMECServicesApi* | [**SandboxMecServicesGET**](docs/SandboxMECServicesApi.md#sandboxmecservicesget) | **Get** /sandboxMecServices | get the list of the available MEC services
*SandboxMECServicesApi* | [**SandboxMecServicesPOST**](docs/SandboxMECServicesApi.md#sandboxmecservicespost) | **Post** /sandboxMecServices/{mec_service_name} | select the MEC services to use
*SandboxNetworkScenariosApi* | [**SandboxIndividualNetworkScenariosGET**](docs/SandboxNetworkScenariosApi.md#sandboxindividualnetworkscenariosget) | **Get** /sandboxNetworkScenarios/{network_scenario_id} | Get description of a Network Scenario to be used.
*SandboxNetworkScenariosApi* | [**SandboxNetworkScenarioDELETE**](docs/SandboxNetworkScenariosApi.md#sandboxnetworkscenariodelete) | **Delete** /sandboxNetworkScenarios/{network_scenario_id} | Deactivate the Network Scenario.
*SandboxNetworkScenariosApi* | [**SandboxNetworkScenarioPOST**](docs/SandboxNetworkScenariosApi.md#sandboxnetworkscenariopost) | **Post** /sandboxNetworkScenarios/{network_scenario_id} | Selects the Network Scenario to be used.
*SandboxNetworkScenariosApi* | [**SandboxNetworkScenariosGET**](docs/SandboxNetworkScenariosApi.md#sandboxnetworkscenariosget) | **Get** /sandboxNetworkScenarios | Get the list of the available network scenarios
*SandboxUEControllerApi* | [**SandboxUeControllerGET**](docs/SandboxUEControllerApi.md#sandboxuecontrollerget) | **Get** /sandboxUeController | get the list of the available UEs (e.g. \"Stationary UE\")
*SandboxUEControllerApi* | [**SandboxUeControllerPATCH**](docs/SandboxUEControllerApi.md#sandboxuecontrollerpatch) | **Patch** /sandboxUeController/{user_equipment_id} | set the new value of the UE

## Documentation For Models

 - [CellularDomainConfig](docs/CellularDomainConfig.md)
 - [CellularPoaConfig](docs/CellularPoaConfig.md)
 - [ConnectivityConfig](docs/ConnectivityConfig.md)
 - [CpuConfig](docs/CpuConfig.md)
 - [D2dConfig](docs/D2dConfig.md)
 - [Deployment](docs/Deployment.md)
 - [DnConfig](docs/DnConfig.md)
 - [Domain](docs/Domain.md)
 - [EgressService](docs/EgressService.md)
 - [ExternalConfig](docs/ExternalConfig.md)
 - [GeoData](docs/GeoData.md)
 - [GpuConfig](docs/GpuConfig.md)
 - [IngressService](docs/IngressService.md)
 - [LineString](docs/LineString.md)
 - [MemoryConfig](docs/MemoryConfig.md)
 - [NetworkCharacteristics](docs/NetworkCharacteristics.md)
 - [NetworkLocation](docs/NetworkLocation.md)
 - [PhysicalLocation](docs/PhysicalLocation.md)
 - [Poa4GConfig](docs/Poa4GConfig.md)
 - [Poa5GConfig](docs/Poa5GConfig.md)
 - [PoaWifiConfig](docs/PoaWifiConfig.md)
 - [Point](docs/Point.md)
 - [ProblemDetails](docs/ProblemDetails.md)
 - [Process](docs/Process.md)
 - [Sandbox](docs/Sandbox.md)
 - [SandboxAppInstances](docs/SandboxAppInstances.md)
 - [SandboxLogsSubscriptions](docs/SandboxLogsSubscriptions.md)
 - [SandboxMecServices](docs/SandboxMecServices.md)
 - [SandboxNetworkScenario](docs/SandboxNetworkScenario.md)
 - [Scenario](docs/Scenario.md)
 - [ScenarioConfig](docs/ScenarioConfig.md)
 - [ServiceConfig](docs/ServiceConfig.md)
 - [ServicePort](docs/ServicePort.md)
 - [Ue](docs/Ue.md)
 - [Zone](docs/Zone.md)

## Documentation For Authorization
 Endpoints do not require authorization.


## Author

cti_support@etsi.org
Loading