Skip to content

Commit

Permalink
Removing writeMetadata (reusing write() instead)
Browse files Browse the repository at this point in the history
  • Loading branch information
jt-dd committed Sep 6, 2024
1 parent 312393b commit 941a075
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions pkg/dump/writer/file_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ func (f *FileWriter) WorkerNumber() int {
return FileWriterWorkerNumber
}

func (f *FileWriter) WriteMetadata(ctx context.Context) error {
return nil
}

// Write function writes the Kubernetes object to a buffer
// All buffer are stored in a map which is flushed at the end of every type processed
func (f *FileWriter) Write(ctx context.Context, k8sObj []byte, pathObj string) error {
Expand Down
4 changes: 0 additions & 4 deletions pkg/dump/writer/tar_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ func (f *TarWriter) WorkerNumber() int {
return TarWorkerNumber
}

func (f *TarWriter) WriteMetadata(ctx context.Context) error {
return nil
}

// Write function writes the Kubernetes object to a buffer
// All buffer are stored in a map which is flushed at the end of every type processed
func (t *TarWriter) Write(ctx context.Context, k8sObj []byte, filePath string) error {
Expand Down
1 change: 0 additions & 1 deletion pkg/dump/writer/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const (
//go:generate mockery --name DumperWriter --output mockwriter --case underscore --filename writer.go --with-expecter
type DumperWriter interface {
Write(context.Context, []byte, string) error
WriteMetadata(context.Context) error
Flush(context.Context) error
Close(context.Context) error

Expand Down

0 comments on commit 941a075

Please sign in to comment.