Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPRequestsPreviewRequest ¶
type HTTPRequestsPreviewRequest struct {
// contains filtered or unexported fields
}
HTTPRequestsPreviewRequest holds the samples while the preview is being generated.
func (*HTTPRequestsPreviewRequest) AddHTTPRequestPreview ¶
func (r *HTTPRequestsPreviewRequest) AddHTTPRequestPreview(request map[string]interface{})
AddHTTPRequestPreview adds a HTTP request preview to the response.
func (*HTTPRequestsPreviewRequest) GetPreviewID ¶
func (r *HTTPRequestsPreviewRequest) GetPreviewID() iface.PreviewID
GetPreviewID returns the preview ID.
func (*HTTPRequestsPreviewRequest) GetSelectors ¶
func (r *HTTPRequestsPreviewRequest) GetSelectors() []*policylangv1.Selector
GetSelectors returns the flow selector.
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 ¶
func (h *Handler) PreviewHTTPRequests(ctx context.Context, req *flowpreviewv1.PreviewRequest) (*flowpreviewv1.PreviewHTTPRequestsResponse, error)
PreviewHTTPRequests implements flowpreview.v1.PreviewHTTPRequests.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.