Documentation ¶
Index ¶
- func GetRepos(workflow *commonmodels.WorkflowV4) ([]*types.Repository, error)
- func Instantiate(job *commonmodels.Job, workflow *commonmodels.WorkflowV4) error
- func MergeArgs(workflow, workflowArgs *commonmodels.WorkflowV4) error
- func MergeWebhookRepo(workflow *commonmodels.WorkflowV4, repo *types.Repository) error
- func RemoveFixedValueMarks(workflow *commonmodels.WorkflowV4) error
- func RenderGlobalVariables(workflow *commonmodels.WorkflowV4, taskID int64, creator string) error
- func SetPreset(job *commonmodels.Job, workflow *commonmodels.WorkflowV4) error
- func ToJobs(job *commonmodels.Job, workflow *commonmodels.WorkflowV4, taskID int64) ([]*commonmodels.JobTask, error)
- type BuildJob
- func (j *BuildJob) GetRepos() ([]*types.Repository, error)
- func (j *BuildJob) Instantiate() error
- func (j *BuildJob) MergeArgs(args *commonmodels.Job) error
- func (j *BuildJob) MergeWebhookRepo(webhookRepo *types.Repository) error
- func (j *BuildJob) SetPreset() error
- func (j *BuildJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- type DeployJob
- type FreeStyleJob
- func (j *FreeStyleJob) GetRepos() ([]*types.Repository, error)
- func (j *FreeStyleJob) Instantiate() error
- func (j *FreeStyleJob) MergeArgs(args *commonmodels.Job) error
- func (j *FreeStyleJob) MergeWebhookRepo(webhookRepo *types.Repository) error
- func (j *FreeStyleJob) SetPreset() error
- func (j *FreeStyleJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- type JobCtl
- type PluginJob
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) Instantiate ¶
func (*BuildJob) MergeWebhookRepo ¶
func (j *BuildJob) MergeWebhookRepo(webhookRepo *types.Repository) error
type DeployJob ¶
type DeployJob struct {
// contains filtered or unexported fields
}
func (*DeployJob) Instantiate ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.