Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

feat: Implement go-storage.Storager #13

Merged
merged 32 commits into from
Aug 4, 2021
Merged

feat: Implement go-storage.Storager #13

merged 32 commits into from
Aug 4, 2021

Conversation

npofsi
Copy link
Contributor

@npofsi npofsi commented Jul 30, 2021

No description provided.

@Xuanwo Xuanwo changed the title update(storage.go): all functions implemented feat: Implement go-storage.Storager Jul 30, 2021
utils.go Outdated Show resolved Hide resolved
This reverts commit e8d82eb.
@Xuanwo
Copy link
Contributor

Xuanwo commented Jul 30, 2021

Please also remove .vscode from PR.

We can reach it via:

git rm --cached .vscode/

utils.go Outdated Show resolved Hide resolved
utils.go Outdated Show resolved Hide resolved
tests/README.md Show resolved Hide resolved
utils.go Outdated Show resolved Hide resolved
utils.go Outdated Show resolved Hide resolved
utils.go Outdated Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
readdir.go Outdated Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
storage.go Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
storage.go Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
utils.go Outdated Show resolved Hide resolved
require (
github.com/beyondstorage/go-integration-test/v4 v4.2.0
github.com/beyondstorage/go-storage/v4 v4.4.0
github.com/jlaffaye/ftp v0.0.0-20210307004419-5d4190119067
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's better to depend on release version instead of git version, tracked at jlaffaye/ftp#175

@@ -9,7 +10,7 @@ optional = ["object_mode"]
optional = ["object_mode"]

[namespace.storage.op.list]
optional = ["list_mode"]
optional = ["list_mode","continuation_token"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

continuation_token support is optional, we can implement it in later PRs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe ftp is not need token, just account?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I get it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be used to list partially.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be used to list partially.

continuation_token is used to resume a List operation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since ftp server has not its native token, now, the token is the records of index in iterator.

storage.go Outdated Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
tests/README.md Outdated Show resolved Hide resolved
utils.go Outdated Show resolved Hide resolved
tests/utils_test.go Outdated Show resolved Hide resolved
utils.go Outdated Show resolved Hide resolved
@@ -9,7 +10,7 @@ optional = ["object_mode"]
optional = ["object_mode"]

[namespace.storage.op.list]
optional = ["list_mode"]
optional = ["list_mode","continuation_token"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be used to list partially.

continuation_token is used to resume a List operation.

storage.go Outdated Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
utils.go Outdated Show resolved Hide resolved
utils.go Outdated Show resolved Hide resolved
utils.go Outdated Show resolved Hide resolved
utils.go Outdated Show resolved Hide resolved
utils.go Outdated Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
utils.go Outdated Show resolved Hide resolved
utils.go Outdated Show resolved Hide resolved
- Remove unused code
- Change HTTP to TCP
- Change import format
@Prnyself
Copy link
Member

Prnyself commented Aug 4, 2021

It now looks good to me, ping @Xuanwo for another review.

@Xuanwo Xuanwo merged commit 012018d into beyondstorage:master Aug 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants