preview

package
v0.18.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

+kubebuilder:validation:Optional

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Module provides preview handler and registers the service.

func Register

func Register(handler *Handler,
	server *grpc.Server,
	healthsrv *health.Server,
	unmarshaller cfg.Unmarshaller,
) error

Register registers the handler on grpc.Server.

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 Handler

type Handler struct {
	flowpreviewv1.UnimplementedFlowPreviewServiceServer
	// contains filtered or unexported fields
}

Handler implements flowpreview.v1 service.

func NewHandler

func NewHandler(engine iface.Engine,
	agentInfo *agentinfo.AgentInfo,
) *Handler

NewHandler returns a new Handler.

func (*Handler) PreviewFlowLabels

PreviewFlowLabels implements flowpreview.v1.PreviewFlowLabels.

Jump to

Keyboard shortcuts

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