wait

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTimeout = 10 * time.Minute

Functions

func RegexpMatchingInControllerLog added in v0.18.0

func RegexpMatchingInControllerLog(ctx context.Context, clients *params.Run, reg regexp.Regexp, maxNumberOfLoop int, controllerName string) error

func RegexpMatchingInPodLog added in v0.13.0

func RegexpMatchingInPodLog(ctx context.Context, clients *params.Run, ns, labelselector, containerName string, reg regexp.Regexp, maxNumberOfLoop int) error

func Succeeded

func Succeeded(ctx context.Context, t *testing.T, runcnx *params.Run, opts options.E2E, sopt SuccessOpt)

func UntilMinPRAppeared added in v0.13.0

func UntilMinPRAppeared(ctx context.Context, clients clients.Clients, opts Opts, minNumber int) error

func UntilPipelineRunCreated added in v0.22.5

func UntilPipelineRunCreated(ctx context.Context, clients clients.Clients, opts Opts) error

func UntilRepositoryUpdated

func UntilRepositoryUpdated(ctx context.Context, clients clients.Clients, opts Opts) error

Types

type Opts

type Opts struct {
	RepoName        string
	Namespace       string
	MinNumberStatus int
	PollTimeout     time.Duration
	AdminNS         string
	TargetSHA       string
}

type SuccessOpt added in v0.21.1

type SuccessOpt struct {
	TargetNS        string
	OnEvent         string
	SHA             string
	Title           string
	MinNumberStatus int

	NumberofPRMatch int
}

Jump to

Keyboard shortcuts

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