psu/client/endpointGroup_list.go
Juan Carlos Mejías Rodríguez 63c82efd33 Export doJSONWithToken
2019-11-26 23:27:15 -05:00

13 lines
301 B
Go

package client
import (
"net/http"
portainer "github.com/portainer/portainer/api"
)
func (n *portainerClientImp) EndpointGroupList() (endpointGroups []portainer.EndpointGroup, err error) {
err = n.DoJSONWithToken("endpoint_groups", http.MethodGet, http.Header{}, nil, &endpointGroups)
return
}