Documentation
¶
Index ¶
- func CreateDeployment(ctx context.Context, projectId int, userId string) (int, error)
- func CreateDeploymentTx(ctx context.Context, tx *sql.Tx, projectId int, userId string) (int, error)
- func DeleteAllDeploymentFromUser(ctx context.Context, uid string) error
- func DeleteDeploymentFromUser(ctx context.Context, pid int) error
- func GetAllDeploymentIDsByUser(ctx context.Context, uid string) ([]int, error)
- func GetDeploymentListPaginatedValue(context context.Context, uid string, itemsPerPage, offset int) (*sql.Rows, error)
- func GetDeploymentStatus(context context.Context, id int) (string, error)
- func GetProjectById(context context.Context, pid string) (projectModel.Project, error)
- func GetQueuedProjectCount(context context.Context, project_id int) (int, error)
- type Deployment
- type DeploymentBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDeployment ¶
func CreateDeploymentTx ¶
func GetDeploymentStatus ¶
func GetProjectById ¶
Types ¶
type Deployment ¶
type Deployment struct {
Id int `json:"id" db:"id"`
UserId string `json:"user_id" db:"user_id"`
ProjectId string `json:"project_id" db:"project_id"`
Duration string `json:"duration" db:"duration"`
ReadUrl string `json:"ready_url" db:"ready_url"`
LastLog string `json:"last_log" db:"last_log"`
Status string `json:"status" db:"status"`
CreatedAt string `json:"created_on" db:"created_at"`
UpdatedAt string `json:"updated_at" db:"updated_at"`
}
func GetDeploymentById ¶
func GetDeploymentById(context context.Context, id int) (Deployment, error)
type DeploymentBody ¶
type DeploymentBody struct {
ProjectId string `validate:"required" json:"projectId"`
}
Click to show internal directories.
Click to hide internal directories.