This commit is contained in:
Kar
2026-02-01 20:22:29 +05:30
commit 52265ed4cc
30 changed files with 2058 additions and 0 deletions

33
internal/model/repo.go Normal file
View File

@@ -0,0 +1,33 @@
package model
import "time"
type RepoStatus string
type RepoType string
const (
StatusNeedToDeploy RepoStatus = "need_to_deploy"
StatusDeploying RepoStatus = "deploying"
StatusDeployed RepoStatus = "deployed"
StatusError RepoStatus = "err"
StatusStopped RepoStatus = "stopped"
StatusRestarting RepoStatus = "restarting"
StatusDeleted RepoStatus = "deleted"
)
const (
TypeNodeJS RepoType = "nodejs"
TypePython RepoType = "python"
)
type Repo struct {
ID int64 `json:"id"`
RepoURL string `json:"repo_url"`
Status RepoStatus `json:"status"`
UserID string `json:"user_id"`
Type RepoType `json:"type"`
ImageTag *string `json:"image_tag"`
LastError *string `json:"last_error"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}