|
@@ -39,8 +39,6 @@ type Config struct {
|
|
PluginInstalledPath string `envconfig:"PLUGIN_INSTALLED_PATH" validate:"required"` // where the plugin finally installed
|
|
PluginInstalledPath string `envconfig:"PLUGIN_INSTALLED_PATH" validate:"required"` // where the plugin finally installed
|
|
PluginPackageCachePath string `envconfig:"PLUGIN_PACKAGE_CACHE_PATH"` // where plugin packages stored
|
|
PluginPackageCachePath string `envconfig:"PLUGIN_PACKAGE_CACHE_PATH"` // where plugin packages stored
|
|
|
|
|
|
- ProcessCachingPath string `envconfig:"PROCESS_CACHING_PATH"`
|
|
|
|
-
|
|
|
|
PluginMaxExecutionTimeout int `envconfig:"PLUGIN_MAX_EXECUTION_TIMEOUT" validate:"required"`
|
|
PluginMaxExecutionTimeout int `envconfig:"PLUGIN_MAX_EXECUTION_TIMEOUT" validate:"required"`
|
|
|
|
|
|
// platform like local or aws lambda
|
|
// platform like local or aws lambda
|
|
@@ -124,10 +122,6 @@ func (c *Config) Validate() error {
|
|
if c.PluginWorkingPath == "" {
|
|
if c.PluginWorkingPath == "" {
|
|
return fmt.Errorf("plugin working path is empty")
|
|
return fmt.Errorf("plugin working path is empty")
|
|
}
|
|
}
|
|
-
|
|
|
|
- if c.ProcessCachingPath == "" {
|
|
|
|
- return fmt.Errorf("process caching path is empty")
|
|
|
|
- }
|
|
|
|
} else {
|
|
} else {
|
|
return fmt.Errorf("invalid platform")
|
|
return fmt.Errorf("invalid platform")
|
|
}
|
|
}
|