diff --git a/pkg/storage/donut/data/data_v1/data.go b/pkg/storage/donut/data/data_v1/data.go index 0cc9b7ee0..41504e873 100644 --- a/pkg/storage/donut/data/data_v1/data.go +++ b/pkg/storage/donut/data/data_v1/data.go @@ -5,17 +5,22 @@ import "errors" type DataHeader struct { Key string Part int - ContentType string - Length uint64 - Md5sum []byte + Metadata map[string]string EncoderParams EncoderParams } +type EncoderTechnique int + +const ( + VANDERMONDE EncoderTechnique = iota + CAUCHY +) + type EncoderParams struct { Length int K int M int - Technique int + Technique EncoderTechnique } func Write() error {