Documentation ¶
Overview ¶
+kubebuilder:validation:Optional
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FlowPreviewConfig ¶
type FlowPreviewConfig struct { // Enables the flow preview service. Enabled bool `json:"enabled" default:"true"` }
FlowPreviewConfig is the configuration for the flow control preview service. swagger:model +kubebuilder:object:generate=true
func (*FlowPreviewConfig) DeepCopy ¶
func (in *FlowPreviewConfig) DeepCopy() *FlowPreviewConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowPreviewConfig.
func (*FlowPreviewConfig) DeepCopyInto ¶
func (in *FlowPreviewConfig) DeepCopyInto(out *FlowPreviewConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HTTPRequestsPreviewRequest ¶ added in v0.19.0
type HTTPRequestsPreviewRequest struct {
// contains filtered or unexported fields
}
HTTPRequestsPreviewRequest holds the samples while the preview is being generated.
func (*HTTPRequestsPreviewRequest) AddHTTPRequestPreview ¶ added in v0.19.0
func (r *HTTPRequestsPreviewRequest) AddHTTPRequestPreview(request map[string]interface{})
AddHTTPRequestPreview adds a HTTP request preview to the response.
func (*HTTPRequestsPreviewRequest) GetFlowSelector ¶ added in v0.19.0
func (r *HTTPRequestsPreviewRequest) GetFlowSelector() *policylangv1.FlowSelector
GetFlowSelector returns the flow selector.
func (*HTTPRequestsPreviewRequest) GetPreviewID ¶ added in v0.19.0
func (r *HTTPRequestsPreviewRequest) GetPreviewID() iface.PreviewID
GetPreviewID returns the preview ID.
type Handler ¶
type Handler struct { flowpreviewv1.UnimplementedFlowPreviewServiceServer // contains filtered or unexported fields }
Handler implements flowpreview.v1 service.
func NewHandler ¶
func NewHandler(engine iface.Engine, classifier *classification.ClassificationEngine, agentInfo *agentinfo.AgentInfo, ) *Handler
NewHandler returns a new Handler.
func (*Handler) PreviewFlowLabels ¶
func (h *Handler) PreviewFlowLabels(ctx context.Context, req *flowpreviewv1.PreviewRequest) (*flowpreviewv1.PreviewFlowLabelsResponse, error)
PreviewFlowLabels implements flowpreview.v1.PreviewFlowLabels.
func (*Handler) PreviewHTTPRequests ¶ added in v0.19.0
func (h *Handler) PreviewHTTPRequests(ctx context.Context, req *flowpreviewv1.PreviewRequest) (*flowpreviewv1.PreviewHTTPRequestsResponse, error)
PreviewHTTPRequests implements flowpreview.v1.PreviewHTTPRequests.