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

Mesh client tools (apply sub command) #22

Merged
merged 3 commits into from
Jun 25, 2021
Merged

Mesh client tools (apply sub command) #22

merged 3 commits into from
Jun 25, 2021

Conversation

zhao-kun
Copy link
Contributor

@zhao-kun zhao-kun commented Jun 21, 2021

TODO:

  • Add descriptions for the PR

@zhao-kun zhao-kun marked this pull request as ready for review June 23, 2021 05:21
@zhao-kun
Copy link
Contributor Author

The implements divide into three main packages

  • util package contains a builder:
    • builder builds a visitor to accept visitFunc to visits all mesh spec resource
    • builder support parse spec from FILEs or directory (support iterates sub-directory recursively), STDIN/STDOUT, and URLs
  • meshclient package like client-go of Kubernetes, meshclient is a Clientsets for EaseMesh, you can implement CURD of mesh resources through method chain [1]
  • apply package implement logic which is dedicated to applying a mesh resource, apply package composites builders and meshclient

[1] https://github.com/zhao-kun/easemesh/blob/mesh-apply/ctl/cmd/client/command/apply/applier.go#L57

@zhao-kun zhao-kun merged commit 19af44b into megaease:main Jun 25, 2021
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.

1 participant