Eric, Il Lun 27 Mar 2023, 07:44 Shen Eric <ericshenyu...@outlook.com> ha scritto:
> Hi Community, > > We want to announce and introduce the [Pulsar Admin Go Library]( > https://github.com/streamnative/pulsar-admin-go) which has been open > sourced and cut the first release. > > The original Pulsar Admin Go Library is from [pulsarctl]( > https://github.com/streamnative/pulsarctl)'s internal pkg which is not > convenient for Pulsar Golang developers to use and manage. So, we decoupled > the Pulsar Admin related API from pulsarctl and created the > [pulsar-admin-go](https://github.com/streamnative/pulsar-admin-go) > library based on it, which also provides a clearer perspective and > maintainability from an architectural perspective. > > In the future plan of this library: > - Iterate the library and upgrade the related admin API based on the > Pulsar progress. > - More testing and dogfood from StreamNative’s golang projects: > [pulsarctl](https://github.com/streamnative/pulsarctl), > [terraform-provider-pulsar]( > https://github.com/streamnative/terraform-provider-pulsar), > [pulsar-resources-operator]( > https://github.com/streamnative/pulsar-resources-operator). > - When the library is stable, will donate it to Apache Foundation. > Thanks for sharing the progress. I think that it is better to move the API to the Apache repository and then we can improve it all together as a community. It is fine if it is not 100% perfect yet, don't worry about that. Cheers Enrico > > -- > > Best regards, > > Eric Shen > > On 2023/03/17 09:09:38 Max Xu wrote: > > Thanks Yu and Eric for your follow-up. > > > > Yes, we're working on that. I believe we will soon see pulsar-admin-go :) > > > > > > Best, > > Max Xu > > > > > > On Wed, Mar 15, 2023 at 2:36 PM Yu <li...@apache.org> wrote: > > > > > Hi Eric, > > > > > > Thanks for sharing the updates! > > > > > > I discussed this project with Max previously. We would like to > contribute > > > docs for it, and I've already added "Go admin API (coming soon)" to > the new > > > Pulsar API docs already [1], which brings many benefits, such as: > > > > > > - Build excitement before launch. > > > - Generate a targeted list of early adopters interested in this > brand-new > > > tool. > > > - Improve SEO by adding relevant keywords. > > > > > > [1] > https://github.com/apache/pulsar-site/pull/462#discussion_r1130770643 > > > > > > Yu > > > > > > > > > On Wed, Mar 15, 2023 at 11:56 AM Shen Eric <er...@outlook.com> > > > wrote: > > > > > > > Hi Zhangjian, > > > > > > > > We can share some progress on our side: > > > > > > > > we have completed: > > > > > > > > * Extracted the pulsar-admin-go library from the pulsarctl and moved > > > > it to a separate repo under StreamNative (now it is private) > > > > * Updated the project layout and rename some pkg names like the cli > > > pkg > > > > > > > > what we will do next: > > > > > > > > * Add some pulsar-admin-go library documentation > > > > * Setup some CI/CD infra configurations for the repo > > > > * Then we will release the 0.1.0 and open source this repo > > > > > > > > The release of the 0.1.0 and repo open-source we wanna make it in > March > > > > and will announce this to the community. > > > > > > > > The timeline to donate this project to Apache is undecided now but we > > > will > > > > listen to the feedback from the community and donate it when most of > us > > > > think it's qualified and stable. > > > > > > > > On 2023/03/03 04:14:33 ZhangJian He wrote: > > > > > Hi, Eric. Thank you very much for the work you have done. I have no > > > > > objections to the process, and it would be even better if there > could > > > be > > > > a > > > > > rough timeline. > > > > > > > > > > Thanks > > > > > ZhangJian He > > > > > > > > > > > > > > > On Fri, 3 Mar 2023 at 09:06, Shen Eric <er...@outlook.com> wrote: > > > > > > > > > > > Hi Zhangjian, > > > > > > > > > > > > I am a PM from StreamNative and we also had some internal > discussions > > > > > > related to this topic. Let me share our ongoing planning: > > > > > > > > > > > > * We will extract the pulsar admin pkg from the pulsarctl to a > > > > > > separate open repo which will be called pulsar-admin-go under > > > > StreamNative. > > > > > > * Will iterate the pulsar-admin-go library by adding more tests, > > > > > > documentation and may also update or fix the existing APIs. > > > > > > * After the pulsar-admin-go library is stable, we will contribute > > > this > > > > > > project to Apache Foundation. > > > > > > > > > > > > Do you think this plan works for you? > > > > > > > > > > > > On 2023/02/17 01:47:26 ZhangJian He wrote: > > > > > > > I would like to express that the current Pulsar client for Go > > > > > > > (pulsar-client-go) is missing the pulsar Admin API. As such, I > > > would > > > > like > > > > > > > to propose that we work towards adding this feature to > > > > pulsar-client-go. > > > > > > > > > > > > > > I believe that this new feature would be a valuable addition to > > > > > > > pulsar-client-go, and I am excited to work to make it happen. > > > > > > > > > > > > > > I have submitted a PR: > > > > > > https://github.com/apache/pulsar-client-go/pull/959 > > > > > > > The full api is not currently available, but we are adding. > > > > > > > > > > > > > > Below is a simple example about how to use > > > > > > > > > > > > > > ## usage > > > > > > > > > > > > > > ```go > > > > > > > package main > > > > > > > > > > > > > > import ( > > > > > > > "fmt" > > > > > > > "github.com/apache/pulsar-client-go/padmin" > > > > > > > ) > > > > > > > > > > > > > > func main() { > > > > > > > admin, err := padmin.NewDefaultPulsarAdmin() > > > > > > > if err != nil { > > > > > > > panic(err) > > > > > > > } > > > > > > > // get namespace topic list > > > > > > > topics, err := > admin.PersistentTopics.ListNamespaceTopics("tenant", > > > > > > > "namespace") > > > > > > > if err != nil { > > > > > > > panic(err) > > > > > > > } > > > > > > > fmt.Println(topics) > > > > > > > } > > > > > > > ``` > > > > > > > > > > > > > > Thanks > > > > > > > ZhangJian He > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > Best regards, > > > > > > > > > > > > Eric Shen 沈瑀昊 > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > Best regards, > > > > > > > > Eric Shen 沈瑀昊 > > > > > > > > > >