job

package
v0.0.0-...-dda4300 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context, cfg config.Config, appName, jobName string) (*models.Job, error)

Get gets job from job name

func GetAnyPipelineJobWithStatus

func GetAnyPipelineJobWithStatus(ctx context.Context, cfg config.Config, appName, expectedStatus string) (*models.JobSummary, error)

GetAnyPipelineJobWithStatus Checks if any pipeline job exists with status

func GetLastPipelineJobWithStatus

func GetLastPipelineJobWithStatus(ctx context.Context, cfg config.Config, appName, expectedStatus string) (*models.JobSummary, error)

GetLastPipelineJobWithStatus Checks if a last pipeline job exists with status

func GetLogForPipelineStep

func GetLogForPipelineStep(ctx context.Context, cfg config.Config, appName, jobName, pipelineRunName, taskName, stepName string) (string, error)

func GetLogForStep

func GetLogForStep(ctx context.Context, cfg config.Config, appName, jobName, stepName string) string

GetLogForStep gets log for step

func GetPipelineRunTasks

func GetPipelineRunTasks(ctx context.Context, cfg config.Config, appName, jobName, pipelineRunName string) ([]*models.PipelineRunTask, error)

GetPipelineRunTasks gets tasks from pipeline run from job name

func GetPipelineRuns

func GetPipelineRuns(ctx context.Context, cfg config.Config, appName, jobName string) ([]*models.PipelineRun, error)

GetPipelineRuns gets pipeline runs from job name

func GetStatus

func GetStatus(ctx context.Context, cfg config.Config, appName, jobName string) (string, error)

GetStatus Gets status of job

func GetSteps

func GetSteps(ctx context.Context, cfg config.Config, appName, jobName string) []*models.Step

GetSteps gets job from job name

func IsDone

func IsDone(ctx context.Context, cfg config.Config, appName, jobName string) (string, error)

IsDone Checks if job is done

func Stop

func Stop(ctx context.Context, cfg config.Config, appName, jobName string) error

Stop Stops a job

Types

type ExpectedSteps

type ExpectedSteps interface {
	Add(stepName string, components ...string) ExpectedSteps
	Count() int
	HasStepWithComponent(stepName string, components []string) bool
}

func NewExpectedSteps

func NewExpectedSteps() ExpectedSteps

Jump to

Keyboard shortcuts

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