Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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.

Source Files