custom

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggingDetailsProvider

type LoggingDetailsProvider = func(run *v1alpha1.PipelineRun) []any

LoggingDetailsProvider is the type of functions that extract details from given pipeline run objects to be added to log entries. The returned slice contains key-value pairs. Keys are at even indexes, while values are at odd indexes. The slice has an even number of items.

func GetLoggingDetailsProvider

func GetLoggingDetailsProvider(configYAMLString string) (LoggingDetailsProvider, error)

GetLoggingDetailsProvider parses the given YAML-formatted configuration string and returns a corresponding LoggingDetailsProvider. nil is returned if the configuration is empty or contains only entries that are not supported.

Jump to

Keyboard shortcuts

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