Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for RemoveInternalEntries (0.1 sec)

  1. internal/crypto/metadata.go

    	delete(metadata, xhttp.AmzServerSideEncryptionCopyCustomerKey)
    	delete(metadata, xhttp.AmzServerSideEncryptionCopyCustomerKeyMD5)
    }
    
    // RemoveInternalEntries removes all crypto-specific internal
    // metadata entries from the metadata map.
    func RemoveInternalEntries(metadata map[string]string) {
    	delete(metadata, MetaMultipart)
    	delete(metadata, MetaAlgorithm)
    	delete(metadata, MetaIV)
    	delete(metadata, MetaSealedKeySSEC)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 17:40:33 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. cmd/event-notification.go

    		return
    	}
    
    	args.Object.Size, _ = args.Object.GetActualSize()
    
    	// remove sensitive encryption entries in metadata.
    	crypto.RemoveSensitiveEntries(args.Object.UserDefined)
    	crypto.RemoveInternalEntries(args.Object.UserDefined)
    
    	if globalHTTPListen.NumSubscribers(pubsub.MaskFromMaskable(args.EventName)) > 0 {
    		globalHTTPListen.Publish(args.ToEvent(false))
    	}
    
    	globalEventNotifier.Send(args)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. internal/crypto/metadata_test.go

    			return false
    		}
    		for k, v := range x {
    			if u, ok := y[k]; !ok || v != u {
    				return false
    			}
    		}
    		return true
    	}
    
    	for i, test := range removeInternalEntriesTests {
    		RemoveInternalEntries(test.Metadata)
    		if !isEqual(test.Metadata, test.Expected) {
    			t.Errorf("Test %d: got %v - want %v", i, test.Metadata, test.Expected)
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  4. cmd/object-handlers.go

    			}
    			reader = etag.Wrap(encReader, srcInfo.Reader)
    		}
    
    		if isSourceEncrypted {
    			// Remove all source encrypted related metadata to
    			// avoid copying them in target object.
    			crypto.RemoveInternalEntries(srcInfo.UserDefined)
    		}
    
    		// do not try to verify encrypted content
    		srcInfo.Reader, err = hash.NewReader(ctx, reader, targetSize, "", "", actualSize)
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top