monitord is able to create an admiralty Source on remote peer
This commit is contained in:
@@ -95,7 +95,7 @@ func (c *AdmiraltyController) GetAllTargets() {
|
||||
// @Success 200
|
||||
// @router /targets/:execution [get]
|
||||
func (c *AdmiraltyController) GetOneTarget() {
|
||||
id := c.Ctx.Input.Param(":id")
|
||||
id := c.Ctx.Input.Param(":execution")
|
||||
serv, err := infrastructure.NewService()
|
||||
if err != nil {
|
||||
// change code to 500
|
||||
@@ -125,6 +125,8 @@ func (c *AdmiraltyController) GetOneTarget() {
|
||||
func (c *AdmiraltyController) CreateSource() {
|
||||
|
||||
execution := c.Ctx.Input.Param(":execution")
|
||||
fmt.Println("execution :: ", execution)
|
||||
fmt.Println("input :: ", c.Ctx.Input)
|
||||
serv, err := infrastructure.NewKubernetesService()
|
||||
if err != nil {
|
||||
// change code to 500
|
||||
|
||||
Reference in New Issue
Block a user