Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement vineyardctl put command #1553

Merged
merged 7 commits into from
Sep 8, 2023
Merged

Conversation

zhuyi1159
Copy link
Contributor

What do these changes do?

as titled

Related issue number

Fixes #1469

@netlify
Copy link

netlify bot commented Sep 5, 2023

Deploy Preview for v6d ready!

Name Link
🔨 Latest commit f1df854
🔍 Latest deploy log https://app.netlify.com/sites/v6d/deploys/64f940e24cd60100085e1067
😎 Deploy Preview https://deploy-preview-1553--v6d.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines 2165 to 2167
er (default "vineyard-system")
```

Copy link
Member

Choose a reason for hiding this comment

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

Please check the generated doc manually.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@zhuyi1159 zhuyi1159 marked this pull request as ready for review September 6, 2023 01:35
Signed-off-by: zhuyi1159 <1159751291@qq.com>
Signed-off-by: zhuyi1159 <1159751291@qq.com>
Signed-off-by: zhuyi1159 <1159751291@qq.com>
Signed-off-by: zhuyi1159 <1159751291@qq.com>
Signed-off-by: zhuyi1159 <1159751291@qq.com>
Signed-off-by: zhuyi1159 <1159751291@qq.com>
value := []byte(flags.Value)
object_id, err := client.PutBlob(value, uint64(len(flags.Value)))
if err != nil {
log.Printf("failed to put value: %s", err)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
log.Printf("failed to put value: %s", err)
log.Errorf(err, fmt.Sprintf("failed to put value: %v", value))

Comment on lines 65 to 66
objectId := fmt.Sprintf("o%016x", object_id)
fmt.Println("object id : ", objectId)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
objectId := fmt.Sprintf("o%016x", object_id)
fmt.Println("object id : ", objectId)
log.Output("object id : ", types.ObjectIDToString(object_id))

Signed-off-by: zhuyi1159 <1159751291@qq.com>
Copy link
Member

@dashanji dashanji left a comment

Choose a reason for hiding this comment

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

LGTM.

@dashanji dashanji merged commit d7036ce into v6d-io:main Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement the vineyardctl put command with the golang sdk
3 participants