MCPcopy Create free account
hub / github.com/cloudfoundry/cli / GetRouterGroups

Method GetRouterGroups

api/router/router_group.go:18–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func (client *Client) GetRouterGroups() ([]RouterGroup, error) {
19 request, err := client.newHTTPRequest(requestOptions{
20 RequestName: internal.GetRouterGroups,
21 })
22
23 if err != nil {
24 return nil, err
25 }
26 var routerGroups []RouterGroup
27
28 var response = Response{
29 Result: &routerGroups,
30 }
31
32 err = client.connection.Make(request, &response)
33 if err != nil {
34 return nil, err
35 }
36
37 return routerGroups, nil
38}
39
40// GetRouterGroupByName returns a list of RouterGroups.
41func (client *Client) GetRouterGroupByName(name string) (RouterGroup, error) {

Callers

nothing calls this directly

Calls 2

newHTTPRequestMethod · 0.95
MakeMethod · 0.65

Tested by

no test coverage detected