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

Backend limit API calls #394

Open
robertglonek opened this issue Aug 28, 2024 · 0 comments
Open

Backend limit API calls #394

robertglonek opened this issue Aug 28, 2024 · 0 comments

Comments

@robertglonek
Copy link
Collaborator

Replace the following backend APIs with a single API call:

// return slice of strings holding cluster names, or error
ClusterList() ([]string, error)
// accept cluster name, return slice of int holding node numbers or error
NodeListInCluster(name string) ([]int, error)
// returns a string slice containing IPs of given cluster name
GetClusterNodeIps(name string) ([]string, error)
// returns a map of [int]string for a given cluster, where int is node number and string is the IP of said node
GetNodeIpMap(name string, internalIPs bool) (map[int]string, error)

Also, review internal calls in backends to limit the calls there.

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

No branches or pull requests

1 participant