preheat

package
v0.0.0-...-a14a4d2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// PreheatParamProvider is a parameter keeping the preheating provider instance info.
	PreheatParamProvider = "provider"
	// PreheatParamImage is a parameter keeping the preheating artifact (image) info.
	PreheatParamImage = "image"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct{}

Job preheats the given artifact(image) to the target preheat provider.

func (*Job) MaxCurrency

func (j *Job) MaxCurrency() uint

MaxCurrency indicates no limitation to the concurrency of preheat job.

func (*Job) MaxFails

func (j *Job) MaxFails() uint

MaxFails of preheat job. Don't need to retry.

func (*Job) Run

func (j *Job) Run(ctx job.Context, params job.Parameters) error

Run the preheat process.

func (*Job) ShouldRetry

func (j *Job) ShouldRetry() bool

ShouldRetry indicates no need to retry preheat job as it's just for a cache purpose.

func (*Job) Validate

func (j *Job) Validate(params job.Parameters) error

Validate the parameters of preheat job.

Directories

Path Synopsis
dao
models

Jump to

Keyboard shortcuts

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