Back to

Package scheduler

Latest Go to latest

The latest major version is .

Published: Aug 7, 2020 | License: Apache-2.0 | Module:


type Scheduler

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

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.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier