Documentation
¶
Index ¶
Constants ¶
View Source
const ControllerName = "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 ¶
This section is empty.
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
}
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.