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

topology: Add method to retrieve all topology Objects #42

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

mikenairn
Copy link
Member

Adds an "All()" method to the topology that returns all Objects in the topology graph i.e. Objects + Targetables + Policies.

Exposing a collection like this allows API users to more easily query the paths between any two objects regardless of type e.g Policy -> Object, Targetable -> Object etc..

machinery/topology.go Outdated Show resolved Hide resolved
@mikenairn mikenairn force-pushed the add_topology_all branch 2 times, most recently from 0d4a357 to 908a1e6 Compare October 16, 2024 11:22
@mikenairn mikenairn marked this pull request as ready for review October 16, 2024 11:24
@mikenairn mikenairn force-pushed the add_topology_all branch 2 times, most recently from 377e122 to a4ae70e Compare October 17, 2024 08:18
Adds an "All()" method to the topology that returns all Objects in the
topology graph i.e. Objects + Targetables + Policies.

Exposing a collection like this allows API users to more easily query
the paths between any two objects regardless of type e.g Policy ->
Object, Targetable -> Object etc..

Signed-off-by: Michael Nairn <[email protected]>
@mikenairn mikenairn merged commit db72801 into main Oct 17, 2024
13 checks passed
@mikenairn mikenairn deleted the add_topology_all branch October 17, 2024 08:24
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.

2 participants