// Search searches for the services
Search searches for the services
// Search searches for the services
func Search(client *occlient.Client, name string) ([]occlient.Service, error) {
	var result []occlient.Service
	serviceList, err := ListCatalog(client)
	if err != nil {
		return nil, errors.Wrap(err, "unable to list services")
	}
	for _, service := range serviceList {
		if strings.Contains(service.Name, name) {
			result = append(result, service)
		}
	}
	return result, nil
}
func Search ( client * occlient . Client , name string ) ( [ ] occlient . Service , error ) { var result [ ] occlient . Service serviceList , err := ListCatalog ( client ) if err != nil { return nil , errors . Wrap ( err , " " ) } for _ , service := range serviceList { if strings . Contains ( service . Name , name ) { result = append ( result , service ) } } return result , nil }
Search searches for the services
Search searches for the services
// do a partial search in all the services