Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKeyAuthResponse ¶
type APIKeyAuthResponse struct {
APIKey string `json:"api_key,omitempty"` // #nosec G117
HeaderName string `json:"header_name,omitempty"`
HeaderValue string `json:"header_value,omitempty"`
ParamName string `json:"param_name,omitempty"`
ParamValue string `json:"param_value,omitempty"`
ParamLocation string `json:"param_location,omitempty"`
}
type AWSAuthResponse ¶
type AWSAuthResponse struct {
AccessKeyID string `json:"access_key_id,omitempty"`
SecretAccessKey string `json:"secret_access_key,omitempty"` // #nosec G117
Region string `json:"region,omitempty"`
SessionToken string `json:"session_token,omitempty"` // #nosec G117
Role string `json:"role,omitempty"`
UseRole bool `json:"use_role,omitempty"`
}
type AzureAuthResponse ¶
type AzureAuthResponse struct {
UseManagedIdentity bool `json:"use_managed_identity,omitempty"`
Endpoint string `json:"endpoint,omitempty"`
Version string `json:"version,omitempty"`
APIKey string `json:"api_key,omitempty"` // #nosec G117
ClientID string `json:"client_id,omitempty"`
ClientSecret string `json:"client_secret,omitempty"` // #nosec G117
TenantID string `json:"tenant_id,omitempty"`
}
type HealthChecksResponse ¶
type ListRegistryResponse ¶
type ListRegistryResponse struct {
Items []RegistryResponse `json:"items"`
Page int `json:"page"`
Size int `json:"size"`
Total int `json:"total"`
}
type MCPAuthResponse ¶
type MCPAuthResponse struct {
Mode string `json:"mode"`
Header string `json:"header,omitempty"`
Value string `json:"value,omitempty"` // #nosec G117 -- masked before serialization
ExpectedAudience string `json:"expected_audience,omitempty"`
Pattern string `json:"pattern,omitempty"`
Audience string `json:"audience,omitempty"`
Scope string `json:"scope,omitempty"`
Actor string `json:"actor,omitempty"`
Provider string `json:"provider,omitempty"`
Registration string `json:"registration,omitempty"`
ClientID string `json:"client_id,omitempty"`
ClientSecret string `json:"client_secret,omitempty"` // #nosec G117 -- masked before serialization
AuthorizeURL string `json:"authorize_url,omitempty"`
TokenURL string `json:"token_url,omitempty"`
Scopes []string `json:"scopes,omitempty"`
Resource string `json:"resource,omitempty"`
}
type MCPTargetResponse ¶
type RegistryResponse ¶
type RegistryResponse struct {
ID ids.RegistryID `json:"id"`
GatewayID ids.GatewayID `json:"gateway_id"`
Name string `json:"name"`
Type string `json:"type"`
Enabled bool `json:"enabled"`
Provider string `json:"provider,omitempty"`
ProviderOptions map[string]any `json:"provider_options,omitempty"`
Description string `json:"description,omitempty"`
Auth *TargetAuthResponse `json:"auth,omitempty"`
HealthChecks *HealthChecksResponse `json:"health_checks,omitempty"`
MCPTarget *MCPTargetResponse `json:"mcp_target,omitempty"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
func FromRegistry ¶
func FromRegistry(b *domain.Registry) RegistryResponse
type TargetAuthResponse ¶
type TargetAuthResponse struct {
Type string `json:"type"`
APIKey *APIKeyAuthResponse `json:"api_key,omitempty"`
Azure *AzureAuthResponse `json:"azure,omitempty"`
AWS *AWSAuthResponse `json:"aws,omitempty"`
OAuth *TargetOAuthConfigResponse `json:"oauth,omitempty"`
GCPServiceAccount *string `json:"gcp_service_account,omitempty"`
}
func FromAuth ¶
func FromAuth(a *domain.TargetAuth) *TargetAuthResponse
type TargetOAuthConfigResponse ¶
type TargetOAuthConfigResponse struct {
TokenURL string `json:"token_url"`
GrantType string `json:"grant_type"`
ClientID string `json:"client_id,omitempty"`
ClientSecret string `json:"client_secret,omitempty"` // #nosec G117
UseBasicAuth bool `json:"use_basic_auth,omitempty"`
Scopes []string `json:"scopes,omitempty"`
Audience string `json:"audience,omitempty"`
RefreshToken string `json:"refresh_token,omitempty"` // #nosec G117
Extra map[string]string `json:"extra,omitempty"`
}
type TestConnectionResponse ¶
type TestConnectionResponse struct {
OK bool `json:"ok"`
Stage string `json:"stage"`
Provider string `json:"provider"`
StatusCode int `json:"status_code,omitempty"`
LatencyMs int64 `json:"latency_ms"`
Message string `json:"message,omitempty"`
}
func FromTestConnectionResult ¶
func FromTestConnectionResult(r appregistry.TestConnectionResult) TestConnectionResponse
Click to show internal directories.
Click to hide internal directories.