Documentation ¶
Index ¶
- func CreateCompute(c *fiber.Ctx) error
- func CreateNetwork(c *fiber.Ctx) error
- func CreateScenario(c *fiber.Ctx) error
- func CreateService(c *fiber.Ctx) error
- func CreateTestConfig(c *fiber.Ctx) error
- func CreateTopology(c *fiber.Ctx) error
- func DeleteCompute(c *fiber.Ctx) error
- func DeleteNetwork(c *fiber.Ctx) error
- func DeleteScenario(c *fiber.Ctx) error
- func DeleteService(c *fiber.Ctx) error
- func DeleteTestConfig(c *fiber.Ctx) error
- func DeleteTopology(c *fiber.Ctx) error
- func GetCompute(c *fiber.Ctx) error
- func GetComputes(c *fiber.Ctx) error
- func GetNetwork(c *fiber.Ctx) error
- func GetNetworks(c *fiber.Ctx) error
- func GetScenario(c *fiber.Ctx) error
- func GetScenarios(c *fiber.Ctx) error
- func GetService(c *fiber.Ctx) error
- func GetServices(c *fiber.Ctx) error
- func GetTestConfig(c *fiber.Ctx) error
- func GetTestConfigs(c *fiber.Ctx) error
- func GetTopologies(c *fiber.Ctx) error
- func GetTopology(c *fiber.Ctx) error
- func ScenarioActoins(c *fiber.Ctx) error
- func UpdateCompute(c *fiber.Ctx) error
- func UpdateNetwork(c *fiber.Ctx) error
- func UpdateScenario(c *fiber.Ctx) error
- func UpdateService(c *fiber.Ctx) error
- func UpdateTestConfig(c *fiber.Ctx) error
- func UpdateTopology(c *fiber.Ctx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCompute ¶
func CreateCompute(c *fiber.Ctx) error
Function for creating a compute-config @Summary Insert a compute-config to database @Description Create a compute-config @Tags compute-config @Accept json @Product json @Param compute_config body entities.ComputeConfig true "ComputeConfig" @Success 200 {object} entities.ComputeConfig "Compute data with success message" @Failure 500 {object} nil "Compute null with failure message" @Router /api/compute-config [post]
func CreateNetwork ¶
func CreateNetwork(c *fiber.Ctx) error
Function for creating a network-config @Summary Insert a network-config to database @Description Create a network-config @Tags network-config @Accept json @Product json @Param network_config body entities.NetworkConfig true "NetworkConfig" @Success 200 {object} entities.NetworkConfig "network-config data with success message" @Failure 500 {object} nil "network-config null with failure message" @Router /api/network-config [post]
func CreateScenario ¶
func CreateScenario(c *fiber.Ctx) error
Function for creating a scenario @Summary Insert a scenario to database @Description Create a scenario @Tags scenario @Accept json @Product json @Param scenario body entities.Scenario true "Scenario" @Success 200 {object} entities.Scenario "scenario data with success message" @Failure 500 {object} nil "scenario null with failure message" @Router /api/scenarios [post]
func CreateService ¶
func CreateService(c *fiber.Ctx) error
Function for creating a service-config @Summary Insert a service-config to database @Description Create a service-config @Tags service-config @Accept json @Product json @Param service_config body entities.ServiceConfig true "ServiceConfig" @Success 200 {object} entities.ServiceConfig "service-config data with success message" @Failure 500 {object} nil "service-config null with failure message" @Router /api/service-config [post]
func CreateTestConfig ¶
func CreateTestConfig(c *fiber.Ctx) error
Function for creating a test-config @Summary Insert a test-config to database @Description Create a test-config @Tags test-config @Accept json @Product json @Param test_config body entities.TestConfig true "TestConfig" @Success 200 {object} entities.TestConfig "Compute data with success message" @Failure 500 {object} nil "Compute null with failure message" @Router /api/test-config [post]
func CreateTopology ¶
func CreateTopology(c *fiber.Ctx) error
Function for creating a topology @Summary Insert a topology to database @Description Create a topology @Tags topology @Accept json @Product json @Param topology_config body entities.TopologyConfig true "TopologyConfig" @Success 200 {object} entities.TopologyConfig "topology data with success message" @Failure 500 {object} nil "topology null with failure message" @Router /api/topologies [post]
func DeleteCompute ¶
func DeleteCompute(c *fiber.Ctx) error
Function for delete a compute-config @Summary Delete a compute-config from database @Description Delete a compute-config @Tags compute-config @Accept json @Product json @Param id path string true "ComputeConfId" @Success 200 {object} entities.ComputeConfig "compute-config data with success message" @Failure 404 {object} nil "compute-config data with null and error message" @Router /api/compute-config/{id} [delete]
func DeleteNetwork ¶
func DeleteNetwork(c *fiber.Ctx) error
Function for delete a network-config @Summary Delete a network-config from database @Description Delete a network-config @Tags network-config @Accept json @Product json @Param id path string true "NetworkId" @Success 200 {object} entities.NetworkConfig "network-config data with success message" @Failure 404 {object} nil "network-config data with null and error message" @Router /api/network-config/{id} [delete]
func DeleteScenario ¶
func DeleteScenario(c *fiber.Ctx) error
Function for delete a scenario @Summary Delete a scenario from database @Description Delete a scenario @Tags scenario @Accept json @Product json @Param id path string true "ScenarioId" @Success 200 {object} entities.Scenario "scenario data with success message" @Failure 404 {object} nil "scenario data with null and error message" @Router /api/senarios/{id} [delete]
func DeleteService ¶
func DeleteService(c *fiber.Ctx) error
Function for delete a service-config @Summary Delete a service-config from database @Description Delete a service-config @Tags service-config @Accept json @Product json @Param id path string true "NetworkId" @Success 200 {object} entities.ServiceConfig "service-config data with success message" @Failure 404 {object} nil "service-config data with null and error message" @Router /api/service-config/{id} [delete]
func DeleteTestConfig ¶
func DeleteTestConfig(c *fiber.Ctx) error
Function for delete a test-config @Summary Delete a test-config from database @Description Delete a test-config @Tags test-config @Accept json @Product json @Param id path string true "ComputeConfId" @Success 200 {object} entities.TestConfig "test-config data with success message" @Failure 404 {object} nil "test-config data with null and error message" @Router /api/test-config/{id} [delete]
func DeleteTopology ¶
func DeleteTopology(c *fiber.Ctx) error
Function for delete a topology @Summary Delete a topology from database @Description Delete a topology @Tags topology @Accept json @Product json @Param id path string true "TopologyId" @Success 200 {object} entities.TopologyConfig "topology data with success message" @Failure 404 {object} nil "topology data with null and error message" @Router /api/topologies/{id} [delete]
func GetCompute ¶
func GetCompute(c *fiber.Ctx) error
Function for retriving a compute-config @Summary Get a compute-config from database @Description Get a compute-config @Tags compute-config @Accept json @Product json @Param id path string true "ComputeConfId" @Success 200 {object} entities.ComputeConfig "compute-config data with success message" @Failure 404 {object} nil "compute-config data with null and error message" @Router /api/compute-config/{id} [get]
func GetComputes ¶
func GetComputes(c *fiber.Ctx) error
Function for retriving all compute-config @Summary Get all compute-config from database @Description Get all compute-config @Tags compute-config @Accept json @Product json @Success 200 {object} []entities.ComputeConfig "array of compute-config with success message" @Failure 404 {object} nil "null compute-config data with error message" @Router /api/compute-config [get]
func GetNetwork ¶
func GetNetwork(c *fiber.Ctx) error
Function for retriving a network-config @Summary Get a network-config from database @Description Get a network-config @Tags network-config @Accept json @Product json @Param id path string true "NetworkId" @Success 200 {object} entities.NetworkConfig "network-config data with success message" @Failure 404 {object} nil "network-config data with null and error message" @Router /api/network-config/{id} [get]
func GetNetworks ¶
func GetNetworks(c *fiber.Ctx) error
Function for retriving all network-config @Summary Get all network-config from database @Description Get all network-config @Tags network-config @Accept json @Product json @Success 200 {object} []entities.NetworkConfig "array of network-config with success message" @Failure 404 {object} nil "null network-config data with error message" @Router /api/network-config [get]
func GetScenario ¶
func GetScenario(c *fiber.Ctx) error
Function for retriving a scenario @Summary Get a scenario from database @Description Get a scenario @Tags scenario @Accept json @Product json @Param id path string true "ScenarioId" @Success 200 {object} entities.Scenario "scenario data with success message" @Failure 404 {object} nil "scenario data with null and error message" @Router /api/senarios/{id} [get]
func GetScenarios ¶
func GetScenarios(c *fiber.Ctx) error
Function for retriving all scenarios @Summary Get all scenario from database @Description Get all scenario @Tags scenario @Accept json @Product json @Success 200 {object} []entities.Scenario "array of scenario with success message" @Failure 404 {object} nil "null scenario data with error message" @Router /api/senarios [get]
func GetService ¶
func GetService(c *fiber.Ctx) error
Function for retriving a service-config @Summary Get a service-config from database @Description Get a service-config @Tags service-config @Accept json @Product json @Param id path string true "NetworkId" @Success 200 {object} entities.ServiceConfig "service-config data with success message" @Failure 404 {object} nil "service-config data with null and error message" @Router /api/service-config/{id} [get]
func GetServices ¶
func GetServices(c *fiber.Ctx) error
Function for retriving all service-config @Summary Get all service-config from database @Description Get all service-config @Tags service-config @Accept json @Product json @Success 200 {object} []entities.ServiceConfig "array of service-config with success message" @Failure 404 {object} nil "null service-config data with error message" @Router /api/service-config [get]
func GetTestConfig ¶
func GetTestConfig(c *fiber.Ctx) error
Function for retriving a test-config @Summary Get a test-config from database @Description Get a test-config @Tags test-config @Accept json @Product json @Param id path string true "ComputeConfId" @Success 200 {object} entities.TestConfig "test-config data with success message" @Failure 404 {object} nil "test-config data with null and error message" @Router /api/test-config/{id} [get]
func GetTestConfigs ¶
func GetTestConfigs(c *fiber.Ctx) error
Function for retriving all test-config @Summary Get all test-config from database @Description Get all test-config @Tags test-config @Accept json @Product json @Success 200 {object} []entities.TestConfig "array of test-config with success message" @Failure 404 {object} nil "null test-config data with error message" @Router /api/test-config [get]
func GetTopologies ¶
func GetTopologies(c *fiber.Ctx) error
Function for retriving all topologies @Summary Get all topologies from database @Description Get all topologies @Tags topology @Accept json @Product json @Success 200 {object} []entities.TopologyConfig "array of topology with success message" @Failure 404 {object} nil "null topology data with error message" @Router /api/topologies [get]
func GetTopology ¶
func GetTopology(c *fiber.Ctx) error
Function for retriving a topology @Summary Get a topology from database @Description Get a topology @Tags topology @Accept json @Product json @Param id path string true "TopologyId" @Success 200 {object} entities.TopologyConfig "topology data with success message" @Failure 404 {object} nil "topology data with null and error message" @Router /api/topologies/{id} [get]
func ScenarioActoins ¶
func ScenarioActoins(c *fiber.Ctx) error
Function for doing some actions for a scenario @Summary Do something on a scenario @Description Take an action on a scenario @Tags scenario @Accept json @Product json @Param scenario body entities.ScenarioAction true "ScenarioAction" @Success 200 {object} entities.ScenarioAction "scenario action data with success message" @Failure 500 {object} nil "scenario action null with failure message" @Router /api/scenarios/actions [post]
func UpdateCompute ¶
func UpdateCompute(c *fiber.Ctx) error
Function for updating a compute-config @Summary Update a compute-config to database @Description Update a compute-config @Tags compute-config @Accept json @Product json @Param id path string true "ComputeConfId" @Param compute_config body string true "ComputeConfig" @Success 200 {object} entities.ComputeConfig "compute_config data with success message" @Failure 500 {object} nil "compute_config null with failure message" @Router /api/compute-config/{id} [put]
func UpdateNetwork ¶
func UpdateNetwork(c *fiber.Ctx) error
Function for updating a network-config @Summary Update a network-config to database @Description Update a network-config @Tags network-config @Accept json @Product json @Param id path string true "NetworkId" @Param network_config body string true "NetworkConfig" @Success 200 {object} entities.NetworkConfig "network-config data with success message" @Failure 500 {object} nil "network-config null with failure message" @Router /api/network-config/{id} [put]
func UpdateScenario ¶
func UpdateScenario(c *fiber.Ctx) error
Function for updating a scenario @Summary Update a scenario to database @Description Update a scenario @Tags scenario @Accept json @Product json @Param id path string true "ScenarioId" @Param scenario body string true "Scenario" @Success 200 {object} entities.Scenario "scenario data with success message" @Failure 500 {object} nil "scenario null with failure message" @Router /api/senarios/{id} [put]
func UpdateService ¶
func UpdateService(c *fiber.Ctx) error
Function for updating a service-config @Summary Update a service-config to database @Description Update a service-config @Tags service-config @Accept json @Product json @Param id path string true "NetworkId" @Param Service_config body string true "ServiceConfig" @Success 200 {object} entities.ServiceConfig "service-config data with success message" @Failure 500 {object} nil "service-config null with failure message" @Router /api/service-config/{id} [put]
func UpdateTestConfig ¶
func UpdateTestConfig(c *fiber.Ctx) error
Function for updating a test-config @Summary Update a test-config to database @Description Update a test-config @Tags test-config @Accept json @Product json @Param id path string true "ComputeConfId" @Param compute_config body string true "TestConfig" @Success 200 {object} entities.TestConfig "compute_config data with success message" @Failure 500 {object} nil "compute_config null with failure message" @Router /api/test-config/{id} [put]
func UpdateTopology ¶
func UpdateTopology(c *fiber.Ctx) error
Function for updating a topology @Summary Update a topology to database @Description Update a topology @Tags topology @Accept json @Product json @Param id path string true "TopologyId" @Param topology_config body string true "TopologyConfig" @Success 200 {object} entities.TopologyConfig "topology data with success message" @Failure 500 {object} nil "topology null with failure message" @Router /api/topologies/{id} [put]
Types ¶
This section is empty.