Help us shape the future of Go! Take the 2026 Go Developer Survey

gatewaybundle

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 16 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"`
	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"`
}

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