gatewaybundle

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

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"`
	RateLimits      *virtualkeypkg.VirtualKeyRateLimits `json:"rate_limits,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 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"`
	MCPServices   []mcpservice.MCPServiceConfig `json:"mcpServices,omitempty"`
	MCPRoutes     []mcproute.MCPRouteConfig     `json:"mcpRoutes,omitempty"`
	AgentRoutes   []agentroute.AgentRouteConfig `json:"agentRoutes,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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL