(ctx context.Context, node *tree.Node, reader io.Reader, requestData *models.PutRequestData)
| 284 | } |
| 285 | |
| 286 | func (s *CacheHandler) PutObject(ctx context.Context, node *tree.Node, reader io.Reader, requestData *models.PutRequestData) (models.ObjectInfo, error) { |
| 287 | w, e := s.Next.PutObject(ctx, node, reader, requestData) |
| 288 | if nodes.IsFlatStorage(ctx, "in") { |
| 289 | return w, e |
| 290 | } |
| 291 | if e == nil { |
| 292 | newNode := node.Clone() |
| 293 | newNode.Size = w.Size |
| 294 | s.cacheAdd(ctx, newNode) |
| 295 | } |
| 296 | return w, e |
| 297 | } |
| 298 | |
| 299 | func (s *CacheHandler) MultipartComplete(ctx context.Context, target *tree.Node, uploadID string, uploadedParts []models.MultipartObjectPart) (models.ObjectInfo, error) { |
| 300 | log.Logger(ctx).Info("[SynchronousCache] MultipartComplete", target.Zap()) |
nothing calls this directly
no test coverage detected