triggers

package
v1.6.7 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExecutionTest      = "test"
	ExecutionTestSuite = "testsuite"
)

Variables

This section is empty.

Functions

func NewClusterEventEvent

func NewClusterEventEvent(eventType testtrigger.EventType, event *corev1.Event) *watcherEvent

Types

type Execution

type Execution string

type Option

type Option func(*Service)

type Service

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

func NewService

func NewService(
	scheduler *scheduler.Scheduler,
	clientset *kubernetes.Clientset,
	testTriggersClientset testkubeclientsetv1.Interface,
	testSuitesClient testsuitesclientv2.Interface,
	testsClient testsclientv3.Interface,
	resultRepository result.Repository,
	testResultRepository testresult.Repository,
	logger *zap.SugaredLogger,
	opts ...Option,
) *Service

func (*Service) Run

func (s *Service) Run(ctx context.Context) error

func (*Service) WithExecutor

func (s *Service) WithExecutor(executor ExecutorF)

func (*Service) WithScraperInterval

func (s *Service) WithScraperInterval(interval time.Duration)

Jump to

Keyboard shortcuts

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