started implementing the routes and service to interract with a given Minio server

This commit is contained in:
pb
2025-06-26 10:31:48 +02:00
parent 1d363e8f2a
commit 55b88077d4
5 changed files with 272 additions and 130 deletions

22
controllers/minio.go Normal file
View File

@@ -0,0 +1,22 @@
package controllers
import beego "github.com/beego/beego/v2/server/web"
type MinioController struct {
beego.Controller
}
// @Title CreateServiceAccounnt
// @Description Add a new ServiceAccount to a Minio server using its ID and an execution ID
// @Success 200
// @Param executions path string true "The executionsID of the execution"
// @Param minioId path string true "The ID of the Minio you want to reach"
// @router /minio/:minioId/:executions
func (m *MinioController) CreateServiceAccount() {
executionsId := m.Ctx.Input.Param(":executions")
minioId := m.Ctx.Input.Param(":minioId")
m.Data["json"] = map[string]interface{}{"exec": executionsId, "minioId": minioId}
m.ServeJSON()
}