()
| 22 | } |
| 23 | |
| 24 | func (s *ProviderService) Init() (OperationResult, error) { |
| 25 | s.mu.Lock() |
| 26 | defer s.mu.Unlock() |
| 27 | |
| 28 | result, err := s.api().Init(context.Background()) |
| 29 | if err != nil { |
| 30 | return OperationResult{}, wrapError("PROVIDER_INIT_FAILED", err) |
| 31 | } |
| 32 | return operationResultDTO(result), nil |
| 33 | } |
| 34 | |
| 35 | func (s *ProviderService) List() ([]ProviderDTO, error) { |
| 36 | listed, err := s.api().List(context.Background()) |