Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvPipelineLimitedCPU = "PIPELINE_LIMITED_CPU" EnvPipelineRequestedCPU = "PIPELINE_REQUESTED_CPU" EnvPipelineLimitedMem = "PIPELINE_LIMITED_MEM" EnvPipelineLimitedDisk = "PIPELINE_LIMITED_DISK" EnvPipelineRequestedMem = "PIPELINE_REQUESTED_MEM" EnvPipelineRequestedDisk = "PIPELINE_REQUESTED_DISK" )
about pipeline task resource env
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { // CalculatePipelineResources calculate pipeline resources according to all tasks grouped by stages. CalculatePipelineResources(pipelineYml *pipelineyml.PipelineYml, p *spec.Pipeline) (*apistructs.PipelineAppliedResources, error) CalculateNormalTaskResources(action *pipelineyml.Action, actionDefine *diceyml.Job) apistructs.PipelineAppliedResources }
type MockResource ¶
type MockResource struct{}
func (*MockResource) CalculateNormalTaskResources ¶
func (m *MockResource) CalculateNormalTaskResources(action *pipelineyml.Action, actionDefine *diceyml.Job) apistructs.PipelineAppliedResources
func (*MockResource) CalculatePipelineResources ¶
func (m *MockResource) CalculatePipelineResources(pipelineYml *pipelineyml.PipelineYml, p *spec.Pipeline) (*apistructs.PipelineAppliedResources, error)
Click to show internal directories.
Click to hide internal directories.