accelerator

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

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 *v1alpha1.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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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