internal

package
v0.0.0-...-fc9d343 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 (tc *TaskConfig) AddTaskBaggageToCtx(ctx context.Context) (context.Context, error)

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

type Timeout

type Timeout struct {
	IdleTimeoutSecs int
	ExecTimeoutSecs int
}

Timeout records dynamic timeout information that has been explicitly set by the user during task runtime.

Directories

Path Synopsis
Task Output Directory
Task Output Directory

Jump to

Keyboard shortcuts

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