job

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRepos

func GetRepos(workflow *commonmodels.WorkflowV4) ([]*types.Repository, error)

func Instantiate

func Instantiate(job *commonmodels.Job, workflow *commonmodels.WorkflowV4) error

func LintJob

func LintJob(job *commonmodels.Job, workflow *commonmodels.WorkflowV4) error

func MergeArgs

func MergeArgs(workflow, workflowArgs *commonmodels.WorkflowV4) error

func MergeWebhookRepo

func MergeWebhookRepo(workflow *commonmodels.WorkflowV4, repo *types.Repository) error

func RemoveFixedValueMarks

func RemoveFixedValueMarks(workflow *commonmodels.WorkflowV4) error

before workflowflow task was created, we need to remove the fixed mark from variables.

func RenderGlobalVariables

func RenderGlobalVariables(workflow *commonmodels.WorkflowV4, taskID int64, creator string) error

func SetPreset

func SetPreset(job *commonmodels.Job, workflow *commonmodels.WorkflowV4) error

func ToJobs

func ToJobs(job *commonmodels.Job, workflow *commonmodels.WorkflowV4, taskID int64) ([]*commonmodels.JobTask, error)

Types

type BlueGreenDeployJob

type BlueGreenDeployJob struct {
	// contains filtered or unexported fields
}

func (*BlueGreenDeployJob) Instantiate

func (j *BlueGreenDeployJob) Instantiate() error

func (*BlueGreenDeployJob) LintJob

func (j *BlueGreenDeployJob) LintJob() error

func (*BlueGreenDeployJob) MergeArgs

func (j *BlueGreenDeployJob) MergeArgs(args *commonmodels.Job) error

func (*BlueGreenDeployJob) SetPreset

func (j *BlueGreenDeployJob) SetPreset() error

func (*BlueGreenDeployJob) ToJobs

func (j *BlueGreenDeployJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)

type BlueGreenReleaseJob

type BlueGreenReleaseJob struct {
	// contains filtered or unexported fields
}

func (*BlueGreenReleaseJob) Instantiate

func (j *BlueGreenReleaseJob) Instantiate() error

func (*BlueGreenReleaseJob) LintJob

func (j *BlueGreenReleaseJob) LintJob() error

func (*BlueGreenReleaseJob) MergeArgs

func (j *BlueGreenReleaseJob) MergeArgs(args *commonmodels.Job) error

func (*BlueGreenReleaseJob) SetPreset

func (j *BlueGreenReleaseJob) SetPreset() error

func (*BlueGreenReleaseJob) ToJobs

func (j *BlueGreenReleaseJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)

type BuildJob

type BuildJob struct {
	// contains filtered or unexported fields
}

func (*BuildJob) GetRepos

func (j *BuildJob) GetRepos() ([]*types.Repository, error)

func (*BuildJob) Instantiate

func (j *BuildJob) Instantiate() error

func (*BuildJob) LintJob

func (j *BuildJob) LintJob() error

func (*BuildJob) MergeArgs

func (j *BuildJob) MergeArgs(args *commonmodels.Job) error

func (*BuildJob) MergeWebhookRepo

func (j *BuildJob) MergeWebhookRepo(webhookRepo *types.Repository) error

func (*BuildJob) SetPreset

func (j *BuildJob) SetPreset() error

func (*BuildJob) ToJobs

func (j *BuildJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)

type CanaryDeployJob

type CanaryDeployJob struct {
	// contains filtered or unexported fields
}

func (*CanaryDeployJob) Instantiate

func (j *CanaryDeployJob) Instantiate() error

func (*CanaryDeployJob) LintJob

func (j *CanaryDeployJob) LintJob() error

func (*CanaryDeployJob) MergeArgs

func (j *CanaryDeployJob) MergeArgs(args *commonmodels.Job) error

func (*CanaryDeployJob) SetPreset

func (j *CanaryDeployJob) SetPreset() error

func (*CanaryDeployJob) ToJobs

func (j *CanaryDeployJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)

type CanaryReleaseJob

type CanaryReleaseJob struct {
	// contains filtered or unexported fields
}

func (*CanaryReleaseJob) Instantiate

