Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProviderRoutes ¶
func AddProviderRoutes(mux *http.ServeMux, providerService providerservice.Service)
Types ¶
type ConfigureRequest ¶
type CreateConnectionRequest ¶
type CreateConnectionRequest struct {
Name string `json:"name"`
APIKey string `json:"apiKey"`
APIKeyEnv string `json:"apiKeyEnv"`
BaseURL string `json:"baseUrl"`
}
CreateConnectionRequest is the body of POST /providers/{providerType}/connections. Every field is optional unless the provider needs it (an API key or env reference for key-based providers, a base URL for self-hosted ones).
type UpdateConnectionRequest ¶
type UpdateConnectionRequest struct {
Name *string `json:"name"`
BaseURL *string `json:"baseUrl"`
APIKey *string `json:"apiKey"`
APIKeyEnv *string `json:"apiKeyEnv"`
ClearSecret bool `json:"clearSecret"`
}
UpdateConnectionRequest is the body of PATCH /providers/connections/{id}. Absent fields are left unchanged.