fail_handler

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func PrintAllBuildLogs added in v0.12.0

func PrintAllBuildLogs(config *rest.Config, namespace string)

func PrintBuildLogs added in v0.12.0

func PrintBuildLogs(config *rest.Config, buildGUID string)

func PrintKorifiLogs added in v0.12.0

func PrintKorifiLogs(config *rest.Config, correlationId string, since time.Time)

func PrintPodEvents

func PrintPodEvents(config *rest.Config, podDescriptors []PodDescriptor)

func PrintPodsLogs

func PrintPodsLogs(config *rest.Config, podDescriptors []PodDescriptor)

Types

type Handler added in v0.12.0

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

func New

func New(name string, hooks ...Hook) *Handler

func (*Handler) Fail added in v0.12.0

func (h *Handler) Fail(message string, callerSkip ...int)

func (*Handler) RegisterFailHandler added in v0.12.0

func (h *Handler) RegisterFailHandler(hook Hook)

type Hook added in v0.12.0

type Hook struct {
	Matcher types.GomegaMatcher
	Hook    func(config *rest.Config, failure TestFailure)
}

type PodDescriptor added in v0.12.0

type PodDescriptor struct {
	Namespace     string
	LabelKey      string
	LabelValue    string
	CorrelationId string
	Since         *metav1.Time
}

type TestFailure added in v0.12.0

type TestFailure struct {
	StartTime time.Time
	Message   string
}

Jump to

Keyboard shortcuts

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