Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CreateMultipartMetadata (0.23 sec)

  1. internal/crypto/metadata.go

    		return nil, true
    	}
    	if _, ok := metadata[MetaContext]; ok {
    		return nil, true
    	}
    	return nil, false
    }
    
    // CreateMultipartMetadata adds the multipart flag entry to metadata
    // and returns modified metadata. It allocates a new metadata map if
    // metadata is nil.
    func CreateMultipartMetadata(metadata map[string]string) map[string]string {
    	if metadata == nil {
    		return map[string]string{MetaMultipart: ""}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 17:40:33 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. internal/crypto/metadata_test.go

    		},
    		SealedKey: SealedKey{Algorithm: InsecureSealAlgorithm, Key: [64]byte{1}, IV: [32]byte{1}},
    	}, // 7
    }
    
    func TestCreateMultipartMetadata(t *testing.T) {
    	metadata := CreateMultipartMetadata(nil)
    	if v, ok := metadata[MetaMultipart]; !ok || v != "" {
    		t.Errorf("Metadata is missing the correct value for '%s': got '%s' - want '%s'", MetaMultipart, v, "")
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Feb 02 00:13:57 UTC 2024
    - 18.7K bytes
    - Viewed (0)
Back to top