func (j *CanaryReleaseJob) Instantiate() error

func (*CanaryReleaseJob) LintJob

func (j *CanaryReleaseJob) LintJob() error

func (*CanaryReleaseJob) MergeArgs

func (j *CanaryReleaseJob) MergeArgs(args *commonmodels.Job) error

func (*CanaryReleaseJob) SetPreset

func (j *CanaryReleaseJob) SetPreset() error

func (*CanaryReleaseJob) ToJobs

func (j *CanaryReleaseJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)

type CustomDeployJob

type CustomDeployJob struct {
	// contains filtered or unexported fields
}

func (*CustomDeployJob) Instantiate

func (j *CustomDeployJob) Instantiate() error

func (*CustomDeployJob) LintJob

func (j *CustomDeployJob) LintJob() error

func (*CustomDeployJob) MergeArgs

func (j *CustomDeployJob) MergeArgs(args *commonmodels.Job) error

func (*CustomDeployJob) SetPreset

func (j *CustomDeployJob) SetPreset() error

func (*CustomDeployJob) ToJobs

func (j *CustomDeployJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)

type DeployJob

type DeployJob struct {
	// contains filtered or unexported fields
}

func (*DeployJob) Instantiate

func (j *DeployJob) Instantiate() error

func (*DeployJob) LintJob

func (j *DeployJob) LintJob() error

func (*DeployJob) MergeArgs

func (j *DeployJob) MergeArgs(args *commonmodels.Job) error

func (*DeployJob) SetPreset

func (j *DeployJob) SetPreset() error

func (*DeployJob) ToJobs

func (j *DeployJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)

type FreeStyleJob

type FreeStyleJob struct {
	// contains filtered or unexported fields
}

func (*FreeStyleJob) GetRepos

func (j *FreeStyleJob) GetRepos() ([]*types.Repository, error)

func (*FreeStyleJob) Instantiate

func (j *FreeStyleJob) Instantiate() error

func (*FreeStyleJob) LintJob

func (j *FreeStyleJob) LintJob() error

func (*FreeStyleJob) MergeArgs

func (j *FreeStyleJob) MergeArgs(args *commonmodels.Job) error

func (*FreeStyleJob) MergeWebhookRepo

func (j *FreeStyleJob) MergeWebhookRepo(webhookRepo *types.Repository) error

func (*FreeStyleJob) SetPreset

func (j *FreeStyleJob) SetPreset() error

func (*FreeStyleJob) ToJobs

func (j *FreeStyleJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)

type JobCtl

type JobCtl interface {
	Instantiate() error
	SetPreset() error
	ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
	MergeArgs(args *commonmodels.Job) error
	LintJob() error
}

func InitJobCtl

func InitJobCtl(job *commonmodels.Job, workflow *commonmodels.WorkflowV4) (JobCtl, error)

type PluginJob

type PluginJob struct {
	// contains filtered or unexported fields
}

func (*PluginJob) Instantiate

func (j *PluginJob) Instantiate() error

func (*PluginJob) LintJob

func (j *PluginJob) LintJob() error

func (*PluginJob) MergeArgs

func (j *PluginJob) MergeArgs(args *commonmodels.Job) error

func (*PluginJob) SetPreset

func (j *PluginJob) SetPreset() error

func (*PluginJob) ToJobs

func (j *PluginJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)

type TestingJob

type TestingJob struct {
	// contains filtered or unexported fields
}

func (*TestingJob) GetRepos

func (j *TestingJob) GetRepos() ([]*types.Repository, error)

func (*TestingJob) Instantiate

func (j *TestingJob) Instantiate() error

func (*TestingJob) LintJob

func (j *TestingJob) LintJob() error

func (*TestingJob) MergeArgs

func (j *TestingJob) MergeArgs(args *commonmodels.Job) error

func (*TestingJob) MergeWebhookRepo

func (j *TestingJob) MergeWebhookRepo(webhookRepo *types.Repository) error

func (*TestingJob) SetPreset

func (j *TestingJob) SetPreset() error

func (*TestingJob) ToJobs

func (j *TestingJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)

Jump to

Keyboard shortcuts

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