(respBytes []byte)
| 398 | } |
| 399 | |
| 400 | func ParseClusterUUID(respBytes []byte) (string, error) { |
| 401 | var responseJson struct { |
| 402 | UUID string `json:"uuid"` |
| 403 | } |
| 404 | |
| 405 | if err := JSONUnmarshal(respBytes, &responseJson); err != nil { |
| 406 | return "", err |
| 407 | } |
| 408 | |
| 409 | return responseJson.UUID, nil |
| 410 | } |
| 411 | |
| 412 | // Gets the metadata purge interval for the bucket. First checks for a bucket-specific value. If not |
| 413 | // found, retrieves the cluster-wide value. |
no test coverage detected