mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
13 lines
275 B
Go
13 lines
275 B
Go
package client
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
portainer "github.com/portainer/portainer/api"
|
|
)
|
|
|
|
func (n *portainerClientImp) EndpointList() (endpoints []portainer.Endpoint, err error) {
|
|
err = n.doJSONWithToken("endpoints", http.MethodGet, http.Header{}, nil, &endpoints)
|
|
return
|
|
}
|