package
1.5.0
Repository: https://github.com/openshift/source-to-image.git
Documentation: pkg.go.dev

# Packages

Package status provides functionality to update the status of a build with information about failures that occurred.

# Functions

AdjustConfigWithImageLabels examines previously retrieved builder image labels and returns any specified update to the scripts URL and destination settings.
CreateInjectionResultFile creates a result file with the message from the provided injection error.
CreateTruncateFilesScript creates a shell script that contains truncation of all files we injected into the container.
FirstNonEmpty returns the first non-empty string in the provided list of strings.
FixInjectionsWithRelativePath fixes the injections that does not specify the destination directory or the directory is relative to use the provided working directory.
GenerateLabelsFromConfig generate the labels based on build s2i Config.
GenerateLabelsFromSourceInfo generate the labels based on the source repository informations.
GenerateOutputImageLabels generate the labels based on the s2i Config and source repository informations.
HandleInjectionError handles the error caused by injection and provide reasonable suggestion to users.
Includes determines if the given string is in the provided slice of strings.
IsTimeoutError checks if the provided error is a TimeoutError.
ListFiles returns a flat list of all files injected into a container for the given `VolumeSpec`.
ListFilesToTruncate returns a flat list of all files that are injected into a container which need to be truncated.
NewCallbackInvoker creates an instance of the default CallbackInvoker implementation.
ReadEnvironmentFile reads the content for a file that contains a list of environment variables and values.
SafeForLoggingContainerConfig returns a copy of the container.Config object with sensitive information (proxy environment variables containing credentials) redacted.
SafeForLoggingEnv attempts to strip sensitive information from proxy environment variable strings in key=value form.
SafeForLoggingURL removes the user:password section of a url if present.
TimeoutAfter executes the provided function and returns TimeoutError in the case that the execution time of the function exceeded the provided duration.

# Structs

TimeoutError is error returned after timeout occurred.

# Interfaces

CallbackInvoker posts results to a callback URL when a STI build is done.