Function
WithRuntimeFactoryBuilder
(
name string,
builder func(configMap common.ConfigMap) (api.FunctionRuntimeFactory, error),
)
Source from the content-addressed store, hash-verified
| 131 | } |
| 132 | |
| 133 | func WithRuntimeFactoryBuilder( |
| 134 | name string, |
| 135 | builder func(configMap common.ConfigMap) (api.FunctionRuntimeFactory, error), |
| 136 | ) ServerOption { |
| 137 | return serverOptionFunc(func(o *serverOptions) (*serverOptions, error) { |
| 138 | o.runtimeFactoryBuilders[name] = builder |
| 139 | return o, nil |
| 140 | }) |
| 141 | } |
| 142 | |
| 143 | func WithRuntimeFactoryBuilders( |
| 144 | builder map[string]func(configMap common.ConfigMap) (api.FunctionRuntimeFactory, error), |