Massive architectural rework
This commit massively overhauls the project's structure to simplify development. Most parts are now correctly compartmentalized and dependencies are passed in a sane way rather than global variables galore xd.
This commit is contained in:
19
pkg/API/deploy.go
Normal file
19
pkg/API/deploy.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package API
|
||||
|
||||
import (
|
||||
"mime/multipart"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/juls0730/flux/pkg"
|
||||
)
|
||||
|
||||
type DeployRequest struct {
|
||||
Id uuid.UUID `form:"id"`
|
||||
Config pkg.ProjectConfig `form:"config"`
|
||||
Code multipart.File `form:"code"`
|
||||
}
|
||||
|
||||
type DeploymentEvent struct {
|
||||
Message any `json:"message"`
|
||||
Stage string `json:"stage"`
|
||||
}
|
||||
Reference in New Issue
Block a user