You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.0 KiB

5 years ago
  1. // +build 386 arm
  2. package tikv
  3. import (
  4. "context"
  5. "fmt"
  6. "github.com/chrislusf/seaweedfs/weed/filer2"
  7. weed_util "github.com/chrislusf/seaweedfs/weed/util"
  8. )
  9. func init() {
  10. filer2.Stores = append(filer2.Stores, &TikvStore{})
  11. }
  12. type TikvStore struct {
  13. }
  14. func (store *TikvStore) GetName() string {
  15. return "tikv"
  16. }
  17. func (store *TikvStore) Initialize(configuration weed_util.Configuration) (err error) {
  18. return fmt.Errorf("not implemented for 32 bit computers")
  19. }
  20. func (store *TikvStore) initialize(pdAddr string) (err error) {
  21. return fmt.Errorf("not implemented for 32 bit computers")
  22. }
  23. func (store *TikvStore) BeginTransaction(ctx context.Context) (context.Context, error) {
  24. return nil, fmt.Errorf("not implemented for 32 bit computers")
  25. }
  26. func (store *TikvStore) CommitTransaction(ctx context.Context) error {
  27. return fmt.Errorf("not implemented for 32 bit computers")
  28. }
  29. func (store *TikvStore) RollbackTransaction(ctx context.Context) error {
  30. return fmt.Errorf("not implemented for 32 bit computers")
  31. }
  32. func (store *TikvStore) InsertEntry(ctx context.Context, entry *filer2.Entry) (err error) {
  33. return fmt.Errorf("not implemented for 32 bit computers")
  34. }
  35. func (store *TikvStore) UpdateEntry(ctx context.Context, entry *filer2.Entry) (err error) {
  36. return fmt.Errorf("not implemented for 32 bit computers")
  37. }
  38. func (store *TikvStore) FindEntry(ctx context.Context, fullpath filer2.FullPath) (entry *filer2.Entry, err error) {
  39. return nil, fmt.Errorf("not implemented for 32 bit computers")
  40. }
  41. func (store *TikvStore) DeleteEntry(ctx context.Context, fullpath filer2.FullPath) (err error) {
  42. return fmt.Errorf("not implemented for 32 bit computers")
  43. }
  44. func (store *TikvStore) DeleteFolderChildren(ctx context.Context, fullpath filer2.FullPath) (err error) {
  45. return fmt.Errorf("not implemented for 32 bit computers")
  46. }
  47. func (store *TikvStore) ListDirectoryEntries(ctx context.Context, fullpath filer2.FullPath, startFileName string, inclusive bool,
  48. limit int) (entries []*filer2.Entry, err error) {
  49. return nil, fmt.Errorf("not implemented for 32 bit computers")
  50. }