(ctx context.Context, path string)
| 469 | } |
| 470 | |
| 471 | func (s *ObjectTokenStore) deleteAuthObject(ctx context.Context, path string) error { |
| 472 | if path == "" { |
| 473 | return nil |
| 474 | } |
| 475 | rel, err := filepath.Rel(s.authDir, path) |
| 476 | if err != nil { |
| 477 | return fmt.Errorf("object store: resolve auth relative path: %w", err) |
| 478 | } |
| 479 | key := objectStoreAuthPrefix + "/" + filepath.ToSlash(rel) |
| 480 | return s.deleteObject(ctx, key) |
| 481 | } |
| 482 | |
| 483 | func (s *ObjectTokenStore) putObject(ctx context.Context, key string, data []byte, contentType string) error { |
| 484 | if len(data) == 0 { |
no test coverage detected