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

[improve][doc] Add sample code to use Copper Argos in Golang #457

Merged
merged 2 commits into from
Mar 14, 2023

Conversation

massakam
Copy link

@massakam massakam commented Mar 6, 2023

Documentation

This is a continuation of #410. I've also added some parameters to the Athenz authentication provider for Golang to support Copper Argos (cf. apache/pulsar-client-go#960), so I'll add sample code for Golang. Also, the existing sample code was wrong, so I fixed it.

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@massakam massakam added the doc Improvements or additions to documentation label Mar 6, 2023
@massakam massakam self-assigned this Mar 6, 2023
@Anonymitaet
Copy link
Member

@zymap Could you please review this PR? Thank you!

@momo-jun momo-jun assigned nodece and zymap and unassigned nodece and zymap Mar 7, 2023
@momo-jun momo-jun requested review from nodece and zymap March 7, 2023 03:03
@Anonymitaet
Copy link
Member

ping @nodece

"keyId": "v1",
}

client, err := pulsar.NewClient(ClientOptions{
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
client, err := pulsar.NewClient(ClientOptions{
client, err := pulsar.NewClient(pulsar.ClientOptions{

URL: "pulsar://my-broker.com:6650",
Authentication: basicAuth,
})
authParams := map[string]string{
Copy link
Member

Choose a reason for hiding this comment

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

Could you use the old way to create the provider?

"caCert": "file:///path/to/cacert.pem",
}

client, err := pulsar.NewClient(ClientOptions{
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
client, err := pulsar.NewClient(ClientOptions{
client, err := pulsar.NewClient(pulsar.ClientOptions{

<TabItem value="Go">

```go
authParams := map[string]string{
Copy link
Member

Choose a reason for hiding this comment

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

Same above.

@massakam
Copy link
Author

@nodece Addressed your comments. PTAL.

Copy link
Member

@nodece nodece left a comment

Choose a reason for hiding this comment

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

LGTM

@Anonymitaet Anonymitaet merged commit 6ea0c26 into apache:main Mar 14, 2023
@massakam massakam deleted the copper-argos-go branch March 14, 2023 06:40
@Anonymitaet Anonymitaet added this to the 3.0.0 milestone Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants