Merge ~sergiodj/ubuntu/+source/telegraf:update-impish-1.18.1 into ~ubuntu-server/ubuntu/+source/telegraf:master

Proposed by Sergio Durigan Junior
Status: Merged
Merged at revision: 0b2db891666f75099e927746fdcf19f769653112
Proposed branch: ~sergiodj/ubuntu/+source/telegraf:update-impish-1.18.1
Merge into: ~ubuntu-server/ubuntu/+source/telegraf:master
Diff against target: 696649 lines (+601549/-46803)
2351 files modified
.circleci/config.yml (+137/-82)
.github/PULL_REQUEST_TEMPLATE.md (+0/-1)
.github/dependabot.yml (+6/-0)
.golangci.yml (+68/-0)
.lgtm.yml (+2/-0)
CHANGELOG.md (+120/-1)
CONTRIBUTING.md (+7/-1)
EXTERNAL_PLUGINS.md (+2/-0)
Makefile (+22/-9)
README.md (+11/-5)
agent/agent.go (+14/-8)
agent/tick.go (+12/-7)
agent/tick_test.go (+1/-3)
build_version.txt (+1/-1)
cmd/telegraf/telegraf.go (+3/-1)
config/aws/credentials.go (+2/-2)
config/config.go (+58/-11)
config/config_test.go (+36/-0)
debian/changelog (+9/-0)
debian/patches/CVE-2021-3121.patch (+2726/-0)
debian/patches/series (+1/-0)
debian/repack-telegraf-with-vendor.sh (+11/-6)
dev/null (+0/-1782)
docker-compose.yml (+3/-0)
docs/DATA_FORMATS_INPUT.md (+1/-0)
docs/DATA_FORMATS_OUTPUT.md (+1/-0)
docs/EXTERNAL_PLUGINS.md (+3/-2)
docs/FAQ.md (+0/-4)
docs/INTEGRATION_TESTS.md (+61/-0)
docs/LICENSE_OF_DEPENDENCIES.md (+27/-0)
etc/telegraf.conf (+520/-8)
go.mod (+33/-29)
go.sum (+184/-113)
info.plist (+16/-0)
internal/exec_unix.go (+1/-1)
internal/exec_windows.go (+1/-1)
internal/globpath/globpath.go (+7/-36)
internal/globpath/globpath_test.go (+35/-26)
internal/globpath/testdata/log[!.log (+0/-0)
internal/internal.go (+4/-6)
internal/internal_test.go (+5/-6)
internal/rotate/file_writer.go (+2/-9)
internal/snmp/config.go (+1/-1)
internal/snmp/wrapper.go (+25/-14)
logger/event_logger_test.go (+2/-2)
models/buffer.go (+1/-2)
models/running_output.go (+43/-43)
models/running_output_test.go (+2/-2)
models/running_processor.go (+16/-16)
plugin.go (+3/-1)
plugins/aggregators/all/all.go (+3/-0)
plugins/aggregators/basicstats/basicstats.go (+26/-26)
plugins/aggregators/derivative/README.md (+166/-0)
plugins/aggregators/derivative/derivative.go (+224/-0)
plugins/aggregators/derivative/derivative_test.go (+404/-0)
plugins/aggregators/quantile/README.md (+127/-0)
plugins/aggregators/quantile/algorithms.go (+110/-0)
plugins/aggregators/quantile/quantile.go (+165/-0)
plugins/aggregators/quantile/quantile_test.go (+635/-0)
plugins/common/kafka/config.go (+4/-5)
plugins/common/parallel/parallel_test.go (+1/-1)
plugins/common/shim/config.go (+3/-3)
plugins/inputs/activemq/activemq.go (+6/-6)
plugins/inputs/aerospike/aerospike_test.go (+11/-11)
plugins/inputs/all/all.go (+6/-0)
plugins/inputs/apache/apache.go (+7/-7)
plugins/inputs/bcache/bcache_test.go (+31/-31)
plugins/inputs/beanstalkd/beanstalkd.go (+5/-5)
plugins/inputs/beat/README.md (+143/-0)
plugins/inputs/beat/beat.go (+234/-0)
plugins/inputs/beat/beat6_info.json (+7/-0)
plugins/inputs/beat/beat6_stats.json (+137/-0)
plugins/inputs/beat/beat_test.go (+228/-0)
plugins/inputs/bind/bind.go (+4/-4)
plugins/inputs/bind/bind_test.go (+1/-1)
plugins/inputs/bind/json_stats.go (+5/-5)
plugins/inputs/bind/xml_stats_v2.go (+2/-2)
plugins/inputs/bind/xml_stats_v3.go (+5/-5)
plugins/inputs/bond/bond.go (+2/-4)
plugins/inputs/cassandra/cassandra.go (+23/-27)
plugins/inputs/ceph/ceph.go (+4/-4)
plugins/inputs/ceph/ceph_test.go (+2/-2)
plugins/inputs/cisco_telemetry_mdt/cisco_telemetry_mdt.go (+3/-3)
plugins/inputs/cloud_pubsub/pubsub.go (+2/-2)
plugins/inputs/cloud_pubsub/pubsub_test.go (+15/-15)
plugins/inputs/cloudwatch/README.md (+3/-0)
plugins/inputs/cloudwatch/cloudwatch.go (+20/-9)
plugins/inputs/cloudwatch/cloudwatch_test.go (+15/-0)
plugins/inputs/cpu/cpu.go (+21/-22)
plugins/inputs/csgo/README.md (+37/-0)
plugins/inputs/csgo/csgo.go (+192/-0)
plugins/inputs/csgo/csgo_test.go (+54/-0)
plugins/inputs/dcos/README.md (+0/-3)
plugins/inputs/directory_monitor/README.md (+48/-0)
plugins/inputs/directory_monitor/directory_monitor.go (+410/-0)
plugins/inputs/directory_monitor/directory_monitor_test.go (+135/-0)
plugins/inputs/disk/disk.go (+9/-9)
plugins/inputs/diskio/diskio.go (+29/-29)
plugins/inputs/diskio/diskio_linux.go (+32/-16)
plugins/inputs/diskio/diskio_linux_test.go (+23/-14)
plugins/inputs/diskio/diskio_other.go (+1/-1)
plugins/inputs/disque/disque.go (+16/-16)
plugins/inputs/disque/disque_test.go (+2/-2)
plugins/inputs/dns_query/dns_query.go (+9/-9)
plugins/inputs/dns_query/dns_query_test.go (+21/-11)
plugins/inputs/docker/README.md (+21/-4)
plugins/inputs/docker/docker.go (+157/-81)
plugins/inputs/docker/docker_test.go (+248/-1)
plugins/inputs/docker/stats_helpers.go (+1/-1)
plugins/inputs/docker_log/docker_log.go (+1/-2)
plugins/inputs/dovecot/dovecot.go (+1/-2)
plugins/inputs/dovecot/dovecot_test.go (+3/-3)
plugins/inputs/elasticsearch/README.md (+5/-0)
plugins/inputs/elasticsearch/elasticsearch.go (+155/-50)
plugins/inputs/elasticsearch/elasticsearch_test.go (+43/-0)
plugins/inputs/elasticsearch/testdata_test.go (+2002/-0)
plugins/inputs/exec/exec.go (+21/-26)
plugins/inputs/exec/exec_test.go (+8/-7)
plugins/inputs/filecount/filecount.go (+2/-2)
plugins/inputs/filestat/filestat.go (+21/-3)
plugins/inputs/filestat/filestat_test.go (+17/-0)
plugins/inputs/github/github.go (+5/-5)
plugins/inputs/graylog/graylog.go (+7/-7)
plugins/inputs/haproxy/haproxy.go (+26/-27)
plugins/inputs/hddtemp/go-hddtemp/hddtemp_test.go (+3/-3)
plugins/inputs/hddtemp/hddtemp.go (+2/-2)
plugins/inputs/http_response/http_response.go (+17/-17)
plugins/inputs/httpjson/httpjson.go (+13/-13)
plugins/inputs/httpjson/httpjson_test.go (+15/-15)
plugins/inputs/icinga2/icinga2.go (+5/-5)
plugins/inputs/infiniband/infiniband.go (+2/-2)
plugins/inputs/infiniband/infiniband_linux.go (+1/-3)
plugins/inputs/infiniband/infiniband_test.go (+2/-2)
plugins/inputs/influxdb_listener/influxdb_listener.go (+2/-2)
plugins/inputs/influxdb_v2_listener/README.md (+1/-1)
plugins/inputs/intel_powerstat/unit_converter.go (+2/-2)
plugins/inputs/intel_rdt/intel_rdt.go (+3/-4)
plugins/inputs/interrupts/interrupts.go (+2/-2)
plugins/inputs/interrupts/interrupts_test.go (+6/-6)
plugins/inputs/ipmi_sensor/connection.go (+15/-13)
plugins/inputs/ipmi_sensor/connection_test.go (+12/-0)
plugins/inputs/ipmi_sensor/ipmi.go (+13/-13)
plugins/inputs/ipmi_sensor/ipmi_test.go (+2/-2)
plugins/inputs/ipset/ipset.go (+10/-10)
plugins/inputs/ipset/ipset_test.go (+1/-1)
plugins/inputs/jenkins/client.go (+4/-8)
plugins/inputs/jolokia/jolokia.go (+17/-18)
plugins/inputs/jolokia/jolokia_test.go (+1/-1)
plugins/inputs/jolokia2/client.go (+20/-19)
plugins/inputs/jti_openconfig_telemetry/openconfig_telemetry.go (+8/-10)
plugins/inputs/jti_openconfig_telemetry/openconfig_telemetry_test.go (+6/-6)
plugins/inputs/kafka_consumer_legacy/kafka_consumer_legacy.go (+3/-3)
plugins/inputs/kapacitor/kapacitor.go (+2/-2)
plugins/inputs/kernel/kernel.go (+10/-10)
plugins/inputs/kernel/kernel_test.go (+15/-15)
plugins/inputs/kernel_vmstat/kernel_vmstat.go (+1/-1)
plugins/inputs/kernel_vmstat/kernel_vmstat_test.go (+8/-8)
plugins/inputs/kibana/README.md (+15/-0)
plugins/inputs/kibana/kibana.go (+6/-6)
plugins/inputs/kibana/test_environment/basic_kibana_telegraf.conf (+75/-0)
plugins/inputs/kibana/test_environment/docker-compose.yml (+48/-0)
plugins/inputs/kibana/test_environment/run_test_env.sh (+3/-0)
plugins/inputs/kube_inventory/README.md (+1/-5)
plugins/inputs/kubernetes/README.md (+0/-4)
plugins/inputs/kubernetes/kubernetes.go (+5/-5)
plugins/inputs/kubernetes/kubernetes_pods.go (+1/-1)
plugins/inputs/lanz/lanz.go (+10/-10)
plugins/inputs/lanz/lanz_test.go (+5/-5)
plugins/inputs/linux_sysctl_fs/linux_sysctl_fs.go (+2/-2)
plugins/inputs/logstash/logstash.go (+19/-19)
plugins/inputs/logstash/logstash_test.go (+12/-12)
plugins/inputs/lustre2/lustre2.go (+28/-40)
plugins/inputs/lustre2/lustre2_test.go (+25/-25)
plugins/inputs/mailchimp/chimp_api.go (+6/-6)
plugins/inputs/mailchimp/mailchimp.go (+6/-6)
plugins/inputs/mailchimp/mailchimp_test.go (+2/-2)
plugins/inputs/marklogic/marklogic.go (+2/-6)
plugins/inputs/mcrouter/mcrouter_test.go (+70/-21)
plugins/inputs/mem/memory.go (+7/-7)
plugins/inputs/memcached/memcached_test.go (+1/-1)
plugins/inputs/mesos/mesos.go (+2/-2)
plugins/inputs/mesos/mesos_test.go (+2/-10)
plugins/inputs/minecraft/client.go (+2/-2)
plugins/inputs/minecraft/client_test.go (+2/-2)
plugins/inputs/minecraft/internal/rcon/rcon.go (+6/-6)
plugins/inputs/minecraft/minecraft.go (+2/-2)
plugins/inputs/modbus/modbus.go (+32/-47)
plugins/inputs/modbus/modbus_test.go (+104/-2)
plugins/inputs/mongodb/mongodb.go (+4/-4)
plugins/inputs/mongodb/mongodb_server.go (+3/-3)
plugins/inputs/mongodb/mongodb_test.go (+6/-6)
plugins/inputs/monit/monit.go (+2/-4)
plugins/inputs/mqtt_consumer/mqtt_consumer.go (+1/-3)
plugins/inputs/mqtt_consumer/mqtt_consumer_test.go (+5/-0)
plugins/inputs/multifile/multifile.go (+2/-3)
plugins/inputs/mysql/mysql.go (+155/-143)
plugins/inputs/mysql/mysql_test.go (+8/-5)
plugins/inputs/net/net.go (+11/-11)
plugins/inputs/net/netstat.go (+5/-5)
plugins/inputs/nfsclient/README.md (+181/-0)
plugins/inputs/nfsclient/nfsclient.go (+507/-0)
plugins/inputs/nfsclient/nfsclient_test.go (+206/-0)
plugins/inputs/nfsclient/testdata/mountstats (+231/-0)
plugins/inputs/nginx/nginx.go (+4/-4)
plugins/inputs/nginx/nginx_test.go (+10/-10)
plugins/inputs/nginx_plus/nginx_plus.go (+6/-6)
plugins/inputs/nginx_plus/nginx_plus_test.go (+2/-2)
plugins/inputs/nginx_plus_api/nginx_plus_api.go (+11/-11)
plugins/inputs/nginx_plus_api/nginx_plus_api_metrics.go (+36/-36)
plugins/inputs/nginx_plus_api/nginx_plus_api_metrics_test.go (+24/-24)
plugins/inputs/nginx_plus_api/nginx_plus_api_types.go (+5/-5)
plugins/inputs/nginx_upstream_check/nginx_upstream_check.go (+6/-6)
plugins/inputs/nsd/nsd.go (+7/-7)
plugins/inputs/nsq/nsq.go (+2/-2)
plugins/inputs/nstat/nstat.go (+13/-13)
plugins/inputs/ntpq/ntpq.go (+6/-6)
plugins/inputs/opcua/opcua_client.go (+13/-12)
plugins/inputs/opcua/opcua_client_test.go (+2/-4)
plugins/inputs/openldap/openldap.go (+9/-9)
plugins/inputs/openldap/openldap_test.go (+13/-25)
plugins/inputs/opensmtpd/opensmtpd.go (+4/-5)
plugins/inputs/opensmtpd/opensmtpd_test.go (+2/-2)
plugins/inputs/openweathermap/openweathermap.go (+25/-25)
plugins/inputs/openweathermap/openweathermap_test.go (+14/-14)
plugins/inputs/passenger/README.md (+0/-3)
plugins/inputs/passenger/passenger.go (+69/-73)
plugins/inputs/passenger/passenger_test.go (+1/-1)
plugins/inputs/pgbouncer/pgbouncer_test.go (+4/-5)
plugins/inputs/phpfpm/child.go (+13/-13)
plugins/inputs/phpfpm/fcgi.go (+19/-19)
plugins/inputs/phpfpm/fcgi_client.go (+8/-8)
plugins/inputs/phpfpm/fcgi_test.go (+8/-8)
plugins/inputs/phpfpm/phpfpm.go (+32/-33)
plugins/inputs/phpfpm/phpfpm_test.go (+1/-1)
plugins/inputs/ping/README.md (+3/-12)
plugins/inputs/ping/ping.go (+22/-18)
plugins/inputs/ping/ping_test.go (+7/-2)
plugins/inputs/ping/ping_windows_test.go (+7/-0)
plugins/inputs/postgresql/postgresql.go (+6/-6)
plugins/inputs/postgresql/postgresql_test.go (+6/-6)
plugins/inputs/postgresql/service.go (+4/-3)
plugins/inputs/postgresql_extensible/postgresql_extensible.go (+29/-30)
plugins/inputs/postgresql_extensible/postgresql_extensible_test.go (+4/-4)
plugins/inputs/processes/processes_test.go (+1/-1)
plugins/inputs/procstat/native_finder.go (+1/-1)
plugins/inputs/procstat/native_finder_windows_test.go (+4/-4)
plugins/inputs/procstat/pgrep.go (+1/-1)
plugins/inputs/procstat/process.go (+5/-4)
plugins/inputs/procstat/procstat.go (+30/-25)
plugins/inputs/procstat/procstat_test.go (+19/-17)
plugins/inputs/prometheus/README.md (+21/-0)
plugins/inputs/prometheus/kubernetes.go (+176/-5)
plugins/inputs/prometheus/kubernetes_test.go (+59/-0)
plugins/inputs/prometheus/parser.go (+3/-3)
plugins/inputs/prometheus/prometheus.go (+90/-6)
plugins/inputs/prometheus/prometheus_test.go (+49/-1)
plugins/inputs/proxmox/proxmox.go (+51/-51)
plugins/inputs/proxmox/proxmox_test.go (+8/-8)
plugins/inputs/proxmox/structs.go (+8/-8)
plugins/inputs/rabbitmq/rabbitmq.go (+4/-4)
plugins/inputs/raindrops/raindrops.go (+23/-23)
plugins/inputs/raindrops/raindrops_test.go (+1/-1)
plugins/inputs/ravendb/README.md (+216/-0)
plugins/inputs/ravendb/ravendb.go (+425/-0)
plugins/inputs/ravendb/ravendb_dto.go (+199/-0)
plugins/inputs/ravendb/ravendb_test.go (+393/-0)
plugins/inputs/ravendb/testdata/collections_full.json (+19/-0)
plugins/inputs/ravendb/testdata/collections_min.json (+19/-0)
plugins/inputs/ravendb/testdata/databases_full.json (+49/-0)
plugins/inputs/ravendb/testdata/databases_min.json (+49/-0)
plugins/inputs/ravendb/testdata/indexes_full.json (+25/-0)
plugins/inputs/ravendb/testdata/indexes_min.json (+25/-0)
plugins/inputs/ravendb/testdata/server_full.json (+73/-0)
plugins/inputs/ravendb/testdata/server_min.json (+72/-0)
plugins/inputs/redfish/README.md (+17/-13)
plugins/inputs/redfish/redfish.go (+14/-5)
plugins/inputs/redfish/redfish_test.go (+82/-53)
plugins/inputs/redis/redis.go (+247/-17)
plugins/inputs/redis/redis_test.go (+258/-66)
plugins/inputs/rethinkdb/rethinkdb.go (+10/-10)
plugins/inputs/rethinkdb/rethinkdb_data.go (+2/-2)
plugins/inputs/rethinkdb/rethinkdb_data_test.go (+2/-2)
plugins/inputs/rethinkdb/rethinkdb_server.go (+20/-20)
plugins/inputs/rethinkdb/rethinkdb_test.go (+3/-3)
plugins/inputs/riak/riak.go (+6/-6)
plugins/inputs/riemann_listener/riemann_listener.go (+1/-3)
plugins/inputs/sflow/README.md (+0/-4)
plugins/inputs/sflow/types.go (+22/-4)
plugins/inputs/sflow/types_test.go (+43/-0)
plugins/inputs/snmp/README.md (+6/-1)
plugins/inputs/snmp/snmp.go (+24/-38)
plugins/inputs/snmp_legacy/snmp_legacy.go (+58/-58)
plugins/inputs/solr/solr.go (+2/-8)
plugins/inputs/sqlserver/README.md (+4/-4)
plugins/inputs/sqlserver/azuresqlqueries.go (+111/-92)
plugins/inputs/sqlserver/sqlqueriesV2.go (+51/-26)
plugins/inputs/sqlserver/sqlserver.go (+11/-7)
plugins/inputs/sqlserver/sqlserver_test.go (+93/-5)
plugins/inputs/sqlserver/sqlserverqueries.go (+182/-107)
plugins/inputs/stackdriver/stackdriver.go (+12/-12)
plugins/inputs/statsd/README.md (+12/-0)
plugins/inputs/statsd/statsd.go (+50/-12)
plugins/inputs/statsd/statsd_test.go (+59/-1)
plugins/inputs/swap/swap.go (+4/-4)
plugins/inputs/system/ps.go (+1/-1)
plugins/inputs/systemd_units/systemd_units_linux.go (+13/-13)
plugins/inputs/systemd_units/systemd_units_linux_test.go (+2/-2)
plugins/inputs/tail/README.md (+5/-1)
plugins/inputs/tail/tail.go (+20/-12)
plugins/inputs/tail/tail_test.go (+34/-10)
plugins/inputs/tcp_listener/tcp_listener.go (+14/-14)
plugins/inputs/tcp_listener/tcp_listener_test.go (+12/-12)
plugins/inputs/teamspeak/README.md (+2/-1)
plugins/inputs/teamspeak/teamspeak.go (+1/-0)
plugins/inputs/teamspeak/teamspeak_test.go (+1/-0)
plugins/inputs/tengine/tengine.go (+99/-99)
plugins/inputs/tengine/tengine_test.go (+5/-5)
plugins/inputs/tomcat/tomcat.go (+2/-2)
plugins/inputs/udp_listener/udp_listener.go (+15/-15)
plugins/inputs/udp_listener/udp_listener_test.go (+8/-8)
plugins/inputs/varnish/varnish.go (+1/-2)
plugins/inputs/vsphere/endpoint.go (+9/-9)
plugins/inputs/vsphere/vsphere.go (+2/-2)
plugins/inputs/webhooks/filestack/filestack_webhooks_events.go (+2/-2)
plugins/inputs/webhooks/mandrill/mandrill_webhooks_events.go (+2/-2)
plugins/inputs/webhooks/rollbar/rollbar_webhooks_events.go (+12/-12)
plugins/inputs/webhooks/webhooks.go (+15/-15)
plugins/inputs/win_perf_counters/win_perf_counters_integration_test.go (+15/-14)
plugins/inputs/win_services/win_services_integration_test.go (+3/-3)
plugins/inputs/x509_cert/x509_cert.go (+1/-1)
plugins/inputs/x509_cert/x509_cert_test.go (+3/-5)
plugins/inputs/zfs/zfs_linux_test.go (+4/-4)
plugins/inputs/zookeeper/zookeeper.go (+5/-6)
plugins/inputs/zookeeper/zookeeper_test.go (+1/-1)
plugins/outputs/all/all.go (+4/-0)
plugins/outputs/amon/amon.go (+11/-12)
plugins/outputs/amqp/amqp.go (+16/-16)
plugins/outputs/application_insights/application_insights.go (+23/-36)
plugins/outputs/application_insights/application_insights_test.go (+9/-0)
plugins/outputs/application_insights/mocks/diagnostics_message_subscriber.go (+1/-1)
plugins/outputs/application_insights/mocks/transmitter.go (+1/-1)
plugins/outputs/application_insights/transmitter.go (+4/-4)
plugins/outputs/azure_monitor/azure_monitor.go (+23/-23)
plugins/outputs/azure_monitor/azure_monitor_test.go (+8/-0)
plugins/outputs/bigquery/README.md (+56/-0)
plugins/outputs/bigquery/bigquery.go (+247/-0)
plugins/outputs/bigquery/bigquery_test.go (+165/-0)
plugins/outputs/cloud_pubsub/pubsub.go (+4/-4)
plugins/outputs/cloudwatch/cloudwatch.go (+4/-3)
plugins/outputs/cloudwatch/cloudwatch_test.go (+1/-2)
plugins/outputs/cratedb/cratedb.go (+2/-3)
plugins/outputs/cratedb/cratedb_test.go (+7/-9)
plugins/outputs/datadog/datadog.go (+15/-15)
plugins/outputs/datadog/datadog_test.go (+7/-7)
plugins/outputs/dynatrace/README.md (+2/-0)
plugins/outputs/dynatrace/dynatrace.go (+43/-21)
plugins/outputs/dynatrace/dynatrace_test.go (+4/-4)
plugins/outputs/elasticsearch/elasticsearch.go (+2/-2)
plugins/outputs/elasticsearch/elasticsearch_test.go (+4/-4)
plugins/outputs/exec/README.md (+2/-0)
plugins/outputs/exec/exec.go (+32/-3)
plugins/outputs/exec/exec_test.go (+4/-6)
plugins/outputs/file/file.go (+2/-2)
plugins/outputs/graphite/graphite.go (+19/-18)
plugins/outputs/graphite/graphite_test.go (+10/-1)
plugins/outputs/health/compares.go (+1/-2)
plugins/outputs/health/health.go (+6/-7)
plugins/outputs/health/health_test.go (+10/-0)
plugins/outputs/http/http.go (+4/-5)
plugins/outputs/influxdb/http.go (+47/-2)
plugins/outputs/influxdb/http_test.go (+20/-0)
plugins/outputs/influxdb_v2/http.go (+1/-2)
plugins/outputs/influxdb_v2/influxdb.go (+5/-6)
plugins/outputs/instrumental/instrumental.go (+17/-16)
plugins/outputs/instrumental/instrumental_test.go (+1/-1)
plugins/outputs/kafka/kafka_test.go (+3/-3)
plugins/outputs/kinesis/kinesis.go (+29/-23)
plugins/outputs/kinesis/kinesis_test.go (+590/-0)
plugins/outputs/librato/librato.go (+20/-27)
plugins/outputs/librato/librato_test.go (+9/-11)
plugins/outputs/logzio/logzio.go (+8/-8)
plugins/outputs/loki/README.md (+34/-0)
plugins/outputs/loki/loki.go (+209/-0)
plugins/outputs/loki/loki_test.go (+356/-0)
plugins/outputs/loki/stream.go (+70/-0)
plugins/outputs/loki/stream_test.go (+157/-0)
plugins/outputs/mqtt/mqtt_test.go (+1/-1)
plugins/outputs/nats/nats.go (+5/-1)
plugins/outputs/nats/nats_test.go (+1/-1)
plugins/outputs/newrelic/README.md (+4/-0)
plugins/outputs/newrelic/newrelic.go (+37/-7)
plugins/outputs/newrelic/newrelic_test.go (+8/-0)
plugins/outputs/nsq/nsq_test.go (+1/-1)
plugins/outputs/opentsdb/opentsdb.go (+31/-34)
plugins/outputs/opentsdb/opentsdb_http.go (+3/-3)
plugins/outputs/opentsdb/opentsdb_test.go (+36/-39)
plugins/outputs/prometheus_client/prometheus_client.go (+1/-2)
plugins/outputs/riemann/riemann.go (+14/-14)
plugins/outputs/riemann/riemann_test.go (+8/-1)
plugins/outputs/riemann_legacy/riemann.go (+10/-11)
plugins/outputs/riemann_legacy/riemann_test.go (+1/-3)
plugins/outputs/sensu/README.md (+97/-0)
plugins/outputs/sensu/sensu.go (+513/-0)
plugins/outputs/sensu/sensu_test.go (+210/-0)
plugins/outputs/signalfx/README.md (+23/-0)
plugins/outputs/signalfx/signalfx.go (+260/-0)
plugins/outputs/signalfx/signalfx_test.go (+703/-0)
plugins/outputs/socket_writer/socket_writer_test.go (+7/-7)
plugins/outputs/warp10/warp10.go (+4/-1)
plugins/outputs/warp10/warp10_test.go (+16/-0)
plugins/outputs/wavefront/wavefront.go (+23/-24)
plugins/outputs/yandex_cloud_monitoring/yandex_cloud_monitoring.go (+14/-14)
plugins/outputs/yandex_cloud_monitoring/yandex_cloud_monitoring_test.go (+7/-7)
plugins/parsers/graphite/config.go (+1/-5)
plugins/parsers/grok/influx_patterns.go (+1/-1)
plugins/parsers/grok/parser.go (+26/-26)
plugins/parsers/influx/escape.go (+3/-6)
plugins/parsers/influx/machine.go (+1661/-29940)
plugins/parsers/influx/machine.go.rl (+3/-3)
plugins/parsers/influx/parser.go (+24/-24)
plugins/parsers/prometheus/parser.go (+10/-11)
plugins/parsers/registry.go (+36/-0)
plugins/parsers/wavefront/element.go (+13/-13)
plugins/parsers/wavefront/parser.go (+7/-7)
plugins/parsers/wavefront/scanner.go (+14/-14)
plugins/parsers/wavefront/token.go (+16/-16)
plugins/parsers/xml/README.md (+345/-0)
plugins/parsers/xml/parser.go (+430/-0)
plugins/parsers/xml/parser_test.go (+1179/-0)
plugins/parsers/xml/testcases/earthquakes.conf (+44/-0)
plugins/parsers/xml/testcases/earthquakes.quakeml (+20/-0)
plugins/parsers/xml/testcases/multisensor.xml (+31/-0)
plugins/parsers/xml/testcases/multisensor_explicit_basic.conf (+17/-0)
plugins/parsers/xml/testcases/multisensor_explicit_batch.conf (+28/-0)
plugins/parsers/xml/testcases/multisensor_selection_batch.conf (+23/-0)
plugins/parsers/xml/testcases/openweathermap.conf (+28/-0)
plugins/parsers/xml/testcases/openweathermap_5d.xml (+38/-0)
plugins/processors/all/all.go (+2/-0)
plugins/processors/aws/ec2/README.md (+52/-0)
plugins/processors/aws/ec2/ec2.go (+310/-0)
plugins/processors/aws/ec2/ec2_test.go (+59/-0)
plugins/processors/converter/converter.go (+5/-10)
plugins/processors/enum/enum_test.go (+3/-3)
plugins/processors/execd/README.md (+1/-1)
plugins/processors/ifname/ifname.go (+38/-36)
plugins/processors/ifname/ifname_test.go (+4/-7)
plugins/processors/ifname/ttl_cache.go (+3/-3)
plugins/processors/port_name/port_name.go (+22/-22)
plugins/processors/reverse_dns/reversedns.go (+1/-1)
plugins/processors/starlark/README.md (+35/-2)
plugins/processors/starlark/builtins.go (+9/-9)
plugins/processors/starlark/field_dict.go (+48/-20)
plugins/processors/starlark/starlark.go (+22/-2)
plugins/processors/starlark/starlark_test.go (+158/-2)
plugins/processors/starlark/tag_dict.go (+9/-9)
plugins/processors/starlark/testdata/json_nested.star (+45/-0)
plugins/processors/starlark/testdata/schema_sizing.star (+96/-0)
plugins/processors/strings/strings.go (+4/-4)
plugins/processors/tag_limit/tag_limit.go (+2/-2)
plugins/processors/topk/topk.go (+21/-23)
plugins/serializers/graphite/graphite.go (+13/-14)
plugins/serializers/graphite/graphite_test.go (+24/-24)
plugins/serializers/influx/escape.go (+3/-6)
plugins/serializers/influx/influx.go (+5/-7)
plugins/serializers/influx/reader.go (+1/-1)
plugins/serializers/msgpack/README.md (+45/-0)
plugins/serializers/msgpack/metric.go (+104/-0)
plugins/serializers/msgpack/metric_gen.go (+417/-0)
plugins/serializers/msgpack/metric_gen_test.go (+236/-0)
plugins/serializers/msgpack/metric_test.go (+143/-0)
plugins/serializers/msgpack/msgpack.go (+44/-0)
plugins/serializers/msgpack/msgpack_test.go (+132/-0)
plugins/serializers/nowmetric/nowmetric.go (+2/-2)
plugins/serializers/prometheusremotewrite/prometheusremotewrite.go (+2/-2)
plugins/serializers/registry.go (+14/-7)
plugins/serializers/splunkmetric/splunkmetric.go (+3/-3)
plugins/serializers/wavefront/wavefront.go (+1/-1)
scripts/alpine.docker (+1/-1)
scripts/build.py (+0/-0)
scripts/buster.docker (+1/-1)
scripts/ci-1.15.docker (+1/-1)
scripts/ci-1.16.docker (+1/-1)
scripts/mac-signing.sh (+72/-0)
scripts/mac_installgo.sh (+27/-0)
scripts/release.sh (+1/-0)
scripts/telegraf_entry_mac (+13/-0)
scripts/windows-signing.ps1 (+29/-0)
selfstat/selfstat.go (+1/-1)
testutil/accumulator.go (+0/-1)
testutil/file.go (+84/-0)
testutil/testutil.go (+7/-0)
vendor/cloud.google.com/go/bigquery/.repo-metadata.json (+12/-0)
vendor/cloud.google.com/go/bigquery/CHANGES.md (+45/-0)
vendor/cloud.google.com/go/bigquery/LICENSE (+202/-0)
vendor/cloud.google.com/go/bigquery/README.md (+47/-0)
vendor/cloud.google.com/go/bigquery/bigquery.go (+156/-0)
vendor/cloud.google.com/go/bigquery/bigquery.replay (+28376/-0)
vendor/cloud.google.com/go/bigquery/copy.go (+107/-0)
vendor/cloud.google.com/go/bigquery/dataset.go (+730/-0)
vendor/cloud.google.com/go/bigquery/doc.go (+308/-0)
vendor/cloud.google.com/go/bigquery/error.go (+83/-0)
vendor/cloud.google.com/go/bigquery/external.go (+407/-0)
vendor/cloud.google.com/go/bigquery/extract.go (+119/-0)
vendor/cloud.google.com/go/bigquery/file.go (+137/-0)
vendor/cloud.google.com/go/bigquery/gcs.go (+75/-0)
vendor/cloud.google.com/go/bigquery/go.mod (+17/-0)
vendor/cloud.google.com/go/bigquery/go.sum (+176/-0)
vendor/cloud.google.com/go/bigquery/go_mod_tidy_hack.go (+22/-0)
vendor/cloud.google.com/go/bigquery/inserter.go (+247/-0)
vendor/cloud.google.com/go/bigquery/iterator.go (+222/-0)
vendor/cloud.google.com/go/bigquery/job.go (+917/-0)
vendor/cloud.google.com/go/bigquery/load.go (+158/-0)
vendor/cloud.google.com/go/bigquery/model.go (+269/-0)
vendor/cloud.google.com/go/bigquery/nulls.go (+348/-0)
vendor/cloud.google.com/go/bigquery/params.go (+370/-0)
vendor/cloud.google.com/go/bigquery/query.go (+334/-0)
vendor/cloud.google.com/go/bigquery/random.go (+56/-0)
vendor/cloud.google.com/go/bigquery/routine.go (+354/-0)
vendor/cloud.google.com/go/bigquery/schema.go (+536/-0)
vendor/cloud.google.com/go/bigquery/standardsql.go (+177/-0)
vendor/cloud.google.com/go/bigquery/table.go (+722/-0)
vendor/cloud.google.com/go/bigquery/value.go (+894/-0)
vendor/cloud.google.com/go/internal/.repo-metadata-full.json (+634/-0)
vendor/cloud.google.com/go/internal/README.md (+18/-0)
vendor/cloud.google.com/go/internal/annotate.go (+54/-0)
vendor/cloud.google.com/go/internal/fields/fields.go (+480/-0)
vendor/cloud.google.com/go/internal/fields/fold.go (+156/-0)
vendor/cloud.google.com/go/internal/retry.go (+54/-0)
vendor/cloud.google.com/go/internal/trace/trace.go (+109/-0)
vendor/cloud.google.com/go/pubsub/.repo-metadata.json (+12/-0)
vendor/cloud.google.com/go/pubsub/CHANGES.md (+0/-10)
vendor/cloud.google.com/go/pubsub/apiv1/.repo-metadata.json (+12/-0)
vendor/cloud.google.com/go/pubsub/apiv1/doc.go (+2/-2)
vendor/cloud.google.com/go/pubsub/apiv1/publisher_client.go (+1/-1)
vendor/cloud.google.com/go/pubsub/apiv1/subscriber_client.go (+1/-1)
vendor/cloud.google.com/go/pubsub/go.mod (+14/-16)
vendor/cloud.google.com/go/pubsub/go.sum (+5/-123)
vendor/cloud.google.com/go/pubsub/iterator.go (+15/-20)
vendor/cloud.google.com/go/pubsub/message.go (+5/-25)
vendor/cloud.google.com/go/pubsub/subscription.go (+8/-67)
vendor/cloud.google.com/go/pubsub/topic.go (+1/-1)
vendor/github.com/StackExchange/wmi/swbemservices.go (+1/-1)
vendor/github.com/StackExchange/wmi/wmi.go (+16/-1)
vendor/github.com/antchfx/xmlquery/.gitignore (+32/-0)
vendor/github.com/antchfx/xmlquery/.travis.yml (+17/-0)
vendor/github.com/antchfx/xmlquery/LICENSE (+17/-0)
vendor/github.com/antchfx/xmlquery/README.md (+262/-0)
vendor/github.com/antchfx/xmlquery/books.xml (+121/-0)
vendor/github.com/antchfx/xmlquery/cache.go (+43/-0)
vendor/github.com/antchfx/xmlquery/cached_reader.go (+69/-0)
vendor/github.com/antchfx/xmlquery/go.mod (+9/-0)
vendor/github.com/antchfx/xmlquery/go.sum (+14/-0)
vendor/github.com/antchfx/xmlquery/node.go (+226/-0)
vendor/github.com/antchfx/xmlquery/parse.go (+334/-0)
vendor/github.com/antchfx/xmlquery/query.go (+302/-0)
vendor/github.com/antchfx/xpath/.gitignore (+32/-0)
vendor/github.com/antchfx/xpath/.travis.yml (+12/-0)
vendor/github.com/antchfx/xpath/LICENSE (+17/-0)
vendor/github.com/antchfx/xpath/README.md (+173/-0)
vendor/github.com/antchfx/xpath/build.go (+539/-0)
vendor/github.com/antchfx/xpath/cache.go (+80/-0)
vendor/github.com/antchfx/xpath/func.go (+614/-0)
vendor/github.com/antchfx/xpath/func_go110.go (+16/-0)
vendor/github.com/antchfx/xpath/func_pre_go110.go (+22/-0)
vendor/github.com/antchfx/xpath/go.mod (+3/-0)
vendor/github.com/antchfx/xpath/operator.go (+305/-0)
vendor/github.com/antchfx/xpath/parse.go (+1186/-0)
vendor/github.com/antchfx/xpath/query.go (+923/-0)
vendor/github.com/antchfx/xpath/xpath.go (+161/-0)
vendor/github.com/aws/aws-sdk-go-v2/LICENSE.txt (+202/-0)
vendor/github.com/aws/aws-sdk-go-v2/NOTICE.txt (+3/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/config.go (+88/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/context.go (+22/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/credential_cache.go (+139/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/credentials.go (+127/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/doc.go (+62/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/endpoints.go (+113/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/errors.go (+9/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/from_ptr.go (+344/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/logging.go (+84/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/logging_generate.go (+77/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/metadata.go (+152/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/middleware.go (+168/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/request_id.go (+27/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/request_id_retriever.go (+49/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/user_agent.go (+256/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/ec2query/error_utils.go (+24/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/array.go (+61/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/encoder.go (+80/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/map.go (+78/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/middleware.go (+62/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/object.go (+56/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/value.go (+106/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/restjson/decoder_util.go (+85/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/xml/error_utils.go (+56/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/ratelimit/token_bucket.go (+51/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/ratelimit/token_rate_limit.go (+82/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/request.go (+25/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/doc.go (+80/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/errors.go (+20/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/jitter_backoff.go (+49/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/metadata.go (+52/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/middleware.go (+273/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/retry.go (+72/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/retryable_error.go (+186/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/standard.go (+210/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/retry/timeout_error.go (+52/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/retryer.go (+62/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/cache.go (+115/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/const.go (+36/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/header_rules.go (+82/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/headers.go (+67/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/hmac.go (+13/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/host.go (+75/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/time.go (+36/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/util.go (+64/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/middleware.go (+292/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/presign_middleware.go (+127/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/v4.go (+516/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/to_ptr.go (+280/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/client.go (+301/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/content_type.go (+42/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/response_error.go (+33/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/response_error_middleware.go (+54/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/timeout_read_closer.go (+104/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/types.go (+42/-0)
vendor/github.com/aws/aws-sdk-go-v2/aws/version.go (+8/-0)
vendor/github.com/aws/aws-sdk-go-v2/config/LICENSE.txt (+202/-0)
vendor/github.com/aws/aws-sdk-go-v2/config/config.go (+190/-0)
vendor/github.com/aws/aws-sdk-go-v2/config/doc.go (+20/-0)
vendor/github.com/aws/aws-sdk-go-v2/config/env_config.go (+341/-0)
vendor/github.com/aws/aws-sdk-go-v2/config/generate.go (+4/-0)
vendor/github.com/aws/aws-sdk-go-v2/config/go.mod (+25/-0)
vendor/github.com/aws/aws-sdk-go-v2/config/go.sum (+16/-0)
vendor/github.com/aws/aws-sdk-go-v2/config/load_options.go (+621/-0)
vendor/github.com/aws/aws-sdk-go-v2/config/local.go (+51/-0)
vendor/github.com/aws/aws-sdk-go-v2/config/provider.go (+427/-0)
vendor/github.com/aws/aws-sdk-go-v2/config/resolve.go (+227/-0)
vendor/github.com/aws/aws-sdk-go-v2/config/resolve_credentials.go (+440/-0)
vendor/github.com/aws/aws-sdk-go-v2/config/shared_config.go (+1121/-0)
vendor/github.com/aws/aws-sdk-go-v2/credentials/LICENSE.txt (+202/-0)
vendor/github.com/aws/aws-sdk-go-v2/credentials/doc.go (+4/-0)
vendor/github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds/doc.go (+58/-0)
vendor/github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds/provider.go (+174/-0)
vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/client.go (+148/-0)
vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/middleware.go (+120/-0)
vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/provider.go (+133/-0)
vendor/github.com/aws/aws-sdk-go-v2/credentials/go.mod (+23/-0)
vendor/github.com/aws/aws-sdk-go-v2/credentials/go.sum (+19/-0)
vendor/github.com/aws/aws-sdk-go-v2/credentials/processcreds/doc.go (+92/-0)
vendor/github.com/aws/aws-sdk-go-v2/credentials/processcreds/provider.go (+269/-0)
vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/doc.go (+63/-0)
vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/os.go (+9/-0)
vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/os_windows.go (+7/-0)
vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/provider.go (+184/-0)
vendor/github.com/aws/aws-sdk-go-v2/credentials/static_provider.go (+53/-0)
vendor/github.com/aws/aws-sdk-go-v2/credentials/stscreds/assume_role_provider.go (+285/-0)
vendor/github.com/aws/aws-sdk-go-v2/credentials/stscreds/web_identity_provider.go (+127/-0)
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/LICENSE.txt (+202/-0)
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_client.go (+257/-0)
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetDynamicData.go (+76/-0)
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetIAMInfo.go (+95/-0)
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetInstanceIdentityDocument.go (+102/-0)
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetMetadata.go (+76/-0)
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetRegion.go (+72/-0)
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetToken.go (+111/-0)
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetUserData.go (+60/-0)
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/doc.go (+6/-0)
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/go.mod (+11/-0)
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/go.sum (+15/-0)
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/request_middleware.go (+226/-0)
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/token_provider.go (+237/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/endpoints.go (+183/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/ast.go (+120/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/comma_token.go (+11/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/comment_token.go (+35/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/doc.go (+29/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/empty_token.go (+4/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/errors.go (+22/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/expression.go (+24/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/fuzz.go (+17/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/ini.go (+49/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/ini_lexer.go (+157/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/ini_parser.go (+356/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/literal_tokens.go (+334/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/newline_token.go (+30/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/number_helper.go (+152/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/op_tokens.go (+39/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/parse_error.go (+19/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/parse_stack.go (+60/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/sep_tokens.go (+41/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/skipper.go (+45/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/statement.go (+35/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/value_util.go (+284/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/visitor.go (+268/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/walker.go (+25/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/ws_token.go (+24/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/rand/rand.go (+33/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/sdk/interfaces.go (+9/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/sdk/time.go (+74/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/sdkio/byte.go (+12/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/sdkio/ringbuffer.go (+72/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/strings/strings.go (+11/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/sync/singleflight/LICENSE (+27/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/sync/singleflight/singleflight.go (+120/-0)
vendor/github.com/aws/aws-sdk-go-v2/internal/timeconv/duration.go (+13/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/LICENSE.txt (+202/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_client.go (+378/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptReservedInstancesExchangeQuote.go (+131/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayMulticastDomainAssociations.go (+124/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayPeeringAttachment.go (+124/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayVpcAttachment.go (+126/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptVpcEndpointConnections.go (+129/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptVpcPeeringConnection.go (+123/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AdvertiseByoipCidr.go (+133/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateAddress.go (+195/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateHosts.go (+163/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ApplySecurityGroupsToClientVpnTargetNetwork.go (+135/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignIpv6Addresses.go (+136/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignPrivateIpAddresses.go (+152/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateAddress.go (+170/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateClientVpnTargetNetwork.go (+181/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateDhcpOptions.go (+133/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateEnclaveCertificateIamRole.go (+145/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateIamInstanceProfile.go (+123/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateRouteTable.go (+140/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateSubnetCidrBlock.go (+127/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayMulticastDomain.go (+130/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayRouteTable.go (+129/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateVpcCidrBlock.go (+154/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachClassicLinkVpc.go (+141/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachInternetGateway.go (+126/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachNetworkInterface.go (+142/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVolume.go (+177/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVpnGateway.go (+133/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeClientVpnIngress.go (+187/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeSecurityGroupEgress.go (+154/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeSecurityGroupIngress.go (+175/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_BundleInstance.go (+135/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelBundleTask.go (+125/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelCapacityReservation.go (+128/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelConversionTask.go (+127/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelExportTask.go (+115/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelImportTask.go (+126/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelReservedInstancesListing.go (+122/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelSpotFleetRequests.go (+140/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelSpotInstanceRequests.go (+126/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ConfirmProductInstance.go (+134/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyFpgaImage.go (+138/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyImage.go (+184/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopySnapshot.go (+310/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservation.go (+233/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCarrierGateway.go (+171/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateClientVpnEndpoint.go (+247/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateClientVpnRoute.go (+195/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCustomerGateway.go (+171/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDefaultSubnet.go (+127/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDefaultVpc.go (+126/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDhcpOptions.go (+169/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateEgressOnlyInternetGateway.go (+138/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFleet.go (+203/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFlowLogs.go (+215/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFpgaImage.go (+149/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateImage.go (+168/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInstanceExportTask.go (+139/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInternetGateway.go (+121/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateKeyPair.go (+148/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplate.go (+150/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplateVersion.go (+158/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRoute.go (+134/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRouteTableVpcAssociation.go (+131/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateManagedPrefixList.go (+186/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNatGateway.go (+186/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkAcl.go (+130/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkAclEntry.go (+178/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInsightsPath.go (+192/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterface.go (+175/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterfacePermission.go (+138/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreatePlacementGroup.go (+137/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateReservedInstancesListing.go (+159/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRoute.go (+185/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteTable.go (+130/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSecurityGroup.go (+161/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshot.go (+210/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshots.go (+135/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSpotDatafeedSubscription.go (+135/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSubnet.go (+169/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTags.go (+137/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorFilter.go (+175/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorFilterRule.go (+214/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorSession.go (+215/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorTarget.go (+181/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGateway.go (+139/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayConnect.go (+136/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayConnectPeer.go (+154/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayMulticastDomain.go (+133/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPeeringAttachment.go (+145/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPrefixListReference.go (+135/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRoute.go (+135/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRouteTable.go (+126/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayVpcAttachment.go (+146/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVolume.go (+304/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpc.go (+173/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpoint.go (+192/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointConnectionNotification.go (+149/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointServiceConfiguration.go (+163/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcPeeringConnection.go (+145/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnConnection.go (+156/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnConnectionRoute.go (+123/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnGateway.go (+141/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCarrierGateway.go (+126/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteClientVpnEndpoint.go (+124/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteClientVpnRoute.go (+135/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCustomerGateway.go (+120/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteDhcpOptions.go (+121/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteEgressOnlyInternetGateway.go (+122/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFleets.go (+156/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFlowLogs.go (+123/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFpgaImage.go (+122/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteInternetGateway.go (+119/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteKeyPair.go (+116/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLaunchTemplate.go (+124/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLaunchTemplateVersions.go (+137/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRoute.go (+128/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRouteTableVpcAssociation.go (+123/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteManagedPrefixList.go (+124/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNatGateway.go (+124/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkAcl.go (+119/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkAclEntry.go (+129/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsAnalysis.go (+122/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsPath.go (+122/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInterface.go (+120/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInterfacePermission.go (+131/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeletePlacementGroup.go (+122/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteQueuedReservedInstances.go (+126/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRoute.go (+129/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteTable.go (+119/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSecurityGroup.go (+120/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSnapshot.go (+128/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSpotDatafeedSubscription.go (+111/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSubnet.go (+119/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTags.go (+132/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorFilter.go (+123/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorFilterRule.go (+122/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorSession.go (+122/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorTarget.go (+123/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGateway.go (+123/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayConnect.go (+124/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayConnectPeer.go (+123/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayMulticastDomain.go (+123/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPeeringAttachment.go (+123/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPrefixListReference.go (+129/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRoute.go (+128/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRouteTable.go (+124/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayVpcAttachment.go (+123/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVolume.go (+122/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpc.go (+122/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpointConnectionNotifications.go (+123/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpointServiceConfigurations.go (+127/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpoints.go (+129/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcPeeringConnection.go (+126/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnConnection.go (+129/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnConnectionRoute.go (+121/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnGateway.go (+122/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionByoipCidr.go (+128/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterImage.go (+126/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go (+119/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupMembers.go (+125/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupSources.go (+125/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAccountAttributes.go (+143/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddresses.go (+167/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAggregateIdFormat.go (+131/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAvailabilityZones.go (+175/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeBundleTasks.go (+356/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeByoipCidrs.go (+219/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityReservations.go (+303/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCarrierGateways.go (+239/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClassicLinkInstances.go (+243/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnAuthorizationRules.go (+235/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnConnections.go (+234/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnEndpoints.go (+227/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnRoutes.go (+234/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnTargetNetworks.go (+238/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCoipPools.go (+222/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeConversionTasks.go (+686/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCustomerGateways.go (+380/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeDhcpOptions.go (+242/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go (+229/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeElasticGpus.go (+155/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeExportImageTasks.go (+217/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeExportTasks.go (+463/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFastSnapshotRestores.go (+232/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleetHistory.go (+162/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleetInstances.go (+146/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleets.go (+238/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFlowLogs.go (+245/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFpgaImageAttribute.go (+128/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFpgaImages.go (+256/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHostReservationOfferings.go (+245/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHostReservations.go (+235/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHosts.go (+241/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIamInstanceProfileAssociations.go (+218/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIdFormat.go (+136/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIdentityIdFormat.go (+142/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImageAttribute.go (+156/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImages.go (+439/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImportImageTasks.go (+219/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImportSnapshotTasks.go (+220/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceAttribute.go (+185/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceCreditSpecifications.go (+243/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceEventNotificationAttributes.go (+116/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceStatus.go (+468/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTypeOfferings.go (+234/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTypes.go (+371/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstances.go (+967/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInternetGateways.go (+240/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpv6Pools.go (+226/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeKeyPairs.go (+144/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLaunchTemplateVersions.go (+271/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLaunchTemplates.go (+238/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations.go (+238/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTableVpcAssociations.go (+233/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTables.go (+231/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaceGroups.go (+228/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaces.go (+219/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGateways.go (+235/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeManagedPrefixLists.go (+228/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeMovingAddresses.go (+230/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNatGateways.go (+238/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkAcls.go (+276/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsAnalyses.go (+236/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsPaths.go (+231/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaceAttribute.go (+141/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfacePermissions.go (+232/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaces.go (+342/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePlacementGroups.go (+147/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePrefixLists.go (+224/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePrincipalIdFormat.go (+234/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePublicIpv4Pools.go (+222/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRegions.go (+140/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstances.go (+187/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesListings.go (+146/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesModifications.go (+251/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesOfferings.go (+312/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteTables.go (+296/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeScheduledInstanceAvailability.go (+259/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeScheduledInstances.go (+237/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroupReferences.go (+124/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroups.go (+323/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshotAttribute.go (+139/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshots.go (+494/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotDatafeedSubscription.go (+120/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetInstances.go (+141/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetRequestHistory.go (+162/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetRequests.go (+220/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotInstanceRequests.go (+365/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotPriceHistory.go (+263/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeStaleSecurityGroups.go (+225/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSubnets.go (+441/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTags.go (+236/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorFilters.go (+225/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorSessions.go (+247/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorTargets.go (+234/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayAttachments.go (+250/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayConnectPeers.go (+228/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayConnects.go (+236/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayMulticastDomains.go (+229/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayPeeringAttachments.go (+245/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayRouteTables.go (+236/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayVpcAttachments.go (+233/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGateways.go (+257/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumeAttribute.go (+137/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumeStatus.go (+299/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumes.go (+680/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumesModifications.go (+259/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcAttribute.go (+139/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLink.go (+134/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLinkDnsSupport.go (+217/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnectionNotifications.go (+237/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnections.go (+233/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServiceConfigurations.go (+242/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServicePermissions.go (+234/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServices.go (+157/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpoints.go (+247/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcPeeringConnections.go (+261/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcs.go (+437/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpnConnections.go (+586/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpnGateways.go (+159/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachClassicLinkVpc.go (+129/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachInternetGateway.go (+125/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachNetworkInterface.go (+137/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVolume.go (+167/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVpnGateway.go (+130/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableEbsEncryptionByDefault.go (+120/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableFastSnapshotRestores.go (+134/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableTransitGatewayRouteTablePropagation.go (+129/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVgwRoutePropagation.go (+125/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVpcClassicLink.go (+123/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVpcClassicLinkDnsSupport.go (+116/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateAddress.go (+121/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateClientVpnTargetNetwork.go (+143/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateEnclaveCertificateIamRole.go (+126/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateIamInstanceProfile.go (+118/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateRouteTable.go (+124/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateSubnetCidrBlock.go (+122/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayMulticastDomain.go (+124/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayRouteTable.go (+128/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateVpcCidrBlock.go (+128/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableEbsEncryptionByDefault.go (+125/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableFastSnapshotRestores.go (+141/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableTransitGatewayRouteTablePropagation.go (+129/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVgwRoutePropagation.go (+128/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVolumeIO.go (+119/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVpcClassicLink.go (+129/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVpcClassicLinkDnsSupport.go (+119/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportClientVpnClientCertificateRevocationList.go (+127/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportClientVpnClientConfiguration.go (+125/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportImage.go (+218/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportTransitGatewayRoutes.go (+166/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAssociatedEnclaveCertificateIamRoles.go (+123/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAssociatedIpv6PoolCidrs.go (+222/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCapacityReservationUsage.go (+176/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCoipPoolUsage.go (+149/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetConsoleOutput.go (+146/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetConsoleScreenshot.go (+130/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetDefaultCreditSpecification.go (+126/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetEbsDefaultKmsKeyId.go (+119/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetEbsEncryptionByDefault.go (+117/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetGroupsForCapacityReservation.go (+226/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetHostReservationPurchasePreview.go (+136/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetLaunchTemplateData.go (+129/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetManagedPrefixListAssociations.go (+222/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetManagedPrefixListEntries.go (+225/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetPasswordData.go (+313/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetReservedInstancesExchangeQuote.go (+157/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayAttachmentPropagations.go (+228/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayMulticastDomainAssociations.go (+235/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayPrefixListReferences.go (+246/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayRouteTableAssociations.go (+234/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayRouteTablePropagations.go (+234/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportClientVpnClientCertificateRevocationList.go (+134/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportImage.go (+244/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportInstance.go (+139/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportKeyPair.go (+148/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportSnapshot.go (+183/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportVolume.go (+141/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyAvailabilityZoneGroup.go (+135/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyCapacityReservation.go (+157/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyClientVpnEndpoint.go (+173/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyDefaultCreditSpecification.go (+141/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go (+152/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyFleet.go (+155/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyFpgaImageAttribute.go (+150/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyHosts.go (+153/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIdFormat.go (+145/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIdentityIdFormat.go (+150/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyImageAttribute.go (+156/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceAttribute.go (+205/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go (+131/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCreditSpecification.go (+137/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceEventStartTime.go (+134/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceMetadataOptions.go (+158/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstancePlacement.go (+163/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyLaunchTemplate.go (+134/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyManagedPrefixList.go (+138/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyNetworkInterfaceAttribute.go (+142/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyReservedInstances.go (+135/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySnapshotAttribute.go (+145/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySpotFleetRequest.go (+158/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySubnetAttribute.go (+135/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorFilterNetworkServices.go (+137/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorFilterRule.go (+158/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorSession.go (+153/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGateway.go (+131/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGatewayPrefixListReference.go (+135/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGatewayVpcAttachment.go (+133/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolume.go (+209/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolumeAttribute.go (+128/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcAttribute.go (+129/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpoint.go (+162/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointConnectionNotification.go (+131/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServiceConfiguration.go (+157/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServicePermissions.go (+137/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go (+157/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcTenancy.go (+136/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnConnection.go (+166/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnConnectionOptions.go (+140/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnTunnelCertificate.go (+128/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnTunnelOptions.go (+138/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MonitorInstances.go (+126/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MoveAddressToVpc.go (+132/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionByoipCidr.go (+155/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseHostReservation.go (+160/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseReservedInstancesOffering.go (+150/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseScheduledInstances.go (+173/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RebootInstances.go (+125/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterImage.go (+215/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterInstanceEventNotificationAttributes.go (+119/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterTransitGatewayMulticastGroupMembers.go (+133/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterTransitGatewayMulticastGroupSources.go (+133/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayMulticastDomainAssociations.go (+125/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayPeeringAttachment.go (+123/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayVpcAttachment.go (+126/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectVpcEndpointConnections.go (+129/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectVpcPeeringConnection.go (+126/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseAddress.go (+138/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseHosts.go (+129/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceIamInstanceProfileAssociation.go (+125/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceNetworkAclAssociation.go (+132/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceNetworkAclEntry.go (+164/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceRoute.go (+167/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceRouteTableAssociation.go (+138/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceTransitGatewayRoute.go (+135/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReportInstanceStatus.go (+172/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RequestSpotFleet.go (+142/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RequestSpotInstances.go (+208/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go (+120/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetFpgaImageAttribute.go (+127/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetImageAttribute.go (+127/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetInstanceAttribute.go (+133/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetNetworkInterfaceAttribute.go (+123/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetSnapshotAttribute.go (+128/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreAddressToClassic.go (+129/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreManagedPrefixListVersion.go (+134/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeClientVpnIngress.go (+136/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeSecurityGroupEgress.go (+166/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeSecurityGroupIngress.go (+177/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunInstances.go (+458/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunScheduledInstances.go (+184/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchLocalGatewayRoutes.go (+229/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchTransitGatewayMulticastGroups.go (+250/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchTransitGatewayRoutes.go (+167/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SendDiagnosticInterrupt.go (+132/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartInstances.go (+143/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartNetworkInsightsAnalysis.go (+174/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartVpcEndpointServicePrivateDnsVerification.go (+129/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StopInstances.go (+175/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_TerminateClientVpnConnections.go (+139/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_TerminateInstances.go (+142/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignIpv6Addresses.go (+124/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignPrivateIpAddresses.go (+119/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnmonitorInstances.go (+126/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsEgress.go (+136/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsIngress.go (+136/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_WithdrawByoipCidr.go (+126/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/deserializers.go (+119273/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/doc.go (+26/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/endpoints.go (+159/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go.mod (+14/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go.sum (+21/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/internal/endpoints/endpoints.go (+167/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/serializers.go (+44749/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/enums.go (+5352/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/types.go (+11612/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/validators.go (+12474/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/LICENSE.txt (+202/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/context.go (+48/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/doc.go (+3/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go.mod (+11/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go.sum (+15/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/middleware.go (+110/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sso/LICENSE.txt (+202/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sso/api_client.go (+258/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sso/api_op_GetRoleCredentials.go (+123/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sso/api_op_ListAccountRoles.go (+215/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sso/api_op_ListAccounts.go (+212/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sso/api_op_Logout.go (+107/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sso/deserializers.go (+1151/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sso/doc.go (+20/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sso/endpoints.go (+159/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sso/go.mod (+10/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sso/go.sum (+15/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sso/internal/endpoints/endpoints.go (+147/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sso/serializers.go (+276/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sso/types/errors.go (+79/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sso/types/types.go (+52/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sso/validators.go (+175/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/LICENSE.txt (+202/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_client.go (+358/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRole.go (+387/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoleWithSAML.go (+333/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoleWithWebIdentity.go (+359/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_DecodeAuthorizationMessage.go (+148/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetAccessKeyInfo.go (+137/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetCallerIdentity.go (+153/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetFederationToken.go (+310/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetSessionToken.go (+187/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/deserializers.go (+2468/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/doc.go (+12/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/endpoints.go (+159/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/go.mod (+13/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/go.sum (+15/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/internal/endpoints/endpoints.go (+169/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/serializers.go (+765/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/types/errors.go (+178/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/types/types.go (+110/-0)
vendor/github.com/aws/aws-sdk-go-v2/service/sts/validators.go (+305/-0)
vendor/github.com/aws/smithy-go/.gitignore (+22/-0)
vendor/github.com/aws/smithy-go/.travis.yml (+33/-0)
vendor/github.com/aws/smithy-go/CODE_OF_CONDUCT.md (+4/-0)
vendor/github.com/aws/smithy-go/CONTRIBUTING.md (+59/-0)
vendor/github.com/aws/smithy-go/LICENSE (+175/-0)
vendor/github.com/aws/smithy-go/Makefile (+9/-0)
vendor/github.com/aws/smithy-go/NOTICE (+1/-0)
vendor/github.com/aws/smithy-go/README.md (+10/-0)
vendor/github.com/aws/smithy-go/doc.go (+2/-0)
vendor/github.com/aws/smithy-go/document.go (+8/-0)
vendor/github.com/aws/smithy-go/encoding/doc.go (+4/-0)
vendor/github.com/aws/smithy-go/encoding/encoding.go (+40/-0)
vendor/github.com/aws/smithy-go/encoding/httpbinding/encode.go (+105/-0)
vendor/github.com/aws/smithy-go/encoding/httpbinding/header.go (+112/-0)
vendor/github.com/aws/smithy-go/encoding/httpbinding/path_replace.go (+108/-0)
vendor/github.com/aws/smithy-go/encoding/httpbinding/query.go (+97/-0)
vendor/github.com/aws/smithy-go/encoding/httpbinding/uri.go (+98/-0)
vendor/github.com/aws/smithy-go/encoding/xml/array.go (+49/-0)
vendor/github.com/aws/smithy-go/encoding/xml/constants.go (+10/-0)
vendor/github.com/aws/smithy-go/encoding/xml/doc.go (+49/-0)
vendor/github.com/aws/smithy-go/encoding/xml/element.go (+91/-0)
vendor/github.com/aws/smithy-go/encoding/xml/encoder.go (+51/-0)
vendor/github.com/aws/smithy-go/encoding/xml/error_utils.go (+51/-0)
vendor/github.com/aws/smithy-go/encoding/xml/escape.go (+121/-0)
vendor/github.com/aws/smithy-go/encoding/xml/map.go (+53/-0)
vendor/github.com/aws/smithy-go/encoding/xml/value.go (+302/-0)
vendor/github.com/aws/smithy-go/encoding/xml/xml_decoder.go (+154/-0)
vendor/github.com/aws/smithy-go/errors.go (+137/-0)
vendor/github.com/aws/smithy-go/go.mod (+5/-0)
vendor/github.com/aws/smithy-go/go.sum (+4/-0)
vendor/github.com/aws/smithy-go/io/byte.go (+12/-0)
vendor/github.com/aws/smithy-go/io/doc.go (+2/-0)
vendor/github.com/aws/smithy-go/io/reader.go (+16/-0)
vendor/github.com/aws/smithy-go/io/ringbuffer.go (+89/-0)
vendor/github.com/aws/smithy-go/logging/logger.go (+74/-0)
vendor/github.com/aws/smithy-go/middleware/doc.go (+67/-0)
vendor/github.com/aws/smithy-go/middleware/logging.go (+46/-0)
vendor/github.com/aws/smithy-go/middleware/metadata.go (+52/-0)
vendor/github.com/aws/smithy-go/middleware/middleware.go (+71/-0)
vendor/github.com/aws/smithy-go/middleware/ordered_group.go (+268/-0)
vendor/github.com/aws/smithy-go/middleware/stack.go (+209/-0)
vendor/github.com/aws/smithy-go/middleware/stack_values.go (+100/-0)
vendor/github.com/aws/smithy-go/middleware/step_build.go (+211/-0)
vendor/github.com/aws/smithy-go/middleware/step_deserialize.go (+217/-0)
vendor/github.com/aws/smithy-go/middleware/step_finalize.go (+211/-0)
vendor/github.com/aws/smithy-go/middleware/step_initialize.go (+211/-0)
vendor/github.com/aws/smithy-go/middleware/step_serialize.go (+219/-0)
vendor/github.com/aws/smithy-go/ptr/doc.go (+5/-0)
vendor/github.com/aws/smithy-go/ptr/from_ptr.go (+566/-0)
vendor/github.com/aws/smithy-go/ptr/gen_scalars.go (+81/-0)
vendor/github.com/aws/smithy-go/ptr/to_ptr.go (+470/-0)
vendor/github.com/aws/smithy-go/rand/doc.go (+3/-0)
vendor/github.com/aws/smithy-go/rand/rand.go (+31/-0)
vendor/github.com/aws/smithy-go/rand/uuid.go (+72/-0)
vendor/github.com/aws/smithy-go/time/time.go (+80/-0)
vendor/github.com/aws/smithy-go/transport/http/checksum_middleware.go (+65/-0)
vendor/github.com/aws/smithy-go/transport/http/client.go (+120/-0)
vendor/github.com/aws/smithy-go/transport/http/doc.go (+5/-0)
vendor/github.com/aws/smithy-go/transport/http/headerlist.go (+90/-0)
vendor/github.com/aws/smithy-go/transport/http/host.go (+53/-0)
vendor/github.com/aws/smithy-go/transport/http/internal/io/safe.go (+75/-0)
vendor/github.com/aws/smithy-go/transport/http/md5_checksum.go (+25/-0)
vendor/github.com/aws/smithy-go/transport/http/middleware_close_response_body.go (+69/-0)
vendor/github.com/aws/smithy-go/transport/http/middleware_content_length.go (+90/-0)
vendor/github.com/aws/smithy-go/transport/http/middleware_headers.go (+88/-0)
vendor/github.com/aws/smithy-go/transport/http/middleware_http_logging.go (+73/-0)
vendor/github.com/aws/smithy-go/transport/http/middleware_metadata.go (+51/-0)
vendor/github.com/aws/smithy-go/transport/http/request.go (+148/-0)
vendor/github.com/aws/smithy-go/transport/http/response.go (+34/-0)
vendor/github.com/aws/smithy-go/transport/http/user_agent.go (+37/-0)
vendor/github.com/aws/smithy-go/validation.go (+140/-0)
vendor/github.com/aws/smithy-go/waiter/logger.go (+36/-0)
vendor/github.com/aws/smithy-go/waiter/waiter.go (+66/-0)
vendor/github.com/bmatcuk/doublestar/v3/.gitignore (+32/-0)
vendor/github.com/bmatcuk/doublestar/v3/.travis.yml (+20/-0)
vendor/github.com/bmatcuk/doublestar/v3/LICENSE (+22/-0)
vendor/github.com/bmatcuk/doublestar/v3/README.md (+147/-0)
vendor/github.com/bmatcuk/doublestar/v3/UPGRADING.md (+21/-0)
vendor/github.com/bmatcuk/doublestar/v3/doublestar.go (+631/-0)
vendor/github.com/bmatcuk/doublestar/v3/go.mod (+3/-0)
vendor/github.com/caio/go-tdigest/CONTRIBUTING.md (+1/-2)
vendor/github.com/caio/go-tdigest/README.md (+0/-1)
vendor/github.com/caio/go-tdigest/options.go (+2/-2)
vendor/github.com/caio/go-tdigest/serialization.go (+31/-37)
vendor/github.com/caio/go-tdigest/summary.go (+9/-9)
vendor/github.com/caio/go-tdigest/tdigest.go (+10/-11)
vendor/github.com/coreos/etcd/LICENSE (+202/-0)
vendor/github.com/coreos/etcd/NOTICE (+5/-0)
vendor/github.com/coreos/etcd/auth/authpb/auth.pb.go (+972/-0)
vendor/github.com/coreos/etcd/auth/authpb/auth.proto (+37/-0)
vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/etcdserver.pb.go (+1034/-0)
vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/etcdserver.proto (+34/-0)
vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/raft_internal.pb.go (+2427/-0)
vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/raft_internal.proto (+74/-0)
vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/raft_internal_stringer.go (+183/-0)
vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.pb.go (+24010/-0)
vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.proto (+1075/-0)
vendor/github.com/coreos/etcd/mvcc/mvccpb/kv.pb.go (+830/-0)
vendor/github.com/coreos/etcd/mvcc/mvccpb/kv.proto (+49/-0)
vendor/github.com/coreos/etcd/version/version.go (+56/-0)
vendor/github.com/coreos/go-semver/LICENSE (+202/-0)
vendor/github.com/coreos/go-semver/NOTICE (+5/-0)
vendor/github.com/coreos/go-semver/semver/semver.go (+296/-0)
vendor/github.com/coreos/go-semver/semver/sort.go (+38/-0)
vendor/github.com/echlebek/timeproxy/.gitignore (+12/-0)
vendor/github.com/echlebek/timeproxy/LICENSE (+21/-0)
vendor/github.com/echlebek/timeproxy/doc.go (+3/-0)
vendor/github.com/echlebek/timeproxy/time.go (+265/-0)
vendor/github.com/eclipse/paho.mqtt.golang/LICENSE (+12/-79)
vendor/github.com/eclipse/paho.mqtt.golang/README.md (+121/-16)
vendor/github.com/eclipse/paho.mqtt.golang/client.go (+588/-306)
vendor/github.com/eclipse/paho.mqtt.golang/components.go (+1/-0)
vendor/github.com/eclipse/paho.mqtt.golang/filestore.go (+8/-6)
vendor/github.com/eclipse/paho.mqtt.golang/go.mod (+8/-0)
vendor/github.com/eclipse/paho.mqtt.golang/go.sum (+8/-0)
vendor/github.com/eclipse/paho.mqtt.golang/memstore.go (+1/-1)
vendor/github.com/eclipse/paho.mqtt.golang/messageids.go (+64/-5)
vendor/github.com/eclipse/paho.mqtt.golang/net.go (+365/-256)
vendor/github.com/eclipse/paho.mqtt.golang/netconn.go (+91/-0)
vendor/github.com/eclipse/paho.mqtt.golang/options.go (+54/-11)
vendor/github.com/eclipse/paho.mqtt.golang/options_reader.go (+18/-0)
vendor/github.com/eclipse/paho.mqtt.golang/packets/connack.go (+1/-4)
vendor/github.com/eclipse/paho.mqtt.golang/packets/connect.go (+1/-4)
vendor/github.com/eclipse/paho.mqtt.golang/packets/disconnect.go (+1/-3)
vendor/github.com/eclipse/paho.mqtt.golang/packets/packets.go (+11/-11)
vendor/github.com/eclipse/paho.mqtt.golang/packets/pingreq.go (+1/-3)
vendor/github.com/eclipse/paho.mqtt.golang/packets/pingresp.go (+1/-3)
vendor/github.com/eclipse/paho.mqtt.golang/packets/puback.go (+1/-4)
vendor/github.com/eclipse/paho.mqtt.golang/packets/pubcomp.go (+1/-4)
vendor/github.com/eclipse/paho.mqtt.golang/packets/publish.go (+2/-7)
vendor/github.com/eclipse/paho.mqtt.golang/packets/pubrec.go (+1/-4)
vendor/github.com/eclipse/paho.mqtt.golang/packets/pubrel.go (+1/-4)
vendor/github.com/eclipse/paho.mqtt.golang/packets/suback.go (+1/-4)
vendor/github.com/eclipse/paho.mqtt.golang/packets/subscribe.go (+1/-4)
vendor/github.com/eclipse/paho.mqtt.golang/packets/unsuback.go (+1/-4)
vendor/github.com/eclipse/paho.mqtt.golang/packets/unsubscribe.go (+1/-4)
vendor/github.com/eclipse/paho.mqtt.golang/ping.go (+9/-4)
vendor/github.com/eclipse/paho.mqtt.golang/router.go (+43/-53)
vendor/github.com/eclipse/paho.mqtt.golang/token.go (+26/-10)
vendor/github.com/eclipse/paho.mqtt.golang/topic.go (+9/-5)
vendor/github.com/eclipse/paho.mqtt.golang/websocket.go (+109/-0)
vendor/github.com/go-ole/go-ole/.travis.yml (+3/-4)
vendor/github.com/go-ole/go-ole/README.md (+3/-3)
vendor/github.com/go-ole/go-ole/com.go (+27/-12)
vendor/github.com/go-ole/go-ole/com_func.go (+1/-1)
vendor/github.com/go-ole/go-ole/go.mod (+3/-0)
vendor/github.com/go-ole/go-ole/idispatch_windows.go (+3/-0)
vendor/github.com/go-ole/go-ole/safearray_func.go (+6/-6)
vendor/github.com/go-ole/go-ole/safearray_windows.go (+4/-4)
vendor/github.com/go-ole/go-ole/safearrayconversion.go (+19/-19)
vendor/github.com/go-ole/go-ole/variant.go (+2/-2)
vendor/github.com/go-ole/go-ole/variant_date_386.go (+22/-0)
vendor/github.com/go-ole/go-ole/variant_date_amd64.go (+20/-0)
vendor/github.com/go-ole/go-ole/variant_ppc64le.go (+12/-0)
vendor/github.com/go-ping/ping/README.md (+10/-3)
vendor/github.com/go-ping/ping/ping.go (+49/-17)
vendor/github.com/go-stack/stack/.travis.yml (+15/-0)
vendor/github.com/go-stack/stack/LICENSE.md (+21/-0)
vendor/github.com/go-stack/stack/README.md (+38/-0)
vendor/github.com/go-stack/stack/go.mod (+1/-0)
vendor/github.com/go-stack/stack/stack.go (+400/-0)
vendor/github.com/gogo/googleapis/LICENSE (+203/-0)
vendor/github.com/gogo/googleapis/google/api/annotations.pb.go (+56/-0)
vendor/github.com/gogo/googleapis/google/api/annotations.proto (+31/-0)
vendor/github.com/gogo/googleapis/google/api/http.pb.go (+2424/-0)
vendor/github.com/gogo/googleapis/google/api/http.proto (+376/-0)
vendor/github.com/gogo/protobuf/gogoproto/Makefile (+37/-0)
vendor/github.com/gogo/protobuf/gogoproto/doc.go (+169/-0)
vendor/github.com/gogo/protobuf/gogoproto/gogo.pb.go (+874/-0)
vendor/github.com/gogo/protobuf/gogoproto/gogo.pb.golden (+45/-0)
vendor/github.com/gogo/protobuf/gogoproto/gogo.proto (+144/-0)
vendor/github.com/gogo/protobuf/gogoproto/helper.go (+415/-0)
vendor/github.com/gogo/protobuf/jsonpb/jsonpb.go (+1435/-0)
vendor/github.com/gogo/protobuf/proto/encode.go (+2/-0)
vendor/github.com/gogo/protobuf/proto/lib.go (+13/-7)
vendor/github.com/gogo/protobuf/proto/properties.go (+41/-30)
vendor/github.com/gogo/protobuf/proto/table_marshal.go (+10/-7)
vendor/github.com/gogo/protobuf/proto/table_merge.go (+19/-0)
vendor/github.com/gogo/protobuf/proto/table_unmarshal.go (+13/-9)
vendor/github.com/gogo/protobuf/proto/text.go (+4/-2)
vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/Makefile (+36/-0)
vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/descriptor.go (+118/-0)
vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/descriptor.pb.go (+2865/-0)
vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/descriptor_gostring.gen.go (+752/-0)
vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/helper.go (+390/-0)
vendor/github.com/gogo/protobuf/types/any.pb.go (+17/-43)
vendor/github.com/gogo/protobuf/types/api.pb.go (+17/-43)
vendor/github.com/gogo/protobuf/types/duration.pb.go (+17/-43)
vendor/github.com/gogo/protobuf/types/empty.pb.go (+17/-43)
vendor/github.com/gogo/protobuf/types/field_mask.pb.go (+17/-43)
vendor/github.com/gogo/protobuf/types/source_context.pb.go (+17/-43)
vendor/github.com/gogo/protobuf/types/struct.pb.go (+423/-210)
vendor/github.com/gogo/protobuf/types/timestamp.pb.go (+23/-47)
vendor/github.com/gogo/protobuf/types/type.pb.go (+17/-43)
vendor/github.com/gogo/protobuf/types/wrappers.pb.go (+17/-43)
vendor/github.com/google/go-cmp/cmp/cmpopts/equate.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/cmpopts/ignore.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/cmpopts/sort.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/cmpopts/struct_filter.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/cmpopts/xform.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/compare.go (+3/-3)
vendor/github.com/google/go-cmp/cmp/export_panic.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/export_unsafe.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/internal/diff/debug_enable.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/internal/diff/diff.go (+28/-22)
vendor/github.com/google/go-cmp/cmp/internal/flags/flags.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_legacy.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_recent.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/internal/function/func.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/internal/value/name.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/internal/value/pointer_purego.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/internal/value/pointer_unsafe.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/internal/value/sort.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/internal/value/zero.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/options.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/path.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/report.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/report_compare.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/report_references.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/report_reflect.go (+3/-1)
vendor/github.com/google/go-cmp/cmp/report_slices.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/report_text.go (+1/-1)
vendor/github.com/google/go-cmp/cmp/report_value.go (+1/-1)
vendor/github.com/gopcua/opcua/client.go (+10/-71)
vendor/github.com/gopcua/opcua/id/id_gen.go (+10719/-0)
vendor/github.com/gopcua/opcua/node.go (+1/-3)
vendor/github.com/gopcua/opcua/uacp/conn.go (+2/-0)
vendor/github.com/gopcua/opcua/uapolicy/securitypolicy.go (+13/-0)
vendor/github.com/gopcua/opcua/uasc/secure_channel.go (+532/-563)
vendor/github.com/gopcua/opcua/uasc/secure_channel_crypto.go (+5/-108)
vendor/github.com/gopcua/opcua/uasc/secure_channel_instance.go (+226/-0)
vendor/github.com/gorilla/websocket/.gitignore (+25/-0)
vendor/github.com/gorilla/websocket/AUTHORS (+9/-0)
vendor/github.com/gorilla/websocket/LICENSE (+22/-0)
vendor/github.com/gorilla/websocket/README.md (+64/-0)
vendor/github.com/gorilla/websocket/client.go (+395/-0)
vendor/github.com/gorilla/websocket/client_clone.go (+16/-0)
vendor/github.com/gorilla/websocket/client_clone_legacy.go (+38/-0)
vendor/github.com/gorilla/websocket/compression.go (+148/-0)
vendor/github.com/gorilla/websocket/conn.go (+1201/-0)
vendor/github.com/gorilla/websocket/conn_write.go (+15/-0)
vendor/github.com/gorilla/websocket/conn_write_legacy.go (+18/-0)
vendor/github.com/gorilla/websocket/doc.go (+227/-0)
vendor/github.com/gorilla/websocket/go.mod (+3/-0)
vendor/github.com/gorilla/websocket/go.sum (+0/-0)
vendor/github.com/gorilla/websocket/join.go (+42/-0)
vendor/github.com/gorilla/websocket/json.go (+60/-0)
vendor/github.com/gorilla/websocket/mask.go (+54/-0)
vendor/github.com/gorilla/websocket/mask_safe.go (+15/-0)
vendor/github.com/gorilla/websocket/prepared.go (+102/-0)
vendor/github.com/gorilla/websocket/proxy.go (+77/-0)
vendor/github.com/gorilla/websocket/server.go (+363/-0)
vendor/github.com/gorilla/websocket/trace.go (+19/-0)
vendor/github.com/gorilla/websocket/trace_17.go (+12/-0)
vendor/github.com/gorilla/websocket/util.go (+283/-0)
vendor/github.com/gorilla/websocket/x_net_proxy.go (+473/-0)
vendor/github.com/gosnmp/gosnmp/AUTHORS.md (+2/-1)
vendor/github.com/gosnmp/gosnmp/CHANGELOG.md (+17/-0)
vendor/github.com/gosnmp/gosnmp/Dockerfile (+8/-2)
vendor/github.com/gosnmp/gosnmp/Makefile (+1/-1)
vendor/github.com/gosnmp/gosnmp/README.md (+8/-7)
vendor/github.com/gosnmp/gosnmp/RELEASE.md (+23/-0)
vendor/github.com/gosnmp/gosnmp/asn1ber_string.go (+29/-1)
vendor/github.com/gosnmp/gosnmp/build_tests.sh (+13/-1)
vendor/github.com/gosnmp/gosnmp/go.mod (+1/-1)
vendor/github.com/gosnmp/gosnmp/go.sum (+6/-0)
vendor/github.com/gosnmp/gosnmp/gosnmp.go (+87/-32)
vendor/github.com/gosnmp/gosnmp/helper.go (+6/-5)
vendor/github.com/gosnmp/gosnmp/interface.go (+8/-9)
vendor/github.com/gosnmp/gosnmp/marshal.go (+119/-46)
vendor/github.com/gosnmp/gosnmp/snmperror_string.go (+25/-0)
vendor/github.com/gosnmp/gosnmp/snmpv3authprotocol_string.go (+5/-5)
vendor/github.com/gosnmp/gosnmp/v3.go (+6/-6)
vendor/github.com/gosnmp/gosnmp/v3_usm.go (+8/-8)
vendor/github.com/gosnmp/gosnmp/walk.go (+55/-1)
vendor/github.com/jaegertracing/jaeger/LICENSE (+201/-0)
vendor/github.com/jaegertracing/jaeger/NOTICE (+7/-0)
vendor/github.com/jaegertracing/jaeger/model/dependencies.go (+29/-0)
vendor/github.com/jaegertracing/jaeger/model/doc.go (+17/-0)
vendor/github.com/jaegertracing/jaeger/model/hash.go (+37/-0)
vendor/github.com/jaegertracing/jaeger/model/ids.go (+254/-0)
vendor/github.com/jaegertracing/jaeger/model/keyvalue.go (+223/-0)
vendor/github.com/jaegertracing/jaeger/model/model.pb.go (+3402/-0)
vendor/github.com/jaegertracing/jaeger/model/process.go (+46/-0)
vendor/github.com/jaegertracing/jaeger/model/sort.go (+112/-0)
vendor/github.com/jaegertracing/jaeger/model/span.go (+153/-0)
vendor/github.com/jaegertracing/jaeger/model/spanref.go (+72/-0)
vendor/github.com/jaegertracing/jaeger/model/time.go (+44/-0)
vendor/github.com/jaegertracing/jaeger/model/trace.go (+34/-0)
vendor/github.com/james4k/rcon/rcon.go (+223/-0)
vendor/github.com/json-iterator/go/.codecov.yml (+3/-0)
vendor/github.com/json-iterator/go/.gitignore (+4/-0)
vendor/github.com/json-iterator/go/.travis.yml (+14/-0)
vendor/github.com/json-iterator/go/Gopkg.lock (+21/-0)
vendor/github.com/json-iterator/go/Gopkg.toml (+26/-0)
vendor/github.com/json-iterator/go/LICENSE (+21/-0)
vendor/github.com/json-iterator/go/README.md (+87/-0)
vendor/github.com/json-iterator/go/adapter.go (+150/-0)
vendor/github.com/json-iterator/go/any.go (+325/-0)
vendor/github.com/json-iterator/go/any_array.go (+278/-0)
vendor/github.com/json-iterator/go/any_bool.go (+137/-0)
vendor/github.com/json-iterator/go/any_float.go (+83/-0)
vendor/github.com/json-iterator/go/any_int32.go (+74/-0)
vendor/github.com/json-iterator/go/any_int64.go (+74/-0)
vendor/github.com/json-iterator/go/any_invalid.go (+82/-0)
vendor/github.com/json-iterator/go/any_nil.go (+69/-0)
vendor/github.com/json-iterator/go/any_number.go (+123/-0)
vendor/github.com/json-iterator/go/any_object.go (+374/-0)
vendor/github.com/json-iterator/go/any_str.go (+166/-0)
vendor/github.com/json-iterator/go/any_uint32.go (+74/-0)
vendor/github.com/json-iterator/go/any_uint64.go (+74/-0)
vendor/github.com/json-iterator/go/build.sh (+12/-0)
vendor/github.com/json-iterator/go/config.go (+375/-0)
vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md (+7/-0)
vendor/github.com/json-iterator/go/go.mod (+11/-0)
vendor/github.com/json-iterator/go/go.sum (+14/-0)
vendor/github.com/json-iterator/go/iter.go (+349/-0)
vendor/github.com/json-iterator/go/iter_array.go (+64/-0)
vendor/github.com/json-iterator/go/iter_float.go (+339/-0)
vendor/github.com/json-iterator/go/iter_int.go (+345/-0)
vendor/github.com/json-iterator/go/iter_object.go (+267/-0)
vendor/github.com/json-iterator/go/iter_skip.go (+130/-0)
vendor/github.com/json-iterator/go/iter_skip_sloppy.go (+163/-0)
vendor/github.com/json-iterator/go/iter_skip_strict.go (+99/-0)
vendor/github.com/json-iterator/go/iter_str.go (+215/-0)
vendor/github.com/json-iterator/go/jsoniter.go (+18/-0)
vendor/github.com/json-iterator/go/pool.go (+42/-0)
vendor/github.com/json-iterator/go/reflect.go (+337/-0)
vendor/github.com/json-iterator/go/reflect_array.go (+104/-0)
vendor/github.com/json-iterator/go/reflect_dynamic.go (+70/-0)
vendor/github.com/json-iterator/go/reflect_extension.go (+483/-0)
vendor/github.com/json-iterator/go/reflect_json_number.go (+112/-0)
vendor/github.com/json-iterator/go/reflect_json_raw_message.go (+60/-0)
vendor/github.com/json-iterator/go/reflect_map.go (+346/-0)
vendor/github.com/json-iterator/go/reflect_marshaler.go (+225/-0)
vendor/github.com/json-iterator/go/reflect_native.go (+453/-0)
vendor/github.com/json-iterator/go/reflect_optional.go (+133/-0)
vendor/github.com/json-iterator/go/reflect_slice.go (+99/-0)
vendor/github.com/json-iterator/go/reflect_struct_decoder.go (+1092/-0)
vendor/github.com/json-iterator/go/reflect_struct_encoder.go (+211/-0)
vendor/github.com/json-iterator/go/stream.go (+211/-0)
vendor/github.com/json-iterator/go/stream_float.go (+111/-0)
vendor/github.com/json-iterator/go/stream_int.go (+190/-0)
vendor/github.com/json-iterator/go/stream_str.go (+372/-0)
vendor/github.com/json-iterator/go/test.sh (+12/-0)
vendor/github.com/konsorten/go-windows-terminal-sequences/README.md (+2/-0)
vendor/github.com/konsorten/go-windows-terminal-sequences/sequences.go (+1/-2)
vendor/github.com/konsorten/go-windows-terminal-sequences/sequences_dummy.go (+11/-0)
vendor/github.com/kubernetes/apimachinery/pkg/fields/doc.go (+19/-0)
vendor/github.com/kubernetes/apimachinery/pkg/fields/fields.go (+62/-0)
vendor/github.com/kubernetes/apimachinery/pkg/fields/requirements.go (+30/-0)
vendor/github.com/kubernetes/apimachinery/pkg/fields/selector.go (+476/-0)
vendor/github.com/kubernetes/apimachinery/pkg/labels/doc.go (+19/-0)
vendor/github.com/kubernetes/apimachinery/pkg/labels/labels.go (+181/-0)
vendor/github.com/kubernetes/apimachinery/pkg/labels/selector.go (+891/-0)
vendor/github.com/kubernetes/apimachinery/pkg/labels/zz_generated.deepcopy.go (+42/-0)
vendor/github.com/mailru/easyjson/.travis.yml (+1/-1)
vendor/github.com/mailru/easyjson/Makefile (+4/-1)
vendor/github.com/mailru/easyjson/README.md (+3/-0)
vendor/github.com/mailru/easyjson/jlexer/lexer.go (+14/-8)
vendor/github.com/modern-go/concurrent/.gitignore (+1/-0)
vendor/github.com/modern-go/concurrent/.travis.yml (+14/-0)
vendor/github.com/modern-go/concurrent/LICENSE (+201/-0)
vendor/github.com/modern-go/concurrent/README.md (+49/-0)
vendor/github.com/modern-go/concurrent/executor.go (+14/-0)
vendor/github.com/modern-go/concurrent/go_above_19.go (+15/-0)
vendor/github.com/modern-go/concurrent/go_below_19.go (+33/-0)
vendor/github.com/modern-go/concurrent/log.go (+13/-0)
vendor/github.com/modern-go/concurrent/test.sh (+12/-0)
vendor/github.com/modern-go/concurrent/unbounded_executor.go (+119/-0)
vendor/github.com/modern-go/reflect2/.gitignore (+2/-0)
vendor/github.com/modern-go/reflect2/.travis.yml (+15/-0)
vendor/github.com/modern-go/reflect2/Gopkg.lock (+15/-0)
vendor/github.com/modern-go/reflect2/Gopkg.toml (+35/-0)
vendor/github.com/modern-go/reflect2/LICENSE (+201/-0)
vendor/github.com/modern-go/reflect2/README.md (+71/-0)
vendor/github.com/modern-go/reflect2/go_above_17.go (+8/-0)
vendor/github.com/modern-go/reflect2/go_above_19.go (+14/-0)
vendor/github.com/modern-go/reflect2/go_below_17.go (+9/-0)
vendor/github.com/modern-go/reflect2/go_below_19.go (+14/-0)
vendor/github.com/modern-go/reflect2/reflect2.go (+298/-0)
vendor/github.com/modern-go/reflect2/reflect2_amd64.s (+0/-0)
vendor/github.com/modern-go/reflect2/reflect2_kind.go (+30/-0)
vendor/github.com/modern-go/reflect2/relfect2_386.s (+0/-0)
vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s (+0/-0)
vendor/github.com/modern-go/reflect2/relfect2_arm.s (+0/-0)
vendor/github.com/modern-go/reflect2/relfect2_arm64.s (+0/-0)
vendor/github.com/modern-go/reflect2/relfect2_mips64x.s (+0/-0)
vendor/github.com/modern-go/reflect2/relfect2_mipsx.s (+0/-0)
vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s (+0/-0)
vendor/github.com/modern-go/reflect2/relfect2_s390x.s (+0/-0)
vendor/github.com/modern-go/reflect2/safe_field.go (+58/-0)
vendor/github.com/modern-go/reflect2/safe_map.go (+101/-0)
vendor/github.com/modern-go/reflect2/safe_slice.go (+92/-0)
vendor/github.com/modern-go/reflect2/safe_struct.go (+29/-0)
vendor/github.com/modern-go/reflect2/safe_type.go (+78/-0)
vendor/github.com/modern-go/reflect2/test.sh (+12/-0)
vendor/github.com/modern-go/reflect2/type_map.go (+113/-0)
vendor/github.com/modern-go/reflect2/unsafe_array.go (+65/-0)
vendor/github.com/modern-go/reflect2/unsafe_eface.go (+59/-0)
vendor/github.com/modern-go/reflect2/unsafe_field.go (+74/-0)
vendor/github.com/modern-go/reflect2/unsafe_iface.go (+64/-0)
vendor/github.com/modern-go/reflect2/unsafe_link.go (+70/-0)
vendor/github.com/modern-go/reflect2/unsafe_map.go (+138/-0)
vendor/github.com/modern-go/reflect2/unsafe_ptr.go (+46/-0)
vendor/github.com/modern-go/reflect2/unsafe_slice.go (+177/-0)
vendor/github.com/modern-go/reflect2/unsafe_struct.go (+59/-0)
vendor/github.com/modern-go/reflect2/unsafe_type.go (+85/-0)
vendor/github.com/opentracing/opentracing-go/.gitignore (+1/-13)
vendor/github.com/opentracing/opentracing-go/.travis.yml (+14/-8)
vendor/github.com/opentracing/opentracing-go/CHANGELOG.md (+35/-3)
vendor/github.com/opentracing/opentracing-go/LICENSE (+201/-21)
vendor/github.com/opentracing/opentracing-go/Makefile (+4/-16)
vendor/github.com/opentracing/opentracing-go/README.md (+28/-4)
vendor/github.com/opentracing/opentracing-go/ext/tags.go (+14/-2)
vendor/github.com/opentracing/opentracing-go/globaltracer.go (+14/-4)
vendor/github.com/opentracing/opentracing-go/gocontext.go (+11/-8)
vendor/github.com/opentracing/opentracing-go/log/field.go (+24/-0)
vendor/github.com/opentracing/opentracing-go/propagation.go (+7/-7)
vendor/github.com/opentracing/opentracing-go/span.go (+4/-0)
vendor/github.com/opentracing/opentracing-go/tracer.go (+2/-3)
vendor/github.com/philhofer/fwd/LICENSE.md (+7/-0)
vendor/github.com/philhofer/fwd/README.md (+315/-0)
vendor/github.com/philhofer/fwd/reader.go (+383/-0)
vendor/github.com/philhofer/fwd/writer.go (+236/-0)
vendor/github.com/philhofer/fwd/writer_appengine.go (+5/-0)
vendor/github.com/philhofer/fwd/writer_unsafe.go (+18/-0)
vendor/github.com/robertkrimen/otto/.gitignore (+5/-0)
vendor/github.com/robertkrimen/otto/DESIGN.markdown (+1/-0)
vendor/github.com/robertkrimen/otto/LICENSE (+7/-0)
vendor/github.com/robertkrimen/otto/Makefile (+63/-0)
vendor/github.com/robertkrimen/otto/README.markdown (+871/-0)
vendor/github.com/robertkrimen/otto/ast/README.markdown (+1068/-0)
vendor/github.com/robertkrimen/otto/ast/comments.go (+278/-0)
vendor/github.com/robertkrimen/otto/ast/node.go (+515/-0)
vendor/github.com/robertkrimen/otto/ast/walk.go (+217/-0)
vendor/github.com/robertkrimen/otto/builtin.go (+354/-0)
vendor/github.com/robertkrimen/otto/builtin_array.go (+684/-0)
vendor/github.com/robertkrimen/otto/builtin_boolean.go (+28/-0)
vendor/github.com/robertkrimen/otto/builtin_date.go (+615/-0)
vendor/github.com/robertkrimen/otto/builtin_error.go (+126/-0)
vendor/github.com/robertkrimen/otto/builtin_function.go (+129/-0)
vendor/github.com/robertkrimen/otto/builtin_json.go (+299/-0)
vendor/github.com/robertkrimen/otto/builtin_math.go (+151/-0)
vendor/github.com/robertkrimen/otto/builtin_number.go (+100/-0)
vendor/github.com/robertkrimen/otto/builtin_object.go (+289/-0)
vendor/github.com/robertkrimen/otto/builtin_regexp.go (+65/-0)
vendor/github.com/robertkrimen/otto/builtin_string.go (+500/-0)
vendor/github.com/robertkrimen/otto/clone.go (+173/-0)
vendor/github.com/robertkrimen/otto/cmpl.go (+24/-0)
vendor/github.com/robertkrimen/otto/cmpl_evaluate.go (+96/-0)
vendor/github.com/robertkrimen/otto/cmpl_evaluate_expression.go (+460/-0)
vendor/github.com/robertkrimen/otto/cmpl_evaluate_statement.go (+424/-0)
vendor/github.com/robertkrimen/otto/cmpl_parse.go (+656/-0)
vendor/github.com/robertkrimen/otto/console.go (+51/-0)
vendor/github.com/robertkrimen/otto/dbg.go (+9/-0)
vendor/github.com/robertkrimen/otto/dbg/dbg.go (+387/-0)
vendor/github.com/robertkrimen/otto/error.go (+253/-0)
vendor/github.com/robertkrimen/otto/evaluate.go (+318/-0)
vendor/github.com/robertkrimen/otto/file/README.markdown (+110/-0)
vendor/github.com/robertkrimen/otto/file/file.go (+164/-0)
vendor/github.com/robertkrimen/otto/global.go (+221/-0)
vendor/github.com/robertkrimen/otto/inline.go (+6680/-0)
vendor/github.com/robertkrimen/otto/inline.pl (+1087/-0)
vendor/github.com/robertkrimen/otto/object.go (+156/-0)
vendor/github.com/robertkrimen/otto/object_class.go (+493/-0)
vendor/github.com/robertkrimen/otto/otto.go (+770/-0)
vendor/github.com/robertkrimen/otto/otto_.go (+178/-0)
vendor/github.com/robertkrimen/otto/parser/Makefile (+4/-0)
vendor/github.com/robertkrimen/otto/parser/README.markdown (+190/-0)
vendor/github.com/robertkrimen/otto/parser/dbg.go (+9/-0)
vendor/github.com/robertkrimen/otto/parser/error.go (+175/-0)
vendor/github.com/robertkrimen/otto/parser/expression.go (+1005/-0)
vendor/github.com/robertkrimen/otto/parser/lexer.go (+866/-0)
vendor/github.com/robertkrimen/otto/parser/parser.go (+344/-0)
vendor/github.com/robertkrimen/otto/parser/regexp.go (+358/-0)
vendor/github.com/robertkrimen/otto/parser/scope.go (+44/-0)
vendor/github.com/robertkrimen/otto/parser/statement.go (+940/-0)
vendor/github.com/robertkrimen/otto/property.go (+220/-0)
vendor/github.com/robertkrimen/otto/registry/README.markdown (+51/-0)
vendor/github.com/robertkrimen/otto/registry/registry.go (+47/-0)
vendor/github.com/robertkrimen/otto/result.go (+30/-0)
vendor/github.com/robertkrimen/otto/runtime.go (+825/-0)
vendor/github.com/robertkrimen/otto/scope.go (+35/-0)
vendor/github.com/robertkrimen/otto/script.go (+119/-0)
vendor/github.com/robertkrimen/otto/stash.go (+296/-0)
vendor/github.com/robertkrimen/otto/token/Makefile (+2/-0)
vendor/github.com/robertkrimen/otto/token/README.markdown (+171/-0)
vendor/github.com/robertkrimen/otto/token/token.go (+116/-0)
vendor/github.com/robertkrimen/otto/token/token_const.go (+349/-0)
vendor/github.com/robertkrimen/otto/token/tokenfmt (+222/-0)
vendor/github.com/robertkrimen/otto/type_arguments.go (+106/-0)
vendor/github.com/robertkrimen/otto/type_array.go (+109/-0)
vendor/github.com/robertkrimen/otto/type_boolean.go (+13/-0)
vendor/github.com/robertkrimen/otto/type_date.go (+299/-0)
vendor/github.com/robertkrimen/otto/type_error.go (+24/-0)
vendor/github.com/robertkrimen/otto/type_function.go (+340/-0)
vendor/github.com/robertkrimen/otto/type_go_array.go (+156/-0)
vendor/github.com/robertkrimen/otto/type_go_map.go (+95/-0)
vendor/github.com/robertkrimen/otto/type_go_slice.go (+126/-0)
vendor/github.com/robertkrimen/otto/type_go_struct.go (+146/-0)
vendor/github.com/robertkrimen/otto/type_number.go (+5/-0)
vendor/github.com/robertkrimen/otto/type_reference.go (+103/-0)
vendor/github.com/robertkrimen/otto/type_regexp.go (+146/-0)
vendor/github.com/robertkrimen/otto/type_string.go (+112/-0)
vendor/github.com/robertkrimen/otto/value.go (+1033/-0)
vendor/github.com/robertkrimen/otto/value_boolean.go (+43/-0)
vendor/github.com/robertkrimen/otto/value_number.go (+324/-0)
vendor/github.com/robertkrimen/otto/value_primitive.go (+23/-0)
vendor/github.com/robertkrimen/otto/value_string.go (+103/-0)
vendor/github.com/robfig/cron/v3/.gitignore (+22/-0)
vendor/github.com/robfig/cron/v3/.travis.yml (+1/-0)
vendor/github.com/robfig/cron/v3/LICENSE (+21/-0)
vendor/github.com/robfig/cron/v3/README.md (+125/-0)
vendor/github.com/robfig/cron/v3/chain.go (+92/-0)
vendor/github.com/robfig/cron/v3/constantdelay.go (+27/-0)
vendor/github.com/robfig/cron/v3/cron.go (+355/-0)
vendor/github.com/robfig/cron/v3/doc.go (+231/-0)
vendor/github.com/robfig/cron/v3/go.mod (+3/-0)
vendor/github.com/robfig/cron/v3/logger.go (+86/-0)
vendor/github.com/robfig/cron/v3/option.go (+45/-0)
vendor/github.com/robfig/cron/v3/parser.go (+434/-0)
vendor/github.com/robfig/cron/v3/spec.go (+188/-0)
vendor/github.com/samuel/go-zookeeper/zk/conn.go (+46/-14)
vendor/github.com/samuel/go-zookeeper/zk/constants.go (+17/-8)
vendor/github.com/samuel/go-zookeeper/zk/structs.go (+17/-2)
vendor/github.com/sensu/sensu-go/api/core/v2/LICENSE (+20/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/adhoc.go (+41/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/adhoc.pb.go (+628/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/adhoc.proto (+29/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/any.pb.go (+504/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/any.proto (+18/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/apikey.go (+75/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/apikey.pb.go (+570/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/apikey.proto (+30/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/asset.go (+162/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/asset.pb.go (+1462/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/asset.proto (+65/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/authentication.go (+33/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/authentication.pb.go (+549/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/authentication.proto (+26/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/check.go (+324/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/check.pb.go (+6112/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/check.proto (+332/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/check_config.go (+230/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/check_proxy_requests.go (+32/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/check_request.go (+16/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/context.go (+65/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/core.go (+14/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/edition.go (+11/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/entity.go (+262/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/entity.pb.go (+3131/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/entity.proto (+91/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/env_vars.go (+41/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/event.go (+549/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/event.pb.go (+824/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/event.proto (+47/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/extension.go (+76/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/extension.pb.go (+526/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/extension.proto (+27/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/filter.go (+192/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/filter.pb.go (+738/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/filter.proto (+40/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/flapping.go (+62/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/go.mod (+22/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/go.sum (+90/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/handler.go (+213/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/handler.pb.go (+1369/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/handler.proto (+66/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/health.go (+99/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/hook.go (+201/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/hook.pb.go (+1422/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/hook.proto (+65/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/internal/js/LICENSE (+20/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/internal/js/doc.go (+3/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/internal/js/js.go (+209/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/internal/js/toint64.go (+95/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/internal/js/vm_cache.go (+91/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/internal/stringutil/LICENSE (+20/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/internal/stringutil/map.go (+8/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/internal/stringutil/occurrences.go (+60/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/internal/stringutil/strings.go (+105/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/keepalive.go (+13/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/keepalive.pb.go (+514/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/keepalive.proto (+26/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/meta.go (+55/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/meta.pb.go (+1221/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/meta.proto (+49/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/metrics.go (+36/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/metrics.pb.go (+1203/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/metrics.proto (+46/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/multitenant.go (+15/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/mutator.go (+148/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/mutator.pb.go (+787/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/mutator.proto (+41/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/namespace.go (+68/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/namespace.pb.go (+443/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/namespace.proto (+19/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/protocol.go (+19/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/provider.go (+20/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/rbac.go (+499/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/rbac.pb.go (+2569/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/rbac.proto (+103/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/resource.go (+25/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/secret.pb.go (+518/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/secret.proto (+26/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/silenced.go (+217/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/silenced.pb.go (+873/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/silenced.proto (+49/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/tessen.go (+67/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/tessen.pb.go (+453/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/tessen.proto (+22/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/time_window.go (+131/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/time_window.pb.go (+1522/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/time_window.proto (+42/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/tls.go (+123/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/tls.pb.go (+653/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/tls.proto (+23/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/token.go (+50/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/typemap.go (+142/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/typemap.tmpl (+34/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/typemap_test.tmpl (+33/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/types_gen.go (+15/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/user.go (+84/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/user.pb.go (+674/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/user.proto (+25/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/util.go (+42/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/validators.go (+56/-0)
vendor/github.com/sensu/sensu-go/api/core/v2/version.go (+23/-0)
vendor/github.com/shirou/gopsutil/cpu/cpu_linux.go (+17/-11)
vendor/github.com/shirou/gopsutil/disk/disk.go (+21/-0)
vendor/github.com/shirou/gopsutil/disk/disk_darwin.go (+6/-14)
vendor/github.com/shirou/gopsutil/disk/disk_darwin_cgo.go (+0/-4)
vendor/github.com/shirou/gopsutil/disk/disk_darwin_nocgo.go (+0/-4)
vendor/github.com/shirou/gopsutil/disk/disk_fallback.go (+0/-12)
vendor/github.com/shirou/gopsutil/disk/disk_freebsd.go (+2/-14)
vendor/github.com/shirou/gopsutil/disk/disk_linux.go (+8/-11)
vendor/github.com/shirou/gopsutil/disk/disk_openbsd.go (+0/-18)
vendor/github.com/shirou/gopsutil/disk/disk_solaris.go (+0/-12)
vendor/github.com/shirou/gopsutil/disk/disk_unix.go (+0/-7)
vendor/github.com/shirou/gopsutil/disk/disk_windows.go (+1/-13)
vendor/github.com/shirou/gopsutil/internal/common/common.go (+0/-1)
vendor/github.com/shirou/gopsutil/internal/common/common_linux.go (+25/-12)
vendor/github.com/shirou/gopsutil/internal/common/common_windows.go (+66/-9)
vendor/github.com/shirou/gopsutil/load/load_windows.go (+57/-2)
vendor/github.com/shirou/gopsutil/mem/mem_linux.go (+144/-4)
vendor/github.com/shirou/gopsutil/net/net_darwin.go (+2/-2)
vendor/github.com/shirou/gopsutil/net/net_freebsd.go (+3/-4)
vendor/github.com/shirou/gopsutil/net/net_openbsd.go (+2/-3)
vendor/github.com/shirou/gopsutil/net/net_windows.go (+1/-1)
vendor/github.com/shirou/gopsutil/process/process.go (+232/-10)
vendor/github.com/shirou/gopsutil/process/process_bsd.go (+80/-0)
vendor/github.com/shirou/gopsutil/process/process_darwin.go (+26/-238)
vendor/github.com/shirou/gopsutil/process/process_fallback.go (+12/-143)
vendor/github.com/shirou/gopsutil/process/process_freebsd.go (+4/-195)
vendor/github.com/shirou/gopsutil/process/process_linux.go (+12/-191)
vendor/github.com/shirou/gopsutil/process/process_openbsd.go (+16/-203)
vendor/github.com/shirou/gopsutil/process/process_posix.go (+5/-36)
vendor/github.com/shirou/gopsutil/process/process_windows.go (+56/-173)
vendor/github.com/signalfx/com_signalfx_metrics_protobuf/README.md (+3/-0)
vendor/github.com/signalfx/com_signalfx_metrics_protobuf/signal_fx_protocol_buffers.pb.go (+504/-0)
vendor/github.com/signalfx/gohistogram/.gitignore (+2/-0)
vendor/github.com/signalfx/gohistogram/LICENSE (+19/-0)
vendor/github.com/signalfx/gohistogram/README.md (+69/-0)
vendor/github.com/signalfx/gohistogram/histogram.go (+19/-0)
vendor/github.com/signalfx/gohistogram/numerichistogram.go (+175/-0)
vendor/github.com/signalfx/gohistogram/serialize.go (+80/-0)
vendor/github.com/signalfx/gohistogram/weightedhistogram.go (+190/-0)
vendor/github.com/signalfx/golib/v3/LICENSE (+177/-0)
vendor/github.com/signalfx/golib/v3/datapoint/cast.go (+86/-0)
vendor/github.com/signalfx/golib/v3/datapoint/datapoint.go (+215/-0)
vendor/github.com/signalfx/golib/v3/datapoint/dpsink/counter.go (+175/-0)
vendor/github.com/signalfx/golib/v3/datapoint/dpsink/discard.go (+27/-0)
vendor/github.com/signalfx/golib/v3/datapoint/dpsink/filter.go (+38/-0)
vendor/github.com/signalfx/golib/v3/datapoint/dpsink/logfilter.go (+202/-0)
vendor/github.com/signalfx/golib/v3/datapoint/dpsink/ratelimitlogger.go (+49/-0)
vendor/github.com/signalfx/golib/v3/datapoint/dpsink/sink.go (+115/-0)
vendor/github.com/signalfx/golib/v3/datapoint/value.go (+72/-0)
vendor/github.com/signalfx/golib/v3/errors/analyze.go (+65/-0)
vendor/github.com/signalfx/golib/v3/errors/chain.go (+39/-0)
vendor/github.com/signalfx/golib/v3/errors/compatibility.go (+52/-0)
vendor/github.com/signalfx/golib/v3/errors/constructors.go (+50/-0)
vendor/github.com/signalfx/golib/v3/errors/log.go (+45/-0)
vendor/github.com/signalfx/golib/v3/errors/matcher.go (+29/-0)
vendor/github.com/signalfx/golib/v3/errors/multi.go (+39/-0)
vendor/github.com/signalfx/golib/v3/event/event.go (+86/-0)
vendor/github.com/signalfx/golib/v3/eventcounter/eventcounter.go (+54/-0)
vendor/github.com/signalfx/golib/v3/log/LICENSE_gokit (+26/-0)
vendor/github.com/signalfx/golib/v3/log/README.md (+7/-0)
vendor/github.com/signalfx/golib/v3/log/channel.go (+45/-0)
vendor/github.com/signalfx/golib/v3/log/counter.go (+20/-0)
vendor/github.com/signalfx/golib/v3/log/ctxdims.go (+36/-0)
vendor/github.com/signalfx/golib/v3/log/dynamic.go (+112/-0)
vendor/github.com/signalfx/golib/v3/log/filter.go (+286/-0)
vendor/github.com/signalfx/golib/v3/log/gated.go (+31/-0)
vendor/github.com/signalfx/golib/v3/log/hierarchy.go (+71/-0)
vendor/github.com/signalfx/golib/v3/log/json.go (+97/-0)
vendor/github.com/signalfx/golib/v3/log/key.go (+16/-0)
vendor/github.com/signalfx/golib/v3/log/kit.go (+60/-0)
vendor/github.com/signalfx/golib/v3/log/log.go (+168/-0)
vendor/github.com/signalfx/golib/v3/log/logfmt.go (+51/-0)
vendor/github.com/signalfx/golib/v3/log/multi.go (+25/-0)
vendor/github.com/signalfx/golib/v3/log/nop.go (+22/-0)
vendor/github.com/signalfx/golib/v3/log/panic.go (+34/-0)
vendor/github.com/signalfx/golib/v3/log/ratelimit.go (+54/-0)
vendor/github.com/signalfx/golib/v3/sfxclient/README.md (+585/-0)
vendor/github.com/signalfx/golib/v3/sfxclient/cumulativebucket.go (+85/-0)
vendor/github.com/signalfx/golib/v3/sfxclient/datapointcreation.go (+40/-0)
vendor/github.com/signalfx/golib/v3/sfxclient/gometrics.go (+61/-0)
vendor/github.com/signalfx/golib/v3/sfxclient/httpsink.go (+476/-0)
vendor/github.com/signalfx/golib/v3/sfxclient/httpsink_options.go (+22/-0)
vendor/github.com/signalfx/golib/v3/sfxclient/multitokensink.go (+933/-0)
vendor/github.com/signalfx/golib/v3/sfxclient/rollbucket.go (+190/-0)
vendor/github.com/signalfx/golib/v3/sfxclient/sfxclient.go (+370/-0)
vendor/github.com/signalfx/golib/v3/sfxclient/spanfilter/spanfilter.go (+118/-0)
vendor/github.com/signalfx/golib/v3/sfxclient/timerange.go (+36/-0)
vendor/github.com/signalfx/golib/v3/sfxclient/wrapper.go (+52/-0)
vendor/github.com/signalfx/golib/v3/timekeeper/timekeeper.go (+62/-0)
vendor/github.com/signalfx/golib/v3/trace/format/format.go (+22/-0)
vendor/github.com/signalfx/golib/v3/trace/format/format_easyjson.go (+1225/-0)
vendor/github.com/signalfx/golib/v3/trace/format/trace_examples.go (+40/-0)
vendor/github.com/signalfx/golib/v3/trace/gobuild.toml (+2/-0)
vendor/github.com/signalfx/golib/v3/trace/trace.go (+86/-0)
vendor/github.com/signalfx/golib/v3/trace/trace_examples.go (+41/-0)
vendor/github.com/signalfx/golib/v3/trace/translator/batcher.go (+80/-0)
vendor/github.com/signalfx/golib/v3/trace/translator/constants.go (+26/-0)
vendor/github.com/signalfx/golib/v3/trace/translator/grpc_http_mapper.go (+100/-0)
vendor/github.com/signalfx/golib/v3/trace/translator/sfx.go (+261/-0)
vendor/github.com/signalfx/sapm-proto/LICENSE (+201/-0)
vendor/github.com/signalfx/sapm-proto/gen/sapm.pb.go (+420/-0)
vendor/github.com/sirupsen/logrus/.golangci.yml (+40/-0)
vendor/github.com/sirupsen/logrus/.travis.yml (+3/-11)
vendor/github.com/sirupsen/logrus/CHANGELOG.md (+25/-2)
vendor/github.com/sirupsen/logrus/README.md (+31/-13)
vendor/github.com/sirupsen/logrus/appveyor.yml (+14/-14)
vendor/github.com/sirupsen/logrus/entry.go (+33/-14)
vendor/github.com/sirupsen/logrus/exported.go (+1/-1)
vendor/github.com/sirupsen/logrus/go.mod (+3/-2)
vendor/github.com/sirupsen/logrus/go.sum (+2/-6)
vendor/github.com/sirupsen/logrus/json_formatter.go (+4/-0)
vendor/github.com/sirupsen/logrus/logger.go (+6/-5)
vendor/github.com/sirupsen/logrus/logrus.go (+1/-1)
vendor/github.com/sirupsen/logrus/terminal_check_bsd.go (+1/-1)
vendor/github.com/sirupsen/logrus/terminal_check_js.go (+7/-0)
vendor/github.com/sirupsen/logrus/terminal_check_unix.go (+1/-1)
vendor/github.com/sirupsen/logrus/text_formatter.go (+47/-8)
vendor/github.com/sirupsen/logrus/writer.go (+6/-0)
vendor/github.com/stretchr/testify/assert/assertion_compare.go (+146/-26)
vendor/github.com/stretchr/testify/assert/assertion_format.go (+97/-0)
vendor/github.com/stretchr/testify/assert/assertion_forward.go (+194/-0)
vendor/github.com/stretchr/testify/assert/assertion_order.go (+81/-0)
vendor/github.com/stretchr/testify/assert/assertions.go (+81/-2)
vendor/github.com/stretchr/testify/mock/mock.go (+36/-9)
vendor/github.com/stretchr/testify/require/require.go (+248/-0)
vendor/github.com/stretchr/testify/require/require_forward.go (+194/-0)
vendor/github.com/tinylib/msgp/LICENSE (+8/-0)
vendor/github.com/tinylib/msgp/msgp/advise_linux.go (+24/-0)
vendor/github.com/tinylib/msgp/msgp/advise_other.go (+17/-0)
vendor/github.com/tinylib/msgp/msgp/circular.go (+39/-0)
vendor/github.com/tinylib/msgp/msgp/defs.go (+142/-0)
vendor/github.com/tinylib/msgp/msgp/edit.go (+242/-0)
vendor/github.com/tinylib/msgp/msgp/elsize.go (+99/-0)
vendor/github.com/tinylib/msgp/msgp/errors.go (+317/-0)
vendor/github.com/tinylib/msgp/msgp/extension.go (+549/-0)
vendor/github.com/tinylib/msgp/msgp/file.go (+92/-0)
vendor/github.com/tinylib/msgp/msgp/file_port.go (+47/-0)
vendor/github.com/tinylib/msgp/msgp/integers.go (+174/-0)
vendor/github.com/tinylib/msgp/msgp/json.go (+568/-0)
vendor/github.com/tinylib/msgp/msgp/json_bytes.go (+363/-0)
vendor/github.com/tinylib/msgp/msgp/number.go (+267/-0)
vendor/github.com/tinylib/msgp/msgp/purego.go (+15/-0)
vendor/github.com/tinylib/msgp/msgp/read.go (+1363/-0)
vendor/github.com/tinylib/msgp/msgp/read_bytes.go (+1197/-0)
vendor/github.com/tinylib/msgp/msgp/size.go (+38/-0)
vendor/github.com/tinylib/msgp/msgp/unsafe.go (+36/-0)
vendor/github.com/tinylib/msgp/msgp/write.go (+861/-0)
vendor/github.com/tinylib/msgp/msgp/write_bytes.go (+411/-0)
vendor/github.com/wavefronthq/wavefront-sdk-go/event/events.go (+36/-0)
vendor/github.com/wavefronthq/wavefront-sdk-go/histogram/histogram.go (+63/-23)
vendor/github.com/wavefronthq/wavefront-sdk-go/internal/direct.go (+38/-12)
vendor/github.com/wavefronthq/wavefront-sdk-go/internal/interfaces.go (+3/-1)
vendor/github.com/wavefronthq/wavefront-sdk-go/internal/lines.go (+143/-16)
vendor/github.com/wavefronthq/wavefront-sdk-go/internal/metrics.go (+25/-0)
vendor/github.com/wavefronthq/wavefront-sdk-go/internal/proxy.go (+18/-8)
vendor/github.com/wavefronthq/wavefront-sdk-go/internal/registry.go (+126/-0)
vendor/github.com/wavefronthq/wavefront-sdk-go/senders/configs.go (+2/-1)
vendor/github.com/wavefronthq/wavefront-sdk-go/senders/direct.go (+82/-29)
vendor/github.com/wavefronthq/wavefront-sdk-go/senders/formatter.go (+264/-46)
vendor/github.com/wavefronthq/wavefront-sdk-go/senders/interfaces.go (+8/-6)
vendor/github.com/wavefronthq/wavefront-sdk-go/senders/pool.go (+27/-0)
vendor/github.com/wavefronthq/wavefront-sdk-go/senders/proxy.go (+107/-84)
vendor/github.com/wavefronthq/wavefront-sdk-go/senders/types.go (+8/-2)
vendor/golang.org/x/net/html/const.go (+1/-1)
vendor/golang.org/x/net/html/foreign.go (+58/-61)
vendor/golang.org/x/net/html/parse.go (+14/-1)
vendor/golang.org/x/net/html/render.go (+1/-1)
vendor/golang.org/x/net/http2/server.go (+1/-0)
vendor/golang.org/x/net/http2/transport.go (+31/-4)
vendor/golang.org/x/net/icmp/endpoint.go (+1/-1)
vendor/golang.org/x/net/icmp/ipv4.go (+1/-1)
vendor/golang.org/x/net/icmp/listen_posix.go (+1/-1)
vendor/golang.org/x/net/idna/tables12.0.0.go (+1/-1)
vendor/golang.org/x/net/idna/tables13.0.0.go (+4839/-0)
vendor/golang.org/x/net/internal/socket/cmsghdr.go (+1/-1)
vendor/golang.org/x/net/internal/socket/cmsghdr_stub.go (+13/-3)
vendor/golang.org/x/net/internal/socket/cmsghdr_unix.go (+21/-0)
vendor/golang.org/x/net/internal/socket/cmsghdr_zos_s390x.go (+25/-0)
vendor/golang.org/x/net/internal/socket/error_unix.go (+1/-1)
vendor/golang.org/x/net/internal/socket/iovec_64bit.go (+1/-1)
vendor/golang.org/x/net/internal/socket/iovec_stub.go (+1/-1)
vendor/golang.org/x/net/internal/socket/msghdr_stub.go (+1/-1)
vendor/golang.org/x/net/internal/socket/msghdr_zos_s390x.go (+36/-0)
vendor/golang.org/x/net/internal/socket/rawconn_msg.go (+4/-3)
vendor/golang.org/x/net/internal/socket/rawconn_nomsg.go (+1/-1)
vendor/golang.org/x/net/internal/socket/socket.go (+1/-9)
vendor/golang.org/x/net/internal/socket/sys.go (+2/-12)
vendor/golang.org/x/net/internal/socket/sys_const_zos.go (+17/-0)
vendor/golang.org/x/net/internal/socket/sys_linux.go (+0/-5)
vendor/golang.org/x/net/internal/socket/sys_linux_386.go (+0/-2)
vendor/golang.org/x/net/internal/socket/sys_linux_s390x.go (+0/-2)
vendor/golang.org/x/net/internal/socket/sys_posix.go (+1/-1)
vendor/golang.org/x/net/internal/socket/sys_solaris.go (+0/-11)
vendor/golang.org/x/net/internal/socket/sys_stub.go (+2/-16)
vendor/golang.org/x/net/internal/socket/sys_zos_s390x.go (+12/-7)
vendor/golang.org/x/net/internal/socket/sys_zos_s390x.s (+11/-0)
vendor/golang.org/x/net/internal/socket/zsys_aix_ppc64.go (+2/-3)
vendor/golang.org/x/net/internal/socket/zsys_darwin_386.go (+2/-3)
vendor/golang.org/x/net/internal/socket/zsys_darwin_amd64.go (+2/-3)
vendor/golang.org/x/net/internal/socket/zsys_darwin_arm.go (+2/-3)
vendor/golang.org/x/net/internal/socket/zsys_darwin_arm64.go (+2/-3)
vendor/golang.org/x/net/internal/socket/zsys_dragonfly_amd64.go (+2/-3)
vendor/golang.org/x/net/internal/socket/zsys_freebsd_386.go (+2/-3)
vendor/golang.org/x/net/internal/socket/zsys_freebsd_amd64.go (+2/-3)
vendor/golang.org/x/net/internal/socket/zsys_freebsd_arm.go (+2/-3)
vendor/golang.org/x/net/internal/socket/zsys_freebsd_arm64.go (+2/-3)
vendor/golang.org/x/net/internal/socket/zsys_linux_386.go (+2/-3)
vendor/golang.org/x/net/internal/socket/zsys_linux_amd64.go (+2/-3)
vendor/golang.org/x/net/internal/socket/zsys_linux_arm.go (+0/-2)
vendor/golang.org/x/net/internal/socket/zsys_linux_arm64.go (+0/-2)
vendor/golang.org/x/net/internal/socket/zsys_linux_mips.go (+0/-2)
vendor/golang.org/x/net/internal/socket/zsys_linux_mips64.go (+0/-2)
vendor/golang.org/x/net/internal/socket/zsys_linux_mips64le.go (+0/-2)
vendor/golang.org/x/net/internal/socket/zsys_linux_mipsle.go (+0/-2)
vendor/golang.org/x/net/internal/socket/zsys_linux_ppc64.go (+0/-2)
vendor/golang.org/x/net/internal/socket/zsys_linux_ppc64le.go (+0/-2)
vendor/golang.org/x/net/internal/socket/zsys_linux_riscv64.go (+0/-2)
vendor/golang.org/x/net/internal/socket/zsys_linux_s390x.go (+0/-2)
vendor/golang.org/x/net/internal/socket/zsys_netbsd_386.go (+0/-2)
vendor/golang.org/x/net/internal/socket/zsys_netbsd_amd64.go (+0/-2)
vendor/golang.org/x/net/internal/socket/zsys_netbsd_arm.go (+0/-2)
vendor/golang.org/x/net/internal/socket/zsys_netbsd_arm64.go (+2/-3)
vendor/golang.org/x/net/internal/socket/zsys_openbsd_386.go (+2/-3)
vendor/golang.org/x/net/internal/socket/zsys_openbsd_amd64.go (+2/-3)
vendor/golang.org/x/net/internal/socket/zsys_openbsd_arm.go (+2/-3)
vendor/golang.org/x/net/internal/socket/zsys_openbsd_arm64.go (+2/-3)
vendor/golang.org/x/net/internal/socket/zsys_openbsd_mips64.go (+50/-0)
vendor/golang.org/x/net/internal/socket/zsys_solaris_amd64.go (+2/-3)
vendor/golang.org/x/net/internal/socket/zsys_zos_s390x.go (+32/-0)
vendor/golang.org/x/net/ipv4/control_stub.go (+1/-1)
vendor/golang.org/x/net/ipv4/control_zos.go (+86/-0)
vendor/golang.org/x/net/ipv4/header.go (+2/-2)
vendor/golang.org/x/net/ipv4/payload_cmsg.go (+1/-1)
vendor/golang.org/x/net/ipv4/payload_nocmsg.go (+1/-1)
vendor/golang.org/x/net/ipv4/sockopt_posix.go (+1/-1)
vendor/golang.org/x/net/ipv4/sockopt_stub.go (+1/-1)
vendor/golang.org/x/net/ipv4/sys_stub.go (+1/-1)
vendor/golang.org/x/net/ipv4/sys_zos.go (+55/-0)
vendor/golang.org/x/net/ipv4/zsys_zos_s390x.go (+80/-0)
vendor/golang.org/x/net/ipv6/control_rfc3542_unix.go (+1/-1)
vendor/golang.org/x/net/ipv6/control_stub.go (+1/-1)
vendor/golang.org/x/net/ipv6/control_unix.go (+1/-1)
vendor/golang.org/x/net/ipv6/icmp_stub.go (+1/-1)
vendor/golang.org/x/net/ipv6/icmp_zos.go (+29/-0)
vendor/golang.org/x/net/ipv6/payload_cmsg.go (+1/-1)
vendor/golang.org/x/net/ipv6/payload_nocmsg.go (+1/-1)
vendor/golang.org/x/net/ipv6/sockopt_posix.go (+1/-1)
vendor/golang.org/x/net/ipv6/sockopt_stub.go (+1/-1)
vendor/golang.org/x/net/ipv6/sys_ssmreq.go (+1/-1)
vendor/golang.org/x/net/ipv6/sys_ssmreq_stub.go (+1/-1)
vendor/golang.org/x/net/ipv6/sys_stub.go (+1/-1)
vendor/golang.org/x/net/ipv6/sys_zos.go (+70/-0)
vendor/golang.org/x/net/ipv6/zsys_zos_s390x.go (+106/-0)
vendor/golang.org/x/sys/unix/asm_aix_ppc64.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_darwin_386.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_darwin_amd64.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_darwin_arm.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_darwin_arm64.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_freebsd_386.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_freebsd_amd64.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_freebsd_arm.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_freebsd_arm64.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_linux_386.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_linux_amd64.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_linux_arm.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_linux_arm64.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_linux_mips64x.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_linux_mipsx.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_linux_riscv64.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_linux_s390x.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_netbsd_386.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_netbsd_amd64.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_netbsd_arm.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_netbsd_arm64.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_openbsd_386.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_openbsd_amd64.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_openbsd_arm.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_openbsd_arm64.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s (+1/-1)
vendor/golang.org/x/sys/unix/asm_solaris_amd64.s (+1/-1)
vendor/golang.org/x/sys/unix/endian_big.go (+1/-1)
vendor/golang.org/x/sys/unix/endian_little.go (+1/-1)
vendor/golang.org/x/sys/unix/fcntl_darwin.go (+6/-0)
vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go (+2/-2)
vendor/golang.org/x/sys/unix/gccgo.go (+0/-2)
vendor/golang.org/x/sys/unix/gccgo_c.c (+6/-0)
vendor/golang.org/x/sys/unix/mkall.sh (+0/-6)
vendor/golang.org/x/sys/unix/mkerrors.sh (+15/-2)
vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go (+5/-1)
vendor/golang.org/x/sys/unix/syscall.go (+42/-1)
vendor/golang.org/x/sys/unix/syscall_aix.go (+16/-0)
vendor/golang.org/x/sys/unix/syscall_bsd.go (+17/-2)
vendor/golang.org/x/sys/unix/syscall_darwin.1_12.go (+3/-1)
vendor/golang.org/x/sys/unix/syscall_darwin.go (+69/-72)
vendor/golang.org/x/sys/unix/syscall_darwin_386.go (+2/-9)
vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go (+2/-9)
vendor/golang.org/x/sys/unix/syscall_darwin_arm.go (+1/-7)
vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go (+2/-11)
vendor/golang.org/x/sys/unix/syscall_dragonfly.go (+17/-15)
vendor/golang.org/x/sys/unix/syscall_freebsd.go (+4/-15)
vendor/golang.org/x/sys/unix/syscall_illumos.go (+37/-4)
vendor/golang.org/x/sys/unix/syscall_linux.go (+47/-0)
vendor/golang.org/x/sys/unix/syscall_linux_386.go (+0/-3)
vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go (+1/-1)
vendor/golang.org/x/sys/unix/syscall_linux_gc.go (+1/-1)
vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go (+1/-1)
vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go (+1/-1)
vendor/golang.org/x/sys/unix/syscall_netbsd.go (+4/-15)
vendor/golang.org/x/sys/unix/syscall_openbsd.go (+4/-15)
vendor/golang.org/x/sys/unix/syscall_solaris.go (+5/-2)
vendor/golang.org/x/sys/unix/syscall_unix_gc.go (+1/-1)
vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go (+1/-1)
vendor/golang.org/x/sys/unix/zerrors_darwin_386.go (+4/-0)
vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go (+4/-0)
vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go (+4/-0)
vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go (+4/-0)
vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go (+112/-26)
vendor/golang.org/x/sys/unix/zerrors_linux.go (+177/-2)
vendor/golang.org/x/sys/unix/zerrors_linux_386.go (+2/-0)
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go (+2/-0)
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go (+2/-0)
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go (+2/-0)
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go (+2/-0)
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go (+2/-0)
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go (+2/-0)
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go (+2/-0)
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go (+2/-0)
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go (+2/-0)
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go (+2/-0)
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go (+2/-0)
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go (+2/-0)
vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go (+21/-1)
vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go (+1/-1)
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go (+107/-30)
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s (+12/-6)
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go (+107/-30)
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s (+12/-6)
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go (+92/-15)
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s (+10/-4)
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go (+107/-15)
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s (+12/-4)
vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go (+26/-16)
vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go (+28/-1)
vendor/golang.org/x/sys/unix/zsyscall_linux.go (+16/-0)
vendor/golang.org/x/sys/unix/zsysnum_darwin_386.go (+1/-0)
vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go (+1/-0)
vendor/golang.org/x/sys/unix/zsysnum_darwin_arm.go (+1/-0)
vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go (+1/-0)
vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go (+128/-127)
vendor/golang.org/x/sys/unix/zsysnum_linux_386.go (+1/-0)
vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go (+1/-0)
vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go (+1/-0)
vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go (+1/-0)
vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go (+1/-0)
vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go (+1/-0)
vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go (+1/-0)
vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go (+1/-0)
vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go (+1/-0)
vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go (+1/-0)
vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go (+1/-0)
vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go (+1/-0)
vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go (+1/-0)
vendor/golang.org/x/sys/unix/ztypes_darwin_386.go (+24/-8)
vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go (+27/-16)
vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go (+27/-12)
vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go (+27/-16)
vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go (+18/-28)
vendor/golang.org/x/sys/unix/ztypes_linux.go (+747/-275)
vendor/golang.org/x/sys/unix/ztypes_linux_386.go (+15/-0)
vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go (+16/-0)
vendor/golang.org/x/sys/unix/ztypes_linux_arm.go (+16/-0)
vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go (+16/-0)
vendor/golang.org/x/sys/unix/ztypes_linux_mips.go (+16/-0)
vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go (+16/-0)
vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go (+16/-0)
vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go (+16/-0)
vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go (+16/-0)
vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go (+16/-0)
vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go (+16/-0)
vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go (+16/-0)
vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go (+16/-0)
vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go (+11/-20)
vendor/golang.org/x/sys/windows/dll_windows.go (+2/-0)
vendor/golang.org/x/sys/windows/memory_windows.go (+13/-7)
vendor/golang.org/x/sys/windows/registry/zsyscall_windows.go (+18/-21)
vendor/golang.org/x/sys/windows/security_windows.go (+2/-1)
vendor/golang.org/x/sys/windows/service.go (+2/-0)
vendor/golang.org/x/sys/windows/setupapierrors_windows.go (+100/-0)
vendor/golang.org/x/sys/windows/svc/mgr/config.go (+7/-0)
vendor/golang.org/x/sys/windows/svc/security.go (+98/-0)
vendor/golang.org/x/sys/windows/svc/service.go (+5/-0)
vendor/golang.org/x/sys/windows/syscall.go (+42/-4)
vendor/golang.org/x/sys/windows/syscall_windows.go (+17/-18)
vendor/golang.org/x/sys/windows/types_windows.go (+29/-12)
vendor/golang.org/x/sys/windows/types_windows_386.go (+13/-0)
vendor/golang.org/x/sys/windows/types_windows_amd64.go (+12/-0)
vendor/golang.org/x/sys/windows/types_windows_arm.go (+13/-0)
vendor/golang.org/x/sys/windows/zsyscall_windows.go (+1711/-2672)
vendor/golang.org/x/text/cases/tables12.0.0.go (+1/-1)
vendor/golang.org/x/text/cases/tables13.0.0.go (+2399/-0)
vendor/golang.org/x/text/internal/language/compact/tables.go (+18/-18)
vendor/golang.org/x/text/internal/language/tables.go (+2061/-2028)
vendor/golang.org/x/text/language/tables.go (+39/-39)
vendor/golang.org/x/text/secure/precis/tables12.0.0.go (+1/-1)
vendor/golang.org/x/text/secure/precis/tables13.0.0.go (+4152/-0)
vendor/golang.org/x/text/unicode/bidi/tables12.0.0.go (+1/-1)
vendor/golang.org/x/text/unicode/bidi/tables13.0.0.go (+1955/-0)
vendor/golang.org/x/text/unicode/norm/tables12.0.0.go (+1/-1)
vendor/golang.org/x/text/unicode/norm/tables13.0.0.go (+7760/-0)
vendor/golang.org/x/text/width/tables12.0.0.go (+1/-1)
vendor/golang.org/x/text/width/tables13.0.0.go (+1351/-0)
vendor/golang.org/x/time/rate/rate.go (+2/-28)
vendor/golang.org/x/tools/cmd/goimports/goimports.go (+9/-10)
vendor/golang.org/x/tools/go/analysis/analysis.go (+23/-6)
vendor/golang.org/x/tools/go/analysis/doc.go (+23/-7)
vendor/golang.org/x/tools/go/analysis/validate.go (+31/-2)
vendor/golang.org/x/tools/go/ast/inspector/inspector.go (+5/-1)
vendor/golang.org/x/tools/go/internal/gcimporter/gcimporter.go (+1/-1)
vendor/golang.org/x/tools/go/internal/packagesdriver/sizes.go (+14/-19)
vendor/golang.org/x/tools/go/packages/golist.go (+172/-47)
vendor/golang.org/x/tools/go/packages/golist_overlay.go (+227/-31)
vendor/golang.org/x/tools/go/packages/loadmode_string.go (+1/-1)
vendor/golang.org/x/tools/go/packages/packages.go (+95/-8)
vendor/golang.org/x/tools/go/types/objectpath/objectpath.go (+3/-2)
vendor/golang.org/x/tools/internal/analysisinternal/analysis.go (+425/-0)
vendor/golang.org/x/tools/internal/event/core/event.go (+85/-0)
vendor/golang.org/x/tools/internal/event/core/export.go (+70/-0)
vendor/golang.org/x/tools/internal/event/core/fast.go (+77/-0)
vendor/golang.org/x/tools/internal/event/doc.go (+7/-0)
vendor/golang.org/x/tools/internal/event/event.go (+127/-0)
vendor/golang.org/x/tools/internal/event/keys/keys.go (+564/-0)
vendor/golang.org/x/tools/internal/event/keys/standard.go (+22/-0)
vendor/golang.org/x/tools/internal/event/label/label.go (+213/-0)
vendor/golang.org/x/tools/internal/gocommand/invoke.go (+148/-24)
vendor/golang.org/x/tools/internal/gocommand/vendor.go (+102/-0)
vendor/golang.org/x/tools/internal/gocommand/version.go (+40/-0)
vendor/golang.org/x/tools/internal/gopathwalk/walk.go (+0/-11)
vendor/golang.org/x/tools/internal/imports/fix.go (+236/-84)
vendor/golang.org/x/tools/internal/imports/imports.go (+13/-75)
vendor/golang.org/x/tools/internal/imports/mod.go (+53/-92)
vendor/golang.org/x/tools/internal/imports/sortimports.go (+10/-10)
vendor/golang.org/x/tools/internal/imports/zstdlib.go (+139/-0)
vendor/golang.org/x/tools/internal/lsp/fuzzy/input.go (+168/-0)
vendor/golang.org/x/tools/internal/lsp/fuzzy/matcher.go (+398/-0)
vendor/golang.org/x/tools/internal/packagesinternal/packages.go (+11/-21)
vendor/golang.org/x/tools/internal/typesinternal/types.go (+28/-0)
vendor/google.golang.org/api/bigquery/v2/bigquery-api.json (+5172/-0)
vendor/google.golang.org/api/bigquery/v2/bigquery-gen.go (+11793/-0)
vendor/google.golang.org/api/googleapi/googleapi.go (+408/-0)
vendor/google.golang.org/api/googleapi/types.go (+202/-0)
vendor/google.golang.org/api/internal/gensupport/buffer.go (+79/-0)
vendor/google.golang.org/api/internal/gensupport/doc.go (+10/-0)
vendor/google.golang.org/api/internal/gensupport/json.go (+211/-0)
vendor/google.golang.org/api/internal/gensupport/jsonfloat.go (+47/-0)
vendor/google.golang.org/api/internal/gensupport/media.go (+372/-0)
vendor/google.golang.org/api/internal/gensupport/params.go (+51/-0)
vendor/google.golang.org/api/internal/gensupport/resumable.go (+241/-0)
vendor/google.golang.org/api/internal/gensupport/send.go (+87/-0)
vendor/google.golang.org/api/internal/gensupport/version.go (+53/-0)
vendor/google.golang.org/api/internal/third_party/uritemplates/LICENSE (+27/-0)
vendor/google.golang.org/api/internal/third_party/uritemplates/METADATA (+14/-0)
vendor/google.golang.org/api/internal/third_party/uritemplates/uritemplates.go (+248/-0)
vendor/google.golang.org/api/internal/third_party/uritemplates/utils.go (+17/-0)
vendor/google.golang.org/api/option/internaloption/internaloption.go (+26/-0)
vendor/google.golang.org/genproto/googleapis/rpc/code/code.pb.go (+254/-0)
vendor/gopkg.in/djherbis/times.v1/.travis.sh (+28/-0)
vendor/gopkg.in/djherbis/times.v1/.travis.yml (+19/-0)
vendor/gopkg.in/djherbis/times.v1/LICENSE (+22/-0)
vendor/gopkg.in/djherbis/times.v1/README.md (+64/-0)
vendor/gopkg.in/djherbis/times.v1/ctime_windows.go (+149/-0)
vendor/gopkg.in/djherbis/times.v1/js.cover.dockerfile (+9/-0)
vendor/gopkg.in/djherbis/times.v1/js.cover.sh (+7/-0)
vendor/gopkg.in/djherbis/times.v1/times.go (+74/-0)
vendor/gopkg.in/djherbis/times.v1/times_darwin.go (+40/-0)
vendor/gopkg.in/djherbis/times.v1/times_dragonfly.go (+39/-0)
vendor/gopkg.in/djherbis/times.v1/times_freebsd.go (+40/-0)
vendor/gopkg.in/djherbis/times.v1/times_js.go (+41/-0)
vendor/gopkg.in/djherbis/times.v1/times_linux.go (+39/-0)
vendor/gopkg.in/djherbis/times.v1/times_nacl.go (+39/-0)
vendor/gopkg.in/djherbis/times.v1/times_netbsd.go (+40/-0)
vendor/gopkg.in/djherbis/times.v1/times_openbsd.go (+39/-0)
vendor/gopkg.in/djherbis/times.v1/times_plan9.go (+34/-0)
vendor/gopkg.in/djherbis/times.v1/times_solaris.go (+39/-0)
vendor/gopkg.in/djherbis/times.v1/times_windows.go (+36/-0)
vendor/gopkg.in/djherbis/times.v1/use_generic_stat.go (+15/-0)
vendor/gopkg.in/mgo.v2/gridfs.go (+1/-1)
vendor/gopkg.in/mgo.v2/session.go (+1/-1)
vendor/gopkg.in/sourcemap.v1/.travis.yml (+16/-0)
vendor/gopkg.in/sourcemap.v1/LICENSE (+25/-0)
vendor/gopkg.in/sourcemap.v1/Makefile (+4/-0)
vendor/gopkg.in/sourcemap.v1/README.md (+35/-0)
vendor/gopkg.in/sourcemap.v1/base64vlq/base64_vlq.go (+92/-0)
vendor/gopkg.in/sourcemap.v1/consumer.go (+134/-0)
vendor/gopkg.in/sourcemap.v1/sourcemap.go (+157/-0)
vendor/gopkg.in/yaml.v2/apic.go (+1/-0)
vendor/k8s.io/apimachinery/LICENSE (+202/-0)
vendor/k8s.io/apimachinery/pkg/selection/operator.go (+33/-0)
vendor/k8s.io/apimachinery/pkg/util/errors/doc.go (+18/-0)
vendor/k8s.io/apimachinery/pkg/util/errors/errors.go (+229/-0)
vendor/k8s.io/apimachinery/pkg/util/sets/byte.go (+205/-0)
vendor/k8s.io/apimachinery/pkg/util/sets/doc.go (+20/-0)
vendor/k8s.io/apimachinery/pkg/util/sets/empty.go (+23/-0)
vendor/k8s.io/apimachinery/pkg/util/sets/int.go (+205/-0)
vendor/k8s.io/apimachinery/pkg/util/sets/int32.go (+205/-0)
vendor/k8s.io/apimachinery/pkg/util/sets/int64.go (+205/-0)
vendor/k8s.io/apimachinery/pkg/util/sets/string.go (+205/-0)
vendor/k8s.io/apimachinery/pkg/util/validation/field/errors.go (+272/-0)
vendor/k8s.io/apimachinery/pkg/util/validation/field/path.go (+91/-0)
vendor/k8s.io/apimachinery/pkg/util/validation/validation.go (+460/-0)
vendor/k8s.io/klog/.travis.yml (+16/-0)
vendor/k8s.io/klog/CONTRIBUTING.md (+22/-0)
vendor/k8s.io/klog/LICENSE (+191/-0)
vendor/k8s.io/klog/OWNERS (+19/-0)
vendor/k8s.io/klog/README.md (+97/-0)
vendor/k8s.io/klog/RELEASE.md (+9/-0)
vendor/k8s.io/klog/SECURITY_CONTACTS (+20/-0)
vendor/k8s.io/klog/code-of-conduct.md (+3/-0)
vendor/k8s.io/klog/go.mod (+5/-0)
vendor/k8s.io/klog/go.sum (+2/-0)
vendor/k8s.io/klog/klog.go (+1308/-0)
vendor/k8s.io/klog/klog_file.go (+139/-0)
vendor/modules.txt (+204/-40)
Reviewer Review Type Date Requested Status
Bryce Harrington Approve
Canonical Server Core Reviewers Pending
Review via email: mp+401912@code.launchpad.net

Description of the change

This is the update of telegraf to 1.18.1 (the latest upstream version) on Impish.

As a reminder: we maintain telegraf as an Ubuntu package, so this is not a regular git-ubuntu branch/review; rather, it's a git-buildpackage branch (because telegraf is maintained like a regular Debian package). This MP is for the "master" branch.

This update has been relatively straightforward; no problems with the repacking of the orig tarball, build and test. Everything went smooth.

The only noteworthy change here is the extra patch that has been added to fix CVE-2021-3121. The fix is relatively simple: we just need to update the gogo/protobuf module from version 1.3.1 to 1.3.2. However, when we do this (by adjust go.mod and running "go mod vendor"), a bunch of other dependencies also end up being updated, which makes the patch larger. This fix has been applied upstream and will be available in the next release, which means that we will not be carrying this patch for long.

There's a PPA with the proposed package built here:

https://launchpad.net/~sergiodj/+archive/ubuntu/telegraf-merge/+packages

Autopkgtest is still happy:

autopkgtest [19:24:24]: @@@@@@@@@@@@@@@@@@@@ summary
basic-outputs PASS

To post a comment you must log in.
Revision history for this message
Bryce Harrington (bryce) wrote :

I drilled around a bit to try and understand what the fixed vulnerability actually was to suggest a changelog improvement, but found the CVE reports were too opaque, so no suggestion possible. The patch is a bit noisy but otherwise looks ok.

The packaging work all looks good, in particular the changes to repack-telegraf-with-vendor.sh.

I don't have an impish lxc container yet, so am not able to do my usual review checks. However, the ppa build looks good, and I trust your autopkgtest run.

So LGTM, +1.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/.circleci/config.yml b/.circleci/config.yml
2index 5e44cfe..b4d865e 100644
3--- a/.circleci/config.yml
4+++ b/.circleci/config.yml
5@@ -1,21 +1,23 @@
6 version: 2.1
7+orbs:
8+ win: circleci/windows@2.4.0
9
10 executors:
11- go-1_14:
12+ go-1_15:
13 working_directory: '/go/src/github.com/influxdata/telegraf'
14 docker:
15- - image: 'quay.io/influxdb/telegraf-ci:1.14.9'
16+ - image: 'quay.io/influxdb/telegraf-ci:1.15.8'
17 environment:
18 GOFLAGS: -p=8
19- go-1_15:
20+ go-1_16:
21 working_directory: '/go/src/github.com/influxdata/telegraf'
22 docker:
23- - image: 'quay.io/influxdb/telegraf-ci:1.15.5'
24+ - image: 'quay.io/influxdb/telegraf-ci:1.16.2'
25 environment:
26 GOFLAGS: -p=8
27 mac:
28 macos:
29- xcode: 12.1.0
30+ xcode: 12.4.0
31 working_directory: '~/go/src/github.com/influxdata/telegraf'
32 environment:
33 HOMEBREW_NO_AUTO_UPDATE: 1
34@@ -35,14 +37,6 @@ commands:
35 - run: 'GOARCH=<< parameters.goarch >> make check'
36 - run: 'GOARCH=<< parameters.goarch >> make check-deps'
37 - run: 'GOARCH=<< parameters.goarch >> make test'
38- test-go-mac:
39- steps:
40- - checkout
41- - attach_workspace:
42- at: '/'
43- - run: 'make'
44- - run: 'make check'
45- - run: 'make test'
46 package:
47 parameters:
48 nightly:
49@@ -54,7 +48,7 @@ commands:
50 at: '/go'
51 - when:
52 condition: << parameters.nightly >>
53- steps:
54+ steps:
55 - run: 'NIGHTLY=1 make package'
56 - run: 'make upload-nightly'
57 - unless:
58@@ -64,9 +58,21 @@ commands:
59 - store_artifacts:
60 path: './build/dist'
61 destination: 'build/dist'
62+ - persist_to_workspace:
63+ root: './build'
64+ paths:
65+ - 'dist'
66 jobs:
67+ linter:
68+ executor: go-1_16
69+ steps:
70+ - checkout
71+ - restore_cache:
72+ key: go-mod-v1-{{ checksum "go.sum" }}
73+ - run: wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.37.0
74+ - run: make lint
75 deps:
76- executor: go-1_15
77+ executor: go-1_16
78 steps:
79 - checkout
80 - restore_cache:
81@@ -82,155 +88,204 @@ jobs:
82 root: '/go'
83 paths:
84 - '*'
85- macdeps:
86- executor: mac
87- steps:
88- - checkout
89- - restore_cache:
90- key: mac-go-mod-v2-{{ checksum "go.sum" }}
91- - run: 'brew install go' # latest
92- - run: 'make deps'
93- - run: 'make tidy'
94- - save_cache:
95- name: 'go module cache'
96- key: mac-go-mod-v2-{{ checksum "go.sum" }}
97- paths:
98- - '~/go/pkg/mod'
99- - '/usr/local/Cellar/go'
100- - '/usr/local/bin/go'
101- - '/usr/local/bin/gofmt'
102- - persist_to_workspace:
103- root: '/'
104- paths:
105- - 'usr/local/bin/go'
106- - 'usr/local/Cellar/go'
107- - 'usr/local/bin/gofmt'
108- - 'Users/distiller/go'
109-
110- test-go-1_14:
111- executor: go-1_14
112+ test-go-1_15:
113+ executor: go-1_15
114 steps:
115 - test-go
116- test-go-1_14-386:
117- executor: go-1_14
118+ test-go-1_15-386:
119+ executor: go-1_15
120 steps:
121 - test-go:
122 goarch: "386"
123- test-go-1_15:
124- executor: go-1_15
125+ test-go-1_16:
126+ executor: go-1_16
127 steps:
128 - test-go
129- test-go-1_15-386:
130- executor: go-1_15
131+ test-go-1_16-386:
132+ executor: go-1_16
133 steps:
134 - test-go:
135 goarch: "386"
136- test-go-darwin:
137+ test-go-mac:
138 executor: mac
139 steps:
140- - test-go-mac
141+ - checkout
142+ - restore_cache:
143+ key: mac-go-mod-v0-{{ checksum "go.sum" }}
144+ - run: 'sh ./scripts/mac_installgo.sh'
145+ - save_cache:
146+ name: 'Saving cache'
147+ key: mac-go-mod-v0-{{ checksum "go.sum" }}
148+ paths:
149+ - '/usr/local/Cellar/go'
150+ - '/usr/local/bin/go'
151+ - '/usr/local/bin/gofmt'
152+ - run: 'make deps'
153+ - run: 'make tidy'
154+ - run: 'make'
155+ - run: 'make check'
156+ - run: 'make test'
157+ test-go-windows:
158+ executor:
159+ name: win/default
160+ shell: powershell.exe
161+ steps:
162+ - checkout
163+ - run: choco upgrade golang --version=1.16.2
164+ - run: choco install make
165+ - run: git config --system core.longpaths true
166+ - run: make test-windows
167
168 package:
169- executor: go-1_15
170+ executor: go-1_16
171 steps:
172 - package
173 release:
174- executor: go-1_15
175+ executor: go-1_16
176 steps:
177 - package
178 nightly:
179- executor: go-1_15
180+ executor: go-1_16
181 steps:
182 - package:
183 nightly: true
184-
185+ package-sign-windows:
186+ executor:
187+ name: win/default
188+ shell: powershell.exe
189+ steps:
190+ - checkout
191+ - attach_workspace:
192+ at: '/build'
193+ - run:
194+ name: "Sign Windows Executables"
195+ shell: powershell.exe
196+ command: |
197+ ./scripts/windows-signing.ps1
198+ - persist_to_workspace:
199+ root: './build'
200+ paths:
201+ - 'dist'
202+ - store_artifacts:
203+ path: './build/dist'
204+ destination: 'build/dist'
205+ package-sign-mac:
206+ macos:
207+ xcode: "11.3"
208+ working_directory: /Users/distiller/project
209+ environment:
210+ FL_OUTPUT_DIR: output
211+ FASTLANE_LANE: test
212+ shell: /bin/bash --login -o pipefail
213+ steps:
214+ - checkout
215+ - attach_workspace:
216+ at: '.'
217+ - run:
218+ command: |
219+ sh ./scripts/mac-signing.sh
220+ - store_artifacts:
221+ path: './dist'
222+ destination: 'build/dist'
223 workflows:
224 version: 2
225 check:
226 jobs:
227- - 'macdeps':
228- filters:
229- tags:
230- only: /.*/
231 - 'deps':
232 filters:
233 tags:
234 only: /.*/
235- - 'test-go-1_14':
236+ - 'test-go-1_15':
237 requires:
238 - 'deps'
239 filters:
240 tags:
241 only: /.*/
242- - 'test-go-1_14-386':
243+ - 'test-go-1_15-386':
244 requires:
245 - 'deps'
246 filters:
247 tags:
248 only: /.*/
249- - 'test-go-1_15':
250+ - 'test-go-1_16':
251 requires:
252 - 'deps'
253 filters:
254 tags:
255 only: /.*/
256- - 'test-go-1_15-386':
257+ - 'test-go-1_16-386':
258 requires:
259 - 'deps'
260 filters:
261 tags:
262 only: /.*/
263- - 'test-go-darwin':
264- requires:
265- - 'macdeps'
266+ - 'test-go-mac':
267 filters:
268 tags: # only runs on tags if you specify this filter
269 only: /.*/
270+ - 'test-go-windows':
271+ filters:
272+ tags:
273+ only: /.*/
274 - 'package':
275 requires:
276- - 'test-go-darwin'
277- - 'test-go-1_14'
278- - 'test-go-1_14-386'
279+ - 'test-go-windows'
280+ - 'test-go-mac'
281 - 'test-go-1_15'
282 - 'test-go-1_15-386'
283+ - 'test-go-1_16'
284+ - 'test-go-1_16-386'
285 - 'release':
286 requires:
287- - 'test-go-darwin'
288- - 'test-go-1_14'
289- - 'test-go-1_14-386'
290+ - 'test-go-windows'
291+ - 'test-go-mac'
292 - 'test-go-1_15'
293 - 'test-go-1_15-386'
294+ - 'test-go-1_16'
295+ - 'test-go-1_16-386'
296 filters:
297 tags:
298 only: /.*/
299 branches:
300 ignore: /.*/
301+ - 'package-sign-windows':
302+ requires:
303+ - 'release'
304+ filters:
305+ tags:
306+ only: /.*/
307+ - 'package-sign-mac':
308+ requires:
309+ - 'package-sign-windows'
310+ filters:
311+ tags:
312+ only: /.*/
313 nightly:
314 jobs:
315+ - 'linter'
316 - 'deps'
317- - 'macdeps'
318- - 'test-go-1_14':
319+ - 'test-go-1_15':
320 requires:
321 - 'deps'
322- - 'test-go-1_14-386':
323+ - 'test-go-1_15-386':
324 requires:
325 - 'deps'
326- - 'test-go-1_15':
327+ - 'test-go-1_16':
328 requires:
329 - 'deps'
330- - 'test-go-1_15-386':
331+ - 'test-go-1_16-386':
332 requires:
333 - 'deps'
334- - 'test-go-darwin':
335- requires:
336- - 'macdeps'
337+ - 'test-go-mac'
338+ - 'test-go-windows'
339 - 'nightly':
340 requires:
341- - 'test-go-darwin'
342- - 'test-go-1_14'
343- - 'test-go-1_14-386'
344+ - 'test-go-windows'
345+ - 'test-go-mac'
346 - 'test-go-1_15'
347 - 'test-go-1_15-386'
348+ - 'test-go-1_16'
349+ - 'test-go-1_16-386'
350 triggers:
351 - schedule:
352 cron: "0 7 * * *"
353diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
354index 527555b..4b2eaad 100644
355--- a/.github/PULL_REQUEST_TEMPLATE.md
356+++ b/.github/PULL_REQUEST_TEMPLATE.md
357@@ -1,5 +1,4 @@
358 ### Required for all PRs:
359
360-- [ ] Signed [CLA](https://influxdata.com/community/cla/).
361 - [ ] Associated README.md updated.
362 - [ ] Has appropriate unit tests.
363diff --git a/.github/dependabot.yml b/.github/dependabot.yml
364new file mode 100644
365index 0000000..f1b219b
366--- /dev/null
367+++ b/.github/dependabot.yml
368@@ -0,0 +1,6 @@
369+version: 2
370+updates:
371+ - package-ecosystem: "gomod"
372+ directory: "/"
373+ schedule:
374+ interval: "weekly"
375diff --git a/.golangci.yml b/.golangci.yml
376new file mode 100644
377index 0000000..0961510
378--- /dev/null
379+++ b/.golangci.yml
380@@ -0,0 +1,68 @@
381+linters:
382+ enable:
383+ - revive
384+
385+linters-settings:
386+ revive:
387+ rules:
388+ - name: blank-imports
389+ - name: context-as-argument
390+ - name: context-keys-type
391+ - name: dot-imports
392+ - name: error-return
393+ - name: error-strings
394+ - name: error-naming
395+ - name: exported
396+ - name: if-return
397+ - name: increment-decrement
398+ - name: var-naming
399+ - name: var-declaration
400+ - name: package-comments
401+ - name: range
402+ - name: receiver-naming
403+ - name: time-naming
404+ - name: unexported-return
405+ - name: indent-error-flow
406+ - name: errorf
407+ - name: empty-block
408+ - name: superfluous-else
409+ - name: unused-parameter
410+ - name: unreachable-code
411+ - name: redefines-builtin-id
412+
413+run:
414+ # which dirs to skip: issues from them won't be reported;
415+ # can use regexp here: generated.*, regexp is applied on full path;
416+ # default value is empty list, but default dirs are skipped independently
417+ # from this option's value (see skip-dirs-use-default).
418+ # "/" will be replaced by current OS file path separator to properly work
419+ # on Windows.
420+ skip-dirs:
421+ - scripts
422+ - docs
423+ - etc
424+
425+ # which files to skip: they will be analyzed, but issues from them
426+ # won't be reported. Default value is empty list, but there is
427+ # no need to include all autogenerated files, we confidently recognize
428+ # autogenerated files. If it's not please let us know.
429+ # "/" will be replaced by current OS file path separator to properly work
430+ # on Windows.
431+ skip-files:
432+ - plugins/parsers/influx/machine.go*
433+
434+issues:
435+ # List of regexps of issue texts to exclude, empty list by default.
436+ # But independently from this option we use default exclude patterns,
437+ # it can be disabled by `exclude-use-default: false`. To list all
438+ # excluded by default patterns execute `golangci-lint run --help`
439+ exclude:
440+ - don't use an underscore in package name
441+ - exported.*should have comment.*or be unexported
442+ - comment on exported.*should be of the form
443+
444+ # Maximum issues count per one linter. Set to 0 to disable. Default is 50.
445+ max-issues-per-linter: 0
446+
447+ # Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
448+ max-same-issues: 0
449diff --git a/.lgtm.yml b/.lgtm.yml
450new file mode 100644
451index 0000000..5b0b2e3
452--- /dev/null
453+++ b/.lgtm.yml
454@@ -0,0 +1,2 @@
455+queries:
456+ - exclude: go/disabled-certificate-check
457diff --git a/CHANGELOG.md b/CHANGELOG.md
458index 33fb315..43e4e3f 100644
459--- a/CHANGELOG.md
460+++ b/CHANGELOG.md
461@@ -1,3 +1,119 @@
462+## v1.18.1 [2021-04-07]
463+
464+#### Bugfixes
465+
466+ - [#9082](https://github.com/influxdata/telegraf/pull/9082) `inputs.mysql` Fix 'binary logs' query for MySQL 8
467+ - [#9069](https://github.com/influxdata/telegraf/pull/9069) `inputs.tail` Add configurable option for the 'path' tag override
468+ - [#9067](https://github.com/influxdata/telegraf/pull/9067) `inputs.nfsclient` Fix integer overflow in fields from mountstat
469+ - [#9050](https://github.com/influxdata/telegraf/pull/9050) `inputs.snmp` Fix init when no mibs are installed
470+ - [#9072](https://github.com/influxdata/telegraf/pull/9072) `inputs.ping` Always call SetPrivileged(true) in native mode
471+ - [#9043](https://github.com/influxdata/telegraf/pull/9043) `processors.ifname` Get interface name more effeciently
472+ - [#9056](https://github.com/influxdata/telegraf/pull/9056) `outputs.yandex_cloud_monitoring` Use correct compute metadata URL to get folder-id
473+ - [#9048](https://github.com/influxdata/telegraf/pull/9048) `outputs.azure_monitor` Handle error when initializing the auth object
474+ - [#8549](https://github.com/influxdata/telegraf/pull/8549) `inputs.sqlserver` Fix sqlserver_process_cpu calculation
475+ - [#9035](https://github.com/influxdata/telegraf/pull/9035) `inputs.ipmi_sensor` Fix panic
476+ - [#9009](https://github.com/influxdata/telegraf/pull/9009) `inputs.docker` Fix panic when parsing container stats
477+ - [#8333](https://github.com/influxdata/telegraf/pull/8333) `inputs.exec` Don't truncate messages in debug mode
478+ - [#8769](https://github.com/influxdata/telegraf/pull/8769) `agent` Close running outputs when reloadinlg
479+
480+## v1.18.0 [2021-03-17]
481+
482+#### Release Notes
483+
484+ - Support Go version 1.16.2
485+ - Added support for code signing in Windows
486+
487+#### Bugfixes
488+
489+ - [#7312](https://github.com/influxdata/telegraf/pull/7312) `inputs.docker` CPU stats respect perdevice
490+ - [#8397](https://github.com/influxdata/telegraf/pull/8397) `outputs.dynatrace` Dynatrace Plugin: Make conversion to counters possible / Changed large bulk handling
491+ - [#8655](https://github.com/influxdata/telegraf/pull/8655) `inputs.sqlserver` SqlServer - fix for default server list
492+ - [#8703](https://github.com/influxdata/telegraf/pull/8703) `inputs.docker` Use consistent container name in docker input plugin
493+ - [#8902](https://github.com/influxdata/telegraf/pull/8902) `inputs.snmp` Fix max_repetitions signedness issues
494+ - [#8817](https://github.com/influxdata/telegraf/pull/8817) `outputs.kinesis` outputs.kinesis - log record error count
495+ - [#8833](https://github.com/influxdata/telegraf/pull/8833) `inputs.sqlserver` Bug Fix - SQL Server HADR queries for SQL Versions
496+ - [#8628](https://github.com/influxdata/telegraf/pull/8628) `inputs.modbus` fix: reading multiple holding registers in modbus input plugin
497+ - [#8885](https://github.com/influxdata/telegraf/pull/8885) `inputs.statsd` Fix statsd concurrency bug
498+ - [#8393](https://github.com/influxdata/telegraf/pull/8393) `inputs.sqlserver` SQL Perfmon counters - synced queries from v2 to all db types
499+ - [#8873](https://github.com/influxdata/telegraf/pull/8873) `processors.ifname` Fix mutex locking around ifname cache
500+ - [#8720](https://github.com/influxdata/telegraf/pull/8720) `parsers.influx` fix: remove ambiguity on '\v' from line-protocol parser
501+ - [#8678](https://github.com/influxdata/telegraf/pull/8678) `inputs.redis` Fix Redis output field type inconsistencies
502+ - [#8953](https://github.com/influxdata/telegraf/pull/8953) `agent` Reset the flush interval timer when flush is requested or batch is ready.
503+ - [#8954](https://github.com/influxdata/telegraf/pull/8954) `common.kafka` Fix max open requests to one if idempotent writes is set to true
504+ - [#8721](https://github.com/influxdata/telegraf/pull/8721) `inputs.kube_inventory` Set $HOSTIP in default URL
505+ - [#8995](https://github.com/influxdata/telegraf/pull/8995) `inputs.sflow` fix segfaults in sflow plugin by checking if protocol headers are set
506+ - [#8986](https://github.com/influxdata/telegraf/pull/8986) `outputs.nats` nats_output: use the configured credentials file
507+
508+#### Features
509+
510+ - [#8887](https://github.com/influxdata/telegraf/pull/8887) `inputs.procstat` Add PPID field to procstat input plugin
511+ - [#8852](https://github.com/influxdata/telegraf/pull/8852) `processors.starlark` Add Starlark script for estimating Line Protocol cardinality
512+ - [#8915](https://github.com/influxdata/telegraf/pull/8915) `inputs.cloudwatch` add proxy
513+ - [#8910](https://github.com/influxdata/telegraf/pull/8910) `agent` Display error message on badly formatted config string array (eg. namepass)
514+ - [#8785](https://github.com/influxdata/telegraf/pull/8785) `inputs.diskio` Non systemd support with unittest
515+ - [#8850](https://github.com/influxdata/telegraf/pull/8850) `inputs.snmp` Support more snmpv3 authentication protocols
516+ - [#8813](https://github.com/influxdata/telegraf/pull/8813) `inputs.redfish` added member_id as tag(as it is a unique value) for redfish plugin and added address of the server when the status is other than 200 for better debugging
517+ - [#8613](https://github.com/influxdata/telegraf/pull/8613) `inputs.phpfpm` Support exclamation mark to create non-matching list in tail plugin
518+ - [#8179](https://github.com/influxdata/telegraf/pull/8179) `inputs.statsd` Add support for datadog distributions metric
519+ - [#8803](https://github.com/influxdata/telegraf/pull/8803) `agent` Add default retry for load config via url
520+ - [#8816](https://github.com/influxdata/telegraf/pull/8816) Code Signing for Windows
521+ - [#8772](https://github.com/influxdata/telegraf/pull/8772) `processors.starlark` Allow to provide constants to a starlark script
522+ - [#8749](https://github.com/influxdata/telegraf/pull/8749) `outputs.newrelic` Add HTTP proxy setting to New Relic output plugin
523+ - [#8543](https://github.com/influxdata/telegraf/pull/8543) `inputs.elasticsearch` Add configurable number of 'most recent' date-stamped indices to gather in Elasticsearch input
524+ - [#8675](https://github.com/influxdata/telegraf/pull/8675) `processors.starlark` Add Starlark parsing example of nested JSON
525+ - [#8762](https://github.com/influxdata/telegraf/pull/8762) `inputs.prometheus` Optimize for bigger kubernetes clusters (500+ pods)
526+ - [#8950](https://github.com/influxdata/telegraf/pull/8950) `inputs.teamspeak` Teamspeak input plugin query clients
527+ - [#8849](https://github.com/influxdata/telegraf/pull/8849) `inputs.sqlserver` Filter data out from system databases for Azure SQL DB only
528+
529+#### New Inputs
530+ - [Beat Input Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/beat) - Contributed by @nferch
531+ - [CS:GO Input Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/csgo) - Contributed by @oofdog
532+ - [Directory Monitoring Input Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/directory_monitor) - Contributed by @InfluxData
533+ - [RavenDB Input Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/ravendb) - Contributed by @ml054 and @bartoncasey
534+ - [NFS Input Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/nfsclient) - Contributed by @pmoranga
535+
536+#### New Outputs
537+ - [Grafana Loki Output Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/outputs/loki) - Contributed by @Eraac
538+ - [Google BigQuery Output Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/outputs/loki) - Contributed by @gkatzioura
539+ - [Sensu Output Plugin](https://github.com/influxdata/telegraf/blob/master/plugins/outputs/sensu) - Contributed by @calebhailey
540+ - [SignalFX Output Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/outputs/signalfx) - Contributed by @keitwb
541+
542+#### New Aggregators
543+ - [Derivative Aggregator Plugin ](https://github.com/influxdata/telegraf/tree/master/plugins/aggregators/derivative)- Contributed by @KarstenSchnitter
544+ - [Quantile Aggregator Plugin ](https://github.com/influxdata/telegraf/tree/master/plugins/aggregators/quantile) - Contributed by @srebhan
545+
546+#### New Processors
547+ - [AWS EC2 Metadata Processor Plugin ](https://github.com/influxdata/telegraf/tree/master/plugins/processors/aws/ec2) - Contributed by @pmalek-sumo
548+
549+#### New Parsers
550+ - [XML Parser Plugin ](https://github.com/influxdata/telegraf/tree/master/plugins/parsers/xml) - Contributed by @srebhan
551+
552+#### New Serializers
553+ - [MessagePack Serializer Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/serializers/msgpack) - Contributed by @dialogbox
554+
555+#### New External Plugins
556+ - [GeoIP Processor Plugin ](https://github.com/a-bali/telegraf-geoip) - Contributed by @a-bali
557+ - [Plex Webhook Input Plugin](https://github.com/russorat/telegraf-webhooks-plex) - Contributed by @russorat
558+ - [SMCIPMITool Input Plugin](https://github.com/jhpope/smc_ipmi) - Contributed by @jhpope
559+
560+## v1.17.3 [2021-02-17]
561+
562+#### Bugfixes
563+
564+ - [#7316](https://github.com/influxdata/telegraf/pull/7316) `inputs.filestat` plugins/filestat: Skip missing files
565+ - [#8868](https://github.com/influxdata/telegraf/pull/8868) Update to Go 1.15.8
566+ - [#8744](https://github.com/influxdata/telegraf/pull/8744) Bump github.com/gopcua/opcua from 0.1.12 to 0.1.13
567+ - [#8657](https://github.com/influxdata/telegraf/pull/8657) `outputs.warp10` outputs/warp10: url encode comma in tags value
568+ - [#8824](https://github.com/influxdata/telegraf/pull/8824) `inputs.x509_cert` inputs.x509_cert: Fix timeout issue
569+ - [#8821](https://github.com/influxdata/telegraf/pull/8821) `inputs.mqtt_consumer` Fix reconnection issues mqtt
570+ - [#8775](https://github.com/influxdata/telegraf/pull/8775) `outputs.influxdb` Validate the response from InfluxDB after writing/creating a database to avoid json parsing panics/errors
571+ - [#8804](https://github.com/influxdata/telegraf/pull/8804) `inputs.snmp` Expose v4/v6-only connection-schemes through GosnmpWrapper
572+ - [#8838](https://github.com/influxdata/telegraf/pull/8838) `agent` fix issue with reading flush_jitter output from config
573+ - [#8839](https://github.com/influxdata/telegraf/pull/8839) `inputs.ping` fixes Sort and timeout around deadline
574+ - [#8787](https://github.com/influxdata/telegraf/pull/8787) `inputs.ping` Update README for inputs.ping with correct cmd for native ping on Linux
575+ - [#8771](https://github.com/influxdata/telegraf/pull/8771) Update go-ping to latest version
576+
577+
578 ## v1.17.2 [2021-01-28]
579
580 #### Bugfixes
581@@ -16,7 +132,6 @@
582 - [#8616](https://github.com/influxdata/telegraf/pull/8616) Add Event Log support for Windows
583 - [#8602](https://github.com/influxdata/telegraf/pull/8602) `inputs.postgresql_extensible` Add timestamp column support to postgresql_extensible
584 - [#8627](https://github.com/influxdata/telegraf/pull/8627) `parsers.csv` Added ability to define skip values in csv parser
585- - [#8646](https://github.com/influxdata/telegraf/pull/8646) link to Open Hardware Monitor
586 - [#8055](https://github.com/influxdata/telegraf/pull/8055) `outputs.http` outputs/http: add option to control idle connection timeout
587 - [#7897](https://github.com/influxdata/telegraf/pull/7897) `common.tls` common/tls: Allow specifying SNI hostnames
588 - [#8541](https://github.com/influxdata/telegraf/pull/8541) `inputs.snmp` Extended the internal snmp wrapper to support AES192, AES192C, AES256, and AES256C
589@@ -44,6 +159,10 @@
590 - [#8588](https://github.com/influxdata/telegraf/pull/8588) `inputs.snmp` Input SNMP plugin - upgrade gosnmp library to version 1.29.0
591 - [#8502](https://github.com/influxdata/telegraf/pull/8502) `inputs.http_listener_v2` Fix Stop() bug when plugin fails to start
592
593+#### New External Plugins
594+
595+ - [#8646](https://github.com/influxdata/telegraf/pull/8646) [Open Hardware Monitoring](https://github.com/marianob85/open_hardware_monitor-telegraf-plugin) Input Plugin
596+
597
598 ## v1.17.0 [2020-12-18]
599
600diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
601index 0b2ad0e..a5ff6b2 100644
602--- a/CONTRIBUTING.md
603+++ b/CONTRIBUTING.md
604@@ -61,7 +61,13 @@ running. You can start the containers with:
605 docker-compose up
606 ```
607
608-And run the full test suite with:
609+To run only the integration tests use:
610+
611+```
612+make test-integration
613+```
614+
615+To run the full test suite use:
616 ```
617 make test-all
618 ```
619diff --git a/EXTERNAL_PLUGINS.md b/EXTERNAL_PLUGINS.md
620index 0a165a4..ffefd06 100644
621--- a/EXTERNAL_PLUGINS.md
622+++ b/EXTERNAL_PLUGINS.md
623@@ -9,7 +9,9 @@ Pull requests welcome.
624 - [awsalarms](https://github.com/vipinvkmenon/awsalarms) - Simple plugin to gather/monitor alarms generated in AWS.
625 - [octoprint](https://github.com/BattleBas/octoprint-telegraf-plugin) - Gather 3d print information from the octoprint API.
626 - [open-hardware-monitor](https://github.com/marianob85/open_hardware_monitor-telegraf-plugin) - Gather sensors data provided by [Open Hardware Monitor](http://openhardwaremonitor.org)
627+- [plex](https://github.com/russorat/telegraf-webhooks-plex) - Listens for events from Plex Media Server [Webhooks](https://support.plex.tv/articles/115002267687-webhooks/).
628 - [rand](https://github.com/ssoroka/rand) - Generate random numbers
629+- [SMCIPMITool](https://github.com/jhpope/smc_ipmi) - Python script to parse the output of [SMCIPMITool](https://www.supermicro.com/en/solutions/management-software/ipmi-utilities) into [InfluxDB line protocol](https://docs.influxdata.com/influxdb/latest/reference/syntax/line-protocol/).
630 - [systemd-timings](https://github.com/pdmorrow/telegraf-execd-systemd-timings) - Gather systemd boot and unit timestamp metrics.
631 - [twitter](https://github.com/inabagumi/twitter-telegraf-plugin) - Gather account information from Twitter accounts
632 - [youtube](https://github.com/inabagumi/youtube-telegraf-plugin) - Gather account information from YouTube channels
633diff --git a/Makefile b/Makefile
634index 6ac4f07..3adf4d9 100644
635--- a/Makefile
636+++ b/Makefile
637@@ -75,6 +75,7 @@ help:
638 @echo ' test - run short unit tests'
639 @echo ' fmt - format source files'
640 @echo ' tidy - tidy go modules'
641+ @echo ' lint - run linter'
642 @echo ' check-deps - check docs/LICENSE_OF_DEPENDENCIES.md'
643 @echo ' clean - delete build artifacts'
644 @echo ''
645@@ -83,11 +84,11 @@ help:
646
647 .PHONY: deps
648 deps:
649- go mod download
650+ go mod download -x
651
652 .PHONY: telegraf
653 telegraf:
654- go build -mod=mod -ldflags "$(LDFLAGS)" ./cmd/telegraf
655+ go build -ldflags "$(LDFLAGS)" ./cmd/telegraf
656
657 # Used by dockerfile builds
658 .PHONY: go-install
659@@ -98,6 +99,10 @@ go-install:
660 test:
661 go test -short $(race_detector) ./...
662
663+.PHONY: test-integration
664+test-integration:
665+ go test -run Integration $(race_detector) ./...
666+
667 .PHONY: fmt
668 fmt:
669 @gofmt -s -w $(filter-out plugins/parsers/influx/machine.go, $(GOFILES))
670@@ -126,6 +131,15 @@ vet:
671 exit 1; \
672 fi
673
674+.PHONY: lint
675+lint:
676+ifeq (, $(shell which golangci-lint))
677+ $(info golangci-lint can't be found, please install it: https://golangci-lint.run/usage/install/)
678+ exit 1
679+endif
680+
681+ golangci-lint run --timeout 5m0s --issues-exit-code 0
682+
683 .PHONY: tidy
684 tidy:
685 go mod verify
686@@ -137,7 +151,6 @@ tidy:
687
688 .PHONY: check
689 check: fmtcheck vet
690- @$(MAKE) --no-print-directory tidy
691
692 .PHONY: test-all
693 test-all: fmtcheck vet
694@@ -167,13 +180,13 @@ plugin-%:
695
696 .PHONY: ci-1.15
697 ci-1.15:
698- docker build -t quay.io/influxdb/telegraf-ci:1.15.5 - < scripts/ci-1.15.docker
699- docker push quay.io/influxdb/telegraf-ci:1.15.5
700+ docker build -t quay.io/influxdb/telegraf-ci:1.15.8 - < scripts/ci-1.15.docker
701+ docker push quay.io/influxdb/telegraf-ci:1.15.8
702
703-.PHONY: ci-1.14
704-ci-1.14:
705- docker build -t quay.io/influxdb/telegraf-ci:1.14.9 - < scripts/ci-1.14.docker
706- docker push quay.io/influxdb/telegraf-ci:1.14.9
707+.PHONY: ci-1.16
708+ci-1.16:
709+ docker build -t quay.io/influxdb/telegraf-ci:1.16.2 - < scripts/ci-1.16.docker
710+ docker push quay.io/influxdb/telegraf-ci:1.16.2
711
712 .PHONY: install
713 install: $(buildbin)
714diff --git a/README.md b/README.md
715index 1999f63..5535b95 100644
716--- a/README.md
717+++ b/README.md
718@@ -1,4 +1,4 @@
719-# Telegraf [![Circle CI](https://circleci.com/gh/influxdata/telegraf.svg?style=svg)](https://circleci.com/gh/influxdata/telegraf) [![Docker pulls](https://img.shields.io/docker/pulls/library/telegraf.svg)](https://hub.docker.com/_/telegraf/)
720+# Telegraf [![Circle CI](https://circleci.com/gh/influxdata/telegraf.svg?style=svg)](https://circleci.com/gh/influxdata/telegraf) [![Docker pulls](https://img.shields.io/docker/pulls/library/telegraf.svg)](https://hub.docker.com/_/telegraf/) [![Total alerts](https://img.shields.io/lgtm/alerts/g/influxdata/telegraf.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/influxdata/telegraf/alerts/)
721 [![Slack Status](https://img.shields.io/badge/slack-join_chat-white.svg?logo=slack&style=social)](https://www.influxdata.com/slack)
722
723 Telegraf is an agent for collecting, processing, aggregating, and writing metrics.
724@@ -52,9 +52,9 @@ Ansible role: https://github.com/rossmcdonald/telegraf
725
726 ### From Source:
727
728-Telegraf requires Go version 1.13 or newer, the Makefile requires GNU make.
729+Telegraf requires Go version 1.14 or newer, the Makefile requires GNU make.
730
731-1. [Install Go](https://golang.org/doc/install) >=1.13 (1.15 recommended)
732+1. [Install Go](https://golang.org/doc/install) >=1.14 (1.15 recommended)
733 2. Clone the Telegraf repository:
734 ```
735 cd ~/src
736@@ -259,6 +259,7 @@ For documentation on the latest development code see the [documentation index][d
737 * [net](./plugins/inputs/net)
738 * [net_response](./plugins/inputs/net_response)
739 * [netstat](./plugins/inputs/net)
740+* [nfsclient](./plugins/inputs/nfsclient)
741 * [nginx](./plugins/inputs/nginx)
742 * [nginx_plus_api](./plugins/inputs/nginx_plus_api)
743 * [nginx_plus](./plugins/inputs/nginx_plus)
744@@ -294,6 +295,7 @@ For documentation on the latest development code see the [documentation index][d
745 * [rabbitmq](./plugins/inputs/rabbitmq)
746 * [raindrops](./plugins/inputs/raindrops)
747 * [ras](./plugins/inputs/ras)
748+* [ravendb](./plugins/inputs/ravendb)
749 * [redfish](./plugins/inputs/redfish)
750 * [redis](./plugins/inputs/redis)
751 * [rethinkdb](./plugins/inputs/rethinkdb)
752@@ -364,11 +366,12 @@ For documentation on the latest development code see the [documentation index][d
753 ## Serializers
754
755 - [InfluxDB Line Protocol](/plugins/serializers/influx)
756-- [JSON](/plugins/serializers/json)
757+- [Carbon2](/plugins/serializers/carbon2)
758 - [Graphite](/plugins/serializers/graphite)
759+- [JSON](/plugins/serializers/json)
760+- [MessagePack](/plugins/serializers/msgpack)
761 - [ServiceNow](/plugins/serializers/nowmetric)
762 - [SplunkMetric](/plugins/serializers/splunkmetric)
763-- [Carbon2](/plugins/serializers/carbon2)
764 - [Wavefront](/plugins/serializers/wavefront)
765
766 ## Processor Plugins
767@@ -417,6 +420,7 @@ For documentation on the latest development code see the [documentation index][d
768 * [aws kinesis](./plugins/outputs/kinesis)
769 * [aws cloudwatch](./plugins/outputs/cloudwatch)
770 * [azure_monitor](./plugins/outputs/azure_monitor)
771+* [bigquery](./plugins/outputs/bigquery)
772 * [cloud_pubsub](./plugins/outputs/cloud_pubsub) Google Cloud Pub/Sub
773 * [cratedb](./plugins/outputs/cratedb)
774 * [datadog](./plugins/outputs/datadog)
775@@ -442,6 +446,8 @@ For documentation on the latest development code see the [documentation index][d
776 * [prometheus](./plugins/outputs/prometheus_client)
777 * [riemann](./plugins/outputs/riemann)
778 * [riemann_legacy](./plugins/outputs/riemann_legacy)
779+* [sensu](./plugins/outputs/sensu)
780+* [signalfx](./plugins/outputs/signalfx)
781 * [socket_writer](./plugins/outputs/socket_writer)
782 * [stackdriver](./plugins/outputs/stackdriver) (Google Cloud Monitoring)
783 * [syslog](./plugins/outputs/syslog)
784diff --git a/agent/agent.go b/agent/agent.go
785index e7ffee3..8bb1c8a 100644
786--- a/agent/agent.go
787+++ b/agent/agent.go
788@@ -447,6 +447,13 @@ func stopServiceInputs(inputs []*models.RunningInput) {
789 }
790 }
791
792+// stopRunningOutputs stops all running outputs.
793+func stopRunningOutputs(outputs []*models.RunningOutput) {
794+ for _, output := range outputs {
795+ output.Close()
796+ }
797+}
798+
799 // gather runs an input's gather function periodically until the context is
800 // done.
801 func (a *Agent) gatherLoop(
802@@ -785,6 +792,9 @@ func (a *Agent) runOutputs(
803 cancel()
804 wg.Wait()
805
806+ log.Println("I! [agent] Stopping running outputs")
807+ stopRunningOutputs(unit.outputs)
808+
809 return nil
810 }
811
812@@ -793,7 +803,7 @@ func (a *Agent) runOutputs(
813 func (a *Agent) flushLoop(
814 ctx context.Context,
815 output *models.RunningOutput,
816- ticker Ticker,
817+ ticker *RollingTicker,
818 ) {
819 logError := func(err error) {
820 if err != nil {
821@@ -822,15 +832,11 @@ func (a *Agent) flushLoop(
822 case <-ticker.Elapsed():
823 logError(a.flushOnce(output, ticker, output.Write))
824 case <-flushRequested:
825+ ticker.Reset()
826 logError(a.flushOnce(output, ticker, output.Write))
827 case <-output.BatchReady:
828- // Favor the ticker over batch ready
829- select {
830- case <-ticker.Elapsed():
831- logError(a.flushOnce(output, ticker, output.Write))
832- default:
833- logError(a.flushOnce(output, ticker, output.WriteBatch))
834- }
835+ ticker.Reset()
836+ logError(a.flushOnce(output, ticker, output.WriteBatch))
837 }
838 }
839 }
840diff --git a/agent/tick.go b/agent/tick.go
841index 91b9971..6afef2f 100644
842--- a/agent/tick.go
843+++ b/agent/tick.go
844@@ -216,6 +216,7 @@ type RollingTicker struct {
845 ch chan time.Time
846 cancel context.CancelFunc
847 wg sync.WaitGroup
848+ timer *clock.Timer
849 }
850
851 func NewRollingTicker(interval, jitter time.Duration) *RollingTicker {
852@@ -232,12 +233,12 @@ func newRollingTicker(interval, jitter time.Duration, clock clock.Clock) *Rollin
853 }
854
855 d := t.next()
856- timer := clock.Timer(d)
857+ t.timer = clock.Timer(d)
858
859 t.wg.Add(1)
860 go func() {
861 defer t.wg.Done()
862- t.run(ctx, timer)
863+ t.run(ctx)
864 }()
865
866 return t
867@@ -247,24 +248,28 @@ func (t *RollingTicker) next() time.Duration {
868 return t.interval + internal.RandomDuration(t.jitter)
869 }
870
871-func (t *RollingTicker) run(ctx context.Context, timer *clock.Timer) {
872+func (t *RollingTicker) run(ctx context.Context) {
873 for {
874 select {
875 case <-ctx.Done():
876- timer.Stop()
877+ t.timer.Stop()
878 return
879- case now := <-timer.C:
880+ case now := <-t.timer.C:
881 select {
882 case t.ch <- now:
883 default:
884 }
885
886- d := t.next()
887- timer.Reset(d)
888+ t.Reset()
889 }
890 }
891 }
892
893+// Reset the ticker to the next interval + jitter.
894+func (t *RollingTicker) Reset() {
895+ t.timer.Reset(t.next())
896+}
897+
898 func (t *RollingTicker) Elapsed() <-chan time.Time {
899 return t.ch
900 }
901diff --git a/agent/tick_test.go b/agent/tick_test.go
902index 5b8db7e..69bf0c2 100644
903--- a/agent/tick_test.go
904+++ b/agent/tick_test.go
905@@ -10,8 +10,6 @@ import (
906 "github.com/stretchr/testify/require"
907 )
908
909-var format = "2006-01-02T15:04:05.999Z07:00"
910-
911 func TestAlignedTicker(t *testing.T) {
912 interval := 10 * time.Second
913 jitter := 0 * time.Second
914@@ -249,7 +247,7 @@ func simulatedDist(ticker Ticker, clock *clock.Mock) Distribution {
915 for !clock.Now().After(until) {
916 select {
917 case tm := <-ticker.Elapsed():
918- dist.Buckets[tm.Second()] += 1
919+ dist.Buckets[tm.Second()]++
920 dist.Count++
921 dist.Waittime += tm.Sub(last).Seconds()
922 last = tm
923diff --git a/appveyor.yml b/appveyor.yml
924deleted file mode 100644
925index 6f5f6e9..0000000
926--- a/appveyor.yml
927+++ /dev/null
928@@ -1,35 +0,0 @@
929-version: "{build}"
930-
931-image: Visual Studio 2019
932-
933-cache:
934- - C:\gopath\pkg\mod -> go.sum
935- - C:\ProgramData\chocolatey\bin -> appveyor.yml
936- - C:\ProgramData\chocolatey\lib -> appveyor.yml
937-
938-clone_folder: C:\gopath\src\github.com\influxdata\telegraf
939-
940-environment:
941- GOPATH: C:\gopath
942-
943-stack: go 1.15
944-
945-platform: x64
946-
947-install:
948- - choco install make
949- - cd "%GOPATH%\src\github.com\influxdata\telegraf"
950- - git config --system core.longpaths true
951- - go version
952- - go env
953-
954-build_script:
955- - make deps
956- - make telegraf
957-
958-test_script:
959- - make check
960- - make test-windows
961-
962-artifacts:
963- - path: telegraf.exe
964diff --git a/assets/icon.icns b/assets/icon.icns
965new file mode 100644
966index 0000000..339a8da
967Binary files /dev/null and b/assets/icon.icns differ
968diff --git a/build_version.txt b/build_version.txt
969index 06fb41b..ec6d649 100644
970--- a/build_version.txt
971+++ b/build_version.txt
972@@ -1 +1 @@
973-1.17.2
974+1.18.1
975diff --git a/cmd/telegraf/telegraf.go b/cmd/telegraf/telegraf.go
976index 7e0b4ec..c6b2cc0 100644
977--- a/cmd/telegraf/telegraf.go
978+++ b/cmd/telegraf/telegraf.go
979@@ -15,6 +15,7 @@ import (
980 "syscall"
981 "time"
982
983+ "github.com/influxdata/telegraf"
984 "github.com/influxdata/telegraf/agent"
985 "github.com/influxdata/telegraf/config"
986 "github.com/influxdata/telegraf/internal"
987@@ -158,8 +159,9 @@ func runAgent(ctx context.Context,
988 }
989
990 // Setup logging as configured.
991+ telegraf.Debug = ag.Config.Agent.Debug || *fDebug
992 logConfig := logger.LogConfig{
993- Debug: ag.Config.Agent.Debug || *fDebug,
994+ Debug: telegraf.Debug,
995 Quiet: ag.Config.Agent.Quiet || *fQuiet,
996 LogTarget: ag.Config.Agent.LogTarget,
997 Logfile: ag.Config.Agent.Logfile,
998diff --git a/config/aws/credentials.go b/config/aws/credentials.go
999index f9c98ed..d697d96 100644
1000--- a/config/aws/credentials.go
1001+++ b/config/aws/credentials.go
1002@@ -22,9 +22,9 @@ type CredentialConfig struct {
1003 func (c *CredentialConfig) Credentials() client.ConfigProvider {
1004 if c.RoleARN != "" {
1005 return c.assumeCredentials()
1006- } else {
1007- return c.rootCredentials()
1008 }
1009+
1010+ return c.rootCredentials()
1011 }
1012
1013 func (c *CredentialConfig) rootCredentials() client.ConfigProvider {
1014diff --git a/config/config.go b/config/config.go
1015index b395f7d..5848342 100644
1016--- a/config/config.go
1017+++ b/config/config.go
1018@@ -49,6 +49,7 @@ var (
1019 `"`, `\"`,
1020 `\`, `\\`,
1021 )
1022+ httpLoadConfigRetryInterval = 10 * time.Second
1023 )
1024
1025 // Config specifies the URL/user/password for the database that telegraf
1026@@ -921,17 +922,27 @@ func fetchConfig(u *url.URL) ([]byte, error) {
1027 }
1028 req.Header.Add("Accept", "application/toml")
1029 req.Header.Set("User-Agent", internal.ProductToken())
1030- resp, err := http.DefaultClient.Do(req)
1031- if err != nil {
1032- return nil, err
1033- }
1034
1035- if resp.StatusCode != http.StatusOK {
1036- return nil, fmt.Errorf("failed to retrieve remote config: %s", resp.Status)
1037+ retries := 3
1038+ for i := 0; i <= retries; i++ {
1039+ resp, err := http.DefaultClient.Do(req)
1040+ if err != nil {
1041+ return nil, fmt.Errorf("Retry %d of %d failed connecting to HTTP config server %s", i, retries, err)
1042+ }
1043+
1044+ if resp.StatusCode != http.StatusOK {
1045+ if i < retries {
1046+ log.Printf("Error getting HTTP config. Retry %d of %d in %s. Status=%d", i, retries, httpLoadConfigRetryInterval, resp.StatusCode)
1047+ time.Sleep(httpLoadConfigRetryInterval)
1048+ continue
1049+ }
1050+ return nil, fmt.Errorf("Retry %d of %d failed to retrieve remote config: %s", i, retries, resp.Status)
1051+ }
1052+ defer resp.Body.Close()
1053+ return ioutil.ReadAll(resp.Body)
1054 }
1055
1056- defer resp.Body.Close()
1057- return ioutil.ReadAll(resp.Body)
1058+ return nil, nil
1059 }
1060
1061 // parseConfig loads a TOML configuration from a provided path and
1062@@ -1257,7 +1268,14 @@ func (c *Config) buildParser(name string, tbl *ast.Table) (parsers.Parser, error
1063 if err != nil {
1064 return nil, err
1065 }
1066- return parsers.NewParser(config)
1067+ parser, err := parsers.NewParser(config)
1068+ if err != nil {
1069+ return nil, err
1070+ }
1071+ logger := models.NewLogger("parsers", config.DataFormat, name)
1072+ models.SetLoggerOnPlugin(parser, logger)
1073+
1074+ return parser, nil
1075 }
1076
1077 func (c *Config) getParserConfig(name string, tbl *ast.Table) (*parsers.Config, error) {
1078@@ -1324,6 +1342,28 @@ func (c *Config) getParserConfig(name string, tbl *ast.Table) (*parsers.Config,
1079
1080 c.getFieldStringSlice(tbl, "form_urlencoded_tag_keys", &pc.FormUrlencodedTagKeys)
1081
1082+ //for XML parser
1083+ if node, ok := tbl.Fields["xml"]; ok {
1084+ if subtbls, ok := node.([]*ast.Table); ok {
1085+ pc.XMLConfig = make([]parsers.XMLConfig, len(subtbls))
1086+ for i, subtbl := range subtbls {
1087+ subcfg := pc.XMLConfig[i]
1088+ c.getFieldString(subtbl, "metric_name", &subcfg.MetricQuery)
1089+ c.getFieldString(subtbl, "metric_selection", &subcfg.Selection)
1090+ c.getFieldString(subtbl, "timestamp", &subcfg.Timestamp)
1091+ c.getFieldString(subtbl, "timestamp_format", &subcfg.TimestampFmt)
1092+ c.getFieldStringMap(subtbl, "tags", &subcfg.Tags)
1093+ c.getFieldStringMap(subtbl, "fields", &subcfg.Fields)
1094+ c.getFieldStringMap(subtbl, "fields_int", &subcfg.FieldsInt)
1095+ c.getFieldString(subtbl, "field_selection", &subcfg.FieldSelection)
1096+ c.getFieldBool(subtbl, "field_name_expansion", &subcfg.FieldNameExpand)
1097+ c.getFieldString(subtbl, "field_name", &subcfg.FieldNameQuery)
1098+ c.getFieldString(subtbl, "field_value", &subcfg.FieldValueQuery)
1099+ pc.XMLConfig[i] = subcfg
1100+ }
1101+ }
1102+ }
1103+
1104 pc.MetricName = name
1105
1106 if c.hasErrs() {
1107@@ -1392,7 +1432,7 @@ func (c *Config) buildOutput(name string, tbl *ast.Table) (*models.OutputConfig,
1108 // TODO: support FieldPass/FieldDrop on outputs
1109
1110 c.getFieldDuration(tbl, "flush_interval", &oc.FlushInterval)
1111- c.getFieldDuration(tbl, "flush_jitter", oc.FlushJitter)
1112+ c.getFieldDuration(tbl, "flush_jitter", &oc.FlushJitter)
1113
1114 c.getFieldInt(tbl, "metric_buffer_limit", &oc.MetricBufferLimit)
1115 c.getFieldInt(tbl, "metric_batch_size", &oc.MetricBatchSize)
1116@@ -1428,7 +1468,7 @@ func (c *Config) missingTomlField(typ reflect.Type, key string) error {
1117 "prefix", "prometheus_export_timestamp", "prometheus_sort_metrics", "prometheus_string_as_label",
1118 "separator", "splunkmetric_hec_routing", "splunkmetric_multimetric", "tag_keys",
1119 "tagdrop", "tagexclude", "taginclude", "tagpass", "tags", "template", "templates",
1120- "wavefront_source_override", "wavefront_use_strict":
1121+ "wavefront_source_override", "wavefront_use_strict", "xml":
1122
1123 // ignore fields that are common to all plugins.
1124 default:
1125@@ -1527,10 +1567,14 @@ func (c *Config) getFieldStringSlice(tbl *ast.Table, fieldName string, target *[
1126 *target = append(*target, str.Value)
1127 }
1128 }
1129+ } else {
1130+ c.addError(tbl, fmt.Errorf("found unexpected format while parsing %q, expecting string array/slice format", fieldName))
1131+ return
1132 }
1133 }
1134 }
1135 }
1136+
1137 func (c *Config) getFieldTagFilter(tbl *ast.Table, fieldName string, target *[]models.TagFilter) {
1138 if node, ok := tbl.Fields[fieldName]; ok {
1139 if subtbl, ok := node.(*ast.Table); ok {
1140@@ -1543,6 +1587,9 @@ func (c *Config) getFieldTagFilter(tbl *ast.Table, fieldName string, target *[]m
1141 tagfilter.Filter = append(tagfilter.Filter, str.Value)
1142 }
1143 }
1144+ } else {
1145+ c.addError(tbl, fmt.Errorf("found unexpected format while parsing %q, expecting string array/slice format on each entry", fieldName))
1146+ return
1147 }
1148 *target = append(*target, tagfilter)
1149 }
1150diff --git a/config/config_test.go b/config/config_test.go
1151index 79d74e8..e238dba 100644
1152--- a/config/config_test.go
1153+++ b/config/config_test.go
1154@@ -1,6 +1,8 @@
1155 package config
1156
1157 import (
1158+ "net/http"
1159+ "net/http/httptest"
1160 "os"
1161 "strings"
1162 "testing"
1163@@ -278,3 +280,37 @@ func TestConfig_AzureMonitorNamespacePrefix(t *testing.T) {
1164 assert.Equal(t, "", azureMonitor.NamespacePrefix)
1165 assert.Equal(t, true, ok)
1166 }
1167+
1168+func TestConfig_URLRetries3Fails(t *testing.T) {
1169+ httpLoadConfigRetryInterval = 0 * time.Second
1170+ responseCounter := 0
1171+ ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
1172+ w.WriteHeader(http.StatusNotFound)
1173+ responseCounter++
1174+ }))
1175+ defer ts.Close()
1176+
1177+ c := NewConfig()
1178+ err := c.LoadConfig(ts.URL)
1179+ require.Error(t, err)
1180+ require.Equal(t, 4, responseCounter)
1181+}
1182+
1183+func TestConfig_URLRetries3FailsThenPasses(t *testing.T) {
1184+ httpLoadConfigRetryInterval = 0 * time.Second
1185+ responseCounter := 0
1186+ ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
1187+ if responseCounter <= 2 {
1188+ w.WriteHeader(http.StatusNotFound)
1189+ } else {
1190+ w.WriteHeader(http.StatusOK)
1191+ }
1192+ responseCounter++
1193+ }))
1194+ defer ts.Close()
1195+
1196+ c := NewConfig()
1197+ err := c.LoadConfig(ts.URL)
1198+ require.NoError(t, err)
1199+ require.Equal(t, 4, responseCounter)
1200+}
1201diff --git a/debian/changelog b/debian/changelog
1202index d63498e..3c5a39c 100644
1203--- a/debian/changelog
1204+++ b/debian/changelog
1205@@ -1,3 +1,12 @@
1206+telegraf (1.18.1+ds1-0ubuntu1) impish; urgency=medium
1207+
1208+ * d/p/repack-telegraf-with-vendor.sh: Improve cleanup procedure.
1209+ * New upstream version 1.18.1+ds1.
1210+ * d/p/CVE-2021-3121.patch:
1211+ Fix for CVE-2021-3121. Update gogo/protobuf to 1.3.2. (LP: #1925968)
1212+
1213+ -- Sergio Durigan Junior <sergio.durigan@canonical.com> Tue, 27 Apr 2021 14:27:18 -0400
1214+
1215 telegraf (1.17.2+ds1-0ubuntu3) hirsute; urgency=medium
1216
1217 * d/rules: Disable test for inputs/riemann_listener.
1218diff --git a/debian/patches/CVE-2021-3121.patch b/debian/patches/CVE-2021-3121.patch
1219new file mode 100644
1220index 0000000..c98b779
1221--- /dev/null
1222+++ b/debian/patches/CVE-2021-3121.patch
1223@@ -0,0 +1,2726 @@
1224+From: Sergio Durigan Junior <sergio.durigan@canonical.com>
1225+Date: Tue, 27 Apr 2021 14:25:34 -0400
1226+Subject: CVE-2021-3121
1227+
1228+Update gogo/protobuf to version 1.3.2 in order to fix CVE-2021-3121.
1229+
1230+Bug: https://github.com/influxdata/telegraf/issues/9181
1231+Bug-Ubuntu: https://bugs.launchpad.net/telegraf/+bug/1925968
1232+Last-Updated: 2021-04-27
1233+---
1234+ go.mod | 2 +-
1235+ go.sum | 8 +
1236+ .../github.com/gogo/protobuf/proto/text_parser.go | 2 +-
1237+ vendor/github.com/gogo/protobuf/types/any.pb.go | 5 +-
1238+ vendor/github.com/gogo/protobuf/types/api.pb.go | 15 +-
1239+ .../github.com/gogo/protobuf/types/duration.pb.go | 5 +-
1240+ vendor/github.com/gogo/protobuf/types/empty.pb.go | 5 +-
1241+ .../gogo/protobuf/types/field_mask.pb.go | 5 +-
1242+ .../gogo/protobuf/types/source_context.pb.go | 5 +-
1243+ vendor/github.com/gogo/protobuf/types/struct.pb.go | 17 +-
1244+ .../github.com/gogo/protobuf/types/timestamp.pb.go | 5 +-
1245+ vendor/github.com/gogo/protobuf/types/type.pb.go | 25 +-
1246+ .../github.com/gogo/protobuf/types/wrappers.pb.go | 45 +-
1247+ vendor/golang.org/x/tools/cmd/goimports/doc.go | 4 +
1248+ vendor/golang.org/x/tools/go/analysis/analysis.go | 4 +
1249+ .../golang.org/x/tools/go/analysis/diagnostic.go | 4 +
1250+ vendor/golang.org/x/tools/go/analysis/doc.go | 4 +
1251+ vendor/golang.org/x/tools/go/analysis/validate.go | 4 +
1252+ vendor/golang.org/x/tools/go/ast/astutil/util.go | 4 +
1253+ .../golang.org/x/tools/go/ast/inspector/typeof.go | 4 +
1254+ .../golang.org/x/tools/go/buildutil/fakecontext.go | 4 +
1255+ vendor/golang.org/x/tools/go/buildutil/tags.go | 4 +
1256+ .../x/tools/go/internal/packagesdriver/sizes.go | 64 -
1257+ vendor/golang.org/x/tools/go/packages/external.go | 2 +-
1258+ vendor/golang.org/x/tools/go/packages/golist.go | 197 ++-
1259+ vendor/golang.org/x/tools/go/packages/visit.go | 4 +
1260+ .../x/tools/internal/event/core/event.go | 2 +-
1261+ .../x/tools/internal/gocommand/invoke.go | 29 +-
1262+ .../x/tools/internal/gocommand/version.go | 13 +-
1263+ vendor/golang.org/x/tools/internal/imports/mod.go | 19 +-
1264+ .../x/tools/internal/imports/mod_cache.go | 4 +
1265+ .../x/tools/internal/packagesinternal/packages.go | 4 +
1266+ .../x/tools/internal/typesinternal/errorcode.go | 1358 ++++++++++++++++++++
1267+ .../internal/typesinternal/errorcode_string.go | 152 +++
1268+ .../x/tools/internal/typesinternal/types.go | 17 +
1269+ vendor/modules.txt | 4 +-
1270+ 36 files changed, 1814 insertions(+), 235 deletions(-)
1271+ create mode 100644 vendor/golang.org/x/tools/internal/typesinternal/errorcode.go
1272+ create mode 100644 vendor/golang.org/x/tools/internal/typesinternal/errorcode_string.go
1273+
1274+diff --git a/go.mod b/go.mod
1275+index f90bf65..3c8284d 100644
1276+--- a/go.mod
1277++++ b/go.mod
1278+@@ -64,7 +64,7 @@ require (
1279+ github.com/goburrow/serial v0.1.0 // indirect
1280+ github.com/gobwas/glob v0.2.3
1281+ github.com/gofrs/uuid v2.1.0+incompatible
1282+- github.com/gogo/protobuf v1.3.1
1283++ github.com/gogo/protobuf v1.3.2
1284+ github.com/golang/geo v0.0.0-20190916061304-5b978397cfec
1285+ github.com/golang/protobuf v1.3.5
1286+ github.com/golang/snappy v0.0.1
1287+diff --git a/go.sum b/go.sum
1288+index 7e29f97..9389924 100644
1289+--- a/go.sum
1290++++ b/go.sum
1291+@@ -283,6 +283,8 @@ github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d/go.mod h1:SlYgWuQ5
1292+ github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
1293+ github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls=
1294+ github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
1295++github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
1296++github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
1297+ github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
1298+ github.com/golang/geo v0.0.0-20190916061304-5b978397cfec h1:lJwO/92dFXWeXOZdoGXgptLmNLwynMSHUmU6besqtiw=
1299+ github.com/golang/geo v0.0.0-20190916061304-5b978397cfec/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI=
1300+@@ -446,6 +448,7 @@ github.com/karrick/godirwalk v1.16.1/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1q
1301+ github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
1302+ github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
1303+ github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
1304++github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
1305+ github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
1306+ github.com/klauspost/compress v1.11.0 h1:wJbzvpYMVGG9iTI9VxpnNZfd4DzMPoCWze3GgSqz8yg=
1307+ github.com/klauspost/compress v1.11.0/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
1308+@@ -686,6 +689,7 @@ github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c h1:u40Z8hqBAAQyv+vATcGgV
1309+ github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I=
1310+ github.com/xdg/stringprep v1.0.0 h1:d9X0esnoa3dFsV0FG35rAT0RIhYFlPq7MiP+DW89La0=
1311+ github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y=
1312++github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
1313+ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
1314+ github.com/yuin/gopher-lua v0.0.0-20180630135845-46796da1b0b4 h1:f6CCNiTjQZ0uWK4jPwhwYB8QIGGfn0ssD9kVzRUUUpk=
1315+ github.com/yuin/gopher-lua v0.0.0-20180630135845-46796da1b0b4/go.mod h1:aEV29XrmTYFr3CiRxZeGHpkvbwq+prZduBqMaascyCU=
1316+@@ -778,6 +782,7 @@ golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/go.mod h1:z5CRVTTTmAJ677TzLL
1317+ golang.org/x/net v0.0.0-20191007182048-72f939374954/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
1318+ golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
1319+ golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
1320++golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
1321+ golang.org/x/net v0.0.0-20200425230154-ff2c4b7c35a0/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
1322+ golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
1323+ golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
1324+@@ -886,8 +891,11 @@ golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapK
1325+ golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
1326+ golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
1327+ golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
1328++golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
1329+ golang.org/x/tools v0.0.0-20201022035929-9cf592e881e9 h1:sEvmEcJVKBNUvgCUClbUQeHOAa9U0I2Ce1BooMvVCY4=
1330+ golang.org/x/tools v0.0.0-20201022035929-9cf592e881e9/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
1331++golang.org/x/tools v0.0.0-20210106214847-113979e3529a h1:CB3a9Nez8M13wwlr/E2YtwoU+qYHKfC+JrDa45RXXoQ=
1332++golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
1333+ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
1334+ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
1335+ golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
1336+diff --git a/vendor/github.com/gogo/protobuf/proto/text_parser.go b/vendor/github.com/gogo/protobuf/proto/text_parser.go
1337+index 1ce0be2..f85c0cc 100644
1338+--- a/vendor/github.com/gogo/protobuf/proto/text_parser.go
1339++++ b/vendor/github.com/gogo/protobuf/proto/text_parser.go
1340+@@ -318,7 +318,7 @@ func unescape(s string) (ch string, tail string, err error) {
1341+ if i > utf8.MaxRune {
1342+ return "", "", fmt.Errorf(`\%c%s is not a valid Unicode code point`, r, ss)
1343+ }
1344+- return string(i), s, nil
1345++ return string(rune(i)), s, nil
1346+ }
1347+ return "", "", fmt.Errorf(`unknown escape \%c`, r)
1348+ }
1349+diff --git a/vendor/github.com/gogo/protobuf/types/any.pb.go b/vendor/github.com/gogo/protobuf/types/any.pb.go
1350+index 98e269d..e3d4d94 100644
1351+--- a/vendor/github.com/gogo/protobuf/types/any.pb.go
1352++++ b/vendor/github.com/gogo/protobuf/types/any.pb.go
1353+@@ -592,10 +592,7 @@ func (m *Any) Unmarshal(dAtA []byte) error {
1354+ if err != nil {
1355+ return err
1356+ }
1357+- if skippy < 0 {
1358+- return ErrInvalidLengthAny
1359+- }
1360+- if (iNdEx + skippy) < 0 {
1361++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1362+ return ErrInvalidLengthAny
1363+ }
1364+ if (iNdEx + skippy) > l {
1365+diff --git a/vendor/github.com/gogo/protobuf/types/api.pb.go b/vendor/github.com/gogo/protobuf/types/api.pb.go
1366+index 58bf4b5..83e8869 100644
1367+--- a/vendor/github.com/gogo/protobuf/types/api.pb.go
1368++++ b/vendor/github.com/gogo/protobuf/types/api.pb.go
1369+@@ -1677,10 +1677,7 @@ func (m *Api) Unmarshal(dAtA []byte) error {
1370+ if err != nil {
1371+ return err
1372+ }
1373+- if skippy < 0 {
1374+- return ErrInvalidLengthApi
1375+- }
1376+- if (iNdEx + skippy) < 0 {
1377++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1378+ return ErrInvalidLengthApi
1379+ }
1380+ if (iNdEx + skippy) > l {
1381+@@ -1920,10 +1917,7 @@ func (m *Method) Unmarshal(dAtA []byte) error {
1382+ if err != nil {
1383+ return err
1384+ }
1385+- if skippy < 0 {
1386+- return ErrInvalidLengthApi
1387+- }
1388+- if (iNdEx + skippy) < 0 {
1389++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1390+ return ErrInvalidLengthApi
1391+ }
1392+ if (iNdEx + skippy) > l {
1393+@@ -2038,10 +2032,7 @@ func (m *Mixin) Unmarshal(dAtA []byte) error {
1394+ if err != nil {
1395+ return err
1396+ }
1397+- if skippy < 0 {
1398+- return ErrInvalidLengthApi
1399+- }
1400+- if (iNdEx + skippy) < 0 {
1401++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1402+ return ErrInvalidLengthApi
1403+ }
1404+ if (iNdEx + skippy) > l {
1405+diff --git a/vendor/github.com/gogo/protobuf/types/duration.pb.go b/vendor/github.com/gogo/protobuf/types/duration.pb.go
1406+index 3959f06..4deafcb 100644
1407+--- a/vendor/github.com/gogo/protobuf/types/duration.pb.go
1408++++ b/vendor/github.com/gogo/protobuf/types/duration.pb.go
1409+@@ -415,10 +415,7 @@ func (m *Duration) Unmarshal(dAtA []byte) error {
1410+ if err != nil {
1411+ return err
1412+ }
1413+- if skippy < 0 {
1414+- return ErrInvalidLengthDuration
1415+- }
1416+- if (iNdEx + skippy) < 0 {
1417++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1418+ return ErrInvalidLengthDuration
1419+ }
1420+ if (iNdEx + skippy) > l {
1421+diff --git a/vendor/github.com/gogo/protobuf/types/empty.pb.go b/vendor/github.com/gogo/protobuf/types/empty.pb.go
1422+index 17e3aa5..9e94748 100644
1423+--- a/vendor/github.com/gogo/protobuf/types/empty.pb.go
1424++++ b/vendor/github.com/gogo/protobuf/types/empty.pb.go
1425+@@ -360,10 +360,7 @@ func (m *Empty) Unmarshal(dAtA []byte) error {
1426+ if err != nil {
1427+ return err
1428+ }
1429+- if skippy < 0 {
1430+- return ErrInvalidLengthEmpty
1431+- }
1432+- if (iNdEx + skippy) < 0 {
1433++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1434+ return ErrInvalidLengthEmpty
1435+ }
1436+ if (iNdEx + skippy) > l {
1437+diff --git a/vendor/github.com/gogo/protobuf/types/field_mask.pb.go b/vendor/github.com/gogo/protobuf/types/field_mask.pb.go
1438+index 7226b57..6ae346d 100644
1439+--- a/vendor/github.com/gogo/protobuf/types/field_mask.pb.go
1440++++ b/vendor/github.com/gogo/protobuf/types/field_mask.pb.go
1441+@@ -636,10 +636,7 @@ func (m *FieldMask) Unmarshal(dAtA []byte) error {
1442+ if err != nil {
1443+ return err
1444+ }
1445+- if skippy < 0 {
1446+- return ErrInvalidLengthFieldMask
1447+- }
1448+- if (iNdEx + skippy) < 0 {
1449++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1450+ return ErrInvalidLengthFieldMask
1451+ }
1452+ if (iNdEx + skippy) > l {
1453+diff --git a/vendor/github.com/gogo/protobuf/types/source_context.pb.go b/vendor/github.com/gogo/protobuf/types/source_context.pb.go
1454+index 61045ce..8e6ce71 100644
1455+--- a/vendor/github.com/gogo/protobuf/types/source_context.pb.go
1456++++ b/vendor/github.com/gogo/protobuf/types/source_context.pb.go
1457+@@ -422,10 +422,7 @@ func (m *SourceContext) Unmarshal(dAtA []byte) error {
1458+ if err != nil {
1459+ return err
1460+ }
1461+- if skippy < 0 {
1462+- return ErrInvalidLengthSourceContext
1463+- }
1464+- if (iNdEx + skippy) < 0 {
1465++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1466+ return ErrInvalidLengthSourceContext
1467+ }
1468+ if (iNdEx + skippy) > l {
1469+diff --git a/vendor/github.com/gogo/protobuf/types/struct.pb.go b/vendor/github.com/gogo/protobuf/types/struct.pb.go
1470+index cea553e..c045731 100644
1471+--- a/vendor/github.com/gogo/protobuf/types/struct.pb.go
1472++++ b/vendor/github.com/gogo/protobuf/types/struct.pb.go
1473+@@ -1862,7 +1862,7 @@ func (m *Struct) Unmarshal(dAtA []byte) error {
1474+ if err != nil {
1475+ return err
1476+ }
1477+- if skippy < 0 {
1478++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1479+ return ErrInvalidLengthStruct
1480+ }
1481+ if (iNdEx + skippy) > postIndex {
1482+@@ -1879,10 +1879,7 @@ func (m *Struct) Unmarshal(dAtA []byte) error {
1483+ if err != nil {
1484+ return err
1485+ }
1486+- if skippy < 0 {
1487+- return ErrInvalidLengthStruct
1488+- }
1489+- if (iNdEx + skippy) < 0 {
1490++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1491+ return ErrInvalidLengthStruct
1492+ }
1493+ if (iNdEx + skippy) > l {
1494+@@ -2087,10 +2084,7 @@ func (m *Value) Unmarshal(dAtA []byte) error {
1495+ if err != nil {
1496+ return err
1497+ }
1498+- if skippy < 0 {
1499+- return ErrInvalidLengthStruct
1500+- }
1501+- if (iNdEx + skippy) < 0 {
1502++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1503+ return ErrInvalidLengthStruct
1504+ }
1505+ if (iNdEx + skippy) > l {
1506+@@ -2175,10 +2169,7 @@ func (m *ListValue) Unmarshal(dAtA []byte) error {
1507+ if err != nil {
1508+ return err
1509+ }
1510+- if skippy < 0 {
1511+- return ErrInvalidLengthStruct
1512+- }
1513+- if (iNdEx + skippy) < 0 {
1514++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1515+ return ErrInvalidLengthStruct
1516+ }
1517+ if (iNdEx + skippy) > l {
1518+diff --git a/vendor/github.com/gogo/protobuf/types/timestamp.pb.go b/vendor/github.com/gogo/protobuf/types/timestamp.pb.go
1519+index b818752..45db7b3 100644
1520+--- a/vendor/github.com/gogo/protobuf/types/timestamp.pb.go
1521++++ b/vendor/github.com/gogo/protobuf/types/timestamp.pb.go
1522+@@ -437,10 +437,7 @@ func (m *Timestamp) Unmarshal(dAtA []byte) error {
1523+ if err != nil {
1524+ return err
1525+ }
1526+- if skippy < 0 {
1527+- return ErrInvalidLengthTimestamp
1528+- }
1529+- if (iNdEx + skippy) < 0 {
1530++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1531+ return ErrInvalidLengthTimestamp
1532+ }
1533+ if (iNdEx + skippy) > l {
1534+diff --git a/vendor/github.com/gogo/protobuf/types/type.pb.go b/vendor/github.com/gogo/protobuf/types/type.pb.go
1535+index 13b7ec0..791427b 100644
1536+--- a/vendor/github.com/gogo/protobuf/types/type.pb.go
1537++++ b/vendor/github.com/gogo/protobuf/types/type.pb.go
1538+@@ -2483,10 +2483,7 @@ func (m *Type) Unmarshal(dAtA []byte) error {
1539+ if err != nil {
1540+ return err
1541+ }
1542+- if skippy < 0 {
1543+- return ErrInvalidLengthType
1544+- }
1545+- if (iNdEx + skippy) < 0 {
1546++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1547+ return ErrInvalidLengthType
1548+ }
1549+ if (iNdEx + skippy) > l {
1550+@@ -2795,10 +2792,7 @@ func (m *Field) Unmarshal(dAtA []byte) error {
1551+ if err != nil {
1552+ return err
1553+ }
1554+- if skippy < 0 {
1555+- return ErrInvalidLengthType
1556+- }
1557+- if (iNdEx + skippy) < 0 {
1558++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1559+ return ErrInvalidLengthType
1560+ }
1561+ if (iNdEx + skippy) > l {
1562+@@ -3004,10 +2998,7 @@ func (m *Enum) Unmarshal(dAtA []byte) error {
1563+ if err != nil {
1564+ return err
1565+ }
1566+- if skippy < 0 {
1567+- return ErrInvalidLengthType
1568+- }
1569+- if (iNdEx + skippy) < 0 {
1570++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1571+ return ErrInvalidLengthType
1572+ }
1573+ if (iNdEx + skippy) > l {
1574+@@ -3143,10 +3134,7 @@ func (m *EnumValue) Unmarshal(dAtA []byte) error {
1575+ if err != nil {
1576+ return err
1577+ }
1578+- if skippy < 0 {
1579+- return ErrInvalidLengthType
1580+- }
1581+- if (iNdEx + skippy) < 0 {
1582++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1583+ return ErrInvalidLengthType
1584+ }
1585+ if (iNdEx + skippy) > l {
1586+@@ -3265,10 +3253,7 @@ func (m *Option) Unmarshal(dAtA []byte) error {
1587+ if err != nil {
1588+ return err
1589+ }
1590+- if skippy < 0 {
1591+- return ErrInvalidLengthType
1592+- }
1593+- if (iNdEx + skippy) < 0 {
1594++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1595+ return ErrInvalidLengthType
1596+ }
1597+ if (iNdEx + skippy) > l {
1598+diff --git a/vendor/github.com/gogo/protobuf/types/wrappers.pb.go b/vendor/github.com/gogo/protobuf/types/wrappers.pb.go
1599+index 8f1edb5..8d41542 100644
1600+--- a/vendor/github.com/gogo/protobuf/types/wrappers.pb.go
1601++++ b/vendor/github.com/gogo/protobuf/types/wrappers.pb.go
1602+@@ -2020,10 +2020,7 @@ func (m *DoubleValue) Unmarshal(dAtA []byte) error {
1603+ if err != nil {
1604+ return err
1605+ }
1606+- if skippy < 0 {
1607+- return ErrInvalidLengthWrappers
1608+- }
1609+- if (iNdEx + skippy) < 0 {
1610++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1611+ return ErrInvalidLengthWrappers
1612+ }
1613+ if (iNdEx + skippy) > l {
1614+@@ -2085,10 +2082,7 @@ func (m *FloatValue) Unmarshal(dAtA []byte) error {
1615+ if err != nil {
1616+ return err
1617+ }
1618+- if skippy < 0 {
1619+- return ErrInvalidLengthWrappers
1620+- }
1621+- if (iNdEx + skippy) < 0 {
1622++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1623+ return ErrInvalidLengthWrappers
1624+ }
1625+ if (iNdEx + skippy) > l {
1626+@@ -2158,10 +2152,7 @@ func (m *Int64Value) Unmarshal(dAtA []byte) error {
1627+ if err != nil {
1628+ return err
1629+ }
1630+- if skippy < 0 {
1631+- return ErrInvalidLengthWrappers
1632+- }
1633+- if (iNdEx + skippy) < 0 {
1634++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1635+ return ErrInvalidLengthWrappers
1636+ }
1637+ if (iNdEx + skippy) > l {
1638+@@ -2231,10 +2222,7 @@ func (m *UInt64Value) Unmarshal(dAtA []byte) error {
1639+ if err != nil {
1640+ return err
1641+ }
1642+- if skippy < 0 {
1643+- return ErrInvalidLengthWrappers
1644+- }
1645+- if (iNdEx + skippy) < 0 {
1646++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1647+ return ErrInvalidLengthWrappers
1648+ }
1649+ if (iNdEx + skippy) > l {
1650+@@ -2304,10 +2292,7 @@ func (m *Int32Value) Unmarshal(dAtA []byte) error {
1651+ if err != nil {
1652+ return err
1653+ }
1654+- if skippy < 0 {
1655+- return ErrInvalidLengthWrappers
1656+- }
1657+- if (iNdEx + skippy) < 0 {
1658++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1659+ return ErrInvalidLengthWrappers
1660+ }
1661+ if (iNdEx + skippy) > l {
1662+@@ -2377,10 +2362,7 @@ func (m *UInt32Value) Unmarshal(dAtA []byte) error {
1663+ if err != nil {
1664+ return err
1665+ }
1666+- if skippy < 0 {
1667+- return ErrInvalidLengthWrappers
1668+- }
1669+- if (iNdEx + skippy) < 0 {
1670++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1671+ return ErrInvalidLengthWrappers
1672+ }
1673+ if (iNdEx + skippy) > l {
1674+@@ -2451,10 +2433,7 @@ func (m *BoolValue) Unmarshal(dAtA []byte) error {
1675+ if err != nil {
1676+ return err
1677+ }
1678+- if skippy < 0 {
1679+- return ErrInvalidLengthWrappers
1680+- }
1681+- if (iNdEx + skippy) < 0 {
1682++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1683+ return ErrInvalidLengthWrappers
1684+ }
1685+ if (iNdEx + skippy) > l {
1686+@@ -2537,10 +2516,7 @@ func (m *StringValue) Unmarshal(dAtA []byte) error {
1687+ if err != nil {
1688+ return err
1689+ }
1690+- if skippy < 0 {
1691+- return ErrInvalidLengthWrappers
1692+- }
1693+- if (iNdEx + skippy) < 0 {
1694++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1695+ return ErrInvalidLengthWrappers
1696+ }
1697+ if (iNdEx + skippy) > l {
1698+@@ -2625,10 +2601,7 @@ func (m *BytesValue) Unmarshal(dAtA []byte) error {
1699+ if err != nil {
1700+ return err
1701+ }
1702+- if skippy < 0 {
1703+- return ErrInvalidLengthWrappers
1704+- }
1705+- if (iNdEx + skippy) < 0 {
1706++ if (skippy < 0) || (iNdEx+skippy) < 0 {
1707+ return ErrInvalidLengthWrappers
1708+ }
1709+ if (iNdEx + skippy) > l {
1710+diff --git a/vendor/golang.org/x/tools/cmd/goimports/doc.go b/vendor/golang.org/x/tools/cmd/goimports/doc.go
1711+index 7033e4d..f344d80 100644
1712+--- a/vendor/golang.org/x/tools/cmd/goimports/doc.go
1713++++ b/vendor/golang.org/x/tools/cmd/goimports/doc.go
1714+@@ -1,3 +1,7 @@
1715++// Copyright 2013 The Go Authors. All rights reserved.
1716++// Use of this source code is governed by a BSD-style
1717++// license that can be found in the LICENSE file.
1718++
1719+ /*
1720+
1721+ Command goimports updates your Go import lines,
1722+diff --git a/vendor/golang.org/x/tools/go/analysis/analysis.go b/vendor/golang.org/x/tools/go/analysis/analysis.go
1723+index 8c3c2e7..d11505a 100644
1724+--- a/vendor/golang.org/x/tools/go/analysis/analysis.go
1725++++ b/vendor/golang.org/x/tools/go/analysis/analysis.go
1726+@@ -1,3 +1,7 @@
1727++// Copyright 2018 The Go Authors. All rights reserved.
1728++// Use of this source code is governed by a BSD-style
1729++// license that can be found in the LICENSE file.
1730++
1731+ package analysis
1732+
1733+ import (
1734+diff --git a/vendor/golang.org/x/tools/go/analysis/diagnostic.go b/vendor/golang.org/x/tools/go/analysis/diagnostic.go
1735+index 57eaf6f..cd462a0 100644
1736+--- a/vendor/golang.org/x/tools/go/analysis/diagnostic.go
1737++++ b/vendor/golang.org/x/tools/go/analysis/diagnostic.go
1738+@@ -1,3 +1,7 @@
1739++// Copyright 2019 The Go Authors. All rights reserved.
1740++// Use of this source code is governed by a BSD-style
1741++// license that can be found in the LICENSE file.
1742++
1743+ package analysis
1744+
1745+ import "go/token"
1746+diff --git a/vendor/golang.org/x/tools/go/analysis/doc.go b/vendor/golang.org/x/tools/go/analysis/doc.go
1747+index 9fa3302..94a3bd5 100644
1748+--- a/vendor/golang.org/x/tools/go/analysis/doc.go
1749++++ b/vendor/golang.org/x/tools/go/analysis/doc.go
1750+@@ -1,3 +1,7 @@
1751++// Copyright 2018 The Go Authors. All rights reserved.
1752++// Use of this source code is governed by a BSD-style
1753++// license that can be found in the LICENSE file.
1754++
1755+ /*
1756+
1757+ Package analysis defines the interface between a modular static
1758+diff --git a/vendor/golang.org/x/tools/go/analysis/validate.go b/vendor/golang.org/x/tools/go/analysis/validate.go
1759+index ad0e727..23e57bf 100644
1760+--- a/vendor/golang.org/x/tools/go/analysis/validate.go
1761++++ b/vendor/golang.org/x/tools/go/analysis/validate.go
1762+@@ -1,3 +1,7 @@
1763++// Copyright 2018 The Go Authors. All rights reserved.
1764++// Use of this source code is governed by a BSD-style
1765++// license that can be found in the LICENSE file.
1766++
1767+ package analysis
1768+
1769+ import (
1770+diff --git a/vendor/golang.org/x/tools/go/ast/astutil/util.go b/vendor/golang.org/x/tools/go/ast/astutil/util.go
1771+index 7630629..919d530 100644
1772+--- a/vendor/golang.org/x/tools/go/ast/astutil/util.go
1773++++ b/vendor/golang.org/x/tools/go/ast/astutil/util.go
1774+@@ -1,3 +1,7 @@
1775++// Copyright 2015 The Go Authors. All rights reserved.
1776++// Use of this source code is governed by a BSD-style
1777++// license that can be found in the LICENSE file.
1778++
1779+ package astutil
1780+
1781+ import "go/ast"
1782+diff --git a/vendor/golang.org/x/tools/go/ast/inspector/typeof.go b/vendor/golang.org/x/tools/go/ast/inspector/typeof.go
1783+index d61301b..b6b00cf 100644
1784+--- a/vendor/golang.org/x/tools/go/ast/inspector/typeof.go
1785++++ b/vendor/golang.org/x/tools/go/ast/inspector/typeof.go
1786+@@ -1,3 +1,7 @@
1787++// Copyright 2018 The Go Authors. All rights reserved.
1788++// Use of this source code is governed by a BSD-style
1789++// license that can be found in the LICENSE file.
1790++
1791+ package inspector
1792+
1793+ // This file defines func typeOf(ast.Node) uint64.
1794+diff --git a/vendor/golang.org/x/tools/go/buildutil/fakecontext.go b/vendor/golang.org/x/tools/go/buildutil/fakecontext.go
1795+index 8b7f066..5fc672f 100644
1796+--- a/vendor/golang.org/x/tools/go/buildutil/fakecontext.go
1797++++ b/vendor/golang.org/x/tools/go/buildutil/fakecontext.go
1798+@@ -1,3 +1,7 @@
1799++// Copyright 2015 The Go Authors. All rights reserved.
1800++// Use of this source code is governed by a BSD-style
1801++// license that can be found in the LICENSE file.
1802++
1803+ package buildutil
1804+
1805+ import (
1806+diff --git a/vendor/golang.org/x/tools/go/buildutil/tags.go b/vendor/golang.org/x/tools/go/buildutil/tags.go
1807+index 486606f..6da0ce4 100644
1808+--- a/vendor/golang.org/x/tools/go/buildutil/tags.go
1809++++ b/vendor/golang.org/x/tools/go/buildutil/tags.go
1810+@@ -1,3 +1,7 @@
1811++// Copyright 2015 The Go Authors. All rights reserved.
1812++// Use of this source code is governed by a BSD-style
1813++// license that can be found in the LICENSE file.
1814++
1815+ package buildutil
1816+
1817+ // This logic was copied from stringsFlag from $GOROOT/src/cmd/go/build.go.
1818+diff --git a/vendor/golang.org/x/tools/go/internal/packagesdriver/sizes.go b/vendor/golang.org/x/tools/go/internal/packagesdriver/sizes.go
1819+index 35bc6a4..f4d73b2 100644
1820+--- a/vendor/golang.org/x/tools/go/internal/packagesdriver/sizes.go
1821++++ b/vendor/golang.org/x/tools/go/internal/packagesdriver/sizes.go
1822+@@ -6,12 +6,9 @@
1823+ package packagesdriver
1824+
1825+ import (
1826+- "bytes"
1827+ "context"
1828+- "encoding/json"
1829+ "fmt"
1830+ "go/types"
1831+- "os/exec"
1832+ "strings"
1833+
1834+ "golang.org/x/tools/internal/gocommand"
1835+@@ -19,67 +16,6 @@ import (
1836+
1837+ var debug = false
1838+
1839+-func GetSizes(ctx context.Context, buildFlags, env []string, gocmdRunner *gocommand.Runner, dir string) (types.Sizes, error) {
1840+- // TODO(matloob): Clean this up. This code is mostly a copy of packages.findExternalDriver.
1841+- const toolPrefix = "GOPACKAGESDRIVER="
1842+- tool := ""
1843+- for _, env := range env {
1844+- if val := strings.TrimPrefix(env, toolPrefix); val != env {
1845+- tool = val
1846+- }
1847+- }
1848+-
1849+- if tool == "" {
1850+- var err error
1851+- tool, err = exec.LookPath("gopackagesdriver")
1852+- if err != nil {
1853+- // We did not find the driver, so use "go list".
1854+- tool = "off"
1855+- }
1856+- }
1857+-
1858+- if tool == "off" {
1859+- inv := gocommand.Invocation{
1860+- BuildFlags: buildFlags,
1861+- Env: env,
1862+- WorkingDir: dir,
1863+- }
1864+- return GetSizesGolist(ctx, inv, gocmdRunner)
1865+- }
1866+-
1867+- req, err := json.Marshal(struct {
1868+- Command string `json:"command"`
1869+- Env []string `json:"env"`
1870+- BuildFlags []string `json:"build_flags"`
1871+- }{
1872+- Command: "sizes",
1873+- Env: env,
1874+- BuildFlags: buildFlags,
1875+- })
1876+- if err != nil {
1877+- return nil, fmt.Errorf("failed to encode message to driver tool: %v", err)
1878+- }
1879+-
1880+- buf := new(bytes.Buffer)
1881+- cmd := exec.CommandContext(ctx, tool)
1882+- cmd.Dir = dir
1883+- cmd.Env = env
1884+- cmd.Stdin = bytes.NewReader(req)
1885+- cmd.Stdout = buf
1886+- cmd.Stderr = new(bytes.Buffer)
1887+- if err := cmd.Run(); err != nil {
1888+- return nil, fmt.Errorf("%v: %v: %s", tool, err, cmd.Stderr)
1889+- }
1890+- var response struct {
1891+- // Sizes, if not nil, is the types.Sizes to use when type checking.
1892+- Sizes *types.StdSizes
1893+- }
1894+- if err := json.Unmarshal(buf.Bytes(), &response); err != nil {
1895+- return nil, err
1896+- }
1897+- return response.Sizes, nil
1898+-}
1899+-
1900+ func GetSizesGolist(ctx context.Context, inv gocommand.Invocation, gocmdRunner *gocommand.Runner) (types.Sizes, error) {
1901+ inv.Verb = "list"
1902+ inv.Args = []string{"-f", "{{context.GOARCH}} {{context.Compiler}}", "--", "unsafe"}
1903+diff --git a/vendor/golang.org/x/tools/go/packages/external.go b/vendor/golang.org/x/tools/go/packages/external.go
1904+index 8c8473f..7db1d12 100644
1905+--- a/vendor/golang.org/x/tools/go/packages/external.go
1906++++ b/vendor/golang.org/x/tools/go/packages/external.go
1907+@@ -89,7 +89,7 @@ func findExternalDriver(cfg *Config) driver {
1908+ return nil, fmt.Errorf("%v: %v: %s", tool, err, cmd.Stderr)
1909+ }
1910+ if len(stderr.Bytes()) != 0 && os.Getenv("GOPACKAGESPRINTDRIVERERRORS") != "" {
1911+- fmt.Fprintf(os.Stderr, "%s stderr: <<%s>>\n", cmdDebugStr(cmd, words...), stderr)
1912++ fmt.Fprintf(os.Stderr, "%s stderr: <<%s>>\n", cmdDebugStr(cmd), stderr)
1913+ }
1914+
1915+ var response driverResponse
1916+diff --git a/vendor/golang.org/x/tools/go/packages/golist.go b/vendor/golang.org/x/tools/go/packages/golist.go
1917+index 787783c..c83ca09 100644
1918+--- a/vendor/golang.org/x/tools/go/packages/golist.go
1919++++ b/vendor/golang.org/x/tools/go/packages/golist.go
1920+@@ -10,6 +10,7 @@ import (
1921+ "encoding/json"
1922+ "fmt"
1923+ "go/types"
1924++ "io/ioutil"
1925+ "log"
1926+ "os"
1927+ "os/exec"
1928+@@ -208,56 +209,58 @@ extractQueries:
1929+ }
1930+ }
1931+
1932+- modifiedPkgs, needPkgs, err := state.processGolistOverlay(response)
1933+- if err != nil {
1934+- return nil, err
1935+- }
1936++ // Only use go/packages' overlay processing if we're using a Go version
1937++ // below 1.16. Otherwise, go list handles it.
1938++ if goVersion, err := state.getGoVersion(); err == nil && goVersion < 16 {
1939++ modifiedPkgs, needPkgs, err := state.processGolistOverlay(response)
1940++ if err != nil {
1941++ return nil, err
1942++ }
1943+
1944+- var containsCandidates []string
1945+- if len(containFiles) > 0 {
1946+- containsCandidates = append(containsCandidates, modifiedPkgs...)
1947+- containsCandidates = append(containsCandidates, needPkgs...)
1948+- }
1949+- if err := state.addNeededOverlayPackages(response, needPkgs); err != nil {
1950+- return nil, err
1951+- }
1952+- // Check candidate packages for containFiles.
1953+- if len(containFiles) > 0 {
1954+- for _, id := range containsCandidates {
1955+- pkg, ok := response.seenPackages[id]
1956+- if !ok {
1957+- response.addPackage(&Package{
1958+- ID: id,
1959+- Errors: []Error{
1960+- {
1961++ var containsCandidates []string
1962++ if len(containFiles) > 0 {
1963++ containsCandidates = append(containsCandidates, modifiedPkgs...)
1964++ containsCandidates = append(containsCandidates, needPkgs...)
1965++ }
1966++ if err := state.addNeededOverlayPackages(response, needPkgs); err != nil {
1967++ return nil, err
1968++ }
1969++ // Check candidate packages for containFiles.
1970++ if len(containFiles) > 0 {
1971++ for _, id := range containsCandidates {
1972++ pkg, ok := response.seenPackages[id]
1973++ if !ok {
1974++ response.addPackage(&Package{
1975++ ID: id,
1976++ Errors: []Error{{
1977+ Kind: ListError,
1978+ Msg: fmt.Sprintf("package %s expected but not seen", id),
1979+- },
1980+- },
1981+- })
1982+- continue
1983+- }
1984+- for _, f := range containFiles {
1985+- for _, g := range pkg.GoFiles {
1986+- if sameFile(f, g) {
1987+- response.addRoot(id)
1988++ }},
1989++ })
1990++ continue
1991++ }
1992++ for _, f := range containFiles {
1993++ for _, g := range pkg.GoFiles {
1994++ if sameFile(f, g) {
1995++ response.addRoot(id)
1996++ }
1997+ }
1998+ }
1999+ }
2000+ }
2001+- }
2002+- // Add root for any package that matches a pattern. This applies only to
2003+- // packages that are modified by overlays, since they are not added as
2004+- // roots automatically.
2005+- for _, pattern := range restPatterns {
2006+- match := matchPattern(pattern)
2007+- for _, pkgID := range modifiedPkgs {
2008+- pkg, ok := response.seenPackages[pkgID]
2009+- if !ok {
2010+- continue
2011+- }
2012+- if match(pkg.PkgPath) {
2013+- response.addRoot(pkg.ID)
2014++ // Add root for any package that matches a pattern. This applies only to
2015++ // packages that are modified by overlays, since they are not added as
2016++ // roots automatically.
2017++ for _, pattern := range restPatterns {
2018++ match := matchPattern(pattern)
2019++ for _, pkgID := range modifiedPkgs {
2020++ pkg, ok := response.seenPackages[pkgID]
2021++ if !ok {
2022++ continue
2023++ }
2024++ if match(pkg.PkgPath) {
2025++ response.addRoot(pkg.ID)
2026++ }
2027+ }
2028+ }
2029+ }
2030+@@ -824,6 +827,7 @@ func (state *golistState) cfgInvocation() gocommand.Invocation {
2031+ BuildFlags: cfg.BuildFlags,
2032+ ModFile: cfg.modFile,
2033+ ModFlag: cfg.modFlag,
2034++ CleanEnv: cfg.Env != nil,
2035+ Env: cfg.Env,
2036+ Logf: cfg.Logf,
2037+ WorkingDir: cfg.Dir,
2038+@@ -835,6 +839,26 @@ func (state *golistState) invokeGo(verb string, args ...string) (*bytes.Buffer,
2039+ cfg := state.cfg
2040+
2041+ inv := state.cfgInvocation()
2042++
2043++ // For Go versions 1.16 and above, `go list` accepts overlays directly via
2044++ // the -overlay flag. Set it, if it's available.
2045++ //
2046++ // The check for "list" is not necessarily required, but we should avoid
2047++ // getting the go version if possible.
2048++ if verb == "list" {
2049++ goVersion, err := state.getGoVersion()
2050++ if err != nil {
2051++ return nil, err
2052++ }
2053++ if goVersion >= 16 {
2054++ filename, cleanup, err := state.writeOverlays()
2055++ if err != nil {
2056++ return nil, err
2057++ }
2058++ defer cleanup()
2059++ inv.Overlay = filename
2060++ }
2061++ }
2062+ inv.Verb = verb
2063+ inv.Args = args
2064+ gocmdRunner := cfg.gocmdRunner
2065+@@ -878,8 +902,13 @@ func (state *golistState) invokeGo(verb string, args ...string) (*bytes.Buffer,
2066+ return unicode.IsOneOf([]*unicode.RangeTable{unicode.L, unicode.M, unicode.N, unicode.P, unicode.S}, r) &&
2067+ !strings.ContainsRune("!\"#$%&'()*,:;<=>?[\\]^`{|}\uFFFD", r)
2068+ }
2069++ // golang/go#36770: Handle case where cmd/go prints module download messages before the error.
2070++ msg := stderr.String()
2071++ for strings.HasPrefix(msg, "go: downloading") {
2072++ msg = msg[strings.IndexRune(msg, '\n')+1:]
2073++ }
2074+ if len(stderr.String()) > 0 && strings.HasPrefix(stderr.String(), "# ") {
2075+- msg := stderr.String()[len("# "):]
2076++ msg := msg[len("# "):]
2077+ if strings.HasPrefix(strings.TrimLeftFunc(msg, isPkgPathRune), "\n") {
2078+ return stdout, nil
2079+ }
2080+@@ -976,6 +1005,67 @@ func (state *golistState) invokeGo(verb string, args ...string) (*bytes.Buffer,
2081+ return stdout, nil
2082+ }
2083+
2084++// OverlayJSON is the format overlay files are expected to be in.
2085++// The Replace map maps from overlaid paths to replacement paths:
2086++// the Go command will forward all reads trying to open
2087++// each overlaid path to its replacement path, or consider the overlaid
2088++// path not to exist if the replacement path is empty.
2089++//
2090++// From golang/go#39958.
2091++type OverlayJSON struct {
2092++ Replace map[string]string `json:"replace,omitempty"`
2093++}
2094++
2095++// writeOverlays writes out files for go list's -overlay flag, as described
2096++// above.
2097++func (state *golistState) writeOverlays() (filename string, cleanup func(), err error) {
2098++ // Do nothing if there are no overlays in the config.
2099++ if len(state.cfg.Overlay) == 0 {
2100++ return "", func() {}, nil
2101++ }
2102++ dir, err := ioutil.TempDir("", "gopackages-*")
2103++ if err != nil {
2104++ return "", nil, err
2105++ }
2106++ // The caller must clean up this directory, unless this function returns an
2107++ // error.
2108++ cleanup = func() {
2109++ os.RemoveAll(dir)
2110++ }
2111++ defer func() {
2112++ if err != nil {
2113++ cleanup()
2114++ }
2115++ }()
2116++ overlays := map[string]string{}
2117++ for k, v := range state.cfg.Overlay {
2118++ // Create a unique filename for the overlaid files, to avoid
2119++ // creating nested directories.
2120++ noSeparator := strings.Join(strings.Split(filepath.ToSlash(k), "/"), "")
2121++ f, err := ioutil.TempFile(dir, fmt.Sprintf("*-%s", noSeparator))
2122++ if err != nil {
2123++ return "", func() {}, err
2124++ }
2125++ if _, err := f.Write(v); err != nil {
2126++ return "", func() {}, err
2127++ }
2128++ if err := f.Close(); err != nil {
2129++ return "", func() {}, err
2130++ }
2131++ overlays[k] = f.Name()
2132++ }
2133++ b, err := json.Marshal(OverlayJSON{Replace: overlays})
2134++ if err != nil {
2135++ return "", func() {}, err
2136++ }
2137++ // Write out the overlay file that contains the filepath mappings.
2138++ filename = filepath.Join(dir, "overlay.json")
2139++ if err := ioutil.WriteFile(filename, b, 0665); err != nil {
2140++ return "", func() {}, err
2141++ }
2142++ return filename, cleanup, nil
2143++}
2144++
2145+ func containsGoFile(s []string) bool {
2146+ for _, f := range s {
2147+ if strings.HasSuffix(f, ".go") {
2148+@@ -985,17 +1075,22 @@ func containsGoFile(s []string) bool {
2149+ return false
2150+ }
2151+
2152+-func cmdDebugStr(cmd *exec.Cmd, args ...string) string {
2153++func cmdDebugStr(cmd *exec.Cmd) string {
2154+ env := make(map[string]string)
2155+ for _, kv := range cmd.Env {
2156+- split := strings.Split(kv, "=")
2157++ split := strings.SplitN(kv, "=", 2)
2158+ k, v := split[0], split[1]
2159+ env[k] = v
2160+ }
2161+- var quotedArgs []string
2162+- for _, arg := range args {
2163+- quotedArgs = append(quotedArgs, strconv.Quote(arg))
2164+- }
2165+
2166+- return fmt.Sprintf("GOROOT=%v GOPATH=%v GO111MODULE=%v PWD=%v go %s", env["GOROOT"], env["GOPATH"], env["GO111MODULE"], env["PWD"], strings.Join(quotedArgs, " "))
2167++ var args []string
2168++ for _, arg := range cmd.Args {
2169++ quoted := strconv.Quote(arg)
2170++ if quoted[1:len(quoted)-1] != arg || strings.Contains(arg, " ") {
2171++ args = append(args, quoted)
2172++ } else {
2173++ args = append(args, arg)
2174++ }
2175++ }
2176++ return fmt.Sprintf("GOROOT=%v GOPATH=%v GO111MODULE=%v GOPROXY=%v PWD=%v %v", env["GOROOT"], env["GOPATH"], env["GO111MODULE"], env["GOPROXY"], env["PWD"], strings.Join(args, " "))
2177+ }
2178+diff --git a/vendor/golang.org/x/tools/go/packages/visit.go b/vendor/golang.org/x/tools/go/packages/visit.go
2179+index b13cb08..a1dcc40 100644
2180+--- a/vendor/golang.org/x/tools/go/packages/visit.go
2181++++ b/vendor/golang.org/x/tools/go/packages/visit.go
2182+@@ -1,3 +1,7 @@
2183++// Copyright 2018 The Go Authors. All rights reserved.
2184++// Use of this source code is governed by a BSD-style
2185++// license that can be found in the LICENSE file.
2186++
2187+ package packages
2188+
2189+ import (
2190+diff --git a/vendor/golang.org/x/tools/internal/event/core/event.go b/vendor/golang.org/x/tools/internal/event/core/event.go
2191+index e37b494..a6cf0e6 100644
2192+--- a/vendor/golang.org/x/tools/internal/event/core/event.go
2193++++ b/vendor/golang.org/x/tools/internal/event/core/event.go
2194+@@ -12,7 +12,7 @@ import (
2195+ "golang.org/x/tools/internal/event/label"
2196+ )
2197+
2198+-// Event holds the information about an event of note that ocurred.
2199++// Event holds the information about an event of note that occurred.
2200+ type Event struct {
2201+ at time.Time
2202+
2203+diff --git a/vendor/golang.org/x/tools/internal/gocommand/invoke.go b/vendor/golang.org/x/tools/internal/gocommand/invoke.go
2204+index b5c061b..f65aad4 100644
2205+--- a/vendor/golang.org/x/tools/internal/gocommand/invoke.go
2206++++ b/vendor/golang.org/x/tools/internal/gocommand/invoke.go
2207+@@ -13,6 +13,7 @@ import (
2208+ "os"
2209+ "os/exec"
2210+ "regexp"
2211++ "strconv"
2212+ "strings"
2213+ "sync"
2214+ "time"
2215+@@ -132,6 +133,10 @@ type Invocation struct {
2216+ BuildFlags []string
2217+ ModFlag string
2218+ ModFile string
2219++ Overlay string
2220++ // If CleanEnv is set, the invocation will run only with the environment
2221++ // in Env, not starting with os.Environ.
2222++ CleanEnv bool
2223+ Env []string
2224+ WorkingDir string
2225+ Logf func(format string, args ...interface{})
2226+@@ -171,6 +176,11 @@ func (i *Invocation) run(ctx context.Context, stdout, stderr io.Writer) error {
2227+ goArgs = append(goArgs, "-mod="+i.ModFlag)
2228+ }
2229+ }
2230++ appendOverlayFlag := func() {
2231++ if i.Overlay != "" {
2232++ goArgs = append(goArgs, "-overlay="+i.Overlay)
2233++ }
2234++ }
2235+
2236+ switch i.Verb {
2237+ case "env", "version":
2238+@@ -189,6 +199,7 @@ func (i *Invocation) run(ctx context.Context, stdout, stderr io.Writer) error {
2239+ goArgs = append(goArgs, i.BuildFlags...)
2240+ appendModFile()
2241+ appendModFlag()
2242++ appendOverlayFlag()
2243+ goArgs = append(goArgs, i.Args...)
2244+ }
2245+ cmd := exec.Command("go", goArgs...)
2246+@@ -200,7 +211,10 @@ func (i *Invocation) run(ctx context.Context, stdout, stderr io.Writer) error {
2247+ // The Go stdlib has a special feature where if the cwd and the PWD are the
2248+ // same node then it trusts the PWD, so by setting it in the env for the child
2249+ // process we fix up all the paths returned by the go command.
2250+- cmd.Env = append(os.Environ(), i.Env...)
2251++ if !i.CleanEnv {
2252++ cmd.Env = os.Environ()
2253++ }
2254++ cmd.Env = append(cmd.Env, i.Env...)
2255+ if i.WorkingDir != "" {
2256+ cmd.Env = append(cmd.Env, "PWD="+i.WorkingDir)
2257+ cmd.Dir = i.WorkingDir
2258+@@ -241,10 +255,19 @@ func runCmdContext(ctx context.Context, cmd *exec.Cmd) error {
2259+ func cmdDebugStr(cmd *exec.Cmd) string {
2260+ env := make(map[string]string)
2261+ for _, kv := range cmd.Env {
2262+- split := strings.Split(kv, "=")
2263++ split := strings.SplitN(kv, "=", 2)
2264+ k, v := split[0], split[1]
2265+ env[k] = v
2266+ }
2267+
2268+- return fmt.Sprintf("GOROOT=%v GOPATH=%v GO111MODULE=%v GOPROXY=%v PWD=%v go %v", env["GOROOT"], env["GOPATH"], env["GO111MODULE"], env["GOPROXY"], env["PWD"], cmd.Args)
2269++ var args []string
2270++ for _, arg := range cmd.Args {
2271++ quoted := strconv.Quote(arg)
2272++ if quoted[1:len(quoted)-1] != arg || strings.Contains(arg, " ") {
2273++ args = append(args, quoted)
2274++ } else {
2275++ args = append(args, arg)
2276++ }
2277++ }
2278++ return fmt.Sprintf("GOROOT=%v GOPATH=%v GO111MODULE=%v GOPROXY=%v PWD=%v %v", env["GOROOT"], env["GOPATH"], env["GO111MODULE"], env["GOPROXY"], env["PWD"], strings.Join(args, " "))
2279+ }
2280+diff --git a/vendor/golang.org/x/tools/internal/gocommand/version.go b/vendor/golang.org/x/tools/internal/gocommand/version.go
2281+index 60d45ac..0cebac6 100644
2282+--- a/vendor/golang.org/x/tools/internal/gocommand/version.go
2283++++ b/vendor/golang.org/x/tools/internal/gocommand/version.go
2284+@@ -16,9 +16,20 @@ func GoVersion(ctx context.Context, inv Invocation, r *Runner) (int, error) {
2285+ inv.Verb = "list"
2286+ inv.Args = []string{"-e", "-f", `{{context.ReleaseTags}}`}
2287+ inv.Env = append(append([]string{}, inv.Env...), "GO111MODULE=off")
2288+- // Unset any unneeded flags.
2289++ // Unset any unneeded flags, and remove them from BuildFlags, if they're
2290++ // present.
2291+ inv.ModFile = ""
2292+ inv.ModFlag = ""
2293++ var buildFlags []string
2294++ for _, flag := range inv.BuildFlags {
2295++ // Flags can be prefixed by one or two dashes.
2296++ f := strings.TrimPrefix(strings.TrimPrefix(flag, "-"), "-")
2297++ if strings.HasPrefix(f, "mod=") || strings.HasPrefix(f, "modfile=") {
2298++ continue
2299++ }
2300++ buildFlags = append(buildFlags, flag)
2301++ }
2302++ inv.BuildFlags = buildFlags
2303+ stdoutBytes, err := r.Run(ctx, inv)
2304+ if err != nil {
2305+ return 0, err
2306+diff --git a/vendor/golang.org/x/tools/internal/imports/mod.go b/vendor/golang.org/x/tools/internal/imports/mod.go
2307+index 8a83613..901449a 100644
2308+--- a/vendor/golang.org/x/tools/internal/imports/mod.go
2309++++ b/vendor/golang.org/x/tools/internal/imports/mod.go
2310+@@ -1,3 +1,7 @@
2311++// Copyright 2019 The Go Authors. All rights reserved.
2312++// Use of this source code is governed by a BSD-style
2313++// license that can be found in the LICENSE file.
2314++
2315+ package imports
2316+
2317+ import (
2318+@@ -88,7 +92,11 @@ func (r *ModuleResolver) init() error {
2319+ if gmc := r.env.Env["GOMODCACHE"]; gmc != "" {
2320+ r.moduleCacheDir = gmc
2321+ } else {
2322+- r.moduleCacheDir = filepath.Join(filepath.SplitList(goenv["GOPATH"])[0], "/pkg/mod")
2323++ gopaths := filepath.SplitList(goenv["GOPATH"])
2324++ if len(gopaths) == 0 {
2325++ return fmt.Errorf("empty GOPATH")
2326++ }
2327++ r.moduleCacheDir = filepath.Join(gopaths[0], "/pkg/mod")
2328+ }
2329+
2330+ sort.Slice(r.modsByModPath, func(i, j int) bool {
2331+@@ -347,10 +355,11 @@ func (r *ModuleResolver) modInfo(dir string) (modDir string, modName string) {
2332+ }
2333+
2334+ if r.dirInModuleCache(dir) {
2335+- matches := modCacheRegexp.FindStringSubmatch(dir)
2336+- index := strings.Index(dir, matches[1]+"@"+matches[2])
2337+- modDir := filepath.Join(dir[:index], matches[1]+"@"+matches[2])
2338+- return modDir, readModName(filepath.Join(modDir, "go.mod"))
2339++ if matches := modCacheRegexp.FindStringSubmatch(dir); len(matches) == 3 {
2340++ index := strings.Index(dir, matches[1]+"@"+matches[2])
2341++ modDir := filepath.Join(dir[:index], matches[1]+"@"+matches[2])
2342++ return modDir, readModName(filepath.Join(modDir, "go.mod"))
2343++ }
2344+ }
2345+ for {
2346+ if info, ok := r.cacheLoad(dir); ok {
2347+diff --git a/vendor/golang.org/x/tools/internal/imports/mod_cache.go b/vendor/golang.org/x/tools/internal/imports/mod_cache.go
2348+index 5b4f03a..18dada4 100644
2349+--- a/vendor/golang.org/x/tools/internal/imports/mod_cache.go
2350++++ b/vendor/golang.org/x/tools/internal/imports/mod_cache.go
2351+@@ -1,3 +1,7 @@
2352++// Copyright 2019 The Go Authors. All rights reserved.
2353++// Use of this source code is governed by a BSD-style
2354++// license that can be found in the LICENSE file.
2355++
2356+ package imports
2357+
2358+ import (
2359+diff --git a/vendor/golang.org/x/tools/internal/packagesinternal/packages.go b/vendor/golang.org/x/tools/internal/packagesinternal/packages.go
2360+index 1335a5e..d4ec6f9 100644
2361+--- a/vendor/golang.org/x/tools/internal/packagesinternal/packages.go
2362++++ b/vendor/golang.org/x/tools/internal/packagesinternal/packages.go
2363+@@ -1,3 +1,7 @@
2364++// Copyright 2020 The Go Authors. All rights reserved.
2365++// Use of this source code is governed by a BSD-style
2366++// license that can be found in the LICENSE file.
2367++
2368+ // Package packagesinternal exposes internal-only fields from go/packages.
2369+ package packagesinternal
2370+
2371+diff --git a/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go b/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go
2372+new file mode 100644
2373+index 0000000..65473eb
2374+--- /dev/null
2375++++ b/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go
2376+@@ -0,0 +1,1358 @@
2377++// Copyright 2020 The Go Authors. All rights reserved.
2378++// Use of this source code is governed by a BSD-style
2379++// license that can be found in the LICENSE file.
2380++
2381++package typesinternal
2382++
2383++//go:generate stringer -type=ErrorCode
2384++
2385++type ErrorCode int
2386++
2387++// This file defines the error codes that can be produced during type-checking.
2388++// Collectively, these codes provide an identifier that may be used to
2389++// implement special handling for certain types of errors.
2390++//
2391++// Error codes should be fine-grained enough that the exact nature of the error
2392++// can be easily determined, but coarse enough that they are not an
2393++// implementation detail of the type checking algorithm. As a rule-of-thumb,
2394++// errors should be considered equivalent if there is a theoretical refactoring
2395++// of the type checker in which they are emitted in exactly one place. For
2396++// example, the type checker emits different error messages for "too many
2397++// arguments" and "too few arguments", but one can imagine an alternative type
2398++// checker where this check instead just emits a single "wrong number of
2399++// arguments", so these errors should have the same code.
2400++//
2401++// Error code names should be as brief as possible while retaining accuracy and
2402++// distinctiveness. In most cases names should start with an adjective
2403++// describing the nature of the error (e.g. "invalid", "unused", "misplaced"),
2404++// and end with a noun identifying the relevant language object. For example,
2405++// "DuplicateDecl" or "InvalidSliceExpr". For brevity, naming follows the
2406++// convention that "bad" implies a problem with syntax, and "invalid" implies a
2407++// problem with types.
2408++
2409++const (
2410++ _ ErrorCode = iota
2411++
2412++ // Test is reserved for errors that only apply while in self-test mode.
2413++ Test
2414++
2415++ /* package names */
2416++
2417++ // BlankPkgName occurs when a package name is the blank identifier "_".
2418++ //
2419++ // Per the spec:
2420++ // "The PackageName must not be the blank identifier."
2421++ BlankPkgName
2422++
2423++ // MismatchedPkgName occurs when a file's package name doesn't match the
2424++ // package name already established by other files.
2425++ MismatchedPkgName
2426++
2427++ // InvalidPkgUse occurs when a package identifier is used outside of a
2428++ // selector expression.
2429++ //
2430++ // Example:
2431++ // import "fmt"
2432++ //
2433++ // var _ = fmt
2434++ InvalidPkgUse
2435++
2436++ /* imports */
2437++
2438++ // BadImportPath occurs when an import path is not valid.
2439++ BadImportPath
2440++
2441++ // BrokenImport occurs when importing a package fails.
2442++ //
2443++ // Example:
2444++ // import "amissingpackage"
2445++ BrokenImport
2446++
2447++ // ImportCRenamed occurs when the special import "C" is renamed. "C" is a
2448++ // pseudo-package, and must not be renamed.
2449++ //
2450++ // Example:
2451++ // import _ "C"
2452++ ImportCRenamed
2453++
2454++ // UnusedImport occurs when an import is unused.
2455++ //
2456++ // Example:
2457++ // import "fmt"
2458++ //
2459++ // func main() {}
2460++ UnusedImport
2461++
2462++ /* initialization */
2463++
2464++ // InvalidInitCycle occurs when an invalid cycle is detected within the
2465++ // initialization graph.
2466++ //
2467++ // Example:
2468++ // var x int = f()
2469++ //
2470++ // func f() int { return x }
2471++ InvalidInitCycle
2472++
2473++ /* decls */
2474++
2475++ // DuplicateDecl occurs when an identifier is declared multiple times.
2476++ //
2477++ // Example:
2478++ // var x = 1
2479++ // var x = 2
2480++ DuplicateDecl
2481++
2482++ // InvalidDeclCycle occurs when a declaration cycle is not valid.
2483++ //
2484++ // Example:
2485++ // import "unsafe"
2486++ //
2487++ // type T struct {
2488++ // a [n]int
2489++ // }
2490++ //
2491++ // var n = unsafe.Sizeof(T{})
2492++ InvalidDeclCycle
2493++
2494++ // InvalidTypeCycle occurs when a cycle in type definitions results in a
2495++ // type that is not well-defined.
2496++ //
2497++ // Example:
2498++ // import "unsafe"
2499++ //
2500++ // type T [unsafe.Sizeof(T{})]int
2501++ InvalidTypeCycle
2502++
2503++ /* decls > const */
2504++
2505++ // InvalidConstInit occurs when a const declaration has a non-constant
2506++ // initializer.
2507++ //
2508++ // Example:
2509++ // var x int
2510++ // const _ = x
2511++ InvalidConstInit
2512++
2513++ // InvalidConstVal occurs when a const value cannot be converted to its
2514++ // target type.
2515++ //
2516++ // TODO(findleyr): this error code and example are not very clear. Consider
2517++ // removing it.
2518++ //
2519++ // Example:
2520++ // const _ = 1 << "hello"
2521++ InvalidConstVal
2522++
2523++ // InvalidConstType occurs when the underlying type in a const declaration
2524++ // is not a valid constant type.
2525++ //
2526++ // Example:
2527++ // const c *int = 4
2528++ InvalidConstType
2529++
2530++ /* decls > var (+ other variable assignment codes) */
2531++
2532++ // UntypedNil occurs when the predeclared (untyped) value nil is used to
2533++ // initialize a variable declared without an explicit type.
2534++ //
2535++ // Example:
2536++ // var x = nil
2537++ UntypedNil
2538++
2539++ // WrongAssignCount occurs when the number of values on the right-hand side
2540++ // of an assignment or or initialization expression does not match the number
2541++ // of variables on the left-hand side.
2542++ //
2543++ // Example:
2544++ // var x = 1, 2
2545++ WrongAssignCount
2546++
2547++ // UnassignableOperand occurs when the left-hand side of an assignment is
2548++ // not assignable.
2549++ //
2550++ // Example:
2551++ // func f() {
2552++ // const c = 1
2553++ // c = 2
2554++ // }
2555++ UnassignableOperand
2556++
2557++ // NoNewVar occurs when a short variable declaration (':=') does not declare
2558++ // new variables.
2559++ //
2560++ // Example:
2561++ // func f() {
2562++ // x := 1
2563++ // x := 2
2564++ // }
2565++ NoNewVar
2566++
2567++ // MultiValAssignOp occurs when an assignment operation (+=, *=, etc) does
2568++ // not have single-valued left-hand or right-hand side.
2569++ //
2570++ // Per the spec:
2571++ // "In assignment operations, both the left- and right-hand expression lists
2572++ // must contain exactly one single-valued expression"
2573++ //
2574++ // Example:
2575++ // func f() int {
2576++ // x, y := 1, 2
2577++ // x, y += 1
2578++ // return x + y
2579++ // }
2580++ MultiValAssignOp
2581++
2582++ // InvalidIfaceAssign occurs when a value of type T is used as an
2583++ // interface, but T does not implement a method of the expected interface.
2584++ //
2585++ // Example:
2586++ // type I interface {
2587++ // f()
2588++ // }
2589++ //
2590++ // type T int
2591++ //
2592++ // var x I = T(1)
2593++ InvalidIfaceAssign
2594++
2595++ // InvalidChanAssign occurs when a chan assignment is invalid.
2596++ //
2597++ // Per the spec, a value x is assignable to a channel type T if:
2598++ // "x is a bidirectional channel value, T is a channel type, x's type V and
2599++ // T have identical element types, and at least one of V or T is not a
2600++ // defined type."
2601++ //
2602++ // Example:
2603++ // type T1 chan int
2604++ // type T2 chan int
2605++ //
2606++ // var x T1
2607++ // // Invalid assignment because both types are named
2608++ // var _ T2 = x
2609++ InvalidChanAssign
2610++
2611++ // IncompatibleAssign occurs when the type of the right-hand side expression
2612++ // in an assignment cannot be assigned to the type of the variable being
2613++ // assigned.
2614++ //
2615++ // Example:
2616++ // var x []int
2617++ // var _ int = x
2618++ IncompatibleAssign
2619++
2620++ // UnaddressableFieldAssign occurs when trying to assign to a struct field
2621++ // in a map value.
2622++ //
2623++ // Example:
2624++ // func f() {
2625++ // m := make(map[string]struct{i int})
2626++ // m["foo"].i = 42
2627++ // }
2628++ UnaddressableFieldAssign
2629++
2630++ /* decls > type (+ other type expression codes) */
2631++
2632++ // NotAType occurs when the identifier used as the underlying type in a type
2633++ // declaration or the right-hand side of a type alias does not denote a type.
2634++ //
2635++ // Example:
2636++ // var S = 2
2637++ //
2638++ // type T S
2639++ NotAType
2640++
2641++ // InvalidArrayLen occurs when an array length is not a constant value.
2642++ //
2643++ // Example:
2644++ // var n = 3
2645++ // var _ = [n]int{}
2646++ InvalidArrayLen
2647++
2648++ // BlankIfaceMethod occurs when a method name is '_'.
2649++ //
2650++ // Per the spec:
2651++ // "The name of each explicitly specified method must be unique and not
2652++ // blank."
2653++ //
2654++ // Example:
2655++ // type T interface {
2656++ // _(int)
2657++ // }
2658++ BlankIfaceMethod
2659++
2660++ // IncomparableMapKey occurs when a map key type does not support the == and
2661++ // != operators.
2662++ //
2663++ // Per the spec:
2664++ // "The comparison operators == and != must be fully defined for operands of
2665++ // the key type; thus the key type must not be a function, map, or slice."
2666++ //
2667++ // Example:
2668++ // var x map[T]int
2669++ //
2670++ // type T []int
2671++ IncomparableMapKey
2672++
2673++ // InvalidIfaceEmbed occurs when a non-interface type is embedded in an
2674++ // interface.
2675++ //
2676++ // Example:
2677++ // type T struct {}
2678++ //
2679++ // func (T) m()
2680++ //
2681++ // type I interface {
2682++ // T
2683++ // }
2684++ InvalidIfaceEmbed
2685++
2686++ // InvalidPtrEmbed occurs when an embedded field is of the pointer form *T,
2687++ // and T itself is itself a pointer, an unsafe.Pointer, or an interface.
2688++ //
2689++ // Per the spec:
2690++ // "An embedded field must be specified as a type name T or as a pointer to
2691++ // a non-interface type name *T, and T itself may not be a pointer type."
2692++ //
2693++ // Example:
2694++ // type T *int
2695++ //
2696++ // type S struct {
2697++ // *T
2698++ // }
2699++ InvalidPtrEmbed
2700++
2701++ /* decls > func and method */
2702++
2703++ // BadRecv occurs when a method declaration does not have exactly one
2704++ // receiver parameter.
2705++ //
2706++ // Example:
2707++ // func () _() {}
2708++ BadRecv
2709++
2710++ // InvalidRecv occurs when a receiver type expression is not of the form T
2711++ // or *T, or T is a pointer type.
2712++ //
2713++ // Example:
2714++ // type T struct {}
2715++ //
2716++ // func (**T) m() {}
2717++ InvalidRecv
2718++
2719++ // DuplicateFieldAndMethod occurs when an identifier appears as both a field
2720++ // and method name.
2721++ //
2722++ // Example:
2723++ // type T struct {
2724++ // m int
2725++ // }
2726++ //
2727++ // func (T) m() {}
2728++ DuplicateFieldAndMethod
2729++
2730++ // DuplicateMethod occurs when two methods on the same receiver type have
2731++ // the same name.
2732++ //
2733++ // Example:
2734++ // type T struct {}
2735++ // func (T) m() {}
2736++ // func (T) m(i int) int { return i }
2737++ DuplicateMethod
2738++
2739++ /* decls > special */
2740++
2741++ // InvalidBlank occurs when a blank identifier is used as a value or type.
2742++ //
2743++ // Per the spec:
2744++ // "The blank identifier may appear as an operand only on the left-hand side
2745++ // of an assignment."
2746++ //
2747++ // Example:
2748++ // var x = _
2749++ InvalidBlank
2750++
2751++ // InvalidIota occurs when the predeclared identifier iota is used outside
2752++ // of a constant declaration.
2753++ //
2754++ // Example:
2755++ // var x = iota
2756++ InvalidIota
2757++
2758++ // MissingInitBody occurs when an init function is missing its body.
2759++ //
2760++ // Example:
2761++ // func init()
2762++ MissingInitBody
2763++
2764++ // InvalidInitSig occurs when an init function declares parameters or
2765++ // results.
2766++ //
2767++ // Example:
2768++ // func init() int { return 1 }
2769++ InvalidInitSig
2770++
2771++ // InvalidInitDecl occurs when init is declared as anything other than a
2772++ // function.
2773++ //
2774++ // Example:
2775++ // var init = 1
2776++ InvalidInitDecl
2777++
2778++ // InvalidMainDecl occurs when main is declared as anything other than a
2779++ // function, in a main package.
2780++ InvalidMainDecl
2781++
2782++ /* exprs */
2783++
2784++ // TooManyValues occurs when a function returns too many values for the
2785++ // expression context in which it is used.
2786++ //
2787++ // Example:
2788++ // func ReturnTwo() (int, int) {
2789++ // return 1, 2
2790++ // }
2791++ //
2792++ // var x = ReturnTwo()
2793++ TooManyValues
2794++
2795++ // NotAnExpr occurs when a type expression is used where a value expression
2796++ // is expected.
2797++ //
2798++ // Example:
2799++ // type T struct {}
2800++ //
2801++ // func f() {
2802++ // T
2803++ // }
2804++ NotAnExpr
2805++
2806++ /* exprs > const */
2807++
2808++ // TruncatedFloat occurs when a float constant is truncated to an integer
2809++ // value.
2810++ //
2811++ // Example:
2812++ // var _ int = 98.6
2813++ TruncatedFloat
2814++
2815++ // NumericOverflow occurs when a numeric constant overflows its target type.
2816++ //
2817++ // Example:
2818++ // var x int8 = 1000
2819++ NumericOverflow
2820++
2821++ /* exprs > operation */
2822++
2823++ // UndefinedOp occurs when an operator is not defined for the type(s) used
2824++ // in an operation.
2825++ //
2826++ // Example:
2827++ // var c = "a" - "b"
2828++ UndefinedOp
2829++
2830++ // MismatchedTypes occurs when operand types are incompatible in a binary
2831++ // operation.
2832++ //
2833++ // Example:
2834++ // var a = "hello"
2835++ // var b = 1
2836++ // var c = a - b
2837++ MismatchedTypes
2838++
2839++ // DivByZero occurs when a division operation is provable at compile
2840++ // time to be a division by zero.
2841++ //
2842++ // Example:
2843++ // const divisor = 0
2844++ // var x int = 1/divisor
2845++ DivByZero
2846++
2847++ // NonNumericIncDec occurs when an increment or decrement operator is
2848++ // applied to a non-numeric value.
2849++ //
2850++ // Example:
2851++ // func f() {
2852++ // var c = "c"
2853++ // c++
2854++ // }
2855++ NonNumericIncDec
2856++
2857++ /* exprs > ptr */
2858++
2859++ // UnaddressableOperand occurs when the & operator is applied to an
2860++ // unaddressable expression.
2861++ //
2862++ // Example:
2863++ // var x = &1
2864++ UnaddressableOperand
2865++
2866++ // InvalidIndirection occurs when a non-pointer value is indirected via the
2867++ // '*' operator.
2868++ //
2869++ // Example:
2870++ // var x int
2871++ // var y = *x
2872++ InvalidIndirection
2873++
2874++ /* exprs > [] */
2875++
2876++ // NonIndexableOperand occurs when an index operation is applied to a value
2877++ // that cannot be indexed.
2878++ //
2879++ // Example:
2880++ // var x = 1
2881++ // var y = x[1]
2882++ NonIndexableOperand
2883++
2884++ // InvalidIndex occurs when an index argument is not of integer type,
2885++ // negative, or out-of-bounds.
2886++ //
2887++ // Example:
2888++ // var s = [...]int{1,2,3}
2889++ // var x = s[5]
2890++ //
2891++ // Example:
2892++ // var s = []int{1,2,3}
2893++ // var _ = s[-1]
2894++ //
2895++ // Example:
2896++ // var s = []int{1,2,3}
2897++ // var i string
2898++ // var _ = s[i]
2899++ InvalidIndex
2900++
2901++ // SwappedSliceIndices occurs when constant indices in a slice expression
2902++ // are decreasing in value.
2903++ //
2904++ // Example:
2905++ // var _ = []int{1,2,3}[2:1]
2906++ SwappedSliceIndices
2907++
2908++ /* operators > slice */
2909++
2910++ // NonSliceableOperand occurs when a slice operation is applied to a value
2911++ // whose type is not sliceable, or is unaddressable.
2912++ //
2913++ // Example:
2914++ // var x = [...]int{1, 2, 3}[:1]
2915++ //
2916++ // Example:
2917++ // var x = 1
2918++ // var y = 1[:1]
2919++ NonSliceableOperand
2920++
2921++ // InvalidSliceExpr occurs when a three-index slice expression (a[x:y:z]) is
2922++ // applied to a string.
2923++ //
2924++ // Example:
2925++ // var s = "hello"
2926++ // var x = s[1:2:3]
2927++ InvalidSliceExpr
2928++
2929++ /* exprs > shift */
2930++
2931++ // InvalidShiftCount occurs when the right-hand side of a shift operation is
2932++ // either non-integer, negative, or too large.
2933++ //
2934++ // Example:
2935++ // var (
2936++ // x string
2937++ // y int = 1 << x
2938++ // )
2939++ InvalidShiftCount
2940++
2941++ // InvalidShiftOperand occurs when the shifted operand is not an integer.
2942++ //
2943++ // Example:
2944++ // var s = "hello"
2945++ // var x = s << 2
2946++ InvalidShiftOperand
2947++
2948++ /* exprs > chan */
2949++
2950++ // InvalidReceive occurs when there is a channel receive from a value that
2951++ // is either not a channel, or is a send-only channel.
2952++ //
2953++ // Example:
2954++ // func f() {
2955++ // var x = 1
2956++ // <-x
2957++ // }
2958++ InvalidReceive
2959++
2960++ // InvalidSend occurs when there is a channel send to a value that is not a
2961++ // channel, or is a receive-only channel.
2962++ //
2963++ // Example:
2964++ // func f() {
2965++ // var x = 1
2966++ // x <- "hello!"
2967++ // }
2968++ InvalidSend
2969++
2970++ /* exprs > literal */
2971++
2972++ // DuplicateLitKey occurs when an index is duplicated in a slice, array, or
2973++ // map literal.
2974++ //
2975++ // Example:
2976++ // var _ = []int{0:1, 0:2}
2977++ //
2978++ // Example:
2979++ // var _ = map[string]int{"a": 1, "a": 2}
2980++ DuplicateLitKey
2981++
2982++ // MissingLitKey occurs when a map literal is missing a key expression.
2983++ //
2984++ // Example:
2985++ // var _ = map[string]int{1}
2986++ MissingLitKey
2987++
2988++ // InvalidLitIndex occurs when the key in a key-value element of a slice or
2989++ // array literal is not an integer constant.
2990++ //
2991++ // Example:
2992++ // var i = 0
2993++ // var x = []string{i: "world"}
2994++ InvalidLitIndex
2995++
2996++ // OversizeArrayLit occurs when an array literal exceeds its length.
2997++ //
2998++ // Example:
2999++ // var _ = [2]int{1,2,3}
3000++ OversizeArrayLit
3001++
3002++ // MixedStructLit occurs when a struct literal contains a mix of positional
3003++ // and named elements.
3004++ //
3005++ // Example:
3006++ // var _ = struct{i, j int}{i: 1, 2}
3007++ MixedStructLit
3008++
3009++ // InvalidStructLit occurs when a positional struct literal has an incorrect
3010++ // number of values.
3011++ //
3012++ // Example:
3013++ // var _ = struct{i, j int}{1,2,3}
3014++ InvalidStructLit
3015++
3016++ // MissingLitField occurs when a struct literal refers to a field that does
3017++ // not exist on the struct type.
3018++ //
3019++ // Example:
3020++ // var _ = struct{i int}{j: 2}
3021++ MissingLitField
3022++
3023++ // DuplicateLitField occurs when a struct literal contains duplicated
3024++ // fields.
3025++ //
3026++ // Example:
3027++ // var _ = struct{i int}{i: 1, i: 2}
3028++ DuplicateLitField
3029++
3030++ // UnexportedLitField occurs when a positional struct literal implicitly
3031++ // assigns an unexported field of an imported type.
3032++ UnexportedLitField
3033++
3034++ // InvalidLitField occurs when a field name is not a valid identifier.
3035++ //
3036++ // Example:
3037++ // var _ = struct{i int}{1: 1}
3038++ InvalidLitField
3039++
3040++ // UntypedLit occurs when a composite literal omits a required type
3041++ // identifier.
3042++ //
3043++ // Example:
3044++ // type outer struct{
3045++ // inner struct { i int }
3046++ // }
3047++ //
3048++ // var _ = outer{inner: {1}}
3049++ UntypedLit
3050++
3051++ // InvalidLit occurs when a composite literal expression does not match its
3052++ // type.
3053++ //
3054++ // Example:
3055++ // type P *struct{
3056++ // x int
3057++ // }
3058++ // var _ = P {}
3059++ InvalidLit
3060++
3061++ /* exprs > selector */
3062++
3063++ // AmbiguousSelector occurs when a selector is ambiguous.
3064++ //
3065++ // Example:
3066++ // type E1 struct { i int }
3067++ // type E2 struct { i int }
3068++ // type T struct { E1; E2 }
3069++ //
3070++ // var x T
3071++ // var _ = x.i
3072++ AmbiguousSelector
3073++
3074++ // UndeclaredImportedName occurs when a package-qualified identifier is
3075++ // undeclared by the imported package.
3076++ //
3077++ // Example:
3078++ // import "go/types"
3079++ //
3080++ // var _ = types.NotAnActualIdentifier
3081++ UndeclaredImportedName
3082++
3083++ // UnexportedName occurs when a selector refers to an unexported identifier
3084++ // of an imported package.
3085++ //
3086++ // Example:
3087++ // import "reflect"
3088++ //
3089++ // type _ reflect.flag
3090++ UnexportedName
3091++
3092++ // UndeclaredName occurs when an identifier is not declared in the current
3093++ // scope.
3094++ //
3095++ // Example:
3096++ // var x T
3097++ UndeclaredName
3098++
3099++ // MissingFieldOrMethod occurs when a selector references a field or method
3100++ // that does not exist.
3101++ //
3102++ // Example:
3103++ // type T struct {}
3104++ //
3105++ // var x = T{}.f
3106++ MissingFieldOrMethod
3107++
3108++ /* exprs > ... */
3109++
3110++ // BadDotDotDotSyntax occurs when a "..." occurs in a context where it is
3111++ // not valid.
3112++ //
3113++ // Example:
3114++ // var _ = map[int][...]int{0: {}}
3115++ BadDotDotDotSyntax
3116++
3117++ // NonVariadicDotDotDot occurs when a "..." is used on the final argument to
3118++ // a non-variadic function.
3119++ //
3120++ // Example:
3121++ // func printArgs(s []string) {
3122++ // for _, a := range s {
3123++ // println(a)
3124++ // }
3125++ // }
3126++ //
3127++ // func f() {
3128++ // s := []string{"a", "b", "c"}
3129++ // printArgs(s...)
3130++ // }
3131++ NonVariadicDotDotDot
3132++
3133++ // MisplacedDotDotDot occurs when a "..." is used somewhere other than the
3134++ // final argument to a function call.
3135++ //
3136++ // Example:
3137++ // func printArgs(args ...int) {
3138++ // for _, a := range args {
3139++ // println(a)
3140++ // }
3141++ // }
3142++ //
3143++ // func f() {
3144++ // a := []int{1,2,3}
3145++ // printArgs(0, a...)
3146++ // }
3147++ MisplacedDotDotDot
3148++
3149++ // InvalidDotDotDotOperand occurs when a "..." operator is applied to a
3150++ // single-valued operand.
3151++ //
3152++ // Example:
3153++ // func printArgs(args ...int) {
3154++ // for _, a := range args {
3155++ // println(a)
3156++ // }
3157++ // }
3158++ //
3159++ // func f() {
3160++ // a := 1
3161++ // printArgs(a...)
3162++ // }
3163++ //
3164++ // Example:
3165++ // func args() (int, int) {
3166++ // return 1, 2
3167++ // }
3168++ //
3169++ // func printArgs(args ...int) {
3170++ // for _, a := range args {
3171++ // println(a)
3172++ // }
3173++ // }
3174++ //
3175++ // func g() {
3176++ // printArgs(args()...)
3177++ // }
3178++ InvalidDotDotDotOperand
3179++
3180++ // InvalidDotDotDot occurs when a "..." is used in a non-variadic built-in
3181++ // function.
3182++ //
3183++ // Example:
3184++ // var s = []int{1, 2, 3}
3185++ // var l = len(s...)
3186++ InvalidDotDotDot
3187++
3188++ /* exprs > built-in */
3189++
3190++ // UncalledBuiltin occurs when a built-in function is used as a
3191++ // function-valued expression, instead of being called.
3192++ //
3193++ // Per the spec:
3194++ // "The built-in functions do not have standard Go types, so they can only
3195++ // appear in call expressions; they cannot be used as function values."
3196++ //
3197++ // Example:
3198++ // var _ = copy
3199++ UncalledBuiltin
3200++
3201++ // InvalidAppend occurs when append is called with a first argument that is
3202++ // not a slice.
3203++ //
3204++ // Example:
3205++ // var _ = append(1, 2)
3206++ InvalidAppend
3207++
3208++ // InvalidCap occurs when an argument to the cap built-in function is not of
3209++ // supported type.
3210++ //
3211++ // See https://golang.org/ref/spec#Lengthand_capacity for information on
3212++ // which underlying types are supported as arguments to cap and len.
3213++ //
3214++ // Example:
3215++ // var s = 2
3216++ // var x = cap(s)
3217++ InvalidCap
3218++
3219++ // InvalidClose occurs when close(...) is called with an argument that is
3220++ // not of channel type, or that is a receive-only channel.
3221++ //
3222++ // Example:
3223++ // func f() {
3224++ // var x int
3225++ // close(x)
3226++ // }
3227++ InvalidClose
3228++
3229++ // InvalidCopy occurs when the arguments are not of slice type or do not
3230++ // have compatible type.
3231++ //
3232++ // See https://golang.org/ref/spec#Appendingand_copying_slices for more
3233++ // information on the type requirements for the copy built-in.
3234++ //
3235++ // Example:
3236++ // func f() {
3237++ // var x []int
3238++ // y := []int64{1,2,3}
3239++ // copy(x, y)
3240++ // }
3241++ InvalidCopy
3242++
3243++ // InvalidComplex occurs when the complex built-in function is called with
3244++ // arguments with incompatible types.
3245++ //
3246++ // Example:
3247++ // var _ = complex(float32(1), float64(2))
3248++ InvalidComplex
3249++
3250++ // InvalidDelete occurs when the delete built-in function is called with a
3251++ // first argument that is not a map.
3252++ //
3253++ // Example:
3254++ // func f() {
3255++ // m := "hello"
3256++ // delete(m, "e")
3257++ // }
3258++ InvalidDelete
3259++
3260++ // InvalidImag occurs when the imag built-in function is called with an
3261++ // argument that does not have complex type.
3262++ //
3263++ // Example:
3264++ // var _ = imag(int(1))
3265++ InvalidImag
3266++
3267++ // InvalidLen occurs when an argument to the len built-in function is not of
3268++ // supported type.
3269++ //
3270++ // See https://golang.org/ref/spec#Lengthand_capacity for information on
3271++ // which underlying types are supported as arguments to cap and len.
3272++ //
3273++ // Example:
3274++ // var s = 2
3275++ // var x = len(s)
3276++ InvalidLen
3277++
3278++ // SwappedMakeArgs occurs when make is called with three arguments, and its
3279++ // length argument is larger than its capacity argument.
3280++ //
3281++ // Example:
3282++ // var x = make([]int, 3, 2)
3283++ SwappedMakeArgs
3284++
3285++ // InvalidMake occurs when make is called with an unsupported type argument.
3286++ //
3287++ // See https://golang.org/ref/spec#Makingslices_maps_and_channels for
3288++ // information on the types that may be created using make.
3289++ //
3290++ // Example:
3291++ // var x = make(int)
3292++ InvalidMake
3293++
3294++ // InvalidReal occurs when the real built-in function is called with an
3295++ // argument that does not have complex type.
3296++ //
3297++ // Example:
3298++ // var _ = real(int(1))
3299++ InvalidReal
3300++
3301++ /* exprs > assertion */
3302++
3303++ // InvalidAssert occurs when a type assertion is applied to a
3304++ // value that is not of interface type.
3305++ //
3306++ // Example:
3307++ // var x = 1
3308++ // var _ = x.(float64)
3309++ InvalidAssert
3310++
3311++ // ImpossibleAssert occurs for a type assertion x.(T) when the value x of
3312++ // interface cannot have dynamic type T, due to a missing or mismatching
3313++ // method on T.
3314++ //
3315++ // Example:
3316++ // type T int
3317++ //
3318++ // func (t *T) m() int { return int(*t) }
3319++ //
3320++ // type I interface { m() int }
3321++ //
3322++ // var x I
3323++ // var _ = x.(T)
3324++ ImpossibleAssert
3325++
3326++ /* exprs > conversion */
3327++
3328++ // InvalidConversion occurs when the argument type cannot be converted to the
3329++ // target.
3330++ //
3331++ // See https://golang.org/ref/spec#Conversions for the rules of
3332++ // convertibility.
3333++ //
3334++ // Example:
3335++ // var x float64
3336++ // var _ = string(x)
3337++ InvalidConversion
3338++
3339++ // InvalidUntypedConversion occurs when an there is no valid implicit
3340++ // conversion from an untyped value satisfying the type constraints of the
3341++ // context in which it is used.
3342++ //
3343++ // Example:
3344++ // var _ = 1 + ""
3345++ InvalidUntypedConversion
3346++
3347++ /* offsetof */
3348++
3349++ // BadOffsetofSyntax occurs when unsafe.Offsetof is called with an argument
3350++ // that is not a selector expression.
3351++ //
3352++ // Example:
3353++ // import "unsafe"
3354++ //
3355++ // var x int
3356++ // var _ = unsafe.Offsetof(x)
3357++ BadOffsetofSyntax
3358++
3359++ // InvalidOffsetof occurs when unsafe.Offsetof is called with a method
3360++ // selector, rather than a field selector, or when the field is embedded via
3361++ // a pointer.
3362++ //
3363++ // Per the spec:
3364++ //
3365++ // "If f is an embedded field, it must be reachable without pointer
3366++ // indirections through fields of the struct. "
3367++ //
3368++ // Example:
3369++ // import "unsafe"
3370++ //
3371++ // type T struct { f int }
3372++ // type S struct { *T }
3373++ // var s S
3374++ // var _ = unsafe.Offsetof(s.f)
3375++ //
3376++ // Example:
3377++ // import "unsafe"
3378++ //
3379++ // type S struct{}
3380++ //
3381++ // func (S) m() {}
3382++ //
3383++ // var s S
3384++ // var _ = unsafe.Offsetof(s.m)
3385++ InvalidOffsetof
3386++
3387++ /* control flow > scope */
3388++
3389++ // UnusedExpr occurs when a side-effect free expression is used as a
3390++ // statement. Such a statement has no effect.
3391++ //
3392++ // Example:
3393++ // func f(i int) {
3394++ // i*i
3395++ // }
3396++ UnusedExpr
3397++
3398++ // UnusedVar occurs when a variable is declared but unused.
3399++ //
3400++ // Example:
3401++ // func f() {
3402++ // x := 1
3403++ // }
3404++ UnusedVar
3405++
3406++ // MissingReturn occurs when a function with results is missing a return
3407++ // statement.
3408++ //
3409++ // Example:
3410++ // func f() int {}
3411++ MissingReturn
3412++
3413++ // WrongResultCount occurs when a return statement returns an incorrect
3414++ // number of values.
3415++ //
3416++ // Example:
3417++ // func ReturnOne() int {
3418++ // return 1, 2
3419++ // }
3420++ WrongResultCount
3421++
3422++ // OutOfScopeResult occurs when the name of a value implicitly returned by
3423++ // an empty return statement is shadowed in a nested scope.
3424++ //
3425++ // Example:
3426++ // func factor(n int) (i int) {
3427++ // for i := 2; i < n; i++ {
3428++ // if n%i == 0 {
3429++ // return
3430++ // }
3431++ // }
3432++ // return 0
3433++ // }
3434++ OutOfScopeResult
3435++
3436++ /* control flow > if */
3437++
3438++ // InvalidCond occurs when an if condition is not a boolean expression.
3439++ //
3440++ // Example:
3441++ // func checkReturn(i int) {
3442++ // if i {
3443++ // panic("non-zero return")
3444++ // }
3445++ // }
3446++ InvalidCond
3447++
3448++ /* control flow > for */
3449++
3450++ // InvalidPostDecl occurs when there is a declaration in a for-loop post
3451++ // statement.
3452++ //
3453++ // Example:
3454++ // func f() {
3455++ // for i := 0; i < 10; j := 0 {}
3456++ // }
3457++ InvalidPostDecl
3458++
3459++ // InvalidChanRange occurs when a send-only channel used in a range
3460++ // expression.
3461++ //
3462++ // Example:
3463++ // func sum(c chan<- int) {
3464++ // s := 0
3465++ // for i := range c {
3466++ // s += i
3467++ // }
3468++ // }
3469++ InvalidChanRange
3470++
3471++ // InvalidIterVar occurs when two iteration variables are used while ranging
3472++ // over a channel.
3473++ //
3474++ // Example:
3475++ // func f(c chan int) {
3476++ // for k, v := range c {
3477++ // println(k, v)
3478++ // }
3479++ // }
3480++ InvalidIterVar
3481++
3482++ // InvalidRangeExpr occurs when the type of a range expression is not array,
3483++ // slice, string, map, or channel.
3484++ //
3485++ // Example:
3486++ // func f(i int) {
3487++ // for j := range i {
3488++ // println(j)
3489++ // }
3490++ // }
3491++ InvalidRangeExpr
3492++
3493++ /* control flow > switch */
3494++
3495++ // MisplacedBreak occurs when a break statement is not within a for, switch,
3496++ // or select statement of the innermost function definition.
3497++ //
3498++ // Example:
3499++ // func f() {
3500++ // break
3501++ // }
3502++ MisplacedBreak
3503++
3504++ // MisplacedContinue occurs when a continue statement is not within a for
3505++ // loop of the innermost function definition.
3506++ //
3507++ // Example:
3508++ // func sumeven(n int) int {
3509++ // proceed := func() {
3510++ // continue
3511++ // }
3512++ // sum := 0
3513++ // for i := 1; i <= n; i++ {
3514++ // if i % 2 != 0 {
3515++ // proceed()
3516++ // }
3517++ // sum += i
3518++ // }
3519++ // return sum
3520++ // }
3521++ MisplacedContinue
3522++
3523++ // MisplacedFallthrough occurs when a fallthrough statement is not within an
3524++ // expression switch.
3525++ //
3526++ // Example:
3527++ // func typename(i interface{}) string {
3528++ // switch i.(type) {
3529++ // case int64:
3530++ // fallthrough
3531++ // case int:
3532++ // return "int"
3533++ // }
3534++ // return "unsupported"
3535++ // }
3536++ MisplacedFallthrough
3537++
3538++ // DuplicateCase occurs when a type or expression switch has duplicate
3539++ // cases.
3540++ //
3541++ // Example:
3542++ // func printInt(i int) {
3543++ // switch i {
3544++ // case 1:
3545++ // println("one")
3546++ // case 1:
3547++ // println("One")
3548++ // }
3549++ // }
3550++ DuplicateCase
3551++
3552++ // DuplicateDefault occurs when a type or expression switch has multiple
3553++ // default clauses.
3554++ //
3555++ // Example:
3556++ // func printInt(i int) {
3557++ // switch i {
3558++ // case 1:
3559++ // println("one")
3560++ // default:
3561++ // println("One")
3562++ // default:
3563++ // println("1")
3564++ // }
3565++ // }
3566++ DuplicateDefault
3567++
3568++ // BadTypeKeyword occurs when a .(type) expression is used anywhere other
3569++ // than a type switch.
3570++ //
3571++ // Example:
3572++ // type I interface {
3573++ // m()
3574++ // }
3575++ // var t I
3576++ // var _ = t.(type)
3577++ BadTypeKeyword
3578++
3579++ // InvalidTypeSwitch occurs when .(type) is used on an expression that is
3580++ // not of interface type.
3581++ //
3582++ // Example:
3583++ // func f(i int) {
3584++ // switch x := i.(type) {}
3585++ // }
3586++ InvalidTypeSwitch
3587++
3588++ /* control flow > select */
3589++
3590++ // InvalidSelectCase occurs when a select case is not a channel send or
3591++ // receive.
3592++ //
3593++ // Example:
3594++ // func checkChan(c <-chan int) bool {
3595++ // select {
3596++ // case c:
3597++ // return true
3598++ // default:
3599++ // return false
3600++ // }
3601++ // }
3602++ InvalidSelectCase
3603++
3604++ /* control flow > labels and jumps */
3605++
3606++ // UndeclaredLabel occurs when an undeclared label is jumped to.
3607++ //
3608++ // Example:
3609++ // func f() {
3610++ // goto L
3611++ // }
3612++ UndeclaredLabel
3613++
3614++ // DuplicateLabel occurs when a label is declared more than once.
3615++ //
3616++ // Example:
3617++ // func f() int {
3618++ // L:
3619++ // L:
3620++ // return 1
3621++ // }
3622++ DuplicateLabel
3623++
3624++ // MisplacedLabel occurs when a break or continue label is not on a for,
3625++ // switch, or select statement.
3626++ //
3627++ // Example:
3628++ // func f() {
3629++ // L:
3630++ // a := []int{1,2,3}
3631++ // for _, e := range a {
3632++ // if e > 10 {
3633++ // break L
3634++ // }
3635++ // println(a)
3636++ // }
3637++ // }
3638++ MisplacedLabel
3639++
3640++ // UnusedLabel occurs when a label is declared but not used.
3641++ //
3642++ // Example:
3643++ // func f() {
3644++ // L:
3645++ // }
3646++ UnusedLabel
3647++
3648++ // JumpOverDecl occurs when a label jumps over a variable declaration.
3649++ //
3650++ // Example:
3651++ // func f() int {
3652++ // goto L
3653++ // x := 2
3654++ // L:
3655++ // x++
3656++ // return x
3657++ // }
3658++ JumpOverDecl
3659++
3660++ // JumpIntoBlock occurs when a forward jump goes to a label inside a nested
3661++ // block.
3662++ //
3663++ // Example:
3664++ // func f(x int) {
3665++ // goto L
3666++ // if x > 0 {
3667++ // L:
3668++ // print("inside block")
3669++ // }
3670++ // }
3671++ JumpIntoBlock
3672++
3673++ /* control flow > calls */
3674++
3675++ // InvalidMethodExpr occurs when a pointer method is called but the argument
3676++ // is not addressable.
3677++ //
3678++ // Example:
3679++ // type T struct {}
3680++ //
3681++ // func (*T) m() int { return 1 }
3682++ //
3683++ // var _ = T.m(T{})
3684++ InvalidMethodExpr
3685++
3686++ // WrongArgCount occurs when too few or too many arguments are passed by a
3687++ // function call.
3688++ //
3689++ // Example:
3690++ // func f(i int) {}
3691++ // var x = f()
3692++ WrongArgCount
3693++
3694++ // InvalidCall occurs when an expression is called that is not of function
3695++ // type.
3696++ //
3697++ // Example:
3698++ // var x = "x"
3699++ // var y = x()
3700++ InvalidCall
3701++
3702++ /* control flow > suspended */
3703++
3704++ // UnusedResults occurs when a restricted expression-only built-in function
3705++ // is suspended via go or defer. Such a suspension discards the results of
3706++ // these side-effect free built-in functions, and therefore is ineffectual.
3707++ //
3708++ // Example:
3709++ // func f(a []int) int {
3710++ // defer len(a)
3711++ // return i
3712++ // }
3713++ UnusedResults
3714++
3715++ // InvalidDefer occurs when a deferred expression is not a function call,
3716++ // for example if the expression is a type conversion.
3717++ //
3718++ // Example:
3719++ // func f(i int) int {
3720++ // defer int32(i)
3721++ // return i
3722++ // }
3723++ InvalidDefer
3724++
3725++ // InvalidGo occurs when a go expression is not a function call, for example
3726++ // if the expression is a type conversion.
3727++ //
3728++ // Example:
3729++ // func f(i int) int {
3730++ // go int32(i)
3731++ // return i
3732++ // }
3733++ InvalidGo
3734++)
3735+diff --git a/vendor/golang.org/x/tools/internal/typesinternal/errorcode_string.go b/vendor/golang.org/x/tools/internal/typesinternal/errorcode_string.go
3736+new file mode 100644
3737+index 0000000..97f3ec8
3738+--- /dev/null
3739++++ b/vendor/golang.org/x/tools/internal/typesinternal/errorcode_string.go
3740+@@ -0,0 +1,152 @@
3741++// Code generated by "stringer -type=ErrorCode"; DO NOT EDIT.
3742++
3743++package typesinternal
3744++
3745++import "strconv"
3746++
3747++func _() {
3748++ // An "invalid array index" compiler error signifies that the constant values have changed.
3749++ // Re-run the stringer command to generate them again.
3750++ var x [1]struct{}
3751++ _ = x[Test-1]
3752++ _ = x[BlankPkgName-2]
3753++ _ = x[MismatchedPkgName-3]
3754++ _ = x[InvalidPkgUse-4]
3755++ _ = x[BadImportPath-5]
3756++ _ = x[BrokenImport-6]
3757++ _ = x[ImportCRenamed-7]
3758++ _ = x[UnusedImport-8]
3759++ _ = x[InvalidInitCycle-9]
3760++ _ = x[DuplicateDecl-10]
3761++ _ = x[InvalidDeclCycle-11]
3762++ _ = x[InvalidTypeCycle-12]
3763++ _ = x[InvalidConstInit-13]
3764++ _ = x[InvalidConstVal-14]
3765++ _ = x[InvalidConstType-15]
3766++ _ = x[UntypedNil-16]
3767++ _ = x[WrongAssignCount-17]
3768++ _ = x[UnassignableOperand-18]
3769++ _ = x[NoNewVar-19]
3770++ _ = x[MultiValAssignOp-20]
3771++ _ = x[InvalidIfaceAssign-21]
3772++ _ = x[InvalidChanAssign-22]
3773++ _ = x[IncompatibleAssign-23]
3774++ _ = x[UnaddressableFieldAssign-24]
3775++ _ = x[NotAType-25]
3776++ _ = x[InvalidArrayLen-26]
3777++ _ = x[BlankIfaceMethod-27]
3778++ _ = x[IncomparableMapKey-28]
3779++ _ = x[InvalidIfaceEmbed-29]
3780++ _ = x[InvalidPtrEmbed-30]
3781++ _ = x[BadRecv-31]
3782++ _ = x[InvalidRecv-32]
3783++ _ = x[DuplicateFieldAndMethod-33]
3784++ _ = x[DuplicateMethod-34]
3785++ _ = x[InvalidBlank-35]
3786++ _ = x[InvalidIota-36]
3787++ _ = x[MissingInitBody-37]
3788++ _ = x[InvalidInitSig-38]
3789++ _ = x[InvalidInitDecl-39]
3790++ _ = x[InvalidMainDecl-40]
3791++ _ = x[TooManyValues-41]
3792++ _ = x[NotAnExpr-42]
3793++ _ = x[TruncatedFloat-43]
3794++ _ = x[NumericOverflow-44]
3795++ _ = x[UndefinedOp-45]
3796++ _ = x[MismatchedTypes-46]
3797++ _ = x[DivByZero-47]
3798++ _ = x[NonNumericIncDec-48]
3799++ _ = x[UnaddressableOperand-49]
3800++ _ = x[InvalidIndirection-50]
3801++ _ = x[NonIndexableOperand-51]
3802++ _ = x[InvalidIndex-52]
3803++ _ = x[SwappedSliceIndices-53]
3804++ _ = x[NonSliceableOperand-54]
3805++ _ = x[InvalidSliceExpr-55]
3806++ _ = x[InvalidShiftCount-56]
3807++ _ = x[InvalidShiftOperand-57]
3808++ _ = x[InvalidReceive-58]
3809++ _ = x[InvalidSend-59]
3810++ _ = x[DuplicateLitKey-60]
3811++ _ = x[MissingLitKey-61]
3812++ _ = x[InvalidLitIndex-62]
3813++ _ = x[OversizeArrayLit-63]
3814++ _ = x[MixedStructLit-64]
3815++ _ = x[InvalidStructLit-65]
3816++ _ = x[MissingLitField-66]
3817++ _ = x[DuplicateLitField-67]
3818++ _ = x[UnexportedLitField-68]
3819++ _ = x[InvalidLitField-69]
3820++ _ = x[UntypedLit-70]
3821++ _ = x[InvalidLit-71]
3822++ _ = x[AmbiguousSelector-72]
3823++ _ = x[UndeclaredImportedName-73]
3824++ _ = x[UnexportedName-74]
3825++ _ = x[UndeclaredName-75]
3826++ _ = x[MissingFieldOrMethod-76]
3827++ _ = x[BadDotDotDotSyntax-77]
3828++ _ = x[NonVariadicDotDotDot-78]
3829++ _ = x[MisplacedDotDotDot-79]
3830++ _ = x[InvalidDotDotDotOperand-80]
3831++ _ = x[InvalidDotDotDot-81]
3832++ _ = x[UncalledBuiltin-82]
3833++ _ = x[InvalidAppend-83]
3834++ _ = x[InvalidCap-84]
3835++ _ = x[InvalidClose-85]
3836++ _ = x[InvalidCopy-86]
3837++ _ = x[InvalidComplex-87]
3838++ _ = x[InvalidDelete-88]
3839++ _ = x[InvalidImag-89]
3840++ _ = x[InvalidLen-90]
3841++ _ = x[SwappedMakeArgs-91]
3842++ _ = x[InvalidMake-92]
3843++ _ = x[InvalidReal-93]
3844++ _ = x[InvalidAssert-94]
3845++ _ = x[ImpossibleAssert-95]
3846++ _ = x[InvalidConversion-96]
3847++ _ = x[InvalidUntypedConversion-97]
3848++ _ = x[BadOffsetofSyntax-98]
3849++ _ = x[InvalidOffsetof-99]
3850++ _ = x[UnusedExpr-100]
3851++ _ = x[UnusedVar-101]
3852++ _ = x[MissingReturn-102]
3853++ _ = x[WrongResultCount-103]
3854++ _ = x[OutOfScopeResult-104]
3855++ _ = x[InvalidCond-105]
3856++ _ = x[InvalidPostDecl-106]
3857++ _ = x[InvalidChanRange-107]
3858++ _ = x[InvalidIterVar-108]
3859++ _ = x[InvalidRangeExpr-109]
3860++ _ = x[MisplacedBreak-110]
3861++ _ = x[MisplacedContinue-111]
3862++ _ = x[MisplacedFallthrough-112]
3863++ _ = x[DuplicateCase-113]
3864++ _ = x[DuplicateDefault-114]
3865++ _ = x[BadTypeKeyword-115]
3866++ _ = x[InvalidTypeSwitch-116]
3867++ _ = x[InvalidSelectCase-117]
3868++ _ = x[UndeclaredLabel-118]
3869++ _ = x[DuplicateLabel-119]
3870++ _ = x[MisplacedLabel-120]
3871++ _ = x[UnusedLabel-121]
3872++ _ = x[JumpOverDecl-122]
3873++ _ = x[JumpIntoBlock-123]
3874++ _ = x[InvalidMethodExpr-124]
3875++ _ = x[WrongArgCount-125]
3876++ _ = x[InvalidCall-126]
3877++ _ = x[UnusedResults-127]
3878++ _ = x[InvalidDefer-128]
3879++ _ = x[InvalidGo-129]
3880++}
3881++
3882++const _ErrorCode_name = "TestBlankPkgNameMismatchedPkgNameInvalidPkgUseBadImportPathBrokenImportImportCRenamedUnusedImportInvalidInitCycleDuplicateDeclInvalidDeclCycleInvalidTypeCycleInvalidConstInitInvalidConstValInvalidConstTypeUntypedNilWrongAssignCountUnassignableOperandNoNewVarMultiValAssignOpInvalidIfaceAssignInvalidChanAssignIncompatibleAssignUnaddressableFieldAssignNotATypeInvalidArrayLenBlankIfaceMethodIncomparableMapKeyInvalidIfaceEmbedInvalidPtrEmbedBadRecvInvalidRecvDuplicateFieldAndMethodDuplicateMethodInvalidBlankInvalidIotaMissingInitBodyInvalidInitSigInvalidInitDeclInvalidMainDeclTooManyValuesNotAnExprTruncatedFloatNumericOverflowUndefinedOpMismatchedTypesDivByZeroNonNumericIncDecUnaddressableOperandInvalidIndirectionNonIndexableOperandInvalidIndexSwappedSliceIndicesNonSliceableOperandInvalidSliceExprInvalidShiftCountInvalidShiftOperandInvalidReceiveInvalidSendDuplicateLitKeyMissingLitKeyInvalidLitIndexOversizeArrayLitMixedStructLitInvalidStructLitMissingLitFieldDuplicateLitFieldUnexportedLitFieldInvalidLitFieldUntypedLitInvalidLitAmbiguousSelectorUndeclaredImportedNameUnexportedNameUndeclaredNameMissingFieldOrMethodBadDotDotDotSyntaxNonVariadicDotDotDotMisplacedDotDotDotInvalidDotDotDotOperandInvalidDotDotDotUncalledBuiltinInvalidAppendInvalidCapInvalidCloseInvalidCopyInvalidComplexInvalidDeleteInvalidImagInvalidLenSwappedMakeArgsInvalidMakeInvalidRealInvalidAssertImpossibleAssertInvalidConversionInvalidUntypedConversionBadOffsetofSyntaxInvalidOffsetofUnusedExprUnusedVarMissingReturnWrongResultCountOutOfScopeResultInvalidCondInvalidPostDeclInvalidChanRangeInvalidIterVarInvalidRangeExprMisplacedBreakMisplacedContinueMisplacedFallthroughDuplicateCaseDuplicateDefaultBadTypeKeywordInvalidTypeSwitchInvalidSelectCaseUndeclaredLabelDuplicateLabelMisplacedLabelUnusedLabelJumpOverDeclJumpIntoBlockInvalidMethodExprWrongArgCountInvalidCallUnusedResultsInvalidDeferInvalidGo"
3883++
3884++var _ErrorCode_index = [...]uint16{0, 4, 16, 33, 46, 59, 71, 85, 97, 113, 126, 142, 158, 174, 189, 205, 215, 231, 250, 258, 274, 292, 309, 327, 351, 359, 374, 390, 408, 425, 440, 447, 458, 481, 496, 508, 519, 534, 548, 563, 578, 591, 600, 614, 629, 640, 655, 664, 680, 700, 718, 737, 749, 768, 787, 803, 820, 839, 853, 864, 879, 892, 907, 923, 937, 953, 968, 985, 1003, 1018, 1028, 1038, 1055, 1077, 1091, 1105, 1125, 1143, 1163, 1181, 1204, 1220, 1235, 1248, 1258, 1270, 1281, 1295, 1308, 1319, 1329, 1344, 1355, 1366, 1379, 1395, 1412, 1436, 1453, 1468, 1478, 1487, 1500, 1516, 1532, 1543, 1558, 1574, 1588, 1604, 1618, 1635, 1655, 1668, 1684, 1698, 1715, 1732, 1747, 1761, 1775, 1786, 1798, 1811, 1828, 1841, 1852, 1865, 1877, 1886}
3885++
3886++func (i ErrorCode) String() string {
3887++ i -= 1
3888++ if i < 0 || i >= ErrorCode(len(_ErrorCode_index)-1) {
3889++ return "ErrorCode(" + strconv.FormatInt(int64(i+1), 10) + ")"
3890++ }
3891++ return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]]
3892++}
3893+diff --git a/vendor/golang.org/x/tools/internal/typesinternal/types.go b/vendor/golang.org/x/tools/internal/typesinternal/types.go
3894+index a5bb408..c3e1a39 100644
3895+--- a/vendor/golang.org/x/tools/internal/typesinternal/types.go
3896++++ b/vendor/golang.org/x/tools/internal/typesinternal/types.go
3897+@@ -2,9 +2,12 @@
3898+ // Use of this source code is governed by a BSD-style
3899+ // license that can be found in the LICENSE file.
3900+
3901++// Package typesinternal provides access to internal go/types APIs that are not
3902++// yet exported.
3903+ package typesinternal
3904+
3905+ import (
3906++ "go/token"
3907+ "go/types"
3908+ "reflect"
3909+ "unsafe"
3910+@@ -26,3 +29,17 @@ func SetUsesCgo(conf *types.Config) bool {
3911+
3912+ return true
3913+ }
3914++
3915++func ReadGo116ErrorData(terr types.Error) (ErrorCode, token.Pos, token.Pos, bool) {
3916++ var data [3]int
3917++ // By coincidence all of these fields are ints, which simplifies things.
3918++ v := reflect.ValueOf(terr)
3919++ for i, name := range []string{"go116code", "go116start", "go116end"} {
3920++ f := v.FieldByName(name)
3921++ if !f.IsValid() {
3922++ return 0, 0, 0, false
3923++ }
3924++ data[i] = int(f.Int())
3925++ }
3926++ return ErrorCode(data[0]), token.Pos(data[1]), token.Pos(data[2]), true
3927++}
3928+diff --git a/vendor/modules.txt b/vendor/modules.txt
3929+index dc6e25d..6681e7b 100644
3930+--- a/vendor/modules.txt
3931++++ b/vendor/modules.txt
3932+@@ -419,7 +419,7 @@ github.com/gobwas/glob/util/strings
3933+ github.com/gofrs/uuid
3934+ # github.com/gogo/googleapis v1.3.1
3935+ github.com/gogo/googleapis/google/api
3936+-# github.com/gogo/protobuf v1.3.1
3937++# github.com/gogo/protobuf v1.3.2
3938+ ## explicit
3939+ github.com/gogo/protobuf/gogoproto
3940+ github.com/gogo/protobuf/jsonpb
3941+@@ -1002,7 +1002,7 @@ golang.org/x/text/unicode/norm
3942+ golang.org/x/text/width
3943+ # golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
3944+ golang.org/x/time/rate
3945+-# golang.org/x/tools v0.0.0-20201022035929-9cf592e881e9
3946++# golang.org/x/tools v0.0.0-20210106214847-113979e3529a
3947+ golang.org/x/tools/cmd/goimports
3948+ golang.org/x/tools/go/analysis
3949+ golang.org/x/tools/go/analysis/passes/inspect
3950diff --git a/debian/patches/series b/debian/patches/series
3951index 7de5f2c..34bbc19 100644
3952--- a/debian/patches/series
3953+++ b/debian/patches/series
3954@@ -1,2 +1,3 @@
3955 adjust-service-user.patch
3956 adjust-etc-telegraf.conf.patch
3957+CVE-2021-3121.patch
3958diff --git a/debian/repack-telegraf-with-vendor.sh b/debian/repack-telegraf-with-vendor.sh
3959index a13a5e7..2be0ed5 100755
3960--- a/debian/repack-telegraf-with-vendor.sh
3961+++ b/debian/repack-telegraf-with-vendor.sh
3962@@ -18,9 +18,15 @@ GOBIN=${GOBIN:-go}
3963 upstream_version="$2"
3964 orig_tar=$(realpath "../telegraf_${upstream_version}.orig.tar.xz")
3965 orig_dir="$PWD"
3966-work_dir="$(mktemp -d)"
3967+work_dir=$(mktemp -d)
3968
3969-trap "rm -rf $work_dir" INT QUIT 0
3970+cleanup ()
3971+{
3972+ "$GOBIN" clean -cache -modcache
3973+ rm -rf "$work_dir"
3974+}
3975+
3976+trap cleanup INT QUIT 0
3977
3978 export GOPATH="$work_dir/.gopath"
3979 export GOCACHE="$work_dir/.gocache"
3980@@ -28,13 +34,12 @@ export GOCACHE="$work_dir/.gocache"
3981 printf "Unpacking tarball '$orig_tar' to '$work_dir'"
3982
3983 tar xf "$orig_tar" -C "$work_dir"
3984-source_dir_name="$(ls -1 "$work_dir")"
3985+source_dir_name=$(ls -1 "$work_dir")
3986 cd "$work_dir/$source_dir_name"
3987-$GOBIN mod vendor
3988+"$GOBIN" mod vendor
3989 cd ..
3990 tar cJf "$orig_tar" "$source_dir_name"
3991
3992-$GOBIN clean -cache -modcache
3993-rm -rf "$work_dir"
3994+cleanup
3995
3996 exit 0
3997diff --git a/docker-compose.yml b/docker-compose.yml
3998index 092a7b9..1da9d2a 100644
3999--- a/docker-compose.yml
4000+++ b/docker-compose.yml
4001@@ -40,6 +40,9 @@ services:
4002 - MYSQL_ALLOW_EMPTY_PASSWORD=yes
4003 ports:
4004 - "3306:3306"
4005+ # removes warning "mbind operation not permitted" enables you to see the docker logs
4006+ cap_add:
4007+ - SYS_NICE # CAP_SYS_NICE
4008 memcached:
4009 image: memcached
4010 ports:
4011diff --git a/docs/DATA_FORMATS_INPUT.md b/docs/DATA_FORMATS_INPUT.md
4012index dbcb283..3e7dd10 100644
4013--- a/docs/DATA_FORMATS_INPUT.md
4014+++ b/docs/DATA_FORMATS_INPUT.md
4015@@ -17,6 +17,7 @@ Protocol or in JSON format.
4016 - [Prometheus](/plugins/parsers/prometheus)
4017 - [Value](/plugins/parsers/value), ie: 45 or "booyah"
4018 - [Wavefront](/plugins/parsers/wavefront)
4019+- [XML](/plugins/parsers/xml)
4020
4021 Any input plugin containing the `data_format` option can use it to select the
4022 desired parser:
4023diff --git a/docs/DATA_FORMATS_OUTPUT.md b/docs/DATA_FORMATS_OUTPUT.md
4024index 0d0bdff..720c922 100644
4025--- a/docs/DATA_FORMATS_OUTPUT.md
4026+++ b/docs/DATA_FORMATS_OUTPUT.md
4027@@ -8,6 +8,7 @@ plugins.
4028 1. [Carbon2](/plugins/serializers/carbon2)
4029 1. [Graphite](/plugins/serializers/graphite)
4030 1. [JSON](/plugins/serializers/json)
4031+1. [MessagePack](/plugins/serializers/msgpack)
4032 1. [Prometheus](/plugins/serializers/prometheus)
4033 1. [Prometheus Remote Write](/plugins/serializers/prometheusremotewrite)
4034 1. [ServiceNow Metrics](/plugins/serializers/nowmetric)
4035diff --git a/docs/EXTERNAL_PLUGINS.md b/docs/EXTERNAL_PLUGINS.md
4036index abef068..83759ed 100644
4037--- a/docs/EXTERNAL_PLUGINS.md
4038+++ b/docs/EXTERNAL_PLUGINS.md
4039@@ -8,6 +8,8 @@ more flexibility compared to internal Telegraf plugins.
4040 - External plugins can access to libraries not written in Go
4041 - Utilize licensed software that isn't available to the open source community
4042 - Can include large dependencies that would otherwise bloat Telegraf
4043+- You don't need to wait on the Telegraf team to publish your plugin and start working with it.
4044+- using the [shim](/plugins/common/shim) you can easily convert plugins between internal and external use
4045
4046 ### External Plugin Guidelines
4047 The guidelines of writing external plugins would follow those for our general [input](/docs/INPUTS.md),
4048@@ -59,10 +61,9 @@ This is a guide to help you set up your plugin to use it with `execd`
4049 [openvpn](https://github.com/danielnelson/telegraf-execd-openvpn#usage) and [awsalarms](https://github.com/vipinvkmenon/awsalarms#installation)
4050 for examples. Include the following steps:
4051 1. How to download the release package for your platform or how to clone the binary for your external plugin
4052- 1. The commands to unpack or build your binary
4053+ 1. The commands to build your binary
4054 1. Location to edit your `telegraf.conf`
4055 1. Configuration to run your external plugin with [inputs.execd](/plugins/inputs/execd),
4056 [processors.execd](/plugins/processors/execd) or [outputs.execd](/plugins/outputs/execd)
4057- 1. Note that restart or reload of Telegraf is required
4058 1. Submit your plugin by opening a PR to add your external plugin to the [/EXTERNAL_PLUGINS.md](/EXTERNAL_PLUGINS.md)
4059 list. Please include the plugin name, link to the plugin repository and a short description of the plugin.
4060diff --git a/docs/FAQ.md b/docs/FAQ.md
4061index 4fe28db..3667c10 100644
4062--- a/docs/FAQ.md
4063+++ b/docs/FAQ.md
4064@@ -50,8 +50,6 @@ You can use the following techniques to avoid cardinality issues:
4065
4066 - Use [metric filtering][] options to exclude unneeded measurements and tags.
4067 - Write to a database with an appropriate [retention policy][].
4068-- Limit series cardinality in your database using the
4069- [max-series-per-database][] and [max-values-per-tag][] settings.
4070 - Consider using the [Time Series Index][tsi].
4071 - Monitor your databases using the [show cardinality][] commands.
4072 - Consult the [InfluxDB documentation][influx docs] for the most up-to-date techniques.
4073@@ -59,8 +57,6 @@ You can use the following techniques to avoid cardinality issues:
4074 [series cardinality]: https://docs.influxdata.com/influxdb/v1.7/concepts/glossary/#series-cardinality
4075 [metric filtering]: https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md#metric-filtering
4076 [retention policy]: https://docs.influxdata.com/influxdb/latest/guides/downsampling_and_retention/
4077-[max-series-per-database]: https://docs.influxdata.com/influxdb/latest/administration/config/#max-series-per-database-1000000
4078-[max-values-per-tag]: https://docs.influxdata.com/influxdb/latest/administration/config/#max-values-per-tag-100000
4079 [tsi]: https://docs.influxdata.com/influxdb/latest/concepts/time-series-index/
4080 [show cardinality]: https://docs.influxdata.com/influxdb/latest/query_language/spec/#show-cardinality
4081 [influx docs]: https://docs.influxdata.com/influxdb/latest/
4082diff --git a/docs/INTEGRATION_TESTS.md b/docs/INTEGRATION_TESTS.md
4083new file mode 100644
4084index 0000000..b7af829
4085--- /dev/null
4086+++ b/docs/INTEGRATION_TESTS.md
4087@@ -0,0 +1,61 @@
4088+# Integration Tests
4089+
4090+To run our current integration test suite:
4091+
4092+Running the integration tests requires several docker containers to be
4093+running. You can start the containers with:
4094+```
4095+docker-compose up
4096+```
4097+
4098+To run only the integration tests use:
4099+
4100+```
4101+make test-integration
4102+```
4103+
4104+Use `make docker-kill` to stop the containers.
4105+
4106+Contributing integration tests:
4107+
4108+- Add Integration to the end of the test name so it will be run with the above command.
4109+- Writes tests where no library is being used in the plugin
4110+- There is poor code coverage
4111+- It has dynamic code that only gets run at runtime eg: SQL
4112+
4113+Current areas we have integration tests:
4114+
4115+| Area | What it does |
4116+|------------------------------------|-------------------------------------------|
4117+| Inputs: Aerospike | |
4118+| Inputs: Disque | |
4119+| Inputs: Dovecot | |
4120+| Inputs: Mcrouter | |
4121+| Inputs: Memcached | |
4122+| Inputs: Mysql | |
4123+| Inputs: Opcua | |
4124+| Inputs: Openldap | |
4125+| Inputs: Pgbouncer | |
4126+| Inputs: Postgresql | |
4127+| Inputs: Postgresql extensible | |
4128+| Inputs: Procstat / Native windows | |
4129+| Inputs: Prometheus | |
4130+| Inputs: Redis | |
4131+| Inputs: Sqlserver | |
4132+| Inputs: Win perf counters | |
4133+| Inputs: Win services | |
4134+| Inputs: Zookeeper | |
4135+| Outputs: Cratedb / Postgres | |
4136+| Outputs: Elasticsearch | |
4137+| Outputs: Kafka | |
4138+| Outputs: MQTT | |
4139+| Outputs: Nats | |
4140+| Outputs: NSQ | |
4141+
4142+Areas we would benefit most from new integration tests:
4143+
4144+| Area |
4145+|------------------------------------|
4146+| SNMP |
4147+| MYSQL |
4148+| SQLSERVER |
4149diff --git a/docs/LICENSE_OF_DEPENDENCIES.md b/docs/LICENSE_OF_DEPENDENCIES.md
4150index 14c4644..0aff4fb 100644
4151--- a/docs/LICENSE_OF_DEPENDENCIES.md
4152+++ b/docs/LICENSE_OF_DEPENDENCIES.md
4153@@ -21,12 +21,24 @@ following works:
4154 - github.com/aerospike/aerospike-client-go [Apache License 2.0](https://github.com/aerospike/aerospike-client-go/blob/master/LICENSE)
4155 - github.com/alecthomas/units [MIT License](https://github.com/alecthomas/units/blob/master/COPYING)
4156 - github.com/amir/raidman [The Unlicense](https://github.com/amir/raidman/blob/master/UNLICENSE)
4157+- github.com/antchfx/xmlquery [MIT License](https://github.com/antchfx/xmlquery/blob/master/LICENSE)
4158+- github.com/antchfx/xpath [MIT License](https://github.com/antchfx/xpath/blob/master/LICENSE)
4159 - github.com/apache/thrift [Apache License 2.0](https://github.com/apache/thrift/blob/master/LICENSE)
4160 - github.com/aristanetworks/glog [Apache License 2.0](https://github.com/aristanetworks/glog/blob/master/LICENSE)
4161 - github.com/aristanetworks/goarista [Apache License 2.0](https://github.com/aristanetworks/goarista/blob/master/COPYING)
4162 - github.com/aws/aws-sdk-go [Apache License 2.0](https://github.com/aws/aws-sdk-go/blob/master/LICENSE.txt)
4163+- github.com/aws/aws-sdk-go-v2 [Apache License 2.0](https://github.com/aws/aws-sdk-go-v2/blob/main/LICENSE.txt)
4164+- github.com/aws/aws-sdk-go-v2/config [Apache License 2.0](https://github.com/aws/aws-sdk-go-v2/blob/main/config/LICENSE.txt)
4165+- github.com/aws/aws-sdk-go-v2/credentials [Apache License 2.0](https://github.com/aws/aws-sdk-go-v2/blob/main/credentials/LICENSE.txt)
4166+- github.com/aws/aws-sdk-go-v2/feature/ec2/imds [Apache License 2.0](https://github.com/aws/aws-sdk-go-v2/blob/main/feature/ec2/imds/LICENSE.txt)
4167+- github.com/aws/aws-sdk-go-v2/service/ec2 [Apache License 2.0](https://github.com/aws/aws-sdk-go-v2/blob/main/service/ec2/LICENSE.txt)
4168+- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url [Apache License 2.0](https://github.com/aws/aws-sdk-go-v2/blob/main/service/internal/presigned-url/LICENSE.txt)
4169+- github.com/aws/aws-sdk-go-v2/service/sso [Apache License 2.0](https://github.com/aws/aws-sdk-go-v2/blob/main/service/ec2/LICENSE.txt)
4170+- github.com/aws/aws-sdk-go-v2/service/sts [Apache License 2.0](https://github.com/aws/aws-sdk-go-v2/blob/main/service/sts/LICENSE.txt)
4171+- github.com/aws/smithy-go [Apache License 2.0](https://github.com/aws/smithy-go/blob/main/LICENSE)
4172 - github.com/benbjohnson/clock [MIT License](https://github.com/benbjohnson/clock/blob/master/LICENSE)
4173 - github.com/beorn7/perks [MIT License](https://github.com/beorn7/perks/blob/master/LICENSE)
4174+- github.com/bmatcuk/doublestar [MIT License](https://github.com/bmatcuk/doublestar/blob/master/LICENSE)
4175 - github.com/caio/go-tdigest [MIT License](https://github.com/caio/go-tdigest/blob/master/LICENSE)
4176 - github.com/cenkalti/backoff [MIT License](https://github.com/cenkalti/backoff/blob/master/LICENSE)
4177 - github.com/cespare/xxhash [MIT License](https://github.com/cespare/xxhash/blob/master/LICENSE.txt)
4178@@ -56,10 +68,12 @@ following works:
4179 - github.com/go-ping/ping [MIT License](https://github.com/go-ping/ping/blob/master/LICENSE)
4180 - github.com/go-redis/redis [BSD 2-Clause "Simplified" License](https://github.com/go-redis/redis/blob/master/LICENSE)
4181 - github.com/go-sql-driver/mysql [Mozilla Public License 2.0](https://github.com/go-sql-driver/mysql/blob/master/LICENSE)
4182+- github.com/go-stack/stack [MIT License](https://github.com/go-stack/stack/blob/master/LICENSE.md)
4183 - github.com/goburrow/modbus [BSD 3-Clause "New" or "Revised" License](https://github.com/goburrow/modbus/blob/master/LICENSE)
4184 - github.com/goburrow/serial [MIT License](https://github.com/goburrow/serial/LICENSE)
4185 - github.com/gobwas/glob [MIT License](https://github.com/gobwas/glob/blob/master/LICENSE)
4186 - github.com/gofrs/uuid [MIT License](https://github.com/gofrs/uuid/blob/master/LICENSE)
4187+- github.com/gogo/googleapis [Apache License 2.0](https://github.com/gogo/googleapis/blob/master/LICENSE)
4188 - github.com/gogo/protobuf [BSD 3-Clause Clear License](https://github.com/gogo/protobuf/blob/master/LICENSE)
4189 - github.com/golang/geo [Apache License 2.0](https://github.com/golang/geo/blob/master/LICENSE)
4190 - github.com/golang/groupcache [Apache License 2.0](https://github.com/golang/groupcache/blob/master/LICENSE)
4191@@ -71,6 +85,7 @@ following works:
4192 - github.com/googleapis/gax-go [BSD 3-Clause "New" or "Revised" License](https://github.com/googleapis/gax-go/blob/master/LICENSE)
4193 - github.com/gopcua/opcua [MIT License](https://github.com/gopcua/opcua/blob/master/LICENSE)
4194 - github.com/gorilla/mux [BSD 3-Clause "New" or "Revised" License](https://github.com/gorilla/mux/blob/master/LICENSE)
4195+- github.com/gorilla/websocket [BSD 2-Clause "Simplified" License](https://github.com/gorilla/websocket/blob/master/LICENSE)
4196 - github.com/gosnmp/gosnmp [BSD 2-Clause "Simplified" License](https://github.com/gosnmp/gosnmp/blob/master/LICENSE)
4197 - github.com/grpc-ecosystem/grpc-gateway [BSD 3-Clause "New" or "Revised" License](https://github.com/grpc-ecosystem/grpc-gateway/blob/master/LICENSE.txt)
4198 - github.com/hailocab/go-hostpool [MIT License](https://github.com/hailocab/go-hostpool/blob/master/LICENSE)
4199@@ -85,6 +100,8 @@ following works:
4200 - github.com/influxdata/toml [MIT License](https://github.com/influxdata/toml/blob/master/LICENSE)
4201 - github.com/influxdata/wlog [MIT License](https://github.com/influxdata/wlog/blob/master/LICENSE)
4202 - github.com/jackc/pgx [MIT License](https://github.com/jackc/pgx/blob/master/LICENSE)
4203+- github.com/jaegertracing/jaeger [Apache License 2.0](https://github.com/jaegertracing/jaeger/blob/master/LICENSE)
4204+- github.com/james4k/rcon [MIT License](https://github.com/james4k/rcon/blob/master/LICENSE)
4205 - github.com/jcmturner/gofork [BSD 3-Clause "New" or "Revised" License](https://github.com/jcmturner/gofork/blob/master/LICENSE)
4206 - github.com/jmespath/go-jmespath [Apache License 2.0](https://github.com/jmespath/go-jmespath/blob/master/LICENSE)
4207 - github.com/jpillora/backoff [MIT License](https://github.com/jpillora/backoff/blob/master/LICENSE)
4208@@ -116,7 +133,9 @@ following works:
4209 - github.com/openconfig/gnmi [Apache License 2.0](https://github.com/openconfig/gnmi/blob/master/LICENSE)
4210 - github.com/opencontainers/go-digest [Apache License 2.0](https://github.com/opencontainers/go-digest/blob/master/LICENSE)
4211 - github.com/opencontainers/image-spec [Apache License 2.0](https://github.com/opencontainers/image-spec/blob/master/LICENSE)
4212+- github.com/opentracing/opentracing-go [Apache License 2.0](https://github.com/opentracing/opentracing-go/blob/master/LICENSE)
4213 - github.com/openzipkin/zipkin-go-opentracing [MIT License](https://github.com/openzipkin/zipkin-go-opentracing/blob/master/LICENSE)
4214+- github.com/philhofer/fwd [MIT License](https://github.com/philhofer/fwd/blob/master/LICENSE.md)
4215 - github.com/pierrec/lz4 [BSD 3-Clause "New" or "Revised" License](https://github.com/pierrec/lz4/blob/master/LICENSE)
4216 - github.com/pkg/errors [BSD 2-Clause "Simplified" License](https://github.com/pkg/errors/blob/master/LICENSE)
4217 - github.com/pmezard/go-difflib [BSD 3-Clause Clear License](https://github.com/pmezard/go-difflib/blob/master/LICENSE)
4218@@ -130,6 +149,10 @@ following works:
4219 - github.com/safchain/ethtool [Apache License 2.0](https://github.com/safchain/ethtool/blob/master/LICENSE)
4220 - github.com/samuel/go-zookeeper [BSD 3-Clause Clear License](https://github.com/samuel/go-zookeeper/blob/master/LICENSE)
4221 - github.com/shirou/gopsutil [BSD 3-Clause Clear License](https://github.com/shirou/gopsutil/blob/master/LICENSE)
4222+- github.com/signalfx/com_signalfx_metrics_protobuf [Apache License 2.0](https://github.com/signalfx/com_signalfx_metrics_protobuf/blob/master/LICENSE)
4223+- github.com/signalfx/gohistogram [MIT License](https://github.com/signalfx/gohistogram/blob/master/LICENSE)
4224+- github.com/signalfx/golib [Apache License 2.0](https://github.com/signalfx/golib/blob/master/LICENSE)
4225+- github.com/signalfx/sapm-proto [Apache License 2.0](https://github.com/signalfx/sapm-proto/blob/master/LICENSE)
4226 - github.com/sirupsen/logrus [MIT License](https://github.com/sirupsen/logrus/blob/master/LICENSE)
4227 - github.com/soniah/gosnmp [BSD 2-Clause "Simplified" License](https://github.com/soniah/gosnmp/blob/master/LICENSE)
4228 - github.com/streadway/amqp [BSD 2-Clause "Simplified" License](https://github.com/streadway/amqp/blob/master/LICENSE)
4229@@ -138,6 +161,7 @@ following works:
4230 - github.com/tidwall/gjson [MIT License](https://github.com/tidwall/gjson/blob/master/LICENSE)
4231 - github.com/tidwall/match [MIT License](https://github.com/tidwall/match/blob/master/LICENSE)
4232 - github.com/tidwall/pretty [MIT License](https://github.com/tidwall/pretty/blob/master/LICENSE)
4233+- github.com/tinylib/msgp [MIT License](https://github.com/tinylib/msgp/blob/master/LICENSE)
4234 - github.com/vishvananda/netlink [Apache License 2.0](https://github.com/vishvananda/netlink/blob/master/LICENSE)
4235 - github.com/vishvananda/netns [Apache License 2.0](https://github.com/vishvananda/netns/blob/master/LICENSE)
4236 - github.com/vjeantet/grok [Apache License 2.0](https://github.com/vjeantet/grok/blob/master/LICENSE)
4237@@ -164,6 +188,7 @@ following works:
4238 - google.golang.org/genproto [Apache License 2.0](https://github.com/google/go-genproto/blob/master/LICENSE)
4239 - google.golang.org/grpc [Apache License 2.0](https://github.com/grpc/grpc-go/blob/master/LICENSE)
4240 - gopkg.in/asn1-ber.v1 [MIT License](https://github.com/go-asn1-ber/asn1-ber/blob/v1.3/LICENSE)
4241+- gopkg.in/djherbis/times.v1 [MIT License](https://github.com/djherbis/times/blob/master/LICENSE)
4242 - gopkg.in/fatih/pool.v2 [MIT License](https://github.com/fatih/pool/blob/v2.0.0/LICENSE)
4243 - gopkg.in/fsnotify.v1 [BSD 3-Clause "New" or "Revised" License](https://github.com/fsnotify/fsnotify/blob/v1.4.7/LICENSE)
4244 - gopkg.in/gorethink/gorethink.v3 [Apache License 2.0](https://github.com/rethinkdb/rethinkdb-go/blob/v3.0.5/LICENSE)
4245@@ -179,6 +204,8 @@ following works:
4246 - gopkg.in/tomb.v2 [BSD 3-Clause Clear License](https://github.com/go-tomb/tomb/blob/v2/LICENSE)
4247 - gopkg.in/yaml.v2 [Apache License 2.0](https://github.com/go-yaml/yaml/blob/v2.2.2/LICENSE)
4248 - gopkg.in/yaml.v3 [Apache License 2.0](https://github.com/go-yaml/yaml/blob/v3/LICENSE)
4249+- k8s.io/apimachinery [Apache License 2.0](https://github.com/kubernetes/apimachinery/blob/master/LICENSE)
4250+- k8s.io/klog [Apache License 2.0](https://github.com/kubernetes/klog/blob/master/LICENSE)
4251 - modernc.org/libc [BSD 3-Clause "New" or "Revised" License](https://gitlab.com/cznic/libc/-/blob/master/LICENSE)
4252 - modernc.org/memory [BSD 3-Clause "New" or "Revised" License](https://gitlab.com/cznic/memory/-/blob/master/LICENSE)
4253 - modernc.org/sqlite [BSD 3-Clause "New" or "Revised" License](https://gitlab.com/cznic/sqlite/-/blob/master/LICENSE)
4254diff --git a/etc/telegraf.conf b/etc/telegraf.conf
4255index 9d52d0a..a238afa 100644
4256--- a/etc/telegraf.conf
4257+++ b/etc/telegraf.conf
4258@@ -343,6 +343,20 @@
4259 # # endpoint_url = "https://monitoring.core.usgovcloudapi.net"
4260
4261
4262+# [[outputs.bigquery]]
4263+# ## GCP Project
4264+# project = "erudite-bloom-151019"
4265+#
4266+# ## The BigQuery dataset
4267+# dataset = "telegraf"
4268+#
4269+# ## Timeout for BigQuery operations.
4270+# # timeout = "5s"
4271+#
4272+# ## Character to replace hyphens on Metric name
4273+# # replace_hyphen_to = "_"
4274+
4275+
4276 # # Publish Telegraf metrics to a Google Cloud PubSub topic
4277 # [[outputs.cloud_pubsub]]
4278 # ## Required. Name of Google Cloud Platform (GCP) Project that owns
4279@@ -496,6 +510,9 @@
4280 #
4281 # ## Connection timeout, defaults to "5s" if not set.
4282 # timeout = "5s"
4283+#
4284+# ## If you want to convert values represented as gauges to counters, add the metric names here
4285+# additional_counters = [ ]
4286
4287
4288 # # Configuration for Elasticsearch to send metrics to.
4289@@ -1066,6 +1083,33 @@
4290 # # url = "https://listener.logz.io:8071"
4291
4292
4293+# # Send logs to Loki
4294+# [[outputs.loki]]
4295+# ## The domain of Loki
4296+# domain = "https://loki.domain.tld"
4297+#
4298+# ## Endpoint to write api
4299+# # endpoint = "/loki/api/v1/push"
4300+#
4301+# ## Connection timeout, defaults to "5s" if not set.
4302+# # timeout = "5s"
4303+#
4304+# ## Basic auth credential
4305+# # username = "loki"
4306+# # password = "pass"
4307+#
4308+# ## Additional HTTP headers
4309+# # http_headers = {"X-Scope-OrgID" = "1"}
4310+#
4311+# ## If the request must be gzip encoded
4312+# # gzip_request = false
4313+#
4314+# ## Optional TLS Config
4315+# # tls_ca = "/etc/telegraf/ca.pem"
4316+# # tls_cert = "/etc/telegraf/cert.pem"
4317+# # tls_key = "/etc/telegraf/key.pem"
4318+
4319+
4320 # # Configuration for MQTT server to send metrics to
4321 # [[outputs.mqtt]]
4322 # servers = ["localhost:1883"] # required.
4323@@ -1158,6 +1202,10 @@
4324 #
4325 # ## Timeout for writes to the New Relic API.
4326 # # timeout = "15s"
4327+#
4328+# ## HTTP Proxy override. If unset use values from the standard
4329+# ## proxy environment variables to determine proxy, if any.
4330+# # http_proxy = "http://corporate.proxy:3128"
4331
4332
4333 # # Send telegraf measurements to NSQD
4334@@ -1293,6 +1341,116 @@
4335 # separator = " "
4336
4337
4338+# # Send aggregate metrics to Sensu Monitor
4339+# [[outputs.sensu]]
4340+# ## BACKEND API URL is the Sensu Backend API root URL to send metrics to
4341+# ## (protocol, host, and port only). The output plugin will automatically
4342+# ## append the corresponding backend API path
4343+# ## /api/core/v2/namespaces/:entity_namespace/events/:entity_name/:check_name).
4344+# ##
4345+# ## Backend Events API reference:
4346+# ## https://docs.sensu.io/sensu-go/latest/api/events/
4347+# ##
4348+# ## AGENT API URL is the Sensu Agent API root URL to send metrics to
4349+# ## (protocol, host, and port only). The output plugin will automatically
4350+# ## append the correspeonding agent API path (/events).
4351+# ##
4352+# ## Agent API Events API reference:
4353+# ## https://docs.sensu.io/sensu-go/latest/api/events/
4354+# ##
4355+# ## NOTE: if backend_api_url and agent_api_url and api_key are set, the output
4356+# ## plugin will use backend_api_url. If backend_api_url and agent_api_url are
4357+# ## not provided, the output plugin will default to use an agent_api_url of
4358+# ## http://127.0.0.1:3031
4359+# ##
4360+# # backend_api_url = "http://127.0.0.1:8080"
4361+# # agent_api_url = "http://127.0.0.1:3031"
4362+#
4363+# ## API KEY is the Sensu Backend API token
4364+# ## Generate a new API token via:
4365+# ##
4366+# ## $ sensuctl cluster-role create telegraf --verb create --resource events,entities
4367+# ## $ sensuctl cluster-role-binding create telegraf --cluster-role telegraf --group telegraf
4368+# ## $ sensuctl user create telegraf --group telegraf --password REDACTED
4369+# ## $ sensuctl api-key grant telegraf
4370+# ##
4371+# ## For more information on Sensu RBAC profiles & API tokens, please visit:
4372+# ## - https://docs.sensu.io/sensu-go/latest/reference/rbac/
4373+# ## - https://docs.sensu.io/sensu-go/latest/reference/apikeys/
4374+# ##
4375+# # api_key = "${SENSU_API_KEY}"
4376+#
4377+# ## Optional TLS Config
4378+# # tls_ca = "/etc/telegraf/ca.pem"
4379+# # tls_cert = "/etc/telegraf/cert.pem"
4380+# # tls_key = "/etc/telegraf/key.pem"
4381+# ## Use TLS but skip chain & host verification
4382+# # insecure_skip_verify = false
4383+#
4384+# ## Timeout for HTTP message
4385+# # timeout = "5s"
4386+#
4387+# ## HTTP Content-Encoding for write request body, can be set to "gzip" to
4388+# ## compress body or "identity" to apply no encoding.
4389+# # content_encoding = "identity"
4390+#
4391+# ## Sensu Event details
4392+# ##
4393+# ## Below are the event details to be sent to Sensu. The main portions of the
4394+# ## event are the check, entity, and metrics specifications. For more information
4395+# ## on Sensu events and its components, please visit:
4396+# ## - Events - https://docs.sensu.io/sensu-go/latest/reference/events
4397+# ## - Checks - https://docs.sensu.io/sensu-go/latest/reference/checks
4398+# ## - Entities - https://docs.sensu.io/sensu-go/latest/reference/entities
4399+# ## - Metrics - https://docs.sensu.io/sensu-go/latest/reference/events#metrics
4400+# ##
4401+# ## Check specification
4402+# ## The check name is the name to give the Sensu check associated with the event
4403+# ## created. This maps to check.metatadata.name in the event.
4404+# [outputs.sensu.check]
4405+# name = "telegraf"
4406+#
4407+# ## Entity specification
4408+# ## Configure the entity name and namespace, if necessary. This will be part of
4409+# ## the entity.metadata in the event.
4410+# ##
4411+# ## NOTE: if the output plugin is configured to send events to a
4412+# ## backend_api_url and entity_name is not set, the value returned by
4413+# ## os.Hostname() will be used; if the output plugin is configured to send
4414+# ## events to an agent_api_url, entity_name and entity_namespace are not used.
4415+# # [outputs.sensu.entity]
4416+# # name = "server-01"
4417+# # namespace = "default"
4418+#
4419+# ## Metrics specification
4420+# ## Configure the tags for the metrics that are sent as part of the Sensu event
4421+# # [outputs.sensu.tags]
4422+# # source = "telegraf"
4423+#
4424+# ## Configure the handler(s) for processing the provided metrics
4425+# # [outputs.sensu.metrics]
4426+# # handlers = ["influxdb","elasticsearch"]
4427+
4428+
4429+# # Send metrics and events to SignalFx
4430+# [[outputs.signalfx]]
4431+# ## SignalFx Org Access Token
4432+# access_token = "my-secret-token"
4433+#
4434+# ## The SignalFx realm that your organization resides in
4435+# signalfx_realm = "us9" # Required if ingest_url is not set
4436+#
4437+# ## You can optionally provide a custom ingest url instead of the
4438+# ## signalfx_realm option above if you are using a gateway or proxy
4439+# ## instance. This option takes precident over signalfx_realm.
4440+# ingest_url = "https://my-custom-ingest/"
4441+#
4442+# ## Event typed metrics are omitted by default,
4443+# ## If you require an event typed metric you must specify the
4444+# ## metric name in the following list.
4445+# included_event_names = ["plugin.metric_name"]
4446+
4447+
4448 # # Generic socket writer capable of handling multiple socket types.
4449 # [[outputs.socket_writer]]
4450 # ## URL to connect to
4451@@ -1698,6 +1856,55 @@
4452 ###############################################################################
4453
4454
4455+# # Attach AWS EC2 metadata to metrics
4456+# [[processors.aws_ec2]]
4457+# ## Instance identity document tags to attach to metrics.
4458+# ## For more information see:
4459+# ## https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-identity-documents.html
4460+# ##
4461+# ## Available tags:
4462+# ## * accountId
4463+# ## * architecture
4464+# ## * availabilityZone
4465+# ## * billingProducts
4466+# ## * imageId
4467+# ## * instanceId
4468+# ## * instanceType
4469+# ## * kernelId
4470+# ## * pendingTime
4471+# ## * privateIp
4472+# ## * ramdiskId
4473+# ## * region
4474+# ## * version
4475+# imds_tags = []
4476+#
4477+# ## EC2 instance tags retrieved with DescribeTags action.
4478+# ## In case tag is empty upon retrieval it's omitted when tagging metrics.
4479+# ## Note that in order for this to work, role attached to EC2 instance or AWS
4480+# ## credentials available from the environment must have a policy attached, that
4481+# ## allows ec2:DescribeTags.
4482+# ##
4483+# ## For more information see:
4484+# ## https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTags.html
4485+# ec2_tags = []
4486+#
4487+# ## Timeout for http requests made by against aws ec2 metadata endpoint.
4488+# timeout = "10s"
4489+#
4490+# ## ordered controls whether or not the metrics need to stay in the same order
4491+# ## this plugin received them in. If false, this plugin will change the order
4492+# ## with requests hitting cached results moving through immediately and not
4493+# ## waiting on slower lookups. This may cause issues for you if you are
4494+# ## depending on the order of metrics staying the same. If so, set this to true.
4495+# ## Keeping the metrics ordered may be slightly slower.
4496+# ordered = false
4497+#
4498+# ## max_parallel_calls is the maximum number of AWS API calls to be in flight
4499+# ## at the same time.
4500+# ## It's probably best to keep this number fairly low.
4501+# max_parallel_calls = 10
4502+
4503+
4504 # # Clone metrics and apply modifications.
4505 # [[processors.clone]]
4506 # ## All modifications on inputs and aggregators can be overridden:
4507@@ -2092,6 +2299,13 @@
4508 #
4509 # ## File containing a Starlark script.
4510 # # script = "/usr/local/bin/myscript.star"
4511+#
4512+# ## The constants of the Starlark script.
4513+# # [processors.starlark.constants]
4514+# # max_size = 10
4515+# # threshold = 0.75
4516+# # default_name = "Julia"
4517+# # debug_mode = true
4518
4519
4520 # # Perform string processing on tags, fields, and measurements
4521@@ -2245,6 +2459,49 @@
4522 # # stats = ["count", "min", "max", "mean", "stdev", "s2", "sum"]
4523
4524
4525+# # Calculates a derivative for every field.
4526+# [[aggregators.derivative]]
4527+# ## The period in which to flush the aggregator.
4528+# period = "30s"
4529+# ##
4530+# ## If true, the original metric will be dropped by the
4531+# ## aggregator and will not get sent to the output plugins.
4532+# drop_original = false
4533+# ##
4534+# ## This aggregator will estimate a derivative for each field, which is
4535+# ## contained in both the first and last metric of the aggregation interval.
4536+# ## Without further configuration the derivative will be calculated with
4537+# ## respect to the time difference between these two measurements in seconds.
4538+# ## The formula applied is for every field:
4539+# ##
4540+# ## value_last - value_first
4541+# ## derivative = --------------------------
4542+# ## time_difference_in_seconds
4543+# ##
4544+# ## The resulting derivative will be named *fieldname_rate*. The suffix
4545+# ## "_rate" can be configured by the *suffix* parameter. When using a
4546+# ## derivation variable you can include its name for more clarity.
4547+# # suffix = "_rate"
4548+# ##
4549+# ## As an abstraction the derivative can be calculated not only by the time
4550+# ## difference but by the difference of a field, which is contained in the
4551+# ## measurement. This field is assumed to be monotonously increasing. This
4552+# ## feature is used by specifying a *variable*.
4553+# ## Make sure the specified variable is not filtered and exists in the metrics
4554+# ## passed to this aggregator!
4555+# # variable = ""
4556+# ##
4557+# ## When using a field as the derivation parameter the name of that field will
4558+# ## be used for the resulting derivative, e.g. *fieldname_by_parameter*.
4559+# ##
4560+# ## Note, that the calculation is based on the actual timestamp of the
4561+# ## measurements. When there is only one measurement during that period, the
4562+# ## measurement will be rolled over to the next period. The maximum number of
4563+# ## such roll-overs can be configured with a default of 10.
4564+# # max_roll_over = 10
4565+# ##
4566+
4567+
4568 # # Report the final metric of a series
4569 # [[aggregators.final]]
4570 # ## The period on which to flush & clear the aggregator.
4571@@ -2308,6 +2565,34 @@
4572 # drop_original = false
4573
4574
4575+# # Keep the aggregate quantiles of each metric passing through.
4576+# [[aggregators.quantile]]
4577+# ## General Aggregator Arguments:
4578+# ## The period on which to flush & clear the aggregator.
4579+# period = "30s"
4580+#
4581+# ## If true, the original metric will be dropped by the
4582+# ## aggregator and will not get sent to the output plugins.
4583+# drop_original = false
4584+#
4585+# ## Quantiles to output in the range [0,1]
4586+# # quantiles = [0.25, 0.5, 0.75]
4587+#
4588+# ## Type of aggregation algorithm
4589+# ## Supported are:
4590+# ## "t-digest" -- approximation using centroids, can cope with large number of samples
4591+# ## "exact R7" -- exact computation also used by Excel or NumPy (Hyndman & Fan 1996 R7)
4592+# ## "exact R8" -- exact computation (Hyndman & Fan 1996 R8)
4593+# ## NOTE: Do not use "exact" algorithms with large number of samples
4594+# ## to not impair performance or memory consumption!
4595+# # algorithm = "t-digest"
4596+#
4597+# ## Compression for approximation (t-digest). The value needs to be
4598+# ## greater or equal to 1.0. Smaller values will result in more
4599+# ## performance but less accuracy.
4600+# # compression = 100.0
4601+
4602+
4603 # # Count the occurrence of values in fields.
4604 # [[aggregators.valuecounter]]
4605 # ## General Aggregator Arguments:
4606@@ -2562,6 +2847,41 @@
4607 # tubes = ["notifications"]
4608
4609
4610+# # Read metrics exposed by Beat
4611+# [[inputs.beat]]
4612+# ## An URL from which to read Beat-formatted JSON
4613+# ## Default is "http://127.0.0.1:5066".
4614+# url = "http://127.0.0.1:5066"
4615+#
4616+# ## Enable collection of the listed stats
4617+# ## An empty list means collect all. Available options are currently
4618+# ## "beat", "libbeat", "system" and "filebeat".
4619+# # include = ["beat", "libbeat", "filebeat"]
4620+#
4621+# ## HTTP method
4622+# # method = "GET"
4623+#
4624+# ## Optional HTTP headers
4625+# # headers = {"X-Special-Header" = "Special-Value"}
4626+#
4627+# ## Override HTTP "Host" header
4628+# # host_header = "logstash.example.com"
4629+#
4630+# ## Timeout for HTTP requests
4631+# # timeout = "5s"
4632+#
4633+# ## Optional HTTP Basic Auth credentials
4634+# # username = "username"
4635+# # password = "pa$$word"
4636+#
4637+# ## Optional TLS Config
4638+# # tls_ca = "/etc/telegraf/ca.pem"
4639+# # tls_cert = "/etc/telegraf/cert.pem"
4640+# # tls_key = "/etc/telegraf/key.pem"
4641+# ## Use TLS but skip chain & host verification
4642+# # insecure_skip_verify = false
4643+
4644+
4645 # # Read BIND nameserver XML statistics
4646 # [[inputs.bind]]
4647 # ## An array of BIND XML statistics URI to gather stats.
4648@@ -2713,6 +3033,9 @@
4649 # ## ex: endpoint_url = "http://localhost:8000"
4650 # # endpoint_url = ""
4651 #
4652+# ## Set http_proxy (telegraf uses the system wide proxy settings if it's is not set)
4653+# # http_proxy_url = "http://localhost:8888"
4654+#
4655 # # The minimum period for Cloudwatch metrics is 1 minute (60s). However not all
4656 # # metrics are made available to the 1 minute period. Some are collected at
4657 # # 3 minute, 5 minute, or larger intervals. See https://aws.amazon.com/cloudwatch/faqs/#monitoring.
4658@@ -2854,6 +3177,18 @@
4659 # # basic_password = "p@ssw0rd"
4660
4661
4662+# # Fetch metrics from a CSGO SRCDS
4663+# [[inputs.csgo]]
4664+# ## Specify servers using the following format:
4665+# ## servers = [
4666+# ## ["ip1:port1", "rcon_password1"],
4667+# ## ["ip2:port2", "rcon_password2"],
4668+# ## ]
4669+# #
4670+# ## If no servers are specified, no data will be collected
4671+# servers = []
4672+
4673+
4674 # # Input plugin for DC/OS metrics
4675 # [[inputs.dcos]]
4676 # ## The DC/OS cluster URL.
4677@@ -2966,13 +3301,30 @@
4678 # ## Timeout for docker list, info, and stats commands
4679 # timeout = "5s"
4680 #
4681-# ## Whether to report for each container per-device blkio (8:0, 8:1...) and
4682-# ## network (eth0, eth1, ...) stats or not
4683+# ## Whether to report for each container per-device blkio (8:0, 8:1...),
4684+# ## network (eth0, eth1, ...) and cpu (cpu0, cpu1, ...) stats or not.
4685+# ## Usage of this setting is discouraged since it will be deprecated in favor of 'perdevice_include'.
4686+# ## Default value is 'true' for backwards compatibility, please set it to 'false' so that 'perdevice_include' setting
4687+# ## is honored.
4688 # perdevice = true
4689 #
4690-# ## Whether to report for each container total blkio and network stats or not
4691+# ## Specifies for which classes a per-device metric should be issued
4692+# ## Possible values are 'cpu' (cpu0, cpu1, ...), 'blkio' (8:0, 8:1, ...) and 'network' (eth0, eth1, ...)
4693+# ## Please note that this setting has no effect if 'perdevice' is set to 'true'
4694+# # perdevice_include = ["cpu"]
4695+#
4696+# ## Whether to report for each container total blkio and network stats or not.
4697+# ## Usage of this setting is discouraged since it will be deprecated in favor of 'total_include'.
4698+# ## Default value is 'false' for backwards compatibility, please set it to 'true' so that 'total_include' setting
4699+# ## is honored.
4700 # total = false
4701 #
4702+# ## Specifies for which classes a total metric should be issued. Total is an aggregated of the 'perdevice' values.
4703+# ## Possible values are 'cpu', 'blkio' and 'network'
4704+# ## Total 'cpu' is reported directly by Docker daemon, and 'network' and 'blkio' totals are aggregated by this plugin.
4705+# ## Please note that this setting has no effect if 'total' is set to 'false'
4706+# # total_include = ["cpu", "blkio", "network"]
4707+#
4708 # ## Which environment variables should we use as a tag
4709 # ##tag_env = ["JAVA_HOME", "HEAP_SIZE"]
4710 #
4711@@ -3065,6 +3417,7 @@
4712 # cluster_stats_only_from_master = true
4713 #
4714 # ## Indices to collect; can be one or more indices names or _all
4715+# ## Use of wildcards is allowed. Use a wildcard at the end to retrieve index names that end with a changing value, like a date.
4716 # indices_include = ["_all"]
4717 #
4718 # ## One of "shards", "cluster", "indices"
4719@@ -3085,6 +3438,11 @@
4720 # # tls_key = "/etc/telegraf/key.pem"
4721 # ## Use TLS but skip chain & host verification
4722 # # insecure_skip_verify = false
4723+#
4724+# ## Sets the number of most recent indices to return for indices that are configured with a date-stamped suffix.
4725+# ## Each 'indices_include' entry ending with a wildcard (*) or glob matching pattern will group together all indices that match it, and sort them
4726+# ## by the date or number after the wildcard. Metrics then are gathered for only the 'num_most_recent_indices' amount of most recent indices.
4727+# # num_most_recent_indices = 0
4728
4729
4730 # # Returns ethtool statistics for given interfaces
4731@@ -4478,6 +4836,35 @@
4732 # # no configuration
4733
4734
4735+# # Read per-mount NFS client metrics from /proc/self/mountstats
4736+# [[inputs.nfsclient]]
4737+# ## Read more low-level metrics (optional, defaults to false)
4738+# # fullstat = false
4739+#
4740+# ## List of mounts to explictly include or exclude (optional)
4741+# ## The pattern (Go regexp) is matched against the mount point (not the
4742+# ## device being mounted). If include_mounts is set, all mounts are ignored
4743+# ## unless present in the list. If a mount is listed in both include_mounts
4744+# ## and exclude_mounts, it is excluded. Go regexp patterns can be used.
4745+# # include_mounts = []
4746+# # exclude_mounts = []
4747+#
4748+# ## List of operations to include or exclude from collecting. This applies
4749+# ## only when fullstat=true. Symantics are similar to {include,exclude}_mounts:
4750+# ## the default is to collect everything; when include_operations is set, only
4751+# ## those OPs are collected; when exclude_operations is set, all are collected
4752+# ## except those listed. If include and exclude are set, the OP is excluded.
4753+# ## See /proc/self/mountstats for a list of valid operations; note that
4754+# ## NFSv3 and NFSv4 have different lists. While it is not possible to
4755+# ## have different include/exclude lists for NFSv3/4, unused elements
4756+# ## in the list should be okay. It is possible to have different lists
4757+# ## for different mountpoints: use mulitple [[input.nfsclient]] stanzas,
4758+# ## with their own lists. See "include_mounts" above, and be careful of
4759+# ## duplicate metrics.
4760+# # include_operations = []
4761+# # exclude_operations = []
4762+
4763+
4764 # # Read Nginx's basic status information (ngx_http_stub_status_module)
4765 # [[inputs.nginx]]
4766 # # An array of Nginx stub_status URI to gather stats.
4767@@ -5070,6 +5457,41 @@
4768 # urls = ["http://localhost:8080/_raindrops"]
4769
4770
4771+# # Reads metrics from RavenDB servers via the Monitoring Endpoints
4772+# [[inputs.ravendb]]
4773+# ## Node URL and port that RavenDB is listening on
4774+# url = "https://localhost:8080"
4775+#
4776+# ## RavenDB X509 client certificate setup
4777+# # tls_cert = "/etc/telegraf/raven.crt"
4778+# # tls_key = "/etc/telegraf/raven.key"
4779+#
4780+# ## Optional request timeout
4781+# ##
4782+# ## Timeout, specifies the amount of time to wait
4783+# ## for a server's response headers after fully writing the request and
4784+# ## time limit for requests made by this client
4785+# # timeout = "5s"
4786+#
4787+# ## List of statistics which are collected
4788+# # At least one is required
4789+# # Allowed values: server, databases, indexes, collections
4790+# #
4791+# # stats_include = ["server", "databases", "indexes", "collections"]
4792+#
4793+# ## List of db where database stats are collected
4794+# ## If empty, all db are concerned
4795+# # db_stats_dbs = []
4796+#
4797+# ## List of db where index status are collected
4798+# ## If empty, all indexes from all db are concerned
4799+# # index_stats_dbs = []
4800+#
4801+# ## List of db where collection status are collected
4802+# ## If empty, all collections from all db are concerned
4803+# # collection_stats_dbs = []
4804+
4805+
4806 # # Read CPU, Fans, Powersupply and Voltage metrics of hardware server through redfish APIs
4807 # [[inputs.redfish]]
4808 # ## Server url
4809@@ -5223,8 +5645,13 @@
4810 # # Retrieves SNMP values from remote agents
4811 # [[inputs.snmp]]
4812 # ## Agent addresses to retrieve values from.
4813+# ## format: agents = ["<scheme://><hostname>:<port>"]
4814+# ## scheme: optional, either udp, udp4, udp6, tcp, tcp4, tcp6.
4815+# ## default is udp
4816+# ## port: optional
4817 # ## example: agents = ["udp://127.0.0.1:161"]
4818 # ## agents = ["tcp://127.0.0.1:161"]
4819+# ## agents = ["udp4://v4only-snmp-agent"]
4820 # agents = ["udp://127.0.0.1:161"]
4821 #
4822 # ## Timeout for each request.
4823@@ -5249,7 +5676,7 @@
4824 # ##
4825 # ## Security Name.
4826 # # sec_name = "myuser"
4827-# ## Authentication protocol; one of "MD5", "SHA", or "".
4828+# ## Authentication protocol; one of "MD5", "SHA", "SHA224", "SHA256", "SHA384", "SHA512" or "".
4829 # # auth_protocol = "MD5"
4830 # ## Authentication password.
4831 # # auth_password = "pass"
4832@@ -5804,6 +6231,32 @@
4833 ###############################################################################
4834
4835
4836+# # Intel Resource Director Technology plugin
4837+# [[inputs.IntelRDT]]
4838+# ## Optionally set sampling interval to Nx100ms.
4839+# ## This value is propagated to pqos tool. Interval format is defined by pqos itself.
4840+# ## If not provided or provided 0, will be set to 10 = 10x100ms = 1s.
4841+# # sampling_interval = "10"
4842+#
4843+# ## Optionally specify the path to pqos executable.
4844+# ## If not provided, auto discovery will be performed.
4845+# # pqos_path = "/usr/local/bin/pqos"
4846+#
4847+# ## Optionally specify if IPC and LLC_Misses metrics shouldn't be propagated.
4848+# ## If not provided, default value is false.
4849+# # shortened_metrics = false
4850+#
4851+# ## Specify the list of groups of CPU core(s) to be provided as pqos input.
4852+# ## Mandatory if processes aren't set and forbidden if processes are specified.
4853+# ## e.g. ["0-3", "4,5,6"] or ["1-3,4"]
4854+# # cores = ["0-3"]
4855+#
4856+# ## Specify the list of processes for which Metrics will be collected.
4857+# ## Mandatory if cores aren't set and forbidden if cores are specified.
4858+# ## e.g. ["qemu", "pmd"]
4859+# # processes = ["process"]
4860+
4861+
4862 # # AMQP consumer plugin
4863 # [[inputs.amqp_consumer]]
4864 # ## Broker to consume from.
4865@@ -6124,6 +6577,46 @@
4866 # data_format = "influx"
4867
4868
4869+# # Ingests files in a directory and then moves them to a target directory.
4870+# [[inputs.directory_monitor]]
4871+# ## The directory to monitor and read files from.
4872+# directory = ""
4873+# #
4874+# ## The directory to move finished files to.
4875+# finished_directory = ""
4876+# #
4877+# ## The directory to move files to upon file error.
4878+# ## If not provided, erroring files will stay in the monitored directory.
4879+# # error_directory = ""
4880+# #
4881+# ## The amount of time a file is allowed to sit in the directory before it is picked up.
4882+# ## This time can generally be low but if you choose to have a very large file written to the directory and it's potentially slow,
4883+# ## set this higher so that the plugin will wait until the file is fully copied to the directory.
4884+# # directory_duration_threshold = "50ms"
4885+# #
4886+# ## A list of the only file names to monitor, if necessary. Supports regex. If left blank, all files are ingested.
4887+# # files_to_monitor = ["^.*\.csv"]
4888+# #
4889+# ## A list of files to ignore, if necessary. Supports regex.
4890+# # files_to_ignore = [".DS_Store"]
4891+# #
4892+# ## Maximum lines of the file to process that have not yet be written by the
4893+# ## output. For best throughput set to the size of the output's metric_buffer_limit.
4894+# ## Warning: setting this number higher than the output's metric_buffer_limit can cause dropped metrics.
4895+# # max_buffered_metrics = 10000
4896+# #
4897+# ## The maximum amount of file paths to queue up for processing at once, before waiting until files are processed to find more files.
4898+# ## Lowering this value will result in *slightly* less memory use, with a potential sacrifice in speed efficiency, if absolutely necessary.
4899+# # file_queue_size = 100000
4900+# #
4901+# ## The dataformat to be read from the files.
4902+# ## Each data format has its own unique set of configuration options, read
4903+# ## more about them here:
4904+# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
4905+# ## NOTE: We currently only support parsing newline-delimited JSON. See the format here: https://github.com/ndjson/ndjson-spec
4906+# data_format = "influx"
4907+
4908+
4909 # # Read logging output from the Docker engine
4910 # [[inputs.docker_log]]
4911 # ## Docker Endpoint
4912@@ -6486,7 +6979,7 @@
4913 # ## This value is propagated to pqos tool. Interval format is defined by pqos itself.
4914 # ## If not provided or provided 0, will be set to 10 = 10x100ms = 1s.
4915 # # sampling_interval = "10"
4916-#
4917+#
4918 # ## Optionally specify the path to pqos executable.
4919 # ## If not provided, auto discovery will be performed.
4920 # # pqos_path = "/usr/local/bin/pqos"
4921@@ -6494,12 +6987,12 @@
4922 # ## Optionally specify if IPC and LLC_Misses metrics shouldn't be propagated.
4923 # ## If not provided, default value is false.
4924 # # shortened_metrics = false
4925-#
4926+#
4927 # ## Specify the list of groups of CPU core(s) to be provided as pqos input.
4928 # ## Mandatory if processes aren't set and forbidden if processes are specified.
4929 # ## e.g. ["0-3", "4,5,6"] or ["1-3,4"]
4930 # # cores = ["0-3"]
4931-#
4932+#
4933 # ## Specify the list of processes for which Metrics will be collected.
4934 # ## Mandatory if cores aren't set and forbidden if cores are specified.
4935 # ## e.g. ["qemu", "pmd"]
4936@@ -7099,6 +7592,16 @@
4937 # ## - prometheus.io/path: If the metrics path is not /metrics, define it with this annotation.
4938 # ## - prometheus.io/port: If port is not 9102 use this annotation
4939 # # monitor_kubernetes_pods = true
4940+# ## Get the list of pods to scrape with either the scope of
4941+# ## - cluster: the kubernetes watch api (default, no need to specify)
4942+# ## - node: the local cadvisor api; for scalability. Note that the config node_ip or the environment variable NODE_IP must be set to the host IP.
4943+# # pod_scrape_scope = "cluster"
4944+# ## Only for node scrape scope: node IP of the node that telegraf is running on.
4945+# ## Either this config or the environment variable NODE_IP must be set.
4946+# # node_ip = "10.180.1.1"
4947+# ## Only for node scrape scope: interval in seconds for how often to get updated pod list for scraping.
4948+# ## Default is 60 seconds.
4949+# # pod_scrape_interval = 60
4950 # ## Restricts Kubernetes monitoring to a single namespace
4951 # ## ex: monitor_kubernetes_pods_namespace = "default"
4952 # # monitor_kubernetes_pods_namespace = ""
4953@@ -7313,6 +7816,10 @@
4954 # ## Parses datadog extensions to the statsd format
4955 # datadog_extensions = false
4956 #
4957+# ## Parses distributions metric as specified in the datadog statsd format
4958+# ## https://docs.datadoghq.com/developers/metrics/types/?tab=distribution#definition
4959+# datadog_distributions = false
4960+#
4961 # ## Statsd data translation templates, more info can be read here:
4962 # ## https://github.com/influxdata/telegraf/blob/master/docs/TEMPLATE_PATTERN.md
4963 # # templates = [
4964@@ -7402,7 +7909,8 @@
4965 # ## "/var/log/**.log" -> recursively find all .log files in /var/log
4966 # ## "/var/log/*/*.log" -> find all .log files with a parent dir in /var/log
4967 # ## "/var/log/apache.log" -> just tail the apache log file
4968-# ##
4969+# ## "/var/log/log[!1-2]* -> tail files without 1-2
4970+# ## "/var/log/log[^1-2]* -> identical behavior as above
4971 # ## See https://github.com/gobwas/glob for more examples
4972 # ##
4973 # files = ["/var/mymetrics.out"]
4974@@ -7436,6 +7944,9 @@
4975 # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
4976 # data_format = "influx"
4977 #
4978+# ## Set the tag that will contain the path of the tailed file. If you don't want this tag, set it to an empty string.
4979+# # path_tag = "path"
4980+#
4981 # ## multiline parser/codec
4982 # ## https://www.elastic.co/guide/en/logstash/2.4/plugins-filters-multiline.html
4983 # #[inputs.tail.multiline]
4984@@ -7681,3 +8192,4 @@
4985 # [[inputs.zipkin]]
4986 # # path = "/api/v1/spans" # URL path for span data
4987 # # port = 9411 # Port on which Telegraf listens
4988+
4989diff --git a/go.mod b/go.mod
4990index 912eb3f..f90bf65 100644
4991--- a/go.mod
4992+++ b/go.mod
4993@@ -1,11 +1,11 @@
4994 module github.com/influxdata/telegraf
4995
4996-go 1.15
4997+go 1.16
4998
4999 require (
5000 cloud.google.com/go v0.53.0
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches