Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
suslovsergey committed Feb 9, 2022
1 parent 7b4141f commit 15dfc23
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions apisix/model/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,52 +54,52 @@ type PluginCommonInterface interface {

type PluginsType struct {
//Custom *[]PluginCustomType `tfsdk:"custom"`
BasicAuth *PluginBasicAuthType `tfsdk:"basic-auth"`
ConsumerRestriction *PluginConsumerRestrictionType `tfsdk:"consumer-restriction"`
BasicAuth *PluginBasicAuthType `tfsdk:"basic_auth"`
ConsumerRestriction *PluginConsumerRestrictionType `tfsdk:"consumer_restriction"`
Cors *PluginCorsType `tfsdk:"cors"`
ExtPluginPostReqType *PluginExtPluginPostReqType `tfsdk:"ext-plugin-post-req"`
ExtPluginPreReqType *PluginExtPluginPreReqType `tfsdk:"ext-plugin-pre-req"`
GELFUDPLogger *PluginGELFUDPLoggerType `tfsdk:"gelf-udp-logger"`
ExtPluginPostReqType *PluginExtPluginPostReqType `tfsdk:"ext_plugin_post_req"`
ExtPluginPreReqType *PluginExtPluginPreReqType `tfsdk:"ext_plugin_pre_req"`
GELFUDPLogger *PluginGELFUDPLoggerType `tfsdk:"gelf_udp_logger"`
GZIP *PluginGZIPType `tfsdk:"gzip"`
HTTPLogger *PluginHTTPLoggerType `tfsdk:"http-logger"`
HTTPLogger *PluginHTTPLoggerType `tfsdk:"http_logger"`
Headers *PluginHeadersType `tfsdk:"headers"`
IpRestriction *PluginIpRestrictionType `tfsdk:"ip-restriction"`
MultiResponseRewrite *PluginMultiResponseRewriteType `tfsdk:"multi-response-rewrite"`
IpRestriction *PluginIpRestrictionType `tfsdk:"ip_restriction"`
MultiResponseRewrite *PluginMultiResponseRewriteType `tfsdk:"multi_response_rewrite"`
Prometheus *PluginPrometheusType `tfsdk:"prometheus"`
ProxyCache *PluginProxyCacheType `tfsdk:"proxy-cache"`
ProxyRewrite *PluginProxyRewriteType `tfsdk:"proxy-rewrite"`
RealIP *PluginRealIPType `tfsdk:"real-ip"`
ProxyCache *PluginProxyCacheType `tfsdk:"proxy_cache"`
ProxyRewrite *PluginProxyRewriteType `tfsdk:"proxy_rewrite"`
RealIP *PluginRealIPType `tfsdk:"real_ip"`
Redirect *PluginRedirectType `tfsdk:"redirect"`
RedirectRegex *PluginRedirectRegexType `tfsdk:"redirect-regex"`
RequestId *PluginRequestIdType `tfsdk:"request-id"`
ResponseRewrite *PluginResponseRewriteType `tfsdk:"response-rewrite"`
ServerlessPostFunction *PluginServerlessPostFunctionType `tfsdk:"serverless-post-function"`
ServerlessPreFunction *PluginServerlessPreFunctionType `tfsdk:"serverless-pre-function"`
RedirectRegex *PluginRedirectRegexType `tfsdk:"redirect_regex"`
RequestId *PluginRequestIdType `tfsdk:"request_id"`
ResponseRewrite *PluginResponseRewriteType `tfsdk:"response_rewrite"`
ServerlessPostFunction *PluginServerlessPostFunctionType `tfsdk:"serverless_post_function"`
ServerlessPreFunction *PluginServerlessPreFunctionType `tfsdk:"serverless_pre_function"`
Syslog *PluginSyslogType `tfsdk:"syslog"`
}

var PluginsSchemaAttribute = tfsdk.SingleNestedAttributes(map[string]tfsdk.Attribute{
"basic-auth": PluginBasicAuthSchemaAttribute,
"consumer-restriction": PluginConsumerRestrictionSchemaAttribute,
"basic_auth": PluginBasicAuthSchemaAttribute,
"consumer_restriction": PluginConsumerRestrictionSchemaAttribute,
"cors": PluginCorsSchemaAttribute,
"ext-plugin-post-req": PluginExtPluginPostReqSchemaAttribute,
"ext-plugin-pre-req": PluginExtPluginPreReqSchemaAttribute,
"gelf-udp-logger": PluginGELFUDPLoggerSchemaAttribute,
"ext_plugin_post_req": PluginExtPluginPostReqSchemaAttribute,
"ext_plugin_pre_req": PluginExtPluginPreReqSchemaAttribute,
"gelf_udp_logger": PluginGELFUDPLoggerSchemaAttribute,
"gzip": PluginGZIPSchemaAttribute,
"headers": PluginHeadersSchemaAttribute,
"http-logger": PluginHTTPLoggerSchemaAttribute,
"ip-restriction": PluginIpRestrictionSchemaAttribute,
"multi-response-rewrite": PluginMultiResponseRewriteSchemaAttribute,
"http_logger": PluginHTTPLoggerSchemaAttribute,
"ip_restriction": PluginIpRestrictionSchemaAttribute,
"multi_response_rewrite": PluginMultiResponseRewriteSchemaAttribute,
"prometheus": PluginPrometheusSchemaAttribute,
"proxy-cache": PluginProxyCacheSchemaAttribute,
"proxy-rewrite": PluginProxyRewriteSchemaAttribute,
"real-ip": PluginRealIPSchemaAttribute,
"proxy_cache": PluginProxyCacheSchemaAttribute,
"proxy_rewrite": PluginProxyRewriteSchemaAttribute,
"real_ip": PluginRealIPSchemaAttribute,
"redirect": PluginRedirectSchemaAttribute,
"redirect-regex": PluginRedirectRegexSchemaAttribute,
"request-id": PluginRequestIdSchemaAttribute,
"response-rewrite": PluginResponseRewriteSchemaAttribute,
"serverless-post-function": PluginServerlessPostFunctionSchemaAttribute,
"serverless-pre-function": PluginServerlessPreFunctionSchemaAttribute,
"redirect_regex": PluginRedirectRegexSchemaAttribute,
"request_id": PluginRequestIdSchemaAttribute,
"response_rewrite": PluginResponseRewriteSchemaAttribute,
"serverless_post_function": PluginServerlessPostFunctionSchemaAttribute,
"serverless_pre_function": PluginServerlessPreFunctionSchemaAttribute,
"syslog": PluginSyslogSchemaAttribute,
//"custom": PluginCustomSchemaAttribute,
})

0 comments on commit 15dfc23

Please sign in to comment.