MCPcopy Index your code
hub / github.com/spacecloud-io/space-cloud / SetFileStoreConfig

Method SetFileStoreConfig

gateway/modules/modules.go:109–115  ·  view source on GitHub ↗

SetFileStoreConfig sets the config of auth and filestore modules

(ctx context.Context, projectID string, fileStore *config.FileStoreConfig)

Source from the content-addressed store, hash-verified

107
108// SetFileStoreConfig sets the config of auth and filestore modules
109func (m *Modules) SetFileStoreConfig(ctx context.Context, projectID string, fileStore *config.FileStoreConfig) error {
110 module, err := m.loadModule(projectID)
111 if err != nil {
112 return err
113 }
114 return module.SetFileStoreConfig(ctx, projectID, fileStore)
115}
116
117// SetFileStoreSecurityRuleConfig sets the config of auth and filestore modules
118func (m *Modules) SetFileStoreSecurityRuleConfig(ctx context.Context, projectID string, fileStoreRules config.FileStoreRules) error {

Callers

nothing calls this directly

Calls 2

loadModuleMethod · 0.95
SetFileStoreConfigMethod · 0.65

Tested by

no test coverage detected