(ctx context.Context)
| 86 | } |
| 87 | |
| 88 | func (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 |
| 106 | func (o *ObjectHandler) StartMinioServer(ctx context.Context, conf *object.MinioConfig, minioServiceName string) error { |
no test coverage detected