Documentation
¶
Index ¶
Constants ¶
View Source
const ( APIVersionV1Alpha1 = "gateway.agw/v1alpha1" KindGatewayBundle = "GatewayBundle" )
Variables ¶
This section is empty.
Functions ¶
func EncodeYAML ¶
func EncodeYAML(bundle *GatewayBundle) ([]byte, error)
Types ¶
type BundleVirtualKey ¶
type BundleVirtualKey struct {
ID string `json:"id,omitempty"`
Tag string `json:"tag,omitempty"`
Description string `json:"description,omitempty"`
Disabled bool `json:"disabled"`
AllowedRouteIDs []string `json:"allowed_route_ids,omitempty"`
StatusMessage string `json:"status_message,omitempty"`
ExpiresAt time.Time `json:"expires_at,omitempty"`
}
func BundleVirtualKeyFromRuntime ¶
func BundleVirtualKeyFromRuntime(key virtualkeypkg.VirtualKey) BundleVirtualKey
func (BundleVirtualKey) ToRuntimeVirtualKey ¶
func (key BundleVirtualKey) ToRuntimeVirtualKey(generatedKey string) virtualkeypkg.VirtualKey
type CLIAuthAuthenticator ¶
type CLIAuthAuthenticator struct {
Name string `json:"name"`
Enabled bool `json:"enabled"`
Config cliauth.AuthenticatorConfig `json:"config,omitempty"`
}
type GatewayBundle ¶
type GatewayBundle struct {
APIVersion string `json:"apiVersion"`
Kind string `json:"kind"`
Providers []provider.ProviderConfig `json:"providers,omitempty"`
ManagedModels []modelcatalog.ManagedModel `json:"managedModels,omitempty"`
LLMRoutes []routecore.AgentRouteConfig `json:"llmRoutes,omitempty"`
VirtualKeys []BundleVirtualKey `json:"virtualKeys,omitempty"`
CLIAuthAuthenticators []CLIAuthAuthenticator `json:"cliAuthAuthenticators,omitempty"`
MCPServices []mcpservice.MCPServiceConfig `json:"mcpServices,omitempty"`
MCPRoutes []mcproute.MCPRouteConfig `json:"mcpRoutes,omitempty"`
ACPServices []acpservice.ServiceConfig `json:"acpServices,omitempty"`
ACPRoutes []acproute.ACPRouteConfig `json:"acpRoutes,omitempty"`
Agents []agentpkg.Agent `json:"agents,omitempty"`
}
func DecodeYAML ¶
func DecodeYAML(data []byte) (*GatewayBundle, error)
func LoadFile ¶
func LoadFile(path string) (*GatewayBundle, error)
func (*GatewayBundle) Validate ¶
func (b *GatewayBundle) Validate() error
func (*GatewayBundle) ValidateForConfigStore ¶
func (b *GatewayBundle) ValidateForConfigStore() error
func (*GatewayBundle) ValidateForStaticConfig ¶
func (b *GatewayBundle) ValidateForStaticConfig() error
type ValidationErrors ¶
type ValidationErrors struct {
Errors []error
}
func (*ValidationErrors) Append ¶
func (e *ValidationErrors) Append(err error)
func (*ValidationErrors) Error ¶
func (e *ValidationErrors) Error() string
func (*ValidationErrors) HasErrors ¶
func (e *ValidationErrors) HasErrors() bool
Click to show internal directories.
Click to hide internal directories.