@@ -401,141 +401,141 @@ func (o *Output) httpPlugin(parent *params.PluginStore, loader plugins.SecretLoa
401401 return parent
402402}
403403
404- func (o * Output ) elasticsearchPluginCommon (common * ElasticsearchCommon , parent * params.PluginStore , loader plugins.SecretLoader ) (* params.PluginStore , error ) {
405- if common .Host != nil {
406- parent .InsertPairs ("host" , fmt .Sprint (* common .Host ))
404+ func (o * Output ) elasticsearchPluginCommon (cmn * ElasticsearchCommon , parent * params.PluginStore , loader plugins.SecretLoader ) (* params.PluginStore , error ) {
405+ if cmn .Host != nil {
406+ parent .InsertPairs ("host" , fmt .Sprint (* cmn .Host ))
407407 }
408408
409- if common .Port != nil {
410- parent .InsertPairs ("port" , fmt .Sprint (* common .Port ))
409+ if cmn .Port != nil {
410+ parent .InsertPairs ("port" , fmt .Sprint (* cmn .Port ))
411411 }
412412
413- if common .Hosts != nil {
414- parent .InsertPairs ("hosts" , fmt .Sprint (* common .Hosts ))
413+ if cmn .Hosts != nil {
414+ parent .InsertPairs ("hosts" , fmt .Sprint (* cmn .Hosts ))
415415 }
416416
417- if common .User != nil {
418- user , err := loader .LoadSecret (* common .User )
417+ if cmn .User != nil {
418+ user , err := loader .LoadSecret (* cmn .User )
419419 if err != nil {
420420 return nil , err
421421 }
422422 parent .InsertPairs ("user" , user )
423423 }
424424
425- if common .Password != nil {
426- pwd , err := loader .LoadSecret (* common .Password )
425+ if cmn .Password != nil {
426+ pwd , err := loader .LoadSecret (* cmn .Password )
427427 if err != nil {
428428 return nil , err
429429 }
430430 parent .InsertPairs ("password" , pwd )
431431 }
432432
433- if common .SslVerify != nil {
434- parent .InsertPairs ("ssl_verify" , fmt .Sprint (* common .SslVerify ))
433+ if cmn .SslVerify != nil {
434+ parent .InsertPairs ("ssl_verify" , fmt .Sprint (* cmn .SslVerify ))
435435 }
436436
437- if common .CAFile != nil {
438- parent .InsertPairs ("ca_file" , fmt .Sprint (* common .CAFile ))
437+ if cmn .CAFile != nil {
438+ parent .InsertPairs ("ca_file" , fmt .Sprint (* cmn .CAFile ))
439439 }
440440
441- if common .CloudAuth != nil {
442- cloudauth , err := loader .LoadSecret (* common .CloudAuth )
441+ if cmn .CloudAuth != nil {
442+ cloudauth , err := loader .LoadSecret (* cmn .CloudAuth )
443443 if err != nil {
444444 return nil , err
445445 }
446446 parent .InsertPairs ("cloud_auth" , cloudauth )
447447 }
448448
449- if common .CloudId != nil {
450- cloudid , err := loader .LoadSecret (* common .CloudId )
449+ if cmn .CloudId != nil {
450+ cloudid , err := loader .LoadSecret (* cmn .CloudId )
451451 if err != nil {
452452 return nil , err
453453 }
454454 parent .InsertPairs ("cloud_id" , cloudid )
455455 }
456456
457- if common .ClientCert != nil {
458- parent .InsertPairs ("client_cert" , fmt .Sprint (* common .ClientCert ))
457+ if cmn .ClientCert != nil {
458+ parent .InsertPairs ("client_cert" , fmt .Sprint (* cmn .ClientCert ))
459459 }
460460
461- if common .ClientKey != nil {
462- parent .InsertPairs ("client_key" , fmt .Sprint (* common .ClientKey ))
461+ if cmn .ClientKey != nil {
462+ parent .InsertPairs ("client_key" , fmt .Sprint (* cmn .ClientKey ))
463463 }
464464
465- if common .ClientKeyPassword != nil {
466- pwd , err := loader .LoadSecret (* common .ClientKeyPassword )
465+ if cmn .ClientKeyPassword != nil {
466+ pwd , err := loader .LoadSecret (* cmn .ClientKeyPassword )
467467 if err != nil {
468468 return nil , err
469469 }
470470 parent .InsertPairs ("client_key_pass" , pwd )
471471 }
472472
473- if common .Scheme != nil {
474- parent .InsertPairs ("scheme" , fmt .Sprint (* common .Scheme ))
473+ if cmn .Scheme != nil {
474+ parent .InsertPairs ("scheme" , fmt .Sprint (* cmn .Scheme ))
475475 }
476476
477- if common .Path != nil {
478- parent .InsertPairs ("path" , fmt .Sprint (* common .Path ))
477+ if cmn .Path != nil {
478+ parent .InsertPairs ("path" , fmt .Sprint (* cmn .Path ))
479479 }
480480
481- if common .TemplateOverwrite != nil {
482- parent .InsertPairs ("template_overwrite" , fmt .Sprint (* common .TemplateOverwrite ))
481+ if cmn .TemplateOverwrite != nil {
482+ parent .InsertPairs ("template_overwrite" , fmt .Sprint (* cmn .TemplateOverwrite ))
483483 }
484484
485- if common .MaxRetryPuttingTemplate != nil {
486- parent .InsertPairs ("max_retry_putting_template" , fmt .Sprint (* common .MaxRetryPuttingTemplate ))
485+ if cmn .MaxRetryPuttingTemplate != nil {
486+ parent .InsertPairs ("max_retry_putting_template" , fmt .Sprint (* cmn .MaxRetryPuttingTemplate ))
487487 }
488488
489- if common .FailOnPuttingTemplateRetryExceeded != nil {
490- parent .InsertPairs ("fail_on_putting_template_retry_exceed" , fmt .Sprint (* common .FailOnPuttingTemplateRetryExceeded ))
489+ if cmn .FailOnPuttingTemplateRetryExceeded != nil {
490+ parent .InsertPairs ("fail_on_putting_template_retry_exceed" , fmt .Sprint (* cmn .FailOnPuttingTemplateRetryExceeded ))
491491 }
492492
493- if common .ReconnectOnError != nil {
494- parent .InsertPairs ("reconnect_on_error" , fmt .Sprint (* common .ReconnectOnError ))
493+ if cmn .ReconnectOnError != nil {
494+ parent .InsertPairs ("reconnect_on_error" , fmt .Sprint (* cmn .ReconnectOnError ))
495495 }
496496
497- if common .ReloadAfter != nil {
498- parent .InsertPairs ("reload_after" , fmt .Sprint (* common .ReloadAfter ))
497+ if cmn .ReloadAfter != nil {
498+ parent .InsertPairs ("reload_after" , fmt .Sprint (* cmn .ReloadAfter ))
499499 }
500500
501- if common .ReloadConnections != nil {
502- parent .InsertPairs ("reload_connections" , fmt .Sprint (* common .ReloadConnections ))
501+ if cmn .ReloadConnections != nil {
502+ parent .InsertPairs ("reload_connections" , fmt .Sprint (* cmn .ReloadConnections ))
503503 }
504504
505- if common .ReloadOnFailure != nil {
506- parent .InsertPairs ("reload_on_failure" , fmt .Sprint (* common .ReloadOnFailure ))
505+ if cmn .ReloadOnFailure != nil {
506+ parent .InsertPairs ("reload_on_failure" , fmt .Sprint (* cmn .ReloadOnFailure ))
507507 }
508508
509- if common .RequestTimeout != nil {
510- parent .InsertPairs ("request_timeout" , fmt .Sprint (* common .RequestTimeout ))
509+ if cmn .RequestTimeout != nil {
510+ parent .InsertPairs ("request_timeout" , fmt .Sprint (* cmn .RequestTimeout ))
511511 }
512512
513- if common .SnifferClassName != nil {
514- parent .InsertPairs ("sniffer_class_name" , fmt .Sprint (* common .SnifferClassName ))
513+ if cmn .SnifferClassName != nil {
514+ parent .InsertPairs ("sniffer_class_name" , fmt .Sprint (* cmn .SnifferClassName ))
515515 }
516516
517- if common .SuppressTypeName != nil {
518- parent .InsertPairs ("suppress_type_name" , fmt .Sprint (* common .SuppressTypeName ))
517+ if cmn .SuppressTypeName != nil {
518+ parent .InsertPairs ("suppress_type_name" , fmt .Sprint (* cmn .SuppressTypeName ))
519519 }
520520
521- if common .EnableIlm != nil {
522- parent .InsertPairs ("enable_ilm" , fmt .Sprint (* common .EnableIlm ))
521+ if cmn .EnableIlm != nil {
522+ parent .InsertPairs ("enable_ilm" , fmt .Sprint (* cmn .EnableIlm ))
523523 }
524524
525- if common .IlmPolicyId != nil {
526- parent .InsertPairs ("ilm_policy_id" , fmt .Sprint (* common .IlmPolicyId ))
525+ if cmn .IlmPolicyId != nil {
526+ parent .InsertPairs ("ilm_policy_id" , fmt .Sprint (* cmn .IlmPolicyId ))
527527 }
528528
529- if common .IlmPolicy != nil {
530- parent .InsertPairs ("ilm_policy" , fmt .Sprint (* common .IlmPolicy ))
529+ if cmn .IlmPolicy != nil {
530+ parent .InsertPairs ("ilm_policy" , fmt .Sprint (* cmn .IlmPolicy ))
531531 }
532532
533- if common .IlmPolicyOverwrite != nil {
534- parent .InsertPairs ("ilm_policy_overwrite" , fmt .Sprint (* common .IlmPolicyOverwrite ))
533+ if cmn .IlmPolicyOverwrite != nil {
534+ parent .InsertPairs ("ilm_policy_overwrite" , fmt .Sprint (* cmn .IlmPolicyOverwrite ))
535535 }
536536
537- if common .LogEs400Reason != nil {
538- parent .InsertPairs ("log_es_400_reason" , fmt .Sprint (* common .LogEs400Reason ))
537+ if cmn .LogEs400Reason != nil {
538+ parent .InsertPairs ("log_es_400_reason" , fmt .Sprint (* cmn .LogEs400Reason ))
539539 }
540540
541541 return parent , nil
0 commit comments