scheduler

package
v0.15.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

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

func New(ctx context.Context, l cmacmelisters.ChallengeLister, maxConcurrentChallenges int) *Scheduler

New will construct a new instance of a scheduler

func (*Scheduler) ScheduleN added in v0.6.0

func (s *Scheduler) ScheduleN(n int) ([]*cmacme.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