trigger

package
v0.38.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	configuration librepo.Configuration,
	customConfig config.CustomConfiguration,
	logging librepo.Logging,
	timestamp librepo.Timestamp,
	updater service.Updater,
) service.Trigger

Types

type Impl

type Impl struct {
	Configuration       librepo.Configuration
	CustomConfiguration config.CustomConfiguration
	Logging             librepo.Logging
	Timestamp           librepo.Timestamp
	Updater             service.Updater

	LoggingCtx context.Context
	Cron       *cron.Cron

	SkipStart bool
}

func (*Impl) Error

func (s *Impl) Error(err error, msg string, keysAndValues ...interface{})

func (*Impl) Info

func (s *Impl) Info(msg string, keysAndValues ...interface{})

func (*Impl) IsTrigger

func (s *Impl) IsTrigger() bool

func (*Impl) PerformWithCancel

func (s *Impl) PerformWithCancel(ctx context.Context) error

func (*Impl) Setup

func (s *Impl) Setup() error

func (*Impl) SetupTriggerCronjob added in v0.33.0

func (s *Impl) SetupTriggerCronjob(ctx context.Context) error

func (*Impl) StartCronjob

func (s *Impl) StartCronjob(_ context.Context) error

func (*Impl) StopCronjob

func (s *Impl) StopCronjob(_ context.Context) error

func (*Impl) Teardown added in v0.33.0

func (s *Impl) Teardown()

Jump to

Keyboard shortcuts

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