Documentation
¶
Index ¶
Constants ¶
View Source
const AgentGatewayKrakendControllerName = "runtime.agentic-layer.ai/agent-gateway-krakend-controller"
View Source
const DefaultGatewayPort = 8080
View Source
const Image = "ghcr.io/agentic-layer/agent-gateway-krakend:0.3.0"
Variables ¶
View Source
var Version = "dev"
Version set at build time using ldflags
Functions ¶
This section is empty.
Types ¶
type AgentGatewayReconciler ¶
AgentGatewayReconciler reconciles a AgentGateway object
func (*AgentGatewayReconciler) Reconcile ¶
func (r *AgentGatewayReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*AgentGatewayReconciler) SetupWithManager ¶
func (r *AgentGatewayReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type KrakendBackend ¶
type KrakendBackend struct {
// Host defines the agents host addresses
Host []string `json:"host"`
// URLPattern specifies the path the agent is called at
URLPattern string `json:"url_pattern"`
}
KrakendBackend represents a backend configuration in KrakenD
type KrakendConfigData ¶
type KrakendConfigData struct {
// Port specifies the server port number
Port int32
// Timeout defines the request timeout duration
Timeout string
// PluginNames contains ordered list of plugin handler names
PluginNames []string
// Endpoints contains all configured API endpoints
Endpoints []KrakendEndpoint
// ServiceVersion is the Docker image path used to identify the service version
ServiceVersion string
// DeploymentName is the name of the deployment
DeploymentName string
// OtelCollectorHost is the hostname of the OpenTelemetry collector
OtelCollectorHost string
// OtelCollectorPort is the port of the OpenTelemetry collector
OtelCollectorPort string
}
KrakendConfigData holds the data for template execution
type KrakendEndpoint ¶
type KrakendEndpoint struct {
// Endpoint defines the API endpoint path
Endpoint string `json:"endpoint"`
// OutputEncoding specifies the response encoding format
OutputEncoding string `json:"output_encoding"`
// Method defines the HTTP method for this endpoint
Method string `json:"method"`
// Backend contains the backend configuration for this endpoint
Backend []KrakendBackend `json:"backend"`
}
KrakendEndpoint represents an endpoint configuration in KrakenD
Click to show internal directories.
Click to hide internal directories.