(name string)
| 75 | } |
| 76 | |
| 77 | func (s *ProviderService) Remove(name string) (OperationResult, error) { |
| 78 | s.mu.Lock() |
| 79 | defer s.mu.Unlock() |
| 80 | |
| 81 | result, err := s.api().Remove(context.Background(), name) |
| 82 | if err != nil { |
| 83 | return OperationResult{}, wrapProviderError("PROVIDER_NOT_FOUND", err, name) |
| 84 | } |
| 85 | return operationResultDTO(result), nil |
| 86 | } |
| 87 | |
| 88 | func (s *ProviderService) Enable(name string) (ProviderDTO, error) { |
| 89 | return s.setEnabled(name, true) |