mirror of
				https://github.com/go-micro/go-micro.git
				synced 2025-10-30 23:27:41 +02:00 
			
		
		
		
	strip unused list endpoint
This commit is contained in:
		| @@ -393,20 +393,6 @@ func (r *runtime) Delete(s *Service, opts ...DeleteOption) error { | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| // List returns a slice of all services tracked by the runtime | ||||
| func (r *runtime) List() ([]*Service, error) { | ||||
| 	r.RLock() | ||||
| 	defer r.RUnlock() | ||||
|  | ||||
| 	services := make([]*Service, 0, len(r.services)) | ||||
|  | ||||
| 	for _, service := range r.services { | ||||
| 		services = append(services, service.Service) | ||||
| 	} | ||||
|  | ||||
| 	return services, nil | ||||
| } | ||||
|  | ||||
| // Start starts the runtime | ||||
| func (r *runtime) Start() error { | ||||
| 	r.Lock() | ||||
|   | ||||
| @@ -107,9 +107,9 @@ func CreateImage(img string) CreateOption { | ||||
| func CreateImagePullSecret(secrets ...string) CreateOption { | ||||
| 	return func(o *CreateOptions) { | ||||
| 		o.ImagePullSecrets = append(o.ImagePullSecrets, secrets...) | ||||
|   } | ||||
| 	} | ||||
| } | ||||
|      | ||||
|  | ||||
| // CreateNamespace sets the namespace | ||||
| func CreateNamespace(ns string) CreateOption { | ||||
| 	return func(o *CreateOptions) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user