Documentation ¶
Index ¶
Constants ¶
View Source
const CacheSizeLimit = 0.8
CacheSizeLimit is cache size limit, it's percentage of the total PVC size.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accelerator ¶
type Accelerator struct {
// contains filtered or unexported fields
}
Accelerator ...
func NewAccelerator ¶
func NewAccelerator(tenant, project string, wfr *api.WorkflowRun) *Accelerator
NewAccelerator new an accelerator
func (*Accelerator) Accelerate ¶
func (a *Accelerator) Accelerate()
Accelerate will check if the workflowrun has label 'workflowrun.cyclone.dev/acceleration=true', True will mount some volumes into all stages under the related workflow to cache building dependencies. volumes including: - '/root/.m2' maven dependency path - '/root/.gradle' gradle dependency path - '/root/.npm' npm dependency path
Click to show internal directories.
Click to hide internal directories.