{"modulePath":"github.com/2lambda123/openshift-origin","version":"v3.11.0+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package util\n\n## Constants\n\n```go\nconst (\n\n\t// AllowedUIDs is an environment variable that contains ranges of UIDs that are allowed in\n\t// Source builder images\n\tAllowedUIDs = \"ALLOWED_UIDS\"\n\t// DropCapabilities is an environment variable that contains a list of capabilities to drop when\n\t// executing a Source build\n\tDropCapabilities = \"DROP_CAPS\"\n\n\t// DefaultDockerLabelNamespace is the key of a Build label, whose values are build metadata.\n\tDefaultDockerLabelNamespace = \"io.openshift.\"\n\n\tStatusMessageCannotCreateBuildPodSpec        = \"Failed to create pod spec.\"\n\tStatusMessageCannotCreateBuildPod            = \"Failed creating build pod.\"\n\tStatusMessageInvalidOutputRef                = \"Output image could not be resolved.\"\n\tStatusMessageInvalidImageRef                 = \"Referenced image could not be resolved.\"\n\tStatusMessageCancelBuildFailed               = \"Failed to cancel build.\"\n\tStatusMessageBuildPodDeleted                 = \"The pod for this build was deleted before the build completed.\"\n\tStatusMessageExceededRetryTimeout            = \"Build did not complete and retrying timed out.\"\n\tStatusMessageMissingPushSecret               = \"Missing push secret.\"\n\tStatusMessagePostCommitHookFailed            = \"Build failed because of post commit hook.\"\n\tStatusMessagePushImageToRegistryFailed       = \"Failed to push the image to the registry.\"\n\tStatusMessagePullBuilderImageFailed          = \"Failed pulling builder image.\"\n\tStatusMessageFetchSourceFailed               = \"Failed to fetch the input source.\"\n\tStatusMessageInvalidContextDirectory         = \"The supplied context directory does not exist.\"\n\tStatusMessageCancelledBuild                  = \"The build was cancelled by the user.\"\n\tStatusMessageDockerBuildFailed               = \"Docker build strategy has failed.\"\n\tStatusMessageBuildPodExists                  = \"The pod for this build already exists and is older than the build.\"\n\tStatusMessageNoBuildContainerStatus          = \"The pod for this build has no container statuses indicating success or failure.\"\n\tStatusMessageFailedContainer                 = \"The pod for this build has at least one container with a non-zero exit status.\"\n\tStatusMessageGenericBuildFailed              = \"Generic Build failure - check logs for details.\"\n\tStatusMessageUnresolvableEnvironmentVariable = \"Unable to resolve build environment variable reference.\"\n\tStatusMessageCannotRetrieveServiceAccount    = \"Unable to look up the service account associated with this build.\"\n)\n```\n\n## Functions\n\n```go\nfunc SafeForLoggingBuild(build *buildapiv1.Build) *buildapiv1.Build\n```\nSafeForLoggingBuild returns a copy of a Build with proxy credentials redacted.\n\n```go\nfunc SafeForLoggingBuildCommonSpec(spec *buildapiv1.CommonSpec) *buildapiv1.CommonSpec\n```\nSafeForLoggingBuildCommonSpec returns a copy of a CommonSpec with proxy credential env variable values redacted.\n\n```go\nfunc SafeForLoggingEnvVar(env []corev1.EnvVar) []corev1.EnvVar\n```\nSafeForLoggingEnvVar returns a copy of an EnvVar array with proxy credential values redacted.\n\n```go\nfunc SafeForLoggingEnvironmentList(env s2iapi.EnvironmentList) s2iapi.EnvironmentList\n```\nSafeForLoggingEnvironmentList returns a copy of an s2i EnvironmentList array with proxy credential values redacted.\n\n```go\nfunc SafeForLoggingS2IConfig(config *s2iapi.Config) *s2iapi.Config\n```\nSafeForLoggingS2IConfig returns a copy of an s2i Config with proxy credentials redacted.\n\n```go\nfunc SafeForLoggingURL(u *url.URL) *url.URL\n```\nSafeForLoggingURL removes the user:password section of a url if present.  If not present the value is returned unchanged.\n\n","path":"github.com/2lambda123/openshift-origin/pkg/build/builder/util","name":"util","synopsis":"","isRedistributable":true}
