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

13 lines
256 B
Go

package client
import (
"net/http"
portainer "github.com/portainer/portainer/api"
)
func (n *portainerClientImp) Status() (status portainer.Status, err error) {
err = n.DoJSONWithToken("status", http.MethodGet, http.Header{}, nil, &status)
return
}