MCPcopy Create free account

hub / github.com/coder/envbuilder / functions

Functions257 in github.com/coder/envbuilder

↓ 1 callersMethodCABundle
()
options/options.go:584
↓ 1 callersFunctionDecodeBase64PrivateKey
DecodeBase64PrivateKey attempts to decode a base64 encoded private key and returns an ssh.Signer
git/git.go:194
↓ 1 callersMethodEnqueue
(uuid.UUID, ...agentsdk.Log)
log/coder.go:85
↓ 1 callersMethodExecute
(ctx context.Context, uid, gid int)
devcontainer/script.go:83
↓ 1 callersMethodFeatures
Features is a directory that contains feature files.
internal/workingdir/workingdir.go:81
↓ 1 callersMethodFlush
(uuid.UUID)
log/coder.go:87
↓ 1 callersMethodMarkdown
()
options/options.go:555
↓ 1 callersMethodMediaType
MediaType returns the media type of the layer
testutil/registrytest/registrytest.go:137
↓ 1 callersFunctionReadPrivateKey
ReadPrivateKey attempts to read an SSH private key from path and returns an ssh.Signer.
git/git.go:175
↓ 1 callersFunctionRun
Run runs the envbuilder. Logger is the logf to use for all operations. Filesystem is the filesystem to use for all operations. Defaults to the host fi
envbuilder.go:89
↓ 1 callersFunctionRunCacheProbe
RunCacheProbe performs a 'dry-run' build of the image and checks that all of the resulting layers are present in options.CacheRepo.
envbuilder.go:979
↓ 1 callersMethodScriptLines
ScriptLines returns shell syntax for executing the commands in the LifecycleScript. TODO: Technically the commands could be executed in parallel, but
devcontainer/script.go:147
↓ 1 callersMethodSendLoop
(context.Context, agentsdk.LogDest)
log/coder.go:86
↓ 1 callersMethodSize
()
internal/ebutil/remount_internal_test.go:669
↓ 1 callersFunctionTempRemount
TempRemount iterates through all read-only mounted filesystems, bind-mounts them at dest, and unmounts them from their original source. All mount poin
internal/ebutil/remount.go:37
↓ 1 callersFunctionToLogrus
(lvl Level)
log/logrus.go:31
↓ 1 callersMethodUncompressed
Uncompressed implements partial.UncompressedLayer
testutil/registrytest/registrytest.go:132
↓ 1 callersMethodWaitUntilEmpty
(context.Context)
log/coder.go:88
↓ 1 callersFunctionWrap
Wrap wraps the provided LogFuncs into a single Func.
log/log.go:42
↓ 1 callersFunctionWriteFile
WriteFile writes a file to the filesystem.
testutil/gittest/gittest.go:274
↓ 1 callersFunctionbase64EncodeTestPrivateKey
()
git/git_test.go:564
↓ 1 callersFunctioncheckTestRegistry
()
integration/integration_test.go:2627
↓ 1 callersFunctioncleanOldEnvbuilders
cleanOldEnvbuilders removes any old envbuilder containers.
integration/integration_test.go:2644
↓ 1 callersMethodcompileFeatures
(fs billy.Filesystem, devcontainerDir, scratchDir string, containerUser, remoteUser, dockerfileContent string,
devcontainer/devcontainer.go:223
↓ 1 callersFunctionconvertOptionNameToEnv
See https://containers.dev/implementors/features/#option-resolution
devcontainer/features/features.go:267
↓ 1 callersFunctioncreatePostStartScript
(path string, postStartCommand devcontainer.LifecycleScript)
envbuilder.go:1478
↓ 1 callersFunctionenvbuilderCmd
()
cmd/envbuilder/main.go:33
↓ 1 callersFunctionexecLifecycleScripts
( ctx context.Context, options options.Options, scripts devcontainer.LifecycleScripts, firstStart bool, u
envbuilder.go:1436
↓ 1 callersFunctionextractFromImage
(fs billy.Filesystem, directory, reference string)
devcontainer/features/features.go:24
↓ 1 callersFunctionfakeIO
(i *serpent.Invocation)
options/options_test.go:209
↓ 1 callersFunctionfind
(key string)
buildinfo/version.go:32
↓ 1 callersFunctionfindUser
findUser looks up a user by name or ID.
envbuilder.go:1403
↓ 1 callersFunctioninitClient
(coderURL *url.URL, token string)
log/coder.go:91
↓ 1 callersFunctioninitRPC
(ctx context.Context, client *agentsdk.Client, l slog.Logger)
log/coder.go:97
↓ 1 callersFunctionisParallel
(t *testing.T)
log/coder_internal_test.go:351
↓ 1 callersFunctionlibraryDirectorySymlinks
libraryDirectorySymlinks returns a mapping of each library (basename) with a list of their symlinks (basename). Libraries with no symlinks do not appe
internal/ebutil/libs.go:42
↓ 1 callersFunctionlogDockerAuthConfigs
(logf log.Func, dockerConfigJSON []byte)
envbuilder.go:1800
↓ 1 callersFunctionmaybeDeleteFilesystem
maybeDeleteFilesystem wraps util.DeleteFilesystem with a guard to hopefully stop folks from unwittingly deleting their entire root directory.
envbuilder.go:1574
↓ 1 callersFunctionmoveLibSymlinks
moveLibSymlinks moves a list of symlinks from source to destination directory.
internal/ebutil/libs.go:77
↓ 1 callersFunctionparseMagicImageFile
(fs billy.Filesystem, path string, v any)
envbuilder.go:1672
↓ 1 callersFunctionreadFile
(fs billy.Filesystem, name string)
envbuilder.go:1603
↓ 1 callersFunctionrevision
()
buildinfo/version.go:28
↓ 1 callersFunctionrun
(ctx context.Context, opts options.Options, execArgs *execArgsInfo)
envbuilder.go:120
↓ 1 callersFunctionsendLogsV1
sendLogsV1 uses the PatchLogs endpoint to send logs. This is deprecated, but required for backward compatibility with older versions of Coder.
log/coder.go:121
↓ 1 callersFunctionsetAndRestoreEnv
(logf log.Func, key, value string)
envbuilder.go:1812
↓ 1 callersFunctionsetEnvFromEtcEnvironment
(logf log.Func)
envbuilder.go:1350
↓ 1 callersFunctionskipDeprecatedOptions
(options []serpent.Option)
options/options.go:604
↓ 1 callersFunctionsubstitute
Spec for variable substitutions: https://containers.dev/implementors/json_reference/#variables-in-devcontainerjson
devcontainer/devcontainer.go:97
↓ 1 callersFunctionsupportLegacyEnvWithoutPrefixes
(opts serpent.OptionSet)
options/options.go:537
↓ 1 callersFunctiontestReplaceTimeout
(t *testing.T, v *time.Duration, d time.Duration)
log/coder_internal_test.go:341
↓ 1 callersFunctionwriteFile
(fs billy.Filesystem, name string, data []byte, perm fs.FileMode)
envbuilder.go:1641
MethodBatchCreateLogs
(ctx context.Context, request *proto.BatchCreateLogsRequest)
log/coder_internal_test.go:335
MethodDiffID
DiffID implements partial.UncompressedLayer
testutil/registrytest/registrytest.go:127
MethodEvalSymlinks
EvalSymlinks mocks base method.
internal/ebutil/mock_mounter_test.go:46
MethodEvalSymlinks
EvalSymlinks indicates an expected call of EvalSymlinks.
internal/ebutil/mock_mounter_test.go:55
MethodEvalSymlinks
(path string)
internal/ebutil/remount.go:216
MethodGetMounts
GetMounts mocks base method.
internal/ebutil/mock_mounter_test.go:61
MethodGetMounts
GetMounts indicates an expected call of GetMounts.
internal/ebutil/mock_mounter_test.go:70
MethodGetMounts
()
internal/ebutil/remount.go:196
MethodIsDir
()
internal/ebutil/remount_internal_test.go:684
MethodLayerByDiffID
(h v1.Hash)
devcontainer/devcontainer_test.go:439
MethodMediaType
()
devcontainer/devcontainer_test.go:427
MethodMkdirAll
MkdirAll mocks base method.
internal/ebutil/mock_mounter_test.go:76
MethodMkdirAll
MkdirAll indicates an expected call of MkdirAll.
internal/ebutil/mock_mounter_test.go:84
MethodMkdirAll
(path string, perm os.FileMode)
internal/ebutil/remount.go:200
MethodModTime
()
internal/ebutil/remount_internal_test.go:671
MethodMode
()
internal/ebutil/remount_internal_test.go:670
MethodMount
Mount mocks base method.
internal/ebutil/mock_mounter_test.go:90
MethodMount
Mount indicates an expected call of Mount.
internal/ebutil/mock_mounter_test.go:98
MethodMount
(src string, dest string, fstype string, flags uintptr, data string)
internal/ebutil/remount.go:188
MethodName
()
internal/ebutil/remount_internal_test.go:683
MethodOpenFile
OpenFile mocks base method.
internal/ebutil/mock_mounter_test.go:104
MethodOpenFile
OpenFile indicates an expected call of OpenFile.
internal/ebutil/mock_mounter_test.go:113
MethodOpenFile
(name string, flag int, perm os.FileMode)
internal/ebutil/remount.go:204
MethodRawConfigFile
()
devcontainer/devcontainer_test.go:431
MethodReadDir
ReadDir mocks base method.
internal/ebutil/mock_mounter_test.go:119
MethodReadDir
ReadDir indicates an expected call of ReadDir.
internal/ebutil/mock_mounter_test.go:128
MethodReadDir
(name string)
internal/ebutil/remount.go:212
MethodRename
Rename mocks base method.
internal/ebutil/mock_mounter_test.go:134
MethodRename
Rename indicates an expected call of Rename.
internal/ebutil/mock_mounter_test.go:142
MethodRename
(oldpath, newpath string)
internal/ebutil/remount.go:220
MethodStat
Stat mocks base method.
internal/ebutil/mock_mounter_test.go:148
MethodStat
Stat indicates an expected call of Stat.
internal/ebutil/mock_mounter_test.go:157
MethodStat
(path string)
internal/ebutil/remount.go:208
MethodSys
()
internal/ebutil/remount_internal_test.go:673
FunctionTestBuildCustomCertificates
(t *testing.T)
integration/integration_test.go:995
FunctionTestBuildFailsFallback
(t *testing.T)
integration/integration_test.go:1065
FunctionTestBuildFromCustomWorkspaceBaseDir
(t *testing.T)
integration/integration_test.go:925
FunctionTestBuildFromDevcontainerInCustomPath
(t *testing.T)
integration/integration_test.go:900
FunctionTestBuildFromDevcontainerInRoot
(t *testing.T)
integration/integration_test.go:971
FunctionTestBuildFromDevcontainerInSubfolder
(t *testing.T)
integration/integration_test.go:947
FunctionTestBuildFromDevcontainerWithFeatures
(t *testing.T)
integration/integration_test.go:497
FunctionTestBuildFromDevcontainerWithFeaturesInAuthRepo
(t *testing.T)
integration/integration_test.go:581
FunctionTestBuildFromDockerfileAndConfig
(t *testing.T)
integration/integration_test.go:665
FunctionTestBuildIgnoreVarRunSecrets
(t *testing.T)
integration/integration_test.go:833
FunctionTestBuildPrintBuildOutput
(t *testing.T)
integration/integration_test.go:803
FunctionTestBuildSecrets
(t *testing.T)
integration/integration_test.go:1229
FunctionTestBuildStopStartCached
(t *testing.T)
integration/integration_test.go:1018
FunctionTestBuildWithSetupScript
(t *testing.T)
integration/integration_test.go:880
FunctionTestCLIOutput
TestCLIOutput tests that the default CLI output is as expected.
options/options_test.go:153
← previousnext →101–200 of 257, ranked by callers