Documentation ¶
Index ¶
- Constants
- func GetApplicationJob(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func GetApplicationJobs(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func GetPipelineJobLogs(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func GetPipelineJobStepScanOutput(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- func NewJobController() models.Controller
- func StopApplicationJob(accounts models.Accounts, w http.ResponseWriter, r *http.Request)
- type JobHandler
- func (jh JobHandler) GetApplicationJob(appName, jobName string) (*jobModels.Job, error)
- func (jh JobHandler) GetApplicationJobs(appName string) ([]*jobModels.JobSummary, error)
- func (jh JobHandler) GetLatestApplicationJob(appName string) (*jobModels.JobSummary, error)
- func (jh JobHandler) GetLatestJobPerApplication(forApplications map[string]bool) (map[string]*jobModels.JobSummary, error)
- func (jh JobHandler) GetPipelineJobStepScanOutput(appName, jobName, stepName string) ([]jobModels.Vulnerability, error)
- func (jh JobHandler) HandleGetApplicationJobLogs(appName, jobName string, sinceTime *time.Time) ([]jobModels.StepLog, error)
- func (jh JobHandler) HandleStartPipelineJob(appName string, pipeline *pipelineJob.Definition, ...) (*jobModels.JobSummary, error)
- func (jh JobHandler) StopJob(appName, jobName string) error
Constants ¶
const RadixJobTypeJob = "job"
RadixJobTypeJob TODO: Move this into kube, or another central location
Variables ¶
This section is empty.
Functions ¶
func GetApplicationJob ¶
GetApplicationJob gets specific pipeline-job details
func GetApplicationJobs ¶
GetApplicationJobs gets pipeline-job summaries
func GetPipelineJobLogs ¶
GetPipelineJobLogs Get logs of a pipeline-job for an application
func GetPipelineJobStepScanOutput ¶ added in v1.13.2
GetPipelineJobStepScanOutput Get logs of a pipeline-job for an application
func StopApplicationJob ¶
StopApplicationJob Stops job
Types ¶
type JobHandler ¶
type JobHandler struct {
// contains filtered or unexported fields
}
JobHandler Instance variables
func Init ¶
func Init(accounts models.Accounts, deployHandler deployments.DeployHandler) JobHandler
Init Constructor
func (JobHandler) GetApplicationJob ¶
func (jh JobHandler) GetApplicationJob(appName, jobName string) (*jobModels.Job, error)
GetApplicationJob Handler for GetApplicationJob
func (JobHandler) GetApplicationJobs ¶
func (jh JobHandler) GetApplicationJobs(appName string) ([]*jobModels.JobSummary, error)
GetApplicationJobs Handler for GetApplicationJobs
func (JobHandler) GetLatestApplicationJob ¶
func (jh JobHandler) GetLatestApplicationJob(appName string) (*jobModels.JobSummary, error)
GetLatestApplicationJob Get last run application job
func (JobHandler) GetLatestJobPerApplication ¶
func (jh JobHandler) GetLatestJobPerApplication(forApplications map[string]bool) (map[string]*jobModels.JobSummary, error)
GetLatestJobPerApplication Handler for GetApplicationJobs - NOTE: does not get latestJob.Environments
func (JobHandler) GetPipelineJobStepScanOutput ¶ added in v1.13.2
func (jh JobHandler) GetPipelineJobStepScanOutput(appName, jobName, stepName string) ([]jobModels.Vulnerability, error)
GetPipelineJobStepScanOutput Get vulnerability scan output from scan step
func (JobHandler) HandleGetApplicationJobLogs ¶
func (jh JobHandler) HandleGetApplicationJobLogs(appName, jobName string, sinceTime *time.Time) ([]jobModels.StepLog, error)
HandleGetApplicationJobLogs Gets logs for an job of an application
func (JobHandler) HandleStartPipelineJob ¶
func (jh JobHandler) HandleStartPipelineJob(appName string, pipeline *pipelineJob.Definition, jobSpec *jobModels.JobParameters) (*jobModels.JobSummary, error)
HandleStartPipelineJob Handles the creation of a pipeline job for an application
func (JobHandler) StopJob ¶
func (jh JobHandler) StopJob(appName, jobName string) error
StopJob Stops an application job