fatalIf(probe.NewError(e),"Unable to parse Version string as time.",nil)
ifcurrent.IsZero(){
fatalIf(probe.NewError(errors.New("")),"Experimental updates are not supported for custom build. Version field is empty. Please download official releases from https://dl.minio.io:9000",nil)
}
resp,err:=http.Get(minioExperimentalURL)
fatalIf(probe.NewError(err),"Unable to initalize experimental URL.",nil)
varexperimentalsupdates
decoder:=json.NewDecoder(resp.Body)
deferresp.Body.Close()
e=decoder.Decode(&experimentals)
fatalIf(probe.NewError(e),"Unable to decode experimental update notification.",nil)
fatalIf(probe.NewError(e),"Unable to parse BuildDate.",nil)
iflatest.IsZero(){
fatalIf(probe.NewError(errors.New("")),"Unable to validate any experimental update available at this time. Please open an issue at https://github.com/minio/minio/issues",nil)
fatalIf(probe.NewError(e),"Unable to parse Version string as time.",nil)
ifcurrent.IsZero(){
fatalIf(probe.NewError(errors.New("")),"Updates not supported for custom build. Version field is empty. Please download official releases from https://dl.minio.io:9000",nil)
}
resp,err:=http.Get(minioUpdateURL)
fatalIf(probe.NewError(err),"Unable to initalize experimental URL.",nil)
varreleasesupdates
decoder:=json.NewDecoder(resp.Body)
e=decoder.Decode(&releases)
fatalIf(probe.NewError(e),"Unable to decode update notification.",nil)
fatalIf(probe.NewError(e),"Unable to parse BuildDate.",nil)
iflatest.IsZero(){
fatalIf(probe.NewError(errors.New("")),"Unable to validate any update available at this time. Please open an issue at https://github.com/minio/minio/issues",nil)