Initial code for the a1 implementation for go 10/6810/1
authorsubhash kumar singh <subh.singh@samsung.com>
Thu, 30 Sep 2021 19:07:18 +0000 (19:07 +0000)
committersubhash kumar singh <subh.singh@samsung.com>
Fri, 1 Oct 2021 09:40:35 +0000 (15:10 +0530)
commit327d9dba437b30a06161d4f21cc2a33034d75bac
treec4f804280955767640ef2fbd298ef927f5e2db94
parentf6de4e8e179d8435f6b8d324bd6bc0135f1dae56
Initial code for the a1 implementation for go

This patch sets up initial repo structure for a1 mediator in go.
Mainly this patch contains swagger file "api/swagger.yaml" to represent
a1 interface APIs.

Swagger tool is used to generate the models which are required for the
exposing the the APIs.

Current patch contains one API implemented for querying policy instance
with UT (pkg/restful pkg/resthooks).

Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
Issue-ID: RIC-831
Change-Id: I41bafaf5553d4aae95d6a7ce3bca1b4745254638
60 files changed:
a1-go/api/swagger.yaml [new file with mode: 0644]
a1-go/cmd/a1.go [new file with mode: 0644]
a1-go/go.mod [new file with mode: 0644]
a1-go/pkg/models/policy_instance_id.go [new file with mode: 0644]
a1-go/pkg/models/policy_type_id.go [new file with mode: 0644]
a1-go/pkg/models/policy_type_schema.go [new file with mode: 0644]
a1-go/pkg/restapi/configure_a1.go [new file with mode: 0644]
a1-go/pkg/restapi/doc.go [new file with mode: 0644]
a1-go/pkg/restapi/embedded_spec.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_api.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_e_i_data_delivery/a1_controller_data_delivery.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_e_i_data_delivery/a1_controller_data_delivery_parameters.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_e_i_data_delivery/a1_controller_data_delivery_responses.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_e_i_data_delivery/a1_controller_data_delivery_urlbuilder.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_create_or_replace_policy_instance.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_create_or_replace_policy_instance_parameters.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_create_or_replace_policy_instance_responses.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_create_or_replace_policy_instance_urlbuilder.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_create_policy_type.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_create_policy_type_parameters.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_create_policy_type_responses.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_create_policy_type_urlbuilder.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_delete_policy_instance.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_delete_policy_instance_parameters.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_delete_policy_instance_responses.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_delete_policy_instance_urlbuilder.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_delete_policy_type.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_delete_policy_type_parameters.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_delete_policy_type_responses.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_delete_policy_type_urlbuilder.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_all_instances_for_type.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_all_instances_for_type_parameters.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_all_instances_for_type_responses.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_all_instances_for_type_urlbuilder.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_all_policy_types.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_all_policy_types_parameters.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_all_policy_types_responses.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_all_policy_types_urlbuilder.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_healthcheck.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_healthcheck_parameters.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_healthcheck_responses.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_healthcheck_urlbuilder.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_policy_instance.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_policy_instance_parameters.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_policy_instance_responses.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_policy_instance_status.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_policy_instance_status_parameters.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_policy_instance_status_responses.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_policy_instance_status_urlbuilder.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_policy_instance_urlbuilder.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_policy_type.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_policy_type_parameters.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_policy_type_responses.go [new file with mode: 0644]
a1-go/pkg/restapi/operations/a1_mediator/a1_controller_get_policy_type_urlbuilder.go [new file with mode: 0644]
a1-go/pkg/restapi/server.go [new file with mode: 0644]
a1-go/pkg/restful/restful.go [new file with mode: 0644]
a1-go/pkg/restful/types.go [new file with mode: 0644]
a1-go/pkg/resthooks/resthooks.go [new file with mode: 0644]
a1-go/pkg/resthooks/resthooks_test.go [new file with mode: 0644]
a1-go/pkg/resthooks/types.go [new file with mode: 0644]