Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: Add public methods for catalog related structs #63

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

Xuanwo
Copy link
Member

@Xuanwo Xuanwo commented Sep 22, 2023

This PR exposes and adds public methods for catalog related structs.

Design Decisions

Structs returned by the catalog typically use public methods such as new(), namespace(), and name() to prevent unexpected usage. On the other hand, structs constructed by users often utilize public fields for easier construction, especially when dealing with complex ones.

Signed-off-by: Xuanwo <github@xuanwo.io>
@Xuanwo
Copy link
Member Author

Xuanwo commented Sep 22, 2023

cc @Fokko @liurenjie1024 @JanKaul @ZENOTME for review

Copy link
Collaborator

@liurenjie1024 liurenjie1024 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@Fokko Fokko merged commit c764ba7 into apache:main Sep 27, 2023
6 checks passed
@Fokko
Copy link
Contributor

Fokko commented Sep 27, 2023

Thanks @Xuanwo for working on this, and @liurenjie1024 for the review!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants