psu/client/status.go

13 lines
256 B
Go
Raw Normal View History

package client
import (
"net/http"
portainer "github.com/portainer/portainer/api"
)
func (n *portainerClientImp) Status() (status portainer.Status, err error) {
2019-09-10 23:03:39 +00:00
err = n.DoJSONWithToken("status", http.MethodGet, http.Header{}, nil, &status)
return
}