update storageos vendor for FilteredDial change
This commit is contained in:
16
vendor/github.com/storageos/go-api/health.go
generated
vendored
16
vendor/github.com/storageos/go-api/health.go
generated
vendored
@@ -14,6 +14,22 @@ var (
|
||||
HealthAPIPrefix = "health"
|
||||
)
|
||||
|
||||
func (c *Client) ClusterHealth(ctx context.Context) ([]*types.ClusterHealthNode, error) {
|
||||
status := []*types.ClusterHealthNode{}
|
||||
url := fmt.Sprintf("/cluster/%s", HealthAPIPrefix)
|
||||
|
||||
resp, err := c.do("GET", url, doOptions{context: ctx, retryOn: []int{http.StatusNotFound}})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
if err := json.NewDecoder(resp.Body).Decode(&status); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return status, nil
|
||||
}
|
||||
|
||||
// CPHealth returns the health of the control plane server at a given url.
|
||||
func (c *Client) CPHealth(ctx context.Context, hostname string) (*types.CPHealthStatus, error) {
|
||||
|
||||
|
Reference in New Issue
Block a user