schedule

package
v0.0.1-prerelease5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchesLabel

func MatchesLabel(k, v string) containers.Option[Trigger]

MatchesLabel sets a match condition which matches any phase with the provided label

func MatchesPhase

func MatchesPhase(c core.Phase) containers.Option[Trigger]

MatchesPhase sets a match condition which matches a specific phase

func WithInterval

func WithInterval(d time.Duration) containers.Option[Trigger]

WithInterval sets the interval on a schedule

Types

type Trigger

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

Trigger is an implementation of a glu.Trigger which runs promotions on a scheduled interval.

func New

func New(opts ...containers.Option[Trigger]) *Trigger

New creates a scheduled trigger for running automated promotion calls.

func (*Trigger) Run

func (t *Trigger) Run(ctx context.Context, p glu.Pipelines)

Run starts the scheduled calls of Promote on pipeline phases which match any configured target predicate.

Jump to

Keyboard shortcuts

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