func (s *Source) GetPropertySource(fileName string) (PropertySource, error) {
	for _, propertySource := range s.PropertySources {
		if strings.HasSuffix(propertySource.Name, fileName) {
			return propertySource, nil
		}
	}
	return PropertySource{}, ErrPropertySourceDoesNotExist
}
GetPropertySource retrieves the PropertySource that has the specifies fileName. The fileName is the name of the file
with extension - e.g. application-foo.yml.

Usually the Config Server will return the PropertySource.Name as an URL of sorts
(e.g. ssh://base-url.com/path/to/repository/path/to/file.[yml/properties]). So in order to find the specific file
with the desired configurations, the ending of the name needs to be matched against.
package cloudconfigclient
import (
	"errors"
	"fmt"
	"path/filepath"
	"strings"
)
type Source struct {
	Name            string           `json:"name"`
	Profiles        []string         `json:"profiles"`
	Label           string           `json:"label"`
	Version         string           `json:"version"`
	State           string           `json:"state"`
	PropertySources []PropertySource `json:"propertySources"`
}