Documentation ¶
Index ¶
- Variables
- func CreateJob(job *Job) error
- func DeleteJob(creator string, uuid string)
- func Init()
- func UpdateJob(j *Job) error
- type Job
- func GetAllInProgressJobs() ([]*Job, error)
- func GetInProgressJobs(creator string) ([]*Job, error)
- func QueryJobByIdAndCreator(jobId int64, creator string) (*Job, error)
- func QueryJobByUUIDAndCreator(creator string, uuid string) (*Job, error)
- func QueryJobsByCreator(creator string, page, pageSize int64) ([]*Job, int64, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
Types ¶
type Job ¶
type Job struct { gorm.Model ID uint64 `gorm:"id" json:"id""` UUID string `gorm:"uuid" json:"uuid"` Creator string `gorm:"creator" json:"creator"` JupyterFileName string `gorm:"jupyter_file_name" json:"jupyter_file_name"` BuildContextPath string `gorm:"build_context_path" json:"build_context_path"` Dockerfile string `gorm:"dockerfile" json:"dockerfile"` DockerImage string `gorm:"docker_image" json:"docker_image"` DockerImageDigest string `gorm:"docker_image_digest" json:"docker_image_digest"` AttestationReport string `gorm:"attestation_report" json:"attestation_report"` JobStatus int `gorm:"job_status" json:"job_status"` InstanceName string `gorm:"instance_name" json:"instance_name"` ExtraEnvs map[string]string `gorm:"serializer:json"` }
func GetAllInProgressJobs ¶
func GetInProgressJobs ¶
func QueryJobByIdAndCreator ¶
func QueryJobsByCreator ¶
Click to show internal directories.
Click to hide internal directories.