MCPcopy Create free account

hub / github.com/docker/compose / functions

Functions2,102 in github.com/docker/compose

↓ 2 callersMethodNetworkDisconnect
(ctx context.Context, networkName string, options client.NetworkDisconnectOptions)
pkg/dryrun/dryrunclient.go:261
↓ 2 callersMethodNetworks
Networks returns a comma-separated string of networks that the container is attached to.
cmd/formatter/container.go:277
↓ 2 callersFunctionNewClient
NewClient creates a Desktop integration client for the provided in-memory socket address (AF_UNIX or named pipe).
internal/desktop/client.go:82
↓ 2 callersMethodNewCmdWithEnv
NewCmdWithEnv creates a cmd object configured with the test environment set with additional env vars
pkg/e2e/framework.go:297
↓ 2 callersFunctionNewCompositeMatcher
(matchers ...PathMatcher)
pkg/watch/notify.go:106
↓ 2 callersFunctionNewDir
NewDir creates a new TempDir in the default location (typically $TMPDIR)
pkg/watch/temp.go:30
↓ 2 callersFunctionNewDirAtRoot
NewDirAtRoot creates a new TempDir at the given root.
pkg/watch/temp.go:35
↓ 2 callersFunctionNewFileEvent
(p string)
pkg/watch/notify.go:31
↓ 2 callersFunctionNewGitRemoteLoader
(dockerCli command.Cli, offline bool)
pkg/remote/git.go:54
↓ 2 callersFunctionNewOCIRemoteLoader
(dockerCli command.Cli, offline bool, options api.OCIOptions)
pkg/remote/oci.go:84
↓ 2 callersFunctionNewSet
(v ...T)
pkg/utils/set.go:19
↓ 2 callersFunctionNewTempDirFixture
(t testing.TB)
pkg/watch/temp_dir_fixture.go:41
↓ 2 callersFunctionNewWatcher
(paths []string)
pkg/watch/notify.go:83
↓ 2 callersMethodOnExit
()
cmd/compose/up.go:102
↓ 2 callersFunctionProxyTransportFor
ProxyTransportFor discovers the Docker Desktop endpoint via apiClient and returns the matching transport, or nil when DD is not active or discovery fa
internal/desktop/proxy.go:180
↓ 2 callersMethodPs
Ps executes the equivalent to a `compose ps`
pkg/api/api.go:105
↓ 2 callersFunctionPush
(ctx context.Context, resolver remotes.Resolver, ref reference.Named, descriptor spec.Descriptor)
internal/oci/resolver.go:130
↓ 2 callersMethodPush
Push executes the equivalent to a `compose push`
pkg/api/api.go:87
↓ 2 callersFunctionRead
Read reads the "PID file" at path, and returns the PID if it contains a valid PID of a running process, or 0 otherwise. It returns an error when faili
internal/pidfile/pidfile.go:37
↓ 2 callersMethodRead
Read is a thread safe version of bytes.Buffer::Read
pkg/utils/safebuffer.go:37
↓ 2 callersFunctionReplaceExtendsFile
ReplaceExtendsFile changes value for service.extends.file in input yaml stream, preserving formatting
pkg/compose/transform/replace.go:26
↓ 2 callersFunctionRequireServiceState
RequireServiceState ensures that the container is in the expected state (running or exited).
pkg/e2e/assert.go:30
↓ 2 callersMethodRestart
Restart restarts containers
pkg/api/api.go:95
↓ 2 callersMethodSpanStartOptions
()
internal/tracing/attributes.go:45
↓ 2 callersMethodStart
(ctx context.Context)
pkg/compose/watch.go:84
↓ 2 callersFunctionStartWithNewGroupID
(ctx context.Context, command icmd.Cmd, stdout *utils.SafeBuffer, stderr *utils.SafeBuffer)
pkg/e2e/cancel_test.go:87
↓ 2 callersMethodStatus
(container, msg string)
pkg/api/api.go:707
↓ 2 callersMethodString
String is a thread safe version of bytes.Buffer::String
pkg/utils/safebuffer.go:51
↓ 2 callersMethodSync
(ctx context.Context, service string, paths []*PathMapping)
internal/sync/shared.go:39
↓ 2 callersMethodTearDown
()
pkg/watch/temp.go:78
↓ 2 callersMethodViz
Viz generates a graphviz graph of the project services
pkg/api/api.go:137
↓ 2 callersMethodWaitForCmdResult
WaitForCmdResult try to execute a cmd until resulting output matches given predicate
pkg/e2e/framework.go:434
↓ 2 callersFunctionWithRootNodesAndDown
(nodes []string)
pkg/compose/dependencies.go:104
↓ 2 callersFunctionWrite
Write writes a "PID file" at the specified path. It returns an error if the file exists and contains a valid PID of a running process, or when failing
internal/pidfile/pidfile.go:55
↓ 2 callersMethodWrite
(p []byte)
pkg/compose/logs_test.go:57
↓ 2 callersMethodWrite
(p []byte)
cmd/prompt/prompt.go:54
↓ 2 callersFunctionaddBuildDependencies
(services []string, project *types.Project)
pkg/compose/build.go:283
↓ 2 callersMethodapply
(project *types.Project, services []string)
cmd/compose/up.go:67
↓ 2 callersMethodapplyPadding
(lines []lineData, terminalWidth int, timerLen int)
cmd/display/tty.go:387
↓ 2 callersFunctionapplyScaleOpts
(project *types.Project, opts []string)
cmd/compose/create.go:199
↓ 2 callersMethodbuildContainerMountOptions
(ctx context.Context, p types.Project, service types.ServiceConfig, inherit *container.Summary)
pkg/compose/create.go:992
↓ 2 callersMethodbuildContainerVolumes
( ctx context.Context, p types.Project, service types.ServiceConfig, inherit *container.Summary, )
pkg/compose/create.go:862
↓ 2 callersFunctioncacheDir
()
pkg/remote/cache.go:24
↓ 2 callersFunctioncheckIfPathAlreadyBindMounted
(watchPath string, volumes []types.ServiceVolumeConfig)
pkg/compose/watch.go:436
↓ 2 callersFunctioncheckServiceContainer
(t *testing.T, stdout, containerName, containerState string, count int)
pkg/e2e/scale_test.go:169
↓ 2 callersFunctionchecksForRemoteStack
checksForRemoteStack handles environment variable prompts for remote configurations
cmd/compose/options.go:105
↓ 2 callersMethodclearNavigationMenu
()
cmd/formatter/shortcut.go:193
↓ 2 callersMethodcloseWatcher
()
pkg/watch/notify_test.go:633
↓ 2 callersFunctioncollectEnvCheckFindings
collectEnvCheckFindings walks every compose file scheduled for publication (top-level files plus any local extends parents discovered along the way) a
pkg/compose/publish.go:473
↓ 2 callersMethodcollectObservedState
collectObservedState queries the Docker daemon for all resources belonging to the given project and returns a structured snapshot. The project model i
pkg/compose/observed_state.go:84
↓ 2 callersFunctioncollectTop
(containers []api.ContainerProcSummary)
cmd/compose/top.go:81
↓ 2 callersFunctioncombinedConfigFiles
(containers []container.Summary)
pkg/compose/ls.go:68
↓ 2 callersFunctioncombinedStatus
(statuses []string)
pkg/compose/ls.go:95
↓ 2 callersFunctioncommandName
commandName returns the path components for a given command, in reverse alphabetical order for consistent usage metrics. The root Compose command and
cmd/cmdtrace/cmd_span.go:130
↓ 2 callersFunctionconfirmRemoteIncludes
(dockerCli command.Cli, options buildOptions, assumeYes bool)
cmd/compose/options.go:257
↓ 2 callersMethodcontainersByService
containersByService flattens the observed containers into the shape resolveServiceReferences expects: project service name → raw Summaries.
pkg/compose/observed_state.go:248
↓ 2 callersMethodcontainersForServices
containersForServices returns all observed containers belonging to the given service names.
pkg/compose/reconcile.go:358
↓ 2 callersFunctioncontainersToStacks
(containers []container.Summary)
pkg/compose/ls.go:45
↓ 2 callersMethodcreateLayers
(ctx context.Context, project *types.Project, options api.PublishOptions)
pkg/compose/publish.go:164
↓ 2 callersFunctioncreateTestProject
()
pkg/compose/dependencies_test.go:33
↓ 2 callersMethodcreateVolume
(ctx context.Context, volume types.VolumeConfig)
pkg/compose/create.go:1688
↓ 2 callersFunctionddProxyFunc
ddProxyFunc returns a transport Proxy function that routes every request through the Docker Desktop proxy except loopback targets, which connect direc
internal/desktop/proxy.go:154
↓ 2 callersMethoddependenciesRecreateStrategy
()
cmd/compose/create.go:147
↓ 2 callersFunctiondisplayInterpolationVariables
(writer io.Writer, varsInfo []varInfo)
cmd/compose/options.go:225
↓ 2 callersFunctiondisplayLocationRemoteStack
(dockerCli command.Cli, project *types.Project, options buildOptions)
cmd/compose/options.go:250
↓ 2 callersMethoddoAttachContainer
(ctx context.Context, service, id, name string, listener api.ContainerEventListener)
pkg/compose/attach.go:72
↓ 2 callersFunctiondoTest
NOTE: these tests all share a single Compose file but are safe to run concurrently (though that's not recommended).
pkg/e2e/watch_test.go:135
↓ 2 callersFunctiondownDirectionTraversal
(visitorFn func(context.Context, string) error)
pkg/compose/dependencies.go:67
↓ 2 callersFunctionemitRunningEvents
emitRunningEvents emits "Running" progress events for containers that are already running and have no operations planned for them. This matches the pr
pkg/compose/observed_state.go:220
↓ 2 callersFunctionencodedAuth
(ref reference.Named, configFile authProvider)
pkg/compose/pull.go:280
↓ 2 callersMethodensureImagesExists
(ctx context.Context, project *types.Project, buildOpts *api.BuildOptions, quietPull bool)
pkg/compose/build.go:110
↓ 2 callersMethodensureModels
(ctx context.Context, project *types.Project, quietPull bool)
pkg/compose/model.go:39
↓ 2 callersMethodensureNetwork
(ctx context.Context, project *types.Project, name string, n *types.NetworkConfig)
pkg/compose/create.go:1319
↓ 2 callersFunctionenvResolver
envResolver returns resolver for environment variables suitable for the current platform. Expected to be used with `MappingWithEquals.Resolve`. Update
pkg/compose/envresolver.go:30
↓ 2 callersFunctionenvResolverWithCase
envResolverWithCase returns resolver for environment variables with the specified case-sensitive condition. Expected to be used with `MappingWithEqual
pkg/compose/envresolver.go:37
↓ 2 callersMethodfilterImagesByExistence
filterImagesByExistence returns the subset of images that exist in the engine store. NOTE: Any transient errors communicating with the API will resul
pkg/compose/image_pruner.go:194
↓ 2 callersFunctionfindPluginExecutable
(pluginExecutableName string)
pkg/e2e/framework.go:220
↓ 2 callersFunctiongetCallingFunction
()
pkg/dryrun/dryrunclient.go:84
↓ 2 callersFunctiongetDefaultFilters
(projectName string, oneOff oneOff, selectedServices ...string)
pkg/compose/containers.go:74
↓ 2 callersFunctiongetDependentServiceFromMode
(mode string)
pkg/compose/create.go:852
↓ 2 callersFunctiongetFlags
(fs *flag.FlagSet)
cmd/cmdtrace/cmd_span.go:142
↓ 2 callersMethodgetLinks
getLinks mimics V1 compose/service.py::Service::_get_links()
pkg/compose/convergence.go:416
↓ 2 callersMethodgetLocalImagesDigests
(ctx context.Context, project *types.Project)
pkg/compose/build.go:192
↓ 2 callersFunctiongetMapping
(root *yaml.Node, key string)
pkg/compose/transform/replace.go:109
↓ 2 callersMethodgetProxyConfig
getProxyConfig returns the proxy config - either custom override or environment-based
pkg/compose/compose.go:251
↓ 2 callersFunctiongetScale
convergence manages service's container lifecycle. Based on initially observed state, it reconciles the existing container with desired state, which m
pkg/compose/convergence.go:52
↓ 2 callersFunctiongetWatchRules
(config *types.DevelopConfig, service types.ServiceConfig)
pkg/compose/watch.go:295
↓ 2 callersMethodgitCommandEnv
()
pkg/remote/git.go:243
↓ 2 callersFunctiongreatestExistingAncestor
(path string)
pkg/watch/paths.go:25
↓ 2 callersFunctionhasFlag
(flags map[string]string, names ...string)
cmd/compose/hooks.go:147
↓ 2 callersFunctionhintLink
hintLink returns a clickable OSC 8 terminal hyperlink when ANSI is allowed, or the plain URL when ANSI output is suppressed via NO_COLOR or COMPOSE_AN
cmd/compose/hooks.go:45
↓ 2 callersFunctionincrement
(scale *int)
pkg/compose/compose.go:427
↓ 2 callersMethodinjectConfigs
(ctx context.Context, project *types.Project, service types.ServiceConfig, id string)
pkg/compose/secrets.go:42
↓ 2 callersMethodinjectFileReferences
(ctx context.Context, project *types.Project, service types.ServiceConfig, id string, mountType mountType)
pkg/compose/secrets.go:46
↓ 2 callersMethodinjectSecrets
(ctx context.Context, project *types.Project, service types.ServiceConfig, id string)
pkg/compose/secrets.go:38
↓ 2 callersFunctioninotifyNodes
()
pkg/watch/watcher_naive_test.go:122
↓ 2 callersFunctioninspectWithPull
(ctx context.Context, dockerCli command.Cli, imageName string)
pkg/bridge/convert.go:225
↓ 2 callersFunctionisOrphaned
isOrphaned is a predicate to select containers without a matching service definition in compose project
pkg/compose/containers.go:146
↓ 2 callersFunctionisRemoteConfig
isRemoteConfig checks if the main compose file is from a remote source (OCI or Git)
cmd/compose/options.go:91
↓ 2 callersMethodisServiceHealthy
(ctx context.Context, containers Containers, fallbackRunning bool)
pkg/compose/convergence.go:470
← previousnext →301–400 of 2,102, ranked by callers