MCPcopy Index your code
hub / github.com/coder/coder / WithFileSystem

Function WithFileSystem

agent/agentcontainers/api.go:280–284  ·  view source on GitHub ↗

WithFileSystem sets the file system used for discovering projects.

(fileSystem afero.Fs)

Source from the content-addressed store, hash-verified

278
279// WithFileSystem sets the file system used for discovering projects.
280func WithFileSystem(fileSystem afero.Fs) Option {
281 return func(api *API) {
282 api.fs = fileSystem
283 }
284}
285
286// WithProjectDiscovery sets if the API should attempt to discover
287// projects on the filesystem.

Callers 1

Calls

no outgoing calls

Tested by 1