Modified path to correspond those declared in oclib peer_cache
This commit is contained in:
parent
ba3afc69be
commit
693571ddd7
@ -120,7 +120,7 @@ func (c *AdmiraltyController) GetOneTarget() {
|
|||||||
// @Param execution path string true "execution id of the workflow"
|
// @Param execution path string true "execution id of the workflow"
|
||||||
// @Param kubeconfigInfo body controllers.KubeInfo true "url and serviceAccount to use with the source formatted as json object"
|
// @Param kubeconfigInfo body controllers.KubeInfo true "url and serviceAccount to use with the source formatted as json object"
|
||||||
// @Success 200
|
// @Success 200
|
||||||
// @router /source/:dc_id/:execution [post]
|
// @router /source/:id [post]
|
||||||
func (c *AdmiraltyController) CreateSource() {
|
func (c *AdmiraltyController) CreateSource() {
|
||||||
var data KubeInfo
|
var data KubeInfo
|
||||||
json.Unmarshal(c.Ctx.Input.CopyBody(10000000),&data)
|
json.Unmarshal(c.Ctx.Input.CopyBody(10000000),&data)
|
||||||
@ -178,7 +178,7 @@ func (c *AdmiraltyController) CreateSource() {
|
|||||||
// @Param dc_id path string true "which dc to contact"
|
// @Param dc_id path string true "which dc to contact"
|
||||||
// @Param execution path string true "execution id of the workflow"
|
// @Param execution path string true "execution id of the workflow"
|
||||||
// @Success 201
|
// @Success 201
|
||||||
// @router /target/:dc_id/:execution [post]
|
// @router /target/:id [post]
|
||||||
func (c *AdmiraltyController) CreateAdmiraltyTarget(){
|
func (c *AdmiraltyController) CreateAdmiraltyTarget(){
|
||||||
var data map[string]interface{}
|
var data map[string]interface{}
|
||||||
dc_id := c.Ctx.Input.Param(":dc_id")
|
dc_id := c.Ctx.Input.Param(":dc_id")
|
||||||
@ -230,7 +230,7 @@ func (c *AdmiraltyController) CreateAdmiraltyTarget(){
|
|||||||
// @Param dc_id path string true "which dc to contact"
|
// @Param dc_id path string true "which dc to contact"
|
||||||
// @Param execution path string true "execution id of the workflow"
|
// @Param execution path string true "execution id of the workflow"
|
||||||
// @Success 200
|
// @Success 200
|
||||||
// @router /secret/:dc_id/:execution [get]
|
// @router /secret/:id [get]
|
||||||
func(c *AdmiraltyController) GetKubeSecret() {
|
func(c *AdmiraltyController) GetKubeSecret() {
|
||||||
var data map[string]interface{}
|
var data map[string]interface{}
|
||||||
dc_id := c.Ctx.Input.Param(":dc_id")
|
dc_id := c.Ctx.Input.Param(":dc_id")
|
||||||
@ -280,7 +280,7 @@ func(c *AdmiraltyController) GetKubeSecret() {
|
|||||||
// @Param execution path string true "execution id of the workflow"
|
// @Param execution path string true "execution id of the workflow"
|
||||||
// @Param kubeconfig body controllers.Kubeconfig true "Kubeconfig to use when creating secret"
|
// @Param kubeconfig body controllers.Kubeconfig true "Kubeconfig to use when creating secret"
|
||||||
// @Success 200
|
// @Success 200
|
||||||
// @router /secret/:dc_id/:execution [post]
|
// @router /secret/:id [post]
|
||||||
func (c *AdmiraltyController) CreateKubeSecret() {
|
func (c *AdmiraltyController) CreateKubeSecret() {
|
||||||
var kubeconfig RemoteKubeconfig
|
var kubeconfig RemoteKubeconfig
|
||||||
var respData map[string]interface{}
|
var respData map[string]interface{}
|
||||||
@ -331,7 +331,7 @@ func (c *AdmiraltyController) CreateKubeSecret() {
|
|||||||
// @Param execution path string true "execution id of the workflow"
|
// @Param execution path string true "execution id of the workflow"
|
||||||
// @Success 200
|
// @Success 200
|
||||||
// @Success 203
|
// @Success 203
|
||||||
// @router /node/:dc_id/:execution [get]
|
// @router /node/:id [get]
|
||||||
func (c *AdmiraltyController) GetNodeReady(){
|
func (c *AdmiraltyController) GetNodeReady(){
|
||||||
var secret v1.Secret
|
var secret v1.Secret
|
||||||
dc_id := c.Ctx.Input.Param(":dc_id")
|
dc_id := c.Ctx.Input.Param(":dc_id")
|
||||||
@ -427,7 +427,7 @@ func (c *AdmiraltyController) GetNodeReady(){
|
|||||||
// @Param dc_id path string true "which dc to contact"
|
// @Param dc_id path string true "which dc to contact"
|
||||||
// @Param execution path string true "execution id of the workflow"
|
// @Param execution path string true "execution id of the workflow"
|
||||||
// @Success 200
|
// @Success 200
|
||||||
// @router /kubeconfig/:dc_id/:execution [get]
|
// @router /kubeconfig/:id [get]
|
||||||
func (c *AdmiraltyController) GetAdmiraltyKubeconfig() {
|
func (c *AdmiraltyController) GetAdmiraltyKubeconfig() {
|
||||||
dc_id := c.Ctx.Input.Param(":dc_id")
|
dc_id := c.Ctx.Input.Param(":dc_id")
|
||||||
execution := c.Ctx.Input.Param(":execution")
|
execution := c.Ctx.Input.Param(":execution")
|
||||||
|
Loading…
Reference in New Issue
Block a user