(name string, input ProviderInput)
| 64 | } |
| 65 | |
| 66 | func (s *ProviderService) Update(name string, input ProviderInput) (ProviderDTO, error) { |
| 67 | s.mu.Lock() |
| 68 | defer s.mu.Unlock() |
| 69 | |
| 70 | provider, err := s.api().Update(context.Background(), name, providerPatchFromDTO(input)) |
| 71 | if err != nil { |
| 72 | return ProviderDTO{}, wrapError("PROVIDER_UPDATE_FAILED", err) |
| 73 | } |
| 74 | return providerDTOFromAPI(provider), nil |
| 75 | } |
| 76 | |
| 77 | func (s *ProviderService) Remove(name string) (OperationResult, error) { |
| 78 | s.mu.Lock() |
nothing calls this directly
no test coverage detected