agentfunctions

package
v2.20.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Module provides rpc client for agent functions.

Functions

func RegisterControlPointsHandler

func RegisterControlPointsHandler(handler FlowControlControlPointsHandler, t *transport.EtcdTransportClient) error

RegisterControlPointsHandler registers ControlPointsHandler in handler registry.

func RegisterEtcdTransport added in v2.20.0

func RegisterEtcdTransport(in RegisterClientIn)

RegisterEtcdTransport registers a server on the etcd transport.

func RegisterPreviewHandler

func RegisterPreviewHandler(handler *PreviewHandler, t *transport.EtcdTransportClient) error

RegisterPreviewHandler registers PreviewHandler in handler registry.

Types

type FlowControlControlPointsHandler

type FlowControlControlPointsHandler struct {
	// contains filtered or unexported fields
}

FlowControlControlPointsHandler is a handler for ListFlowControlPoints function

Note: There's no requirement every handler needs to be in a separate struct. More methods can be added to this one.

func NewFlowControlControlPointsHandler

func NewFlowControlControlPointsHandler(
	cache *cache.Cache[selectors.TypedControlPointID],
	agentInfo *agentinfo.AgentInfo,
) FlowControlControlPointsHandler

NewFlowControlControlPointsHandler returns a new FlowControlControlPointsHandler.

func (*FlowControlControlPointsHandler) ListFlowControlPoints

ListFlowControlPoints lists currently discovered control points.

type PreviewHandler

type PreviewHandler struct {
	// contains filtered or unexported fields
}

PreviewHandler is a handler for preview-family of functions.

Simply forwards methods to grpc handler, which provides actual implementation.

func ProvidePreviewHandler

func ProvidePreviewHandler(
	handler *preview.Handler,
	unmarshaller config.Unmarshaller,
) (*PreviewHandler, error)

ProvidePreviewHandler provides PreviewHandler.

func (*PreviewHandler) PreviewFlowLabels

PreviewFlowLabels previews flow labels on given control point.

func (*PreviewHandler) PreviewHTTPRequests

PreviewHTTPRequests previews HTTP requests on given control point.

type RegisterClientIn

type RegisterClientIn struct {
	fx.In
	Lc                  fx.Lifecycle
	Unmarshaller        config.Unmarshaller
	ConnBuilder         grpcclient.ClientConnectionBuilder `name:"agent-functions"`
	EtcdTransportClient *transport.EtcdTransportClient
	EtcdClient          *etcdclient.Client
}

RegisterClientIn are parameters for InvokeClient function.

Directories

Path Synopsis
Server-side for handling agent functions
Server-side for handling agent functions
+kubebuilder:validation:Optional
+kubebuilder:validation:Optional

Jump to

Keyboard shortcuts

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