// GetSvcByType returns the matching (by type) service or nil of there are no matches
GetSvcByType returns the matching (by type) service or nil of there are no matches
// GetSvcByType returns the matching ( by type ) service or nil of there are no matches
func GetSvcByType(client *occlient.Client, serviceType string) (*occlient.Service, error) {
	catalogList, err := ListCatalog(client)
	if err != nil {
		return nil, errors.Wrapf(err, "unable to list catalog")
	}
	for _, supported := range catalogList {
		if serviceType == supported.Name {
			return &supported, nil
		}
	}
	return nil, nil
}
func GetSvcByType ( client * occlient . Client , serviceType string ) ( * occlient . Service , error ) { catalogList , err := ListCatalog ( client ) if err != nil { return nil , errors . Wrapf ( err , " " ) } for _ , supported := range catalogList { if serviceType == supported . Name { return & supported , nil } } return nil , nil }
GetSvcByType returns the matching (by type) service or nil of there are no matches
GetSvcByType returns the matching ( by type ) service or nil of there are no matches