MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / Update

Method Update

internal/desktop/provider_service.go:66–75  ·  view source on GitHub ↗
(name string, input ProviderInput)

Source from the content-addressed store, hash-verified

64}
65
66func (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
77func (s *ProviderService) Remove(name string) (OperationResult, error) {
78 s.mu.Lock()

Callers

nothing calls this directly

Calls 4

apiMethod · 0.95
providerPatchFromDTOFunction · 0.85
wrapErrorFunction · 0.85
providerDTOFromAPIFunction · 0.85

Tested by

no test coverage detected