job

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 20 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 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 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) 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 DeployJob

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

func (*DeployJob) Instantiate

func (j *DeployJob) Instantiate() 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) 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
}

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) 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)

Jump to

Keyboard shortcuts

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