From 8d122454dee3e77988ac7aaf3c8fcc45d9111771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Rold=C3=A1n=20Betancort?= Date: Mon, 27 Nov 2023 14:10:19 +0000 Subject: [PATCH] exposes backupformat package --- internal/cmd/backup.go | 2 +- internal/cmd/restore.go | 2 +- {internal => pkg}/backupformat/backupformat_test.go | 0 {internal => pkg}/backupformat/decoder.go | 0 {internal => pkg}/backupformat/encoder.go | 0 {internal => pkg}/backupformat/schema.go | 0 6 files changed, 2 insertions(+), 2 deletions(-) rename {internal => pkg}/backupformat/backupformat_test.go (100%) rename {internal => pkg}/backupformat/decoder.go (100%) rename {internal => pkg}/backupformat/encoder.go (100%) rename {internal => pkg}/backupformat/schema.go (100%) diff --git a/internal/cmd/backup.go b/internal/cmd/backup.go index d4d07965..9ff6a30c 100644 --- a/internal/cmd/backup.go +++ b/internal/cmd/backup.go @@ -13,8 +13,8 @@ import ( "github.com/schollz/progressbar/v3" "github.com/spf13/cobra" - "github.com/authzed/zed/internal/backupformat" "github.com/authzed/zed/internal/client" + "github.com/authzed/zed/pkg/backupformat" ) func registerBackupCmd(rootCmd *cobra.Command) { diff --git a/internal/cmd/restore.go b/internal/cmd/restore.go index d6082045..7a270d0f 100644 --- a/internal/cmd/restore.go +++ b/internal/cmd/restore.go @@ -13,8 +13,8 @@ import ( "github.com/schollz/progressbar/v3" "github.com/spf13/cobra" - "github.com/authzed/zed/internal/backupformat" "github.com/authzed/zed/internal/client" + "github.com/authzed/zed/pkg/backupformat" ) func registerRestoreCmd(rootCmd *cobra.Command) { diff --git a/internal/backupformat/backupformat_test.go b/pkg/backupformat/backupformat_test.go similarity index 100% rename from internal/backupformat/backupformat_test.go rename to pkg/backupformat/backupformat_test.go diff --git a/internal/backupformat/decoder.go b/pkg/backupformat/decoder.go similarity index 100% rename from internal/backupformat/decoder.go rename to pkg/backupformat/decoder.go diff --git a/internal/backupformat/encoder.go b/pkg/backupformat/encoder.go similarity index 100% rename from internal/backupformat/encoder.go rename to pkg/backupformat/encoder.go diff --git a/internal/backupformat/schema.go b/pkg/backupformat/schema.go similarity index 100% rename from internal/backupformat/schema.go rename to pkg/backupformat/schema.go