MCPcopy Create free account
hub / github.com/pydio/cells / getConfig

Method getConfig

data/source/objects/grpc/handler.go:88–103  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

86}
87
88func (o *ObjectHandler) getConfig(ctx context.Context) (*object.MinioConfig, error) {
89 if o.PresetConfig != nil {
90 return o.PresetConfig, nil
91 }
92 obj, er := o.Resolve(ctx)
93 if er != nil {
94 var ds string
95 if propagator.Get(ctx, source.DataSourceContextKey, &ds) {
96 return nil, errors.WithMessage(errors.StatusInternalServerError, "cannot find config for "+ds)
97 } else {
98 return nil, errors.WithMessage(errors.StatusInternalServerError, "cannot find context key for datasource")
99 }
100 } else {
101 return obj.MinioConfig, nil
102 }
103}
104
105// StartMinioServer handler
106func (o *ObjectHandler) StartMinioServer(ctx context.Context, conf *object.MinioConfig, minioServiceName string) error {

Callers 9

GetMinioConfigMethod · 0.95
StorageStatsMethod · 0.95
loadServiceDataMethod · 0.80
toggleEnabledMethod · 0.80
loadServiceConfigsMethod · 0.80
loadPluginConfigsMethod · 0.80
savePluginConfigsMethod · 0.80
moduleIsAvailableMethod · 0.80

Calls 2

GetFunction · 0.92
ResolveMethod · 0.65

Tested by

no test coverage detected