Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/shipwright-io/build
/ functions
Functions
1,213 in github.com/shipwright-io/build
⨍
Functions
1,213
◇
Types & classes
110
↓ 80 callers
Method
Get
(arg1 context.Context, arg2 client.ObjectKey, arg3 client.Object, arg4 ...client.GetOption)
pkg/controller/fakes/client.go:447
↓ 46 callers
Method
String
()
pkg/git/error_parser.go:79
↓ 43 callers
Method
GetCondition
GetCondition returns the condition of the build runner.
pkg/reconciler/buildrun/imagebuildrunner.go:36
↓ 29 callers
Method
ShipwrightV1beta1
()
pkg/client/clientset/versioned/clientset.go:23
↓ 25 callers
Method
ShipwrightV1alpha1
()
pkg/client/clientset/versioned/clientset.go:22
↓ 23 callers
Method
Create
()
test/e2e/v1beta1/common_suite_test.go:285
↓ 23 callers
Method
DeleteBuild
DeleteBuild deletes a Build on the desired namespace
test/utils/v1beta1/builds.go:41
↓ 21 callers
Method
Delete
(arg1 context.Context, arg2 client.Object, arg3 ...client.DeleteOption)
pkg/controller/fakes/client.go:321
↓ 21 callers
Function
Info
Info returns an INFO level log from an specified context
pkg/ctxlog/log.go:71
↓ 20 callers
Method
recordInvocation
(key string, args []interface{})
pkg/controller/fakes/manager.go:1371
↓ 18 callers
Method
CreateBR
This class is intended to host all CRUD calls for testing BuildRun CRDs resources CreateBR generates a BuildRun on the current test namespace
test/utils/v1beta1/buildruns.go:24
↓ 17 callers
Method
DeleteBR
DeleteBR deletes a BuildRun from a desired namespace
test/utils/v1beta1/buildruns.go:57
↓ 17 callers
Method
Error
()
pkg/reconciler/buildrun/resources/errors.go:47
↓ 16 callers
Method
List
(arg1 context.Context, arg2 client.ObjectList, arg3 ...client.ListOption)
pkg/controller/fakes/client.go:639
↓ 16 callers
Method
Name
(name string)
test/e2e/v1beta1/common_suite_test.go:39
↓ 14 callers
Method
recordInvocation
(key string, args []interface{})
pkg/controller/fakes/client.go:1059
↓ 13 callers
Method
CreateBuild
This class is intended to host all CRUD calls for testing Build CRDs resources CreateBuild generates a Build on the current test namespace
test/utils/v1beta1/builds.go:23
↓ 13 callers
Method
GetBR
GetBR retrieves a BuildRun from a desired namespace Deprecated: Use LookupBuildRun instead.
test/utils/v1beta1/buildruns.go:46
↓ 13 callers
Method
LookupBuildRun
(entity types.NamespacedName)
test/utils/v1beta1/lookup.go:56
↓ 12 callers
Function
BuildServerTLSConfig
BuildServerTLSConfig builds a tls.Config for serving HTTPS. Defaults: - Minimum TLS version is TLS 1.2. - Cipher suites and curve preferences are lef
pkg/webhook/tlsconfig/tlsconfig.go:26
↓ 12 callers
Method
GetTaskRunFromBuildRun
This class is intended to host all CRUD calls for testing TaskRuns CRDs resources GetTaskRunFromBuildRun retrieves an owned TaskRun based on the Build
test/utils/v1beta1/taskruns.go:23
↓ 12 callers
Function
Logf
Logf logs data
test/e2e/v1beta1/common_suite_test.go:465
↓ 12 callers
Function
Logf
Logf logs data
test/e2e/v1alpha1/common_suite_test.go:422
↓ 11 callers
Method
CreateClusterBuildStrategy
This class is intended to host all CRUD calls for testing ClusterBuildStrategy CRDs resources CreateClusterBuildStrategy generates a ClusterBuildStrat
test/utils/v1beta1/clusterbuildstrategies.go:16
↓ 11 callers
Function
Debug
Debug returns an DEBUG level log from an specified context
pkg/ctxlog/log.go:65
↓ 11 callers
Method
DeleteClusterBuildStrategy
DeleteClusterBuildStrategy deletes a ClusterBuildStrategy on the desired namespace
test/utils/v1beta1/clusterbuildstrategies.go:27
↓ 11 callers
Method
Error
()
cmd/git/main.go:50
↓ 11 callers
Method
GetBuildTillValidation
GetBuildTillValidation polls until a Build gets a validation and updates it´s registered field. If timeout is reached or an error is found, it will re
test/utils/v1beta1/builds.go:79
↓ 11 callers
Method
LoadBuildWithNameAndStrategy
LoadBuildWithNameAndStrategy returns a populated Build with name and a referenced strategy
test/v1beta1_samples/catalog.go:1104
↓ 11 callers
Method
LoadCBSWithName
LoadCBSWithName returns a populated ClusterBuildStrategy with a name
test/v1beta1_samples/catalog.go:1160
↓ 10 callers
Method
Add
(arg1 manager.Runnable)
pkg/controller/fakes/manager.go:242
↓ 10 callers
Function
Error
Error returns an ERROR level log from an specified context
pkg/ctxlog/log.go:59
↓ 10 callers
Method
GetBRTillCompletion
GetBRTillCompletion returns a BuildRun that have a CompletionTime set. If the timeout is reached or it fails when retrieving the BuildRun it will stop
test/utils/v1beta1/buildruns.go:83
↓ 10 callers
Function
NewDefaultConfig
NewDefaultConfig returns a new Config, with context timeout and default Kaniko image.
pkg/config/config.go:193
↓ 10 callers
Method
Update
(arg1 context.Context, arg2 client.Object, arg3 ...client.UpdateOption)
pkg/controller/fakes/client.go:986
↓ 10 callers
Method
ValidatePath
(ctx context.Context)
pkg/validate/validate.go:57
↓ 9 callers
Method
GetBuild
GetBuild returns a Build based on name Deprecated: Use LookupBuild instead
test/utils/v1beta1/builds.go:51
↓ 9 callers
Method
GetName
GetName returns the name of the build runner.
pkg/reconciler/buildrun/imagebuildrunner.go:28
↓ 9 callers
Method
LoadBRWithNameAndRef
LoadBRWithNameAndRef returns a populated BuildRun with a name and a referenced Build
test/v1beta1_samples/catalog.go:1126
↓ 9 callers
Function
createBuildRunLabels
(buildStrategy, namespace, build, buildRun, strategyKind, executor, sourceType string)
pkg/metrics/metrics.go:251
↓ 9 callers
Function
generateTestID
(id string)
test/e2e/v1beta1/common_test.go:30
↓ 8 callers
Method
CreateSecret
This class is intended to host all CRUD calls for testing secrets primitive resources CreateSecret generates a Secret on the current test namespace
test/utils/v1beta1/secrets.go:16
↓ 8 callers
Method
Patch
(arg1 context.Context, arg2 client.Object, arg3 client.Patch, arg4 ...client.PatchOption)
pkg/controller/fakes/client.go:702
↓ 8 callers
Method
ValidateImageDigest
ValidateImageDigest ensures that an image digest is set in the BuildRun status and that this digest is pointing to an image
test/utils/v1beta1/image.go:108
↓ 7 callers
Method
GetBRTillStartTime
GetBRTillStartTime returns a BuildRun that have a StartTime set. If the timeout is reached or it fails when retrieving the BuildRun it will stop polli
test/utils/v1beta1/buildruns.go:204
↓ 7 callers
Function
HandleError
HandleError returns multiple errors if each error is not nil. And its error message.
pkg/reconciler/buildrun/resources/errors.go:59
↓ 7 callers
Function
UpdateConditionWithFalseStatus
UpdateConditionWithFalseStatus sets the Succeeded condition fields and mark the condition as Status False. It also updates the object in the cluster b
pkg/reconciler/buildrun/resources/conditions.go:378
↓ 7 callers
Method
lookupRuntimeObject
(f func(ctx context.Context) (runtime.Object, error))
test/utils/v1beta1/lookup.go:126
↓ 7 callers
Method
lookupRuntimeObject
(f func(ctx context.Context) (runtime.Object, error))
test/utils/v1alpha1/lookup.go:125
↓ 7 callers
Function
printTestFailureDebugInfo
printTestFailureDebugInfo will output the status of Build, BuildRun, TaskRun and Pod, also print logs of Pod
test/e2e/v1beta1/common_test.go:154
↓ 7 callers
Function
validateBuildRunToSucceed
validateBuildRunToSucceed creates the build run and watches its flow until it succeeds.
test/e2e/v1beta1/validators_test.go:116
↓ 7 callers
Function
validateServiceAccountDeletion
validateServiceAccountDeletion validates that a service account is correctly deleted after the end of a build run and depending on the state of the bu
test/e2e/v1beta1/validators_test.go:259
↓ 6 callers
Function
AddToScheme
AddToScheme adds all Resources to the Scheme
pkg/apis/apis.go:15
↓ 6 callers
Method
GetCalls
(stub func(context.Context, client.ObjectKey, client.Object, ...client.GetOption) error)
pkg/controller/fakes/client.go:475
↓ 6 callers
Function
IsForbiddenEnvVar
(name string)
pkg/env/env.go:40
↓ 6 callers
Method
Namespace
(namespace string)
test/e2e/v1beta1/common_suite_test.go:44
↓ 6 callers
Function
NewBuildPrototype
()
test/e2e/v1beta1/common_suite_test.go:33
↓ 6 callers
Function
NewBuildRunPrototype
()
test/e2e/v1beta1/common_suite_test.go:315
↓ 6 callers
Method
OutputImage
(image string)
test/e2e/v1beta1/common_suite_test.go:151
↓ 6 callers
Method
Set
(s string)
pkg/reconciler/buildrun/resources/image_processing.go:33
↓ 6 callers
Function
TestClient
()
test/utils/webhook.go:20
↓ 6 callers
Function
generateTestID
(id string)
test/e2e/v1alpha1/common_test.go:34
↓ 5 callers
Method
ClusterBuildStrategy
(name string)
test/e2e/v1beta1/common_suite_test.go:58
↓ 5 callers
Method
Create
()
test/e2e/v1alpha1/common_suite_test.go:242
↓ 5 callers
Method
DeleteSecret
DeleteSecret removes the desired secret
test/utils/v1beta1/secrets.go:26
↓ 5 callers
Method
GetCache
()
pkg/controller/fakes/manager.go:595
↓ 5 callers
Method
GetClient
()
pkg/controller/fakes/manager.go:648
↓ 5 callers
Function
GetOptions
GetOptions constructs go-containerregistry options to access the remote registry, in addition, it returns the authentication separately which can be a
pkg/image/options.go:49
↓ 5 callers
Method
OutputImageCredentials
(name string)
test/e2e/v1beta1/common_suite_test.go:267
↓ 5 callers
Method
OutputImageInsecure
(insecure bool)
test/e2e/v1beta1/common_suite_test.go:274
↓ 5 callers
Function
SanitizeVolumeNameForSecretName
SanitizeVolumeNameForSecretName creates the name of a Volume for a Secret
pkg/reconciler/buildrun/resources/sources/utils.go:58
↓ 5 callers
Function
SetupHomeAndTmpVolumes
SetupHomeAndTmpVolumes creates writeable `emptyDir` volumes for the task step's `HOME` and `TMPDIR` locations, mounts them to well-known locations, an
pkg/reconciler/buildrun/resources/sources/utils.go:94
↓ 5 callers
Method
Start
(stopCh <-chan struct{})
pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go:23
↓ 5 callers
Function
buildRunTestData
buildTestData gets the us the Build test data set up
test/e2e/v1beta1/validators_test.go:317
↓ 5 callers
Function
createBuild
(testBuild *utils.TestBuild, identifier string, filePath string)
test/e2e/v1beta1/common_test.go:38
↓ 5 callers
Function
isStepReferencingParameter
isStepReferencingParameter checks if a step is referencing a parameter in its command, args, or environment variable values
pkg/reconciler/buildrun/resources/params.go:352
↓ 5 callers
Function
printTestFailureDebugInfo
printTestFailureDebugInfo will output the status of Build, BuildRun, TaskRun and Pod, also print logs of Pod
test/e2e/v1alpha1/common_test.go:158
↓ 5 callers
Function
validateBuildRunToSucceed
validateBuildRunToSucceed creates the build run and watches its flow until it succeeds.
test/e2e/v1alpha1/validators_test.go:117
↓ 5 callers
Function
validateServiceAccountDeletion
validateServiceAccountDeletion validates that a service account is correctly deleted after the end of a build run and depending on the state of the bu
test/e2e/v1alpha1/validators_test.go:257
↓ 4 callers
Function
AppendSecretVolume
AppendSecretVolume checks if a volume for a secret already exists, if not it appends it to the TaskSpec
pkg/reconciler/buildrun/resources/sources/utils.go:32
↓ 4 callers
Method
ArrayParamValue
ArrayParamValue adds an item to an array parameter, if the parameter is not yet present, it is being added
test/e2e/v1beta1/common_suite_test.go:189
↓ 4 callers
Method
BuildSpec
BuildSpec returns the BuildSpec of this Build (no cluster resource is created)
test/e2e/v1beta1/common_suite_test.go:311
↓ 4 callers
Function
CRDConvertHandler
CRDConvertHandler is a handle func for the /convert endpoint
pkg/webhook/conversion/conversion.go:57
↓ 4 callers
Method
DefaultBuildRun
DefaultBuildRun returns a minimal BuildRun object
test/v1beta1_samples/catalog.go:784
↓ 4 callers
Method
DeleteBuildStrategy
DeleteBuildStrategy deletes a BuildStrategy on the current test namespace
test/utils/v1beta1/buildstrategies.go:27
↓ 4 callers
Method
DeleteConfigMap
DeleteConfigMap removes the desired configMap
test/utils/v1beta1/configmaps.go:25
↓ 4 callers
Method
Dockerfile
(dockerfile string)
test/e2e/v1beta1/common_suite_test.go:138
↓ 4 callers
Function
ExtractLogger
ExtractLogger returns a logger based on the loggerKey This function retrieves from an existing context the value, which in this case is an instance of
pkg/ctxlog/context.go:43
↓ 4 callers
Function
FindParameterByName
FindParameterByName returns the first entry in a Parameter array with a specified name, or nil
pkg/reconciler/buildrun/resources/params.go:71
↓ 4 callers
Method
LoadBuildStrategyFromBytes
LoadBuildStrategyFromBytes returns a populated BuildStrategy
test/v1beta1_samples/catalog.go:1150
↓ 4 callers
Method
LookupServiceAccount
(entity types.NamespacedName)
test/utils/v1beta1/lookup.go:115
↓ 4 callers
Function
MergeMaps
MergeMaps takes 2 maps as input and merge the second into the first values in second would takes precedence if both maps have same keys
pkg/reconciler/buildrun/resources/image_processing.go:282
↓ 4 callers
Method
Name
(name string)
test/e2e/v1alpha1/common_suite_test.go:39
↓ 4 callers
Method
Namespace
(namespace string)
test/e2e/v1alpha1/common_suite_test.go:44
↓ 4 callers
Function
NewBuildPrototype
()
test/e2e/v1alpha1/common_suite_test.go:33
↓ 4 callers
Function
NewBuildRunPrototype
()
test/e2e/v1alpha1/common_suite_test.go:272
↓ 4 callers
Function
NewParentContext
NewParentContext returns a new context from the parent context.Background one. This new context stores our logger implementation
pkg/ctxlog/context.go:23
↓ 4 callers
Method
OutputImage
(image string)
test/e2e/v1alpha1/common_suite_test.go:218
↓ 4 callers
Function
OverrideParams
OverrideParams allows to override an existing list of parameters with a second list, as long as their entry names matches
pkg/reconciler/buildrun/resources/params.go:34
↓ 4 callers
Function
ParseReference
ParseReference parses an image name into a reference. If insecure is set, the reference is flagged as insecure so that go-containerregistry falls back
pkg/image/endpoint.go:52
next →
1–100 of 1,213, ranked by callers