internal

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMultiEvaluator

func NewMultiEvaluator(evaluators ...Evaluator) pb.FunctionEvaluatorServer

Types

type DockerConfig added in v1.4.0

type DockerConfig struct {
	Auths map[string]authn.AuthConfig `json:"auths"`
}

DockerConfig represents the structure of Docker config.json

type Evaluator

type Evaluator interface {
	EvaluateFunction(context.Context, *pb.EvaluateFunctionRequest) (*pb.EvaluateFunctionResponse, error)
}

func NewExecutableEvaluator

func NewExecutableEvaluator(o ExecutableEvaluatorOptions) (Evaluator, error)

func NewPodEvaluator

func NewPodEvaluator(o PodEvaluatorOptions) (Evaluator, error)

type ExecutableEvaluatorOptions added in v1.4.0

type ExecutableEvaluatorOptions struct {
	ConfigFileName   string // Path to the config file
	FunctionCacheDir string // Path to cached functions
}

type PodEvaluatorOptions added in v1.4.0

type PodEvaluatorOptions struct {
	PodNamespace               string        // Namespace to run KRM functions pods in
	WrapperServerImage         string        // Container image name of the wrapper server
	GcScanInterval             time.Duration // Time interval between Garbage Collector scans
	PodTTL                     time.Duration // Time-to-live for pods before GC
	PodCacheConfigFileName     string        // Path to the pod cache config file. The file is map of function name to TTL.
	FunctionPodTemplateName    string        // Configmap that contains a pod specification
	WarmUpPodCacheOnStartup    bool          // If true, pod-cache-config image pods will be deployed at startup
	EnablePrivateRegistries    bool          // If true enables the use of private registries and their authentication
	RegistryAuthSecretPath     string        // The path of the secret used for authenticating to custom registries
	RegistryAuthSecretName     string        // The name of the secret used for authenticating to custom registries
	EnablePrivateRegistriesTls bool          // If enabled, will prioritize use of user provided TLS secret when accessing registries
	TlsSecretPath              string        // The path of the secret used in tls configuration
	MaxGrpcMessageSize         int           // Maximum size of grpc messages in bytes
}

Jump to

Keyboard shortcuts

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