Documentation
¶
Index ¶
- type CLIAuthAuthenticator
- type CLIAuthLogin
- type CLIAuthLoginStatus
- type CLIAuthRefresherStatus
- type CLIAuthUpdateAuthenticatorResponse
- type Client
- func (c *Client) BaseURL() string
- func (c *Client) CreateCredential(ctx context.Context, req CreateCredentialRequest) (*ManagedCredential, error)
- func (c *Client) CreateManagedModel(ctx context.Context, model modelcatalog.ManagedModel) (*ManagedModel, error)
- func (c *Client) CreateProvider(ctx context.Context, cfg ProviderConfig) (*Provider, error)
- func (c *Client) CreateRoute(ctx context.Context, route RouteConfig) (*RouteConfig, error)
- func (c *Client) CreateVirtualKey(ctx context.Context, key VirtualKeyConfig) (*VirtualKeyConfig, error)
- func (c *Client) DeleteCredential(ctx context.Context, id string) (*StatusResponse, error)
- func (c *Client) DeleteManagedModel(ctx context.Context, providerID, upstreamModel string) (*StatusResponse, error)
- func (c *Client) DeleteProvider(ctx context.Context, id string) (*StatusResponse, error)
- func (c *Client) DeleteRoute(ctx context.Context, id string) (*StatusResponse, error)
- func (c *Client) DeleteVirtualKey(ctx context.Context, id string) (*StatusResponse, error)
- func (c *Client) DisableCLIAuthRefresher(ctx context.Context) (*boolStatusResponse, error)
- func (c *Client) DisableProvider(ctx context.Context, id string) (*Provider, error)
- func (c *Client) DisableProviderType(ctx context.Context, providerType string) (*boolStatusResponse, error)
- func (c *Client) DisableRoute(ctx context.Context, id string) (*Route, error)
- func (c *Client) DisableVirtualKey(ctx context.Context, id string) (*VirtualKey, error)
- func (c *Client) EnableCLIAuthRefresher(ctx context.Context) (*boolStatusResponse, error)
- func (c *Client) EnableProvider(ctx context.Context, id string) (*Provider, error)
- func (c *Client) EnableProviderType(ctx context.Context, providerType string) (*boolStatusResponse, error)
- func (c *Client) EnableRoute(ctx context.Context, id string) (*Route, error)
- func (c *Client) EnableVirtualKey(ctx context.Context, id string) (*VirtualKey, error)
- func (c *Client) GetCLIAuthAuthenticator(ctx context.Context, name string) (*CLIAuthAuthenticator, error)
- func (c *Client) GetCLIAuthLoginStatus(ctx context.Context, loginID string) (*CLIAuthLoginStatus, error)
- func (c *Client) GetCLIAuthRefresherStatus(ctx context.Context) (*CLIAuthRefresherStatus, error)
- func (c *Client) GetCredential(ctx context.Context, id string) (*Credential, error)
- func (c *Client) GetManagedModel(ctx context.Context, providerID, upstreamModel string) (*ManagedModel, error)
- func (c *Client) GetProvider(ctx context.Context, id string) (*Provider, error)
- func (c *Client) GetRoute(ctx context.Context, id string) (*Route, error)
- func (c *Client) GetVirtualKey(ctx context.Context, id string) (*VirtualKey, error)
- func (c *Client) ListCLIAuthAuthenticators(ctx context.Context) ([]CLIAuthAuthenticator, error)
- func (c *Client) ListCredentials(ctx context.Context, opts CredentialListOptions) ([]Credential, error)
- func (c *Client) ListDiscoveredModels(ctx context.Context, providerID string) ([]DiscoveredModel, error)
- func (c *Client) ListLLMAPIHandlerTypes(ctx context.Context) ([]LLMAPIHandlerType, error)
- func (c *Client) ListManagedModels(ctx context.Context, opts ManagedModelListOptions) ([]ManagedModel, error)
- func (c *Client) ListProviderTypes(ctx context.Context) ([]ProviderType, error)
- func (c *Client) ListProviders(ctx context.Context, opts ProviderListOptions) ([]Provider, error)
- func (c *Client) ListRoutes(ctx context.Context, opts RouteListOptions) ([]Route, error)
- func (c *Client) ListVirtualKeys(ctx context.Context, opts VirtualKeyListOptions) ([]VirtualKey, error)
- func (c *Client) Login(ctx context.Context) (*LoginResponse, error)
- func (c *Client) Logout(ctx context.Context) error
- func (c *Client) Me(ctx context.Context) (*MeResponse, error)
- func (c *Client) RefreshProviderModels(ctx context.Context, providerID string) (*RefreshDiscoveredModelsResponse, error)
- func (c *Client) SetToken(token string)
- func (c *Client) StartCLIAuthLogin(ctx context.Context, name string, req StartCLIAuthLoginRequest) (*CLIAuthLogin, error)
- func (c *Client) UpdateCLIAuthAuthenticator(ctx context.Context, name string, req UpdateCLIAuthAuthenticatorRequest) (*CLIAuthUpdateAuthenticatorResponse, error)
- func (c *Client) UpdateCredential(ctx context.Context, id string, req UpdateCredentialRequest) (*ManagedCredential, error)
- func (c *Client) UpdateManagedModel(ctx context.Context, providerID, upstreamModel string, ...) (*ManagedModel, error)
- func (c *Client) UpdateProvider(ctx context.Context, id string, cfg ProviderConfig) (*Provider, error)
- func (c *Client) UpdateRoute(ctx context.Context, id string, route RouteConfig) (*RouteConfig, error)
- func (c *Client) UpdateVirtualKey(ctx context.Context, id string, req VirtualKeyConfig) (*VirtualKeyConfig, error)
- type Config
- type CreateCredentialRequest
- type Credential
- type CredentialListOptions
- type DiscoveredModel
- type Error
- type LLMAPIHandlerType
- type LoginRequest
- type LoginResponse
- type ManagedCredential
- type ManagedModel
- type ManagedModelListOptions
- type MeResponse
- type Provider
- type ProviderConfig
- type ProviderListOptions
- type ProviderType
- type RefreshDiscoveredModelsResponse
- type Route
- type RouteConfig
- type RouteListOptions
- type StartCLIAuthLoginRequest
- type StatusResponse
- type UpdateCLIAuthAuthenticatorRequest
- type UpdateCredentialRequest
- type VirtualKey
- type VirtualKeyConfig
- type VirtualKeyListOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLIAuthAuthenticator ¶
type CLIAuthAuthenticator struct {
Name string `json:"name"`
Enabled bool `json:"enabled"`
Config cliauth.AuthenticatorConfig `json:"config"`
}
type CLIAuthLogin ¶
type CLIAuthLoginStatus ¶
type CLIAuthLoginStatus struct {
LoginID string `json:"login_id"`
AuthenticatorName string `json:"authenticator_name"`
Status string `json:"status"`
StartedAt any `json:"started_at,omitempty"`
FinishedAt any `json:"finished_at,omitempty"`
Phase string `json:"phase,omitempty"`
Message string `json:"message,omitempty"`
VerificationURL string `json:"verification_url,omitempty"`
UserCode string `json:"user_code,omitempty"`
Error string `json:"error,omitempty"`
CredentialID string `json:"credential_id,omitempty"`
}
type CLIAuthRefresherStatus ¶
type CLIAuthRefresherStatus struct {
Enabled bool `json:"enabled"`
}
type CLIAuthUpdateAuthenticatorResponse ¶
type CLIAuthUpdateAuthenticatorResponse struct {
Status string `json:"status"`
Authenticator CLIAuthAuthenticator `json:"authenticator"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateCredential ¶
func (c *Client) CreateCredential(ctx context.Context, req CreateCredentialRequest) (*ManagedCredential, error)
func (*Client) CreateManagedModel ¶
func (c *Client) CreateManagedModel(ctx context.Context, model modelcatalog.ManagedModel) (*ManagedModel, error)
func (*Client) CreateProvider ¶
func (*Client) CreateRoute ¶
func (c *Client) CreateRoute(ctx context.Context, route RouteConfig) (*RouteConfig, error)
func (*Client) CreateVirtualKey ¶
func (c *Client) CreateVirtualKey(ctx context.Context, key VirtualKeyConfig) (*VirtualKeyConfig, error)
func (*Client) DeleteCredential ¶
func (*Client) DeleteManagedModel ¶
func (*Client) DeleteProvider ¶
func (*Client) DeleteRoute ¶
func (*Client) DeleteVirtualKey ¶
func (*Client) DisableCLIAuthRefresher ¶
func (*Client) DisableProvider ¶
func (*Client) DisableProviderType ¶
func (*Client) DisableRoute ¶
func (*Client) DisableVirtualKey ¶
func (*Client) EnableCLIAuthRefresher ¶
func (*Client) EnableProvider ¶
func (*Client) EnableProviderType ¶
func (*Client) EnableRoute ¶
func (*Client) EnableVirtualKey ¶
func (*Client) GetCLIAuthAuthenticator ¶
func (*Client) GetCLIAuthLoginStatus ¶
func (*Client) GetCLIAuthRefresherStatus ¶
func (c *Client) GetCLIAuthRefresherStatus(ctx context.Context) (*CLIAuthRefresherStatus, error)
func (*Client) GetCredential ¶
func (*Client) GetManagedModel ¶
func (*Client) GetProvider ¶
func (*Client) GetVirtualKey ¶
func (*Client) ListCLIAuthAuthenticators ¶
func (c *Client) ListCLIAuthAuthenticators(ctx context.Context) ([]CLIAuthAuthenticator, error)
func (*Client) ListCredentials ¶
func (c *Client) ListCredentials(ctx context.Context, opts CredentialListOptions) ([]Credential, error)
func (*Client) ListDiscoveredModels ¶
func (*Client) ListLLMAPIHandlerTypes ¶
func (c *Client) ListLLMAPIHandlerTypes(ctx context.Context) ([]LLMAPIHandlerType, error)
func (*Client) ListManagedModels ¶
func (c *Client) ListManagedModels(ctx context.Context, opts ManagedModelListOptions) ([]ManagedModel, error)
func (*Client) ListProviderTypes ¶
func (c *Client) ListProviderTypes(ctx context.Context) ([]ProviderType, error)
func (*Client) ListProviders ¶
func (*Client) ListRoutes ¶
func (*Client) ListVirtualKeys ¶
func (c *Client) ListVirtualKeys(ctx context.Context, opts VirtualKeyListOptions) ([]VirtualKey, error)
func (*Client) RefreshProviderModels ¶
func (*Client) StartCLIAuthLogin ¶
func (c *Client) StartCLIAuthLogin(ctx context.Context, name string, req StartCLIAuthLoginRequest) (*CLIAuthLogin, error)
func (*Client) UpdateCLIAuthAuthenticator ¶
func (c *Client) UpdateCLIAuthAuthenticator(ctx context.Context, name string, req UpdateCLIAuthAuthenticatorRequest) (*CLIAuthUpdateAuthenticatorResponse, error)
func (*Client) UpdateCredential ¶
func (c *Client) UpdateCredential(ctx context.Context, id string, req UpdateCredentialRequest) (*ManagedCredential, error)
func (*Client) UpdateManagedModel ¶
func (c *Client) UpdateManagedModel(ctx context.Context, providerID, upstreamModel string, model modelcatalog.ManagedModel) (*ManagedModel, error)
func (*Client) UpdateProvider ¶
func (*Client) UpdateRoute ¶
func (c *Client) UpdateRoute(ctx context.Context, id string, route RouteConfig) (*RouteConfig, error)
func (*Client) UpdateVirtualKey ¶
func (c *Client) UpdateVirtualKey(ctx context.Context, id string, req VirtualKeyConfig) (*VirtualKeyConfig, error)
type CreateCredentialRequest ¶
type CreateCredentialRequest struct {
ID string `json:"id,omitempty"`
Type string `json:"type"`
ProviderType string `json:"provider_type,omitempty"`
ProviderID string `json:"provider_id"`
Label string `json:"label,omitempty"`
Attributes map[string]string `json:"attributes,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
Disabled bool `json:"disabled,omitempty"`
}
type Credential ¶
type Credential = adminapi.CredentialView
type CredentialListOptions ¶
type DiscoveredModel ¶
type DiscoveredModel = modelcatalog.ProviderModelSnapshot
type LLMAPIHandlerType ¶
type LLMAPIHandlerType = adminapi.LLMApiHandlerTypeView
type LoginRequest ¶
type LoginResponse ¶
type ManagedCredential ¶
type ManagedCredential = credentialmgr.ManagedCredential
type ManagedModel ¶
type ManagedModel = adminapi.ManagedConcreteModelView
type ManagedModelListOptions ¶
type ManagedModelListOptions struct {
ProviderID string
}
type MeResponse ¶
type Provider ¶
type Provider = adminapi.ProviderView
type ProviderConfig ¶
type ProviderConfig = provider.ProviderConfig
type ProviderListOptions ¶
type ProviderListOptions struct {
ProviderType string
}
type ProviderType ¶
type ProviderType = adminapi.ProviderTypeView
type RefreshDiscoveredModelsResponse ¶
type RefreshDiscoveredModelsResponse struct {
ProviderID string `json:"provider_id"`
Items []DiscoveredModel `json:"items"`
}
type RouteConfig ¶
type RouteConfig = routepkg.AgentRoute
type RouteListOptions ¶
type StatusResponse ¶
type UpdateCLIAuthAuthenticatorRequest ¶
type UpdateCLIAuthAuthenticatorRequest struct {
Enabled *bool `json:"enabled,omitempty"`
Config *cliauth.AuthenticatorConfig `json:"config,omitempty"`
}
type UpdateCredentialRequest ¶
type UpdateCredentialRequest struct {
Type string `json:"type,omitempty"`
ProviderType string `json:"provider_type,omitempty"`
ProviderID string `json:"provider_id,omitempty"`
Label string `json:"label,omitempty"`
Attributes map[string]string `json:"attributes,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
Disabled bool `json:"disabled,omitempty"`
}
type VirtualKey ¶
type VirtualKey = adminapi.VirtualKeyView
type VirtualKeyConfig ¶
type VirtualKeyConfig struct {
ID string `json:"id,omitempty"`
Tag string `json:"tag,omitempty"`
Description string `json:"description,omitempty"`
Disabled bool `json:"disabled,omitempty"`
AllowedRouteIDs []string `json:"allowed_route_ids,omitempty"`
StatusMessage string `json:"status_message,omitempty"`
ExpiresAt time.Time `json:"expires_at,omitempty"`
}
type VirtualKeyListOptions ¶
type VirtualKeyListOptions struct {
Tag string
}
Click to show internal directories.
Click to hide internal directories.