Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SESSION *gorm.DB
Functions ¶
func AddProject ¶
func AddProject(name string, ptype ProjectType, repoOwner, repoName, branch, gho string, deployment []byte, envVars []ProjectEnvVar) error
func UpdateUser ¶
Types ¶
type Project ¶
type Project struct {
Id uint `gorm:"primary_key;autoIncrement:true" json:"id"`
EnvVars []ProjectEnvVar `gorm:"foreignKey:ProjectId" json:"env"`
Name string `json:"name"`
Type ProjectType `json:"type"`
RepoOwner string `json:"repo_owner"`
RepoName string `json:"repo_name"`
Branch string `json:"branch"`
Gho string `json:"-"`
Deployment []byte `json:"-"`
}
func GetProject ¶
func GetProjectByName ¶
func ListProjects ¶
type ProjectEnvVar ¶
type ProjectType ¶
type ProjectType int
const ( ProjectTypeDockerfile ProjectType ProjectTypeCompose ProjectTypeShell ProjectTypeCommand )
Click to show internal directories.
Click to hide internal directories.