resource

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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)

Jump to

Keyboard shortcuts

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