scheduler

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxConcurrentChallenges is the total maximum number of challenges that
	// can be scheduled as 'processing' at once.
	MaxConcurrentChallenges = 60
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler added in v0.6.0

type Scheduler struct {
	// contains filtered or unexported fields
}

Scheduler implements an ACME challenge scheduler that applies heuristics to challenge resources in order to determine which challenges should be processing at a given time.

func New

New will construct a new instance of a scheduler

func (*Scheduler) ScheduleN added in v0.6.0

func (s *Scheduler) ScheduleN(n int) ([]*cmapi.Challenge, error)

ScheduleN will return a maximum of N challenge resources that should be scheduled for processing. It may return an empty list if there are no challenges that can/should be scheduled.

Jump to

Keyboard shortcuts

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