MCPcopy Create free account
hub / github.com/bufbuild/buf / controller

Struct controller

private/buf/bufctl/controller.go:204–227  ·  view source on GitHub ↗

*** PRIVATE *** In theory, we want to keep this separate from our global variables in bufcli. Originally, this was in a different package, and we want to keep the option to split it out again. The separation of concerns here is that the controller doesnt itself deal in the global variables.

Source from the content-addressed store, hash-verified

202// it out again. The separation of concerns here is that the controller doesnt itself
203// deal in the global variables.
204type controller struct {
205 logger *slog.Logger
206 container app.EnvStdioContainer
207 moduleDataProvider bufmodule.ModuleDataProvider
208 graphProvider bufmodule.GraphProvider
209 commitProvider bufmodule.CommitProvider
210 pluginKeyProvider bufplugin.PluginKeyProvider
211 pluginDataProvider bufplugin.PluginDataProvider
212 policyKeyProvider bufpolicy.PolicyKeyProvider
213 policyDataProvider bufpolicy.PolicyDataProvider
214 wktStore bufwktstore.Store
215
216 disableSymlinks bool
217 fileAnnotationErrorFormat string
218 fileAnnotationsToStdout bool
219 copyToInMemory bool
220
221 storageosProvider storageos.Provider
222 buffetchRefParser buffetch.RefParser
223 buffetchReader buffetch.Reader
224 buffetchWriter buffetch.Writer
225 workspaceProvider bufworkspace.WorkspaceProvider
226 workspaceDepManagerProvider bufworkspace.WorkspaceDepManagerProvider
227}
228
229func newController(
230 logger *slog.Logger,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected