Skip to content

Commit

Permalink
remove inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
nopcoder committed Sep 5, 2023
1 parent 76a4e85 commit db2f6c4
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 1,704 deletions.
1 change: 0 additions & 1 deletion pkg/block/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ type Properties struct {
}

type Adapter interface {
InventoryGenerator
Put(ctx context.Context, obj ObjectPointer, sizeBytes int64, reader io.Reader, opts PutOpts) error
Get(ctx context.Context, obj ObjectPointer, expectedSize int64) (io.ReadCloser, error)
GetWalker(uri *url.URL) (Walker, error)
Expand Down
4 changes: 0 additions & 4 deletions pkg/block/azure/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,6 @@ func resolveBlobURLInfo(obj block.ObjectPointer) (BlobURLInfo, error) {
return ResolveBlobURLInfoFromURL(parsedKey)
}

func (a *Adapter) GenerateInventory(_ context.Context, _ logging.Logger, _ string, _ bool, _ []string) (block.Inventory, error) {
return nil, fmt.Errorf("inventory %w", ErrNotImplemented)
}

func (a *Adapter) translatePutOpts(ctx context.Context, opts block.PutOpts) azblob.UploadStreamOptions {
res := azblob.UploadStreamOptions{}
if opts.StorageClass == nil {
Expand Down
4 changes: 0 additions & 4 deletions pkg/block/gs/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,6 @@ func (a *Adapter) composeMultipartUploadParts(ctx context.Context, bucketName st
return targetAttrs, nil
}

func (a *Adapter) GenerateInventory(_ context.Context, _ logging.Logger, _ string, _ bool, _ []string) (block.Inventory, error) {
return nil, fmt.Errorf("inventory %w", ErrNotImplemented)
}

func (a *Adapter) Close() error {
return a.client.Close()
}
Expand Down
36 changes: 0 additions & 36 deletions pkg/block/inventory.go

This file was deleted.

5 changes: 0 additions & 5 deletions pkg/block/local/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"github.com/google/uuid"
"github.com/treeverse/lakefs/pkg/block"
"github.com/treeverse/lakefs/pkg/block/params"
"github.com/treeverse/lakefs/pkg/logging"
"golang.org/x/exp/slices"
)

Expand Down Expand Up @@ -520,10 +519,6 @@ func (l *Adapter) getPartFiles(uploadID string, obj block.ObjectPointer) ([]stri
return names, nil
}

func (l *Adapter) GenerateInventory(_ context.Context, _ logging.Logger, _ string, _ bool, _ []string) (block.Inventory, error) {
return nil, ErrInventoryNotSupported
}

func (l *Adapter) BlockstoreType() string {
return block.BlockstoreTypeLocal
}
Expand Down
5 changes: 0 additions & 5 deletions pkg/block/mem/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (

"github.com/google/uuid"
"github.com/treeverse/lakefs/pkg/block"
"github.com/treeverse/lakefs/pkg/logging"
)

var (
Expand Down Expand Up @@ -338,10 +337,6 @@ func (a *Adapter) CompleteMultiPartUpload(_ context.Context, obj block.ObjectPoi
}, nil
}

func (a *Adapter) GenerateInventory(_ context.Context, _ logging.Logger, _ string, _ bool, _ []string) (block.Inventory, error) {
return nil, ErrInventoryNotImplemented
}

func (a *Adapter) BlockstoreType() string {
return block.BlockstoreTypeMem
}
Expand Down
165 changes: 0 additions & 165 deletions pkg/block/s3/inventory.go

This file was deleted.

Loading

0 comments on commit db2f6c4

Please sign in to comment.