/*
	Apps returns a struct that describes Marathon current app and their
	sub tasks information.

	Parameters:
		endpoint: Marathon HTTP endpoint, e.g. http://localhost:8080
*/
Apps returns a struct that describes Marathon current app and their
sub tasks information.

Marathon HTTP endpoint, e.g.
/ * Apps returns a struct that describes Marathon current app and their sub tasks information . Parameters : endpoint : Marathon HTTP endpoint e . g . http : // localhost : 8080 * /
func FetchApps(maraconf configuration.Marathon, conf *configuration.Configuration) (AppList, error) {
	var applist AppList
	var err error
	for _, url := range maraconf.Endpoints() {
		applist, err = _fetchApps(url, conf)
		if err == nil {
			return applist, err
		}
	}
	return nil, err
}
func FetchApps ( maraconf configuration . Marathon , conf * configuration . Configuration ) ( AppList , error ) { var applist AppList var err error for _ , url := range maraconf . Endpoints ( ) { applist , err = _fetchApps ( url , conf ) if err == nil { return applist , err } } return nil , err }
Apps returns a struct that describes Marathon current app and their
sub tasks information.
Apps returns a struct that describes Marathon current app and their sub tasks information .
// try all configured endpoints until one succeeds // return last error