diff --git a/pkg/storage/donut/v1/.gitignore b/pkg/storage/donut/frame/frame_v1/.gitignore similarity index 100% rename from pkg/storage/donut/v1/.gitignore rename to pkg/storage/donut/frame/frame_v1/.gitignore diff --git a/pkg/storage/donut/v1/donut.go b/pkg/storage/donut/frame/frame_v1/donut.go similarity index 99% rename from pkg/storage/donut/v1/donut.go rename to pkg/storage/donut/frame/frame_v1/donut.go index f1c21bdf1..fde680f33 100644 --- a/pkg/storage/donut/v1/donut.go +++ b/pkg/storage/donut/frame/frame_v1/donut.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package v1 +package frame_v1 import ( "bytes" diff --git a/pkg/storage/donut/v1/donut_gen_v1/.gitignore b/pkg/storage/donut/frame/frame_v1/donut_gen_v1/.gitignore similarity index 100% rename from pkg/storage/donut/v1/donut_gen_v1/.gitignore rename to pkg/storage/donut/frame/frame_v1/donut_gen_v1/.gitignore diff --git a/pkg/storage/donut/v1/donut_gen_v1/donut_gen.go b/pkg/storage/donut/frame/frame_v1/donut_gen_v1/donut_gen.go similarity index 92% rename from pkg/storage/donut/v1/donut_gen_v1/donut_gen.go rename to pkg/storage/donut/frame/frame_v1/donut_gen_v1/donut_gen.go index 301542df3..659ac9e08 100644 --- a/pkg/storage/donut/v1/donut_gen_v1/donut_gen.go +++ b/pkg/storage/donut/frame/frame_v1/donut_gen_v1/donut_gen.go @@ -1,5 +1,3 @@ -// +build ignore - package main import ( @@ -8,7 +6,7 @@ import ( "os" "reflect" - "github.com/minio-io/minio/pkg/storage/donut/v1" + "github.com/minio-io/minio/pkg/storage/donut/frame/frame_v1" ) func main() { @@ -22,7 +20,7 @@ func main() { dataBuffer := bytes.NewBuffer(data) - err = v1.Write(file, dataBuffer, uint64(dataBuffer.Len())) + err = frame_v1.WriteFrame(file, dataBuffer, uint64(dataBuffer.Len())) if err != nil { panic(err) } diff --git a/pkg/storage/donut/v1/donut_test.go b/pkg/storage/donut/frame/frame_v1/donut_test.go similarity index 99% rename from pkg/storage/donut/v1/donut_test.go rename to pkg/storage/donut/frame/frame_v1/donut_test.go index 9cc41f636..a6fe79245 100644 --- a/pkg/storage/donut/v1/donut_test.go +++ b/pkg/storage/donut/frame/frame_v1/donut_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package v1 +package frame_v1 import ( "bytes"