Documentation ¶
Index ¶
- type TaskConfig
- func (tc *TaskConfig) AddTaskBaggageToCtx(ctx context.Context) (context.Context, error)
- func (t *TaskConfig) GetExecTimeout() int
- func (t *TaskConfig) GetIdleTimeout() int
- func (t *TaskConfig) SetExecTimeout(timeout int)
- func (t *TaskConfig) SetIdleTimeout(timeout int)
- func (tc *TaskConfig) TaskAttributeMap() map[string]string
- func (tc *TaskConfig) TaskAttributes() []attribute.KeyValue
- type Timeout
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskConfig ¶
type TaskConfig struct { Distro *apimodels.DistroView ProjectRef model.ProjectRef Project model.Project Task task.Task BuildVariant model.BuildVariant Expansions util.Expansions NewExpansions *agentutil.DynamicExpansions DynamicExpansions util.Expansions ProjectVars map[string]string Redacted []string RedactKeys []string WorkDir string TaskOutputDir *taskoutput.Directory GithubPatchData thirdparty.GithubPatch GithubMergeData thirdparty.GithubMergeGroup Timeout Timeout TaskSync evergreen.S3Credentials EC2Keys []evergreen.EC2Key ModulePaths map[string]string CedarTestResultsID string TaskGroup *model.TaskGroup // contains filtered or unexported fields }
func NewTaskConfig ¶
func NewTaskConfig(workDir string, d *apimodels.DistroView, p *model.Project, t *task.Task, r *model.ProjectRef, patchDoc *patch.Patch, e *apimodels.ExpansionsAndVars) (*TaskConfig, error)
NewTaskConfig validates that the required inputs are given and populates the information necessary for a task to run. It is generally preferred to use this function over initializing the TaskConfig struct manually.
func (*TaskConfig) AddTaskBaggageToCtx ¶
func (*TaskConfig) GetExecTimeout ¶
func (t *TaskConfig) GetExecTimeout() int
GetExecTimeout returns the dynamic execution timeout explicitly set by the user during task runtime (e.g. via timeout.update).
func (*TaskConfig) GetIdleTimeout ¶
func (t *TaskConfig) GetIdleTimeout() int
GetIdleTimeout returns the dynamic idle timeout explicitly set by the user during task runtime (e.g. via timeout.update).
func (*TaskConfig) SetExecTimeout ¶
func (t *TaskConfig) SetExecTimeout(timeout int)
SetIdleTimeout sets the dynamic idle timeout explicitly set by the user during task runtime (e.g. via timeout.update).
func (*TaskConfig) SetIdleTimeout ¶
func (t *TaskConfig) SetIdleTimeout(timeout int)
SetIdleTimeout sets the dynamic idle timeout explicitly set by the user during task runtime (e.g. via timeout.update).
func (*TaskConfig) TaskAttributeMap ¶
func (tc *TaskConfig) TaskAttributeMap() map[string]string
func (*TaskConfig) TaskAttributes ¶
func (tc *TaskConfig) TaskAttributes() []attribute.KeyValue