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 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
}
Click to show internal directories.
Click to hide internal directories.