jobs

package
v1.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const RadixJobTypeJob = "job"

RadixJobTypeJob TODO: Move this into kube, or another central location

Variables

This section is empty.

Functions

func GetApplicationJob

func GetApplicationJob(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

GetApplicationJob gets specific pipeline-job details

func GetApplicationJobs

func GetApplicationJobs(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

GetApplicationJobs gets pipeline-job summaries

func GetPipelineJobLogs

func GetPipelineJobLogs(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

GetPipelineJobLogs Get logs of a pipeline-job for an application

func GetPipelineJobStepScanOutput added in v1.13.2

func GetPipelineJobStepScanOutput(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

GetPipelineJobStepScanOutput Get logs of a pipeline-job for an application

func NewJobController

func NewJobController() models.Controller

NewJobController Constructor

func StopApplicationJob

func StopApplicationJob(accounts models.Accounts, w http.ResponseWriter, r *http.Request)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL