Documentation ¶
Index ¶
- Constants
- func AddPodMetadataEnv(namespace string) []corev1.EnvVar
- func CleanDaprProxy(ctx context.Context, logger logr.Logger, c client.Client, ...) error
- func CreateComponents(ctx context.Context, logger logr.Logger, c client.Client, ...) error
- func CreateDaprProxy(ctx context.Context, logger logr.Logger, c client.Client, ...) error
- func CreateFunctionContextENV(ctx context.Context, logger logr.Logger, c client.Client, ...) ([]corev1.EnvVar, error)
- func GenOpenFunctionContextV1beta1(ctx context.Context, logger logr.Logger, c client.Client, ...) (string, error)
- func GenOpenFunctionContextV1beta2(ctx context.Context, logger logr.Logger, c client.Client, ...) (string, error)
- func GetDaprServiceEnabled(s *openfunction.Serving) bool
- func GetFunctionName(s *openfunction.Serving) string
- func GetProxyName(s *openfunction.Serving) string
- func NeedCreateDaprProxy(s *openfunction.Serving) bool
- func NeedCreateDaprSidecar(s *openfunction.Serving) bool
- type DaprServiceMode
Constants ¶
View Source
const ( FunctionContextV1beta1EnvName = "FUNC_CONTEXT" FunctionContextV1beta2EnvName = "FUNC_CONTEXT_V1BETA2" ServingLabel = "openfunction.io/serving" ProxyLabel = "openfunction.io/proxy" OpenfunctionManaged = "openfunction.io/managed" OpenfunctionDaprServiceMode = "openfunction.io/dapr-service-mode" OpenfunctionDaprServiceEnabled = "openfunction.io/enable-dapr" DefaultDaprProxyImage = "openfunction/dapr-proxy:v0.1.0" DaprEnabled = "dapr.io/enabled" DaprAppID = "dapr.io/app-id" DaprLogAsJSON = "dapr.io/log-as-json" DaprAppProtocol = "dapr.io/app-protocol" DaprAppPort = "dapr.io/app-port" DaprMetricsPort = "dapr.io/metrics-port" DaprListenAddresses = "dapr.io/sidecar-listen-addresses" DaprHostEnvVar = "DAPR_HOST" DaprSidecarIPEnvVar = "DAPR_SIDECAR_IP" DaprProtocolEnvVar = "APP_PROTOCOL" DaprProxyName = "dapr-proxy" DaprServiceModeStandalone DaprServiceMode = "standalone" DaprServiceModeSidecar DaprServiceMode = "sidecar" PluginsTracingAnnotation = "plugins.tracing" PluginsAnnotation = "plugins" )
Variables ¶
This section is empty.
Functions ¶
func AddPodMetadataEnv ¶
func CleanDaprProxy ¶
func CreateComponents ¶
func CreateDaprProxy ¶
func GetDaprServiceEnabled ¶
func GetDaprServiceEnabled(s *openfunction.Serving) bool
func GetFunctionName ¶
func GetFunctionName(s *openfunction.Serving) string
func GetProxyName ¶
func GetProxyName(s *openfunction.Serving) string
func NeedCreateDaprProxy ¶
func NeedCreateDaprProxy(s *openfunction.Serving) bool
func NeedCreateDaprSidecar ¶
func NeedCreateDaprSidecar(s *openfunction.Serving) bool
Types ¶
type DaprServiceMode ¶
type DaprServiceMode string
DaprServiceMode is the inject mode for Dapr sidecar
func GetDaprServiceMode ¶
func GetDaprServiceMode(s *openfunction.Serving) DaprServiceMode
Click to show internal directories.
Click to hide internal directories.