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
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 5e44cfe..b4d865e 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,21 +1,23 @@
1version: 2.11version: 2.1
2orbs:
3 win: circleci/windows@2.4.0
24
3executors:5executors:
4 go-1_14:6 go-1_15:
5 working_directory: '/go/src/github.com/influxdata/telegraf'7 working_directory: '/go/src/github.com/influxdata/telegraf'
6 docker:8 docker:
7 - image: 'quay.io/influxdb/telegraf-ci:1.14.9'9 - image: 'quay.io/influxdb/telegraf-ci:1.15.8'
8 environment:10 environment:
9 GOFLAGS: -p=811 GOFLAGS: -p=8
10 go-1_15:12 go-1_16:
11 working_directory: '/go/src/github.com/influxdata/telegraf'13 working_directory: '/go/src/github.com/influxdata/telegraf'
12 docker:14 docker:
13 - image: 'quay.io/influxdb/telegraf-ci:1.15.5'15 - image: 'quay.io/influxdb/telegraf-ci:1.16.2'
14 environment:16 environment:
15 GOFLAGS: -p=817 GOFLAGS: -p=8
16 mac:18 mac:
17 macos:19 macos:
18 xcode: 12.1.020 xcode: 12.4.0
19 working_directory: '~/go/src/github.com/influxdata/telegraf'21 working_directory: '~/go/src/github.com/influxdata/telegraf'
20 environment:22 environment:
21 HOMEBREW_NO_AUTO_UPDATE: 123 HOMEBREW_NO_AUTO_UPDATE: 1
@@ -35,14 +37,6 @@ commands:
35 - run: 'GOARCH=<< parameters.goarch >> make check'37 - run: 'GOARCH=<< parameters.goarch >> make check'
36 - run: 'GOARCH=<< parameters.goarch >> make check-deps'38 - run: 'GOARCH=<< parameters.goarch >> make check-deps'
37 - run: 'GOARCH=<< parameters.goarch >> make test'39 - 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:40 package:
47 parameters:41 parameters:
48 nightly:42 nightly:
@@ -54,7 +48,7 @@ commands:
54 at: '/go'48 at: '/go'
55 - when:49 - when:
56 condition: << parameters.nightly >>50 condition: << parameters.nightly >>
57 steps: 51 steps:
58 - run: 'NIGHTLY=1 make package'52 - run: 'NIGHTLY=1 make package'
59 - run: 'make upload-nightly'53 - run: 'make upload-nightly'
60 - unless:54 - unless:
@@ -64,9 +58,21 @@ commands:
64 - store_artifacts:58 - store_artifacts:
65 path: './build/dist'59 path: './build/dist'
66 destination: 'build/dist'60 destination: 'build/dist'
61 - persist_to_workspace:
62 root: './build'
63 paths:
64 - 'dist'
67jobs:65jobs:
66 linter:
67 executor: go-1_16
68 steps:
69 - checkout
70 - restore_cache:
71 key: go-mod-v1-{{ checksum "go.sum" }}
72 - run: wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.37.0
73 - run: make lint
68 deps:74 deps:
69 executor: go-1_1575 executor: go-1_16
70 steps:76 steps:
71 - checkout77 - checkout
72 - restore_cache:78 - restore_cache:
@@ -82,155 +88,204 @@ jobs:
82 root: '/go'88 root: '/go'
83 paths:89 paths:
84 - '*'90 - '*'
85 macdeps:91 test-go-1_15:
86 executor: mac92 executor: go-1_15
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 steps:93 steps:
113 - test-go94 - test-go
114 test-go-1_14-386:95 test-go-1_15-386:
115 executor: go-1_1496 executor: go-1_15
116 steps:97 steps:
117 - test-go:98 - test-go:
118 goarch: "386"99 goarch: "386"
119 test-go-1_15:100 test-go-1_16:
120 executor: go-1_15101 executor: go-1_16
121 steps:102 steps:
122 - test-go103 - test-go
123 test-go-1_15-386:104 test-go-1_16-386:
124 executor: go-1_15105 executor: go-1_16
125 steps:106 steps:
126 - test-go:107 - test-go:
127 goarch: "386"108 goarch: "386"
128 test-go-darwin:109 test-go-mac:
129 executor: mac110 executor: mac
130 steps:111 steps:
131 - test-go-mac112 - checkout
113 - restore_cache:
114 key: mac-go-mod-v0-{{ checksum "go.sum" }}
115 - run: 'sh ./scripts/mac_installgo.sh'
116 - save_cache:
117 name: 'Saving cache'
118 key: mac-go-mod-v0-{{ checksum "go.sum" }}
119 paths:
120 - '/usr/local/Cellar/go'
121 - '/usr/local/bin/go'
122 - '/usr/local/bin/gofmt'
123 - run: 'make deps'
124 - run: 'make tidy'
125 - run: 'make'
126 - run: 'make check'
127 - run: 'make test'
128 test-go-windows:
129 executor:
130 name: win/default
131 shell: powershell.exe
132 steps:
133 - checkout
134 - run: choco upgrade golang --version=1.16.2
135 - run: choco install make
136 - run: git config --system core.longpaths true
137 - run: make test-windows
132138
133 package:139 package:
134 executor: go-1_15140 executor: go-1_16
135 steps:141 steps:
136 - package142 - package
137 release:143 release:
138 executor: go-1_15144 executor: go-1_16
139 steps:145 steps:
140 - package146 - package
141 nightly:147 nightly:
142 executor: go-1_15148 executor: go-1_16
143 steps:149 steps:
144 - package:150 - package:
145 nightly: true151 nightly: true
146152 package-sign-windows:
153 executor:
154 name: win/default
155 shell: powershell.exe
156 steps:
157 - checkout
158 - attach_workspace:
159 at: '/build'
160 - run:
161 name: "Sign Windows Executables"
162 shell: powershell.exe
163 command: |
164 ./scripts/windows-signing.ps1
165 - persist_to_workspace:
166 root: './build'
167 paths:
168 - 'dist'
169 - store_artifacts:
170 path: './build/dist'
171 destination: 'build/dist'
172 package-sign-mac:
173 macos:
174 xcode: "11.3"
175 working_directory: /Users/distiller/project
176 environment:
177 FL_OUTPUT_DIR: output
178 FASTLANE_LANE: test
179 shell: /bin/bash --login -o pipefail
180 steps:
181 - checkout
182 - attach_workspace:
183 at: '.'
184 - run:
185 command: |
186 sh ./scripts/mac-signing.sh
187 - store_artifacts:
188 path: './dist'
189 destination: 'build/dist'
147workflows:190workflows:
148 version: 2191 version: 2
149 check:192 check:
150 jobs:193 jobs:
151 - 'macdeps':
152 filters:
153 tags:
154 only: /.*/
155 - 'deps':194 - 'deps':
156 filters:195 filters:
157 tags:196 tags:
158 only: /.*/197 only: /.*/
159 - 'test-go-1_14':198 - 'test-go-1_15':
160 requires:199 requires:
161 - 'deps'200 - 'deps'
162 filters:201 filters:
163 tags:202 tags:
164 only: /.*/203 only: /.*/
165 - 'test-go-1_14-386':204 - 'test-go-1_15-386':
166 requires:205 requires:
167 - 'deps'206 - 'deps'
168 filters:207 filters:
169 tags:208 tags:
170 only: /.*/209 only: /.*/
171 - 'test-go-1_15':210 - 'test-go-1_16':
172 requires:211 requires:
173 - 'deps'212 - 'deps'
174 filters:213 filters:
175 tags:214 tags:
176 only: /.*/215 only: /.*/
177 - 'test-go-1_15-386':216 - 'test-go-1_16-386':
178 requires:217 requires:
179 - 'deps'218 - 'deps'
180 filters:219 filters:
181 tags:220 tags:
182 only: /.*/221 only: /.*/
183 - 'test-go-darwin':222 - 'test-go-mac':
184 requires:
185 - 'macdeps'
186 filters:223 filters:
187 tags: # only runs on tags if you specify this filter224 tags: # only runs on tags if you specify this filter
188 only: /.*/225 only: /.*/
226 - 'test-go-windows':
227 filters:
228 tags:
229 only: /.*/
189 - 'package':230 - 'package':
190 requires:231 requires:
191 - 'test-go-darwin'232 - 'test-go-windows'
192 - 'test-go-1_14'233 - 'test-go-mac'
193 - 'test-go-1_14-386'
194 - 'test-go-1_15'234 - 'test-go-1_15'
195 - 'test-go-1_15-386'235 - 'test-go-1_15-386'
236 - 'test-go-1_16'
237 - 'test-go-1_16-386'
196 - 'release':238 - 'release':
197 requires:239 requires:
198 - 'test-go-darwin'240 - 'test-go-windows'
199 - 'test-go-1_14'241 - 'test-go-mac'
200 - 'test-go-1_14-386'
201 - 'test-go-1_15'242 - 'test-go-1_15'
202 - 'test-go-1_15-386'243 - 'test-go-1_15-386'
244 - 'test-go-1_16'
245 - 'test-go-1_16-386'
203 filters:246 filters:
204 tags:247 tags:
205 only: /.*/248 only: /.*/
206 branches:249 branches:
207 ignore: /.*/250 ignore: /.*/
251 - 'package-sign-windows':
252 requires:
253 - 'release'
254 filters:
255 tags:
256 only: /.*/
257 - 'package-sign-mac':
258 requires:
259 - 'package-sign-windows'
260 filters:
261 tags:
262 only: /.*/
208 nightly:263 nightly:
209 jobs:264 jobs:
265 - 'linter'
210 - 'deps'266 - 'deps'
211 - 'macdeps'267 - 'test-go-1_15':
212 - 'test-go-1_14':
213 requires:268 requires:
214 - 'deps'269 - 'deps'
215 - 'test-go-1_14-386':270 - 'test-go-1_15-386':
216 requires:271 requires:
217 - 'deps'272 - 'deps'
218 - 'test-go-1_15':273 - 'test-go-1_16':
219 requires:274 requires:
220 - 'deps'275 - 'deps'
221 - 'test-go-1_15-386':276 - 'test-go-1_16-386':
222 requires:277 requires:
223 - 'deps'278 - 'deps'
224 - 'test-go-darwin':279 - 'test-go-mac'
225 requires:280 - 'test-go-windows'
226 - 'macdeps'
227 - 'nightly':281 - 'nightly':
228 requires:282 requires:
229 - 'test-go-darwin'283 - 'test-go-windows'
230 - 'test-go-1_14'284 - 'test-go-mac'
231 - 'test-go-1_14-386'
232 - 'test-go-1_15'285 - 'test-go-1_15'
233 - 'test-go-1_15-386'286 - 'test-go-1_15-386'
287 - 'test-go-1_16'
288 - 'test-go-1_16-386'
234 triggers:289 triggers:
235 - schedule:290 - schedule:
236 cron: "0 7 * * *"291 cron: "0 7 * * *"
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 527555b..4b2eaad 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,5 +1,4 @@
1### Required for all PRs:1### Required for all PRs:
22
3- [ ] Signed [CLA](https://influxdata.com/community/cla/).
4- [ ] Associated README.md updated.3- [ ] Associated README.md updated.
5- [ ] Has appropriate unit tests.4- [ ] Has appropriate unit tests.
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
6new file mode 1006445new file mode 100644
index 0000000..f1b219b
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,6 @@
1version: 2
2updates:
3 - package-ecosystem: "gomod"
4 directory: "/"
5 schedule:
6 interval: "weekly"
diff --git a/.golangci.yml b/.golangci.yml
0new file mode 1006447new file mode 100644
index 0000000..0961510
--- /dev/null
+++ b/.golangci.yml
@@ -0,0 +1,68 @@
1linters:
2 enable:
3 - revive
4
5linters-settings:
6 revive:
7 rules:
8 - name: blank-imports
9 - name: context-as-argument
10 - name: context-keys-type
11 - name: dot-imports
12 - name: error-return
13 - name: error-strings
14 - name: error-naming
15 - name: exported
16 - name: if-return
17 - name: increment-decrement
18 - name: var-naming
19 - name: var-declaration
20 - name: package-comments
21 - name: range
22 - name: receiver-naming
23 - name: time-naming
24 - name: unexported-return
25 - name: indent-error-flow
26 - name: errorf
27 - name: empty-block
28 - name: superfluous-else
29 - name: unused-parameter
30 - name: unreachable-code
31 - name: redefines-builtin-id
32
33run:
34 # which dirs to skip: issues from them won't be reported;
35 # can use regexp here: generated.*, regexp is applied on full path;
36 # default value is empty list, but default dirs are skipped independently
37 # from this option's value (see skip-dirs-use-default).
38 # "/" will be replaced by current OS file path separator to properly work
39 # on Windows.
40 skip-dirs:
41 - scripts
42 - docs
43 - etc
44
45 # which files to skip: they will be analyzed, but issues from them
46 # won't be reported. Default value is empty list, but there is
47 # no need to include all autogenerated files, we confidently recognize
48 # autogenerated files. If it's not please let us know.
49 # "/" will be replaced by current OS file path separator to properly work
50 # on Windows.
51 skip-files:
52 - plugins/parsers/influx/machine.go*
53
54issues:
55 # List of regexps of issue texts to exclude, empty list by default.
56 # But independently from this option we use default exclude patterns,
57 # it can be disabled by `exclude-use-default: false`. To list all
58 # excluded by default patterns execute `golangci-lint run --help`
59 exclude:
60 - don't use an underscore in package name
61 - exported.*should have comment.*or be unexported
62 - comment on exported.*should be of the form
63
64 # Maximum issues count per one linter. Set to 0 to disable. Default is 50.
65 max-issues-per-linter: 0
66
67 # Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
68 max-same-issues: 0
diff --git a/.lgtm.yml b/.lgtm.yml
0new file mode 10064469new file mode 100644
index 0000000..5b0b2e3
--- /dev/null
+++ b/.lgtm.yml
@@ -0,0 +1,2 @@
1queries:
2 - exclude: go/disabled-certificate-check
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 33fb315..43e4e3f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,119 @@
1## v1.18.1 [2021-04-07]
2
3#### Bugfixes
4
5 - [#9082](https://github.com/influxdata/telegraf/pull/9082) `inputs.mysql` Fix 'binary logs' query for MySQL 8
6 - [#9069](https://github.com/influxdata/telegraf/pull/9069) `inputs.tail` Add configurable option for the 'path' tag override
7 - [#9067](https://github.com/influxdata/telegraf/pull/9067) `inputs.nfsclient` Fix integer overflow in fields from mountstat
8 - [#9050](https://github.com/influxdata/telegraf/pull/9050) `inputs.snmp` Fix init when no mibs are installed
9 - [#9072](https://github.com/influxdata/telegraf/pull/9072) `inputs.ping` Always call SetPrivileged(true) in native mode
10 - [#9043](https://github.com/influxdata/telegraf/pull/9043) `processors.ifname` Get interface name more effeciently
11 - [#9056](https://github.com/influxdata/telegraf/pull/9056) `outputs.yandex_cloud_monitoring` Use correct compute metadata URL to get folder-id
12 - [#9048](https://github.com/influxdata/telegraf/pull/9048) `outputs.azure_monitor` Handle error when initializing the auth object
13 - [#8549](https://github.com/influxdata/telegraf/pull/8549) `inputs.sqlserver` Fix sqlserver_process_cpu calculation
14 - [#9035](https://github.com/influxdata/telegraf/pull/9035) `inputs.ipmi_sensor` Fix panic
15 - [#9009](https://github.com/influxdata/telegraf/pull/9009) `inputs.docker` Fix panic when parsing container stats
16 - [#8333](https://github.com/influxdata/telegraf/pull/8333) `inputs.exec` Don't truncate messages in debug mode
17 - [#8769](https://github.com/influxdata/telegraf/pull/8769) `agent` Close running outputs when reloadinlg
18
19## v1.18.0 [2021-03-17]
20
21#### Release Notes
22
23 - Support Go version 1.16.2
24 - Added support for code signing in Windows
25
26#### Bugfixes
27
28 - [#7312](https://github.com/influxdata/telegraf/pull/7312) `inputs.docker` CPU stats respect perdevice
29 - [#8397](https://github.com/influxdata/telegraf/pull/8397) `outputs.dynatrace` Dynatrace Plugin: Make conversion to counters possible / Changed large bulk handling
30 - [#8655](https://github.com/influxdata/telegraf/pull/8655) `inputs.sqlserver` SqlServer - fix for default server list
31 - [#8703](https://github.com/influxdata/telegraf/pull/8703) `inputs.docker` Use consistent container name in docker input plugin
32 - [#8902](https://github.com/influxdata/telegraf/pull/8902) `inputs.snmp` Fix max_repetitions signedness issues
33 - [#8817](https://github.com/influxdata/telegraf/pull/8817) `outputs.kinesis` outputs.kinesis - log record error count
34 - [#8833](https://github.com/influxdata/telegraf/pull/8833) `inputs.sqlserver` Bug Fix - SQL Server HADR queries for SQL Versions
35 - [#8628](https://github.com/influxdata/telegraf/pull/8628) `inputs.modbus` fix: reading multiple holding registers in modbus input plugin
36 - [#8885](https://github.com/influxdata/telegraf/pull/8885) `inputs.statsd` Fix statsd concurrency bug
37 - [#8393](https://github.com/influxdata/telegraf/pull/8393) `inputs.sqlserver` SQL Perfmon counters - synced queries from v2 to all db types
38 - [#8873](https://github.com/influxdata/telegraf/pull/8873) `processors.ifname` Fix mutex locking around ifname cache
39 - [#8720](https://github.com/influxdata/telegraf/pull/8720) `parsers.influx` fix: remove ambiguity on '\v' from line-protocol parser
40 - [#8678](https://github.com/influxdata/telegraf/pull/8678) `inputs.redis` Fix Redis output field type inconsistencies
41 - [#8953](https://github.com/influxdata/telegraf/pull/8953) `agent` Reset the flush interval timer when flush is requested or batch is ready.
42 - [#8954](https://github.com/influxdata/telegraf/pull/8954) `common.kafka` Fix max open requests to one if idempotent writes is set to true
43 - [#8721](https://github.com/influxdata/telegraf/pull/8721) `inputs.kube_inventory` Set $HOSTIP in default URL
44 - [#8995](https://github.com/influxdata/telegraf/pull/8995) `inputs.sflow` fix segfaults in sflow plugin by checking if protocol headers are set
45 - [#8986](https://github.com/influxdata/telegraf/pull/8986) `outputs.nats` nats_output: use the configured credentials file
46
47#### Features
48
49 - [#8887](https://github.com/influxdata/telegraf/pull/8887) `inputs.procstat` Add PPID field to procstat input plugin
50 - [#8852](https://github.com/influxdata/telegraf/pull/8852) `processors.starlark` Add Starlark script for estimating Line Protocol cardinality
51 - [#8915](https://github.com/influxdata/telegraf/pull/8915) `inputs.cloudwatch` add proxy
52 - [#8910](https://github.com/influxdata/telegraf/pull/8910) `agent` Display error message on badly formatted config string array (eg. namepass)
53 - [#8785](https://github.com/influxdata/telegraf/pull/8785) `inputs.diskio` Non systemd support with unittest
54 - [#8850](https://github.com/influxdata/telegraf/pull/8850) `inputs.snmp` Support more snmpv3 authentication protocols
55 - [#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
56 - [#8613](https://github.com/influxdata/telegraf/pull/8613) `inputs.phpfpm` Support exclamation mark to create non-matching list in tail plugin
57 - [#8179](https://github.com/influxdata/telegraf/pull/8179) `inputs.statsd` Add support for datadog distributions metric
58 - [#8803](https://github.com/influxdata/telegraf/pull/8803) `agent` Add default retry for load config via url
59 - [#8816](https://github.com/influxdata/telegraf/pull/8816) Code Signing for Windows
60 - [#8772](https://github.com/influxdata/telegraf/pull/8772) `processors.starlark` Allow to provide constants to a starlark script
61 - [#8749](https://github.com/influxdata/telegraf/pull/8749) `outputs.newrelic` Add HTTP proxy setting to New Relic output plugin
62 - [#8543](https://github.com/influxdata/telegraf/pull/8543) `inputs.elasticsearch` Add configurable number of 'most recent' date-stamped indices to gather in Elasticsearch input
63 - [#8675](https://github.com/influxdata/telegraf/pull/8675) `processors.starlark` Add Starlark parsing example of nested JSON
64 - [#8762](https://github.com/influxdata/telegraf/pull/8762) `inputs.prometheus` Optimize for bigger kubernetes clusters (500+ pods)
65 - [#8950](https://github.com/influxdata/telegraf/pull/8950) `inputs.teamspeak` Teamspeak input plugin query clients
66 - [#8849](https://github.com/influxdata/telegraf/pull/8849) `inputs.sqlserver` Filter data out from system databases for Azure SQL DB only
67
68#### New Inputs
69 - [Beat Input Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/beat) - Contributed by @nferch
70 - [CS:GO Input Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/csgo) - Contributed by @oofdog
71 - [Directory Monitoring Input Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/directory_monitor) - Contributed by @InfluxData
72 - [RavenDB Input Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/ravendb) - Contributed by @ml054 and @bartoncasey
73 - [NFS Input Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/nfsclient) - Contributed by @pmoranga
74
75#### New Outputs
76 - [Grafana Loki Output Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/outputs/loki) - Contributed by @Eraac
77 - [Google BigQuery Output Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/outputs/loki) - Contributed by @gkatzioura
78 - [Sensu Output Plugin](https://github.com/influxdata/telegraf/blob/master/plugins/outputs/sensu) - Contributed by @calebhailey
79 - [SignalFX Output Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/outputs/signalfx) - Contributed by @keitwb
80
81#### New Aggregators
82 - [Derivative Aggregator Plugin ](https://github.com/influxdata/telegraf/tree/master/plugins/aggregators/derivative)- Contributed by @KarstenSchnitter
83 - [Quantile Aggregator Plugin ](https://github.com/influxdata/telegraf/tree/master/plugins/aggregators/quantile) - Contributed by @srebhan
84
85#### New Processors
86 - [AWS EC2 Metadata Processor Plugin ](https://github.com/influxdata/telegraf/tree/master/plugins/processors/aws/ec2) - Contributed by @pmalek-sumo
87
88#### New Parsers
89 - [XML Parser Plugin ](https://github.com/influxdata/telegraf/tree/master/plugins/parsers/xml) - Contributed by @srebhan
90
91#### New Serializers
92 - [MessagePack Serializer Plugin](https://github.com/influxdata/telegraf/tree/master/plugins/serializers/msgpack) - Contributed by @dialogbox
93
94#### New External Plugins
95 - [GeoIP Processor Plugin ](https://github.com/a-bali/telegraf-geoip) - Contributed by @a-bali
96 - [Plex Webhook Input Plugin](https://github.com/russorat/telegraf-webhooks-plex) - Contributed by @russorat
97 - [SMCIPMITool Input Plugin](https://github.com/jhpope/smc_ipmi) - Contributed by @jhpope
98
99## v1.17.3 [2021-02-17]
100
101#### Bugfixes
102
103 - [#7316](https://github.com/influxdata/telegraf/pull/7316) `inputs.filestat` plugins/filestat: Skip missing files
104 - [#8868](https://github.com/influxdata/telegraf/pull/8868) Update to Go 1.15.8
105 - [#8744](https://github.com/influxdata/telegraf/pull/8744) Bump github.com/gopcua/opcua from 0.1.12 to 0.1.13
106 - [#8657](https://github.com/influxdata/telegraf/pull/8657) `outputs.warp10` outputs/warp10: url encode comma in tags value
107 - [#8824](https://github.com/influxdata/telegraf/pull/8824) `inputs.x509_cert` inputs.x509_cert: Fix timeout issue
108 - [#8821](https://github.com/influxdata/telegraf/pull/8821) `inputs.mqtt_consumer` Fix reconnection issues mqtt
109 - [#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
110 - [#8804](https://github.com/influxdata/telegraf/pull/8804) `inputs.snmp` Expose v4/v6-only connection-schemes through GosnmpWrapper
111 - [#8838](https://github.com/influxdata/telegraf/pull/8838) `agent` fix issue with reading flush_jitter output from config
112 - [#8839](https://github.com/influxdata/telegraf/pull/8839) `inputs.ping` fixes Sort and timeout around deadline
113 - [#8787](https://github.com/influxdata/telegraf/pull/8787) `inputs.ping` Update README for inputs.ping with correct cmd for native ping on Linux
114 - [#8771](https://github.com/influxdata/telegraf/pull/8771) Update go-ping to latest version
115
116
1## v1.17.2 [2021-01-28]117## v1.17.2 [2021-01-28]
2118
3#### Bugfixes119#### Bugfixes
@@ -16,7 +132,6 @@
16 - [#8616](https://github.com/influxdata/telegraf/pull/8616) Add Event Log support for Windows132 - [#8616](https://github.com/influxdata/telegraf/pull/8616) Add Event Log support for Windows
17 - [#8602](https://github.com/influxdata/telegraf/pull/8602) `inputs.postgresql_extensible` Add timestamp column support to postgresql_extensible133 - [#8602](https://github.com/influxdata/telegraf/pull/8602) `inputs.postgresql_extensible` Add timestamp column support to postgresql_extensible
18 - [#8627](https://github.com/influxdata/telegraf/pull/8627) `parsers.csv` Added ability to define skip values in csv parser134 - [#8627](https://github.com/influxdata/telegraf/pull/8627) `parsers.csv` Added ability to define skip values in csv parser
19 - [#8646](https://github.com/influxdata/telegraf/pull/8646) link to Open Hardware Monitor
20 - [#8055](https://github.com/influxdata/telegraf/pull/8055) `outputs.http` outputs/http: add option to control idle connection timeout135 - [#8055](https://github.com/influxdata/telegraf/pull/8055) `outputs.http` outputs/http: add option to control idle connection timeout
21 - [#7897](https://github.com/influxdata/telegraf/pull/7897) `common.tls` common/tls: Allow specifying SNI hostnames136 - [#7897](https://github.com/influxdata/telegraf/pull/7897) `common.tls` common/tls: Allow specifying SNI hostnames
22 - [#8541](https://github.com/influxdata/telegraf/pull/8541) `inputs.snmp` Extended the internal snmp wrapper to support AES192, AES192C, AES256, and AES256C137 - [#8541](https://github.com/influxdata/telegraf/pull/8541) `inputs.snmp` Extended the internal snmp wrapper to support AES192, AES192C, AES256, and AES256C
@@ -44,6 +159,10 @@
44 - [#8588](https://github.com/influxdata/telegraf/pull/8588) `inputs.snmp` Input SNMP plugin - upgrade gosnmp library to version 1.29.0159 - [#8588](https://github.com/influxdata/telegraf/pull/8588) `inputs.snmp` Input SNMP plugin - upgrade gosnmp library to version 1.29.0
45 - [#8502](https://github.com/influxdata/telegraf/pull/8502) `inputs.http_listener_v2` Fix Stop() bug when plugin fails to start160 - [#8502](https://github.com/influxdata/telegraf/pull/8502) `inputs.http_listener_v2` Fix Stop() bug when plugin fails to start
46161
162#### New External Plugins
163
164 - [#8646](https://github.com/influxdata/telegraf/pull/8646) [Open Hardware Monitoring](https://github.com/marianob85/open_hardware_monitor-telegraf-plugin) Input Plugin
165
47166
48## v1.17.0 [2020-12-18]167## v1.17.0 [2020-12-18]
49168
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 0b2ad0e..a5ff6b2 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -61,7 +61,13 @@ running. You can start the containers with:
61docker-compose up61docker-compose up
62```62```
6363
64And run the full test suite with:64To run only the integration tests use:
65
66```
67make test-integration
68```
69
70To run the full test suite use:
65```71```
66make test-all72make test-all
67```73```
diff --git a/EXTERNAL_PLUGINS.md b/EXTERNAL_PLUGINS.md
index 0a165a4..ffefd06 100644
--- a/EXTERNAL_PLUGINS.md
+++ b/EXTERNAL_PLUGINS.md
@@ -9,7 +9,9 @@ Pull requests welcome.
9- [awsalarms](https://github.com/vipinvkmenon/awsalarms) - Simple plugin to gather/monitor alarms generated in AWS.9- [awsalarms](https://github.com/vipinvkmenon/awsalarms) - Simple plugin to gather/monitor alarms generated in AWS.
10- [octoprint](https://github.com/BattleBas/octoprint-telegraf-plugin) - Gather 3d print information from the octoprint API.10- [octoprint](https://github.com/BattleBas/octoprint-telegraf-plugin) - Gather 3d print information from the octoprint API.
11- [open-hardware-monitor](https://github.com/marianob85/open_hardware_monitor-telegraf-plugin) - Gather sensors data provided by [Open Hardware Monitor](http://openhardwaremonitor.org)11- [open-hardware-monitor](https://github.com/marianob85/open_hardware_monitor-telegraf-plugin) - Gather sensors data provided by [Open Hardware Monitor](http://openhardwaremonitor.org)
12- [plex](https://github.com/russorat/telegraf-webhooks-plex) - Listens for events from Plex Media Server [Webhooks](https://support.plex.tv/articles/115002267687-webhooks/).
12- [rand](https://github.com/ssoroka/rand) - Generate random numbers13- [rand](https://github.com/ssoroka/rand) - Generate random numbers
14- [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/).
13- [systemd-timings](https://github.com/pdmorrow/telegraf-execd-systemd-timings) - Gather systemd boot and unit timestamp metrics.15- [systemd-timings](https://github.com/pdmorrow/telegraf-execd-systemd-timings) - Gather systemd boot and unit timestamp metrics.
14- [twitter](https://github.com/inabagumi/twitter-telegraf-plugin) - Gather account information from Twitter accounts16- [twitter](https://github.com/inabagumi/twitter-telegraf-plugin) - Gather account information from Twitter accounts
15- [youtube](https://github.com/inabagumi/youtube-telegraf-plugin) - Gather account information from YouTube channels17- [youtube](https://github.com/inabagumi/youtube-telegraf-plugin) - Gather account information from YouTube channels
diff --git a/Makefile b/Makefile
index 6ac4f07..3adf4d9 100644
--- a/Makefile
+++ b/Makefile
@@ -75,6 +75,7 @@ help:
75 @echo ' test - run short unit tests'75 @echo ' test - run short unit tests'
76 @echo ' fmt - format source files'76 @echo ' fmt - format source files'
77 @echo ' tidy - tidy go modules'77 @echo ' tidy - tidy go modules'
78 @echo ' lint - run linter'
78 @echo ' check-deps - check docs/LICENSE_OF_DEPENDENCIES.md'79 @echo ' check-deps - check docs/LICENSE_OF_DEPENDENCIES.md'
79 @echo ' clean - delete build artifacts'80 @echo ' clean - delete build artifacts'
80 @echo ''81 @echo ''
@@ -83,11 +84,11 @@ help:
8384
84.PHONY: deps85.PHONY: deps
85deps:86deps:
86 go mod download87 go mod download -x
8788
88.PHONY: telegraf89.PHONY: telegraf
89telegraf:90telegraf:
90 go build -mod=mod -ldflags "$(LDFLAGS)" ./cmd/telegraf91 go build -ldflags "$(LDFLAGS)" ./cmd/telegraf
9192
92# Used by dockerfile builds93# Used by dockerfile builds
93.PHONY: go-install94.PHONY: go-install
@@ -98,6 +99,10 @@ go-install:
98test:99test:
99 go test -short $(race_detector) ./...100 go test -short $(race_detector) ./...
100101
102.PHONY: test-integration
103test-integration:
104 go test -run Integration $(race_detector) ./...
105
101.PHONY: fmt106.PHONY: fmt
102fmt:107fmt:
103 @gofmt -s -w $(filter-out plugins/parsers/influx/machine.go, $(GOFILES))108 @gofmt -s -w $(filter-out plugins/parsers/influx/machine.go, $(GOFILES))
@@ -126,6 +131,15 @@ vet:
126 exit 1; \131 exit 1; \
127 fi132 fi
128133
134.PHONY: lint
135lint:
136ifeq (, $(shell which golangci-lint))
137 $(info golangci-lint can't be found, please install it: https://golangci-lint.run/usage/install/)
138 exit 1
139endif
140
141 golangci-lint run --timeout 5m0s --issues-exit-code 0
142
129.PHONY: tidy143.PHONY: tidy
130tidy:144tidy:
131 go mod verify145 go mod verify
@@ -137,7 +151,6 @@ tidy:
137151
138.PHONY: check152.PHONY: check
139check: fmtcheck vet153check: fmtcheck vet
140 @$(MAKE) --no-print-directory tidy
141154
142.PHONY: test-all155.PHONY: test-all
143test-all: fmtcheck vet156test-all: fmtcheck vet
@@ -167,13 +180,13 @@ plugin-%:
167180
168.PHONY: ci-1.15181.PHONY: ci-1.15
169ci-1.15:182ci-1.15:
170 docker build -t quay.io/influxdb/telegraf-ci:1.15.5 - < scripts/ci-1.15.docker183 docker build -t quay.io/influxdb/telegraf-ci:1.15.8 - < scripts/ci-1.15.docker
171 docker push quay.io/influxdb/telegraf-ci:1.15.5184 docker push quay.io/influxdb/telegraf-ci:1.15.8
172185
173.PHONY: ci-1.14186.PHONY: ci-1.16
174ci-1.14:187ci-1.16:
175 docker build -t quay.io/influxdb/telegraf-ci:1.14.9 - < scripts/ci-1.14.docker188 docker build -t quay.io/influxdb/telegraf-ci:1.16.2 - < scripts/ci-1.16.docker
176 docker push quay.io/influxdb/telegraf-ci:1.14.9189 docker push quay.io/influxdb/telegraf-ci:1.16.2
177190
178.PHONY: install191.PHONY: install
179install: $(buildbin)192install: $(buildbin)
diff --git a/README.md b/README.md
index 1999f63..5535b95 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
1# 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/)1# 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/)
2[![Slack Status](https://img.shields.io/badge/slack-join_chat-white.svg?logo=slack&style=social)](https://www.influxdata.com/slack)2[![Slack Status](https://img.shields.io/badge/slack-join_chat-white.svg?logo=slack&style=social)](https://www.influxdata.com/slack)
33
4Telegraf is an agent for collecting, processing, aggregating, and writing metrics.4Telegraf is an agent for collecting, processing, aggregating, and writing metrics.
@@ -52,9 +52,9 @@ Ansible role: https://github.com/rossmcdonald/telegraf
5252
53### From Source:53### From Source:
5454
55Telegraf requires Go version 1.13 or newer, the Makefile requires GNU make.55Telegraf requires Go version 1.14 or newer, the Makefile requires GNU make.
5656
571. [Install Go](https://golang.org/doc/install) >=1.13 (1.15 recommended)571. [Install Go](https://golang.org/doc/install) >=1.14 (1.15 recommended)
582. Clone the Telegraf repository:582. Clone the Telegraf repository:
59 ```59 ```
60 cd ~/src60 cd ~/src
@@ -259,6 +259,7 @@ For documentation on the latest development code see the [documentation index][d
259* [net](./plugins/inputs/net)259* [net](./plugins/inputs/net)
260* [net_response](./plugins/inputs/net_response)260* [net_response](./plugins/inputs/net_response)
261* [netstat](./plugins/inputs/net)261* [netstat](./plugins/inputs/net)
262* [nfsclient](./plugins/inputs/nfsclient)
262* [nginx](./plugins/inputs/nginx)263* [nginx](./plugins/inputs/nginx)
263* [nginx_plus_api](./plugins/inputs/nginx_plus_api)264* [nginx_plus_api](./plugins/inputs/nginx_plus_api)
264* [nginx_plus](./plugins/inputs/nginx_plus)265* [nginx_plus](./plugins/inputs/nginx_plus)
@@ -294,6 +295,7 @@ For documentation on the latest development code see the [documentation index][d
294* [rabbitmq](./plugins/inputs/rabbitmq)295* [rabbitmq](./plugins/inputs/rabbitmq)
295* [raindrops](./plugins/inputs/raindrops)296* [raindrops](./plugins/inputs/raindrops)
296* [ras](./plugins/inputs/ras)297* [ras](./plugins/inputs/ras)
298* [ravendb](./plugins/inputs/ravendb)
297* [redfish](./plugins/inputs/redfish)299* [redfish](./plugins/inputs/redfish)
298* [redis](./plugins/inputs/redis)300* [redis](./plugins/inputs/redis)
299* [rethinkdb](./plugins/inputs/rethinkdb)301* [rethinkdb](./plugins/inputs/rethinkdb)
@@ -364,11 +366,12 @@ For documentation on the latest development code see the [documentation index][d
364## Serializers366## Serializers
365367
366- [InfluxDB Line Protocol](/plugins/serializers/influx)368- [InfluxDB Line Protocol](/plugins/serializers/influx)
367- [JSON](/plugins/serializers/json)369- [Carbon2](/plugins/serializers/carbon2)
368- [Graphite](/plugins/serializers/graphite)370- [Graphite](/plugins/serializers/graphite)
371- [JSON](/plugins/serializers/json)
372- [MessagePack](/plugins/serializers/msgpack)
369- [ServiceNow](/plugins/serializers/nowmetric)373- [ServiceNow](/plugins/serializers/nowmetric)
370- [SplunkMetric](/plugins/serializers/splunkmetric)374- [SplunkMetric](/plugins/serializers/splunkmetric)
371- [Carbon2](/plugins/serializers/carbon2)
372- [Wavefront](/plugins/serializers/wavefront)375- [Wavefront](/plugins/serializers/wavefront)
373376
374## Processor Plugins377## Processor Plugins
@@ -417,6 +420,7 @@ For documentation on the latest development code see the [documentation index][d
417* [aws kinesis](./plugins/outputs/kinesis)420* [aws kinesis](./plugins/outputs/kinesis)
418* [aws cloudwatch](./plugins/outputs/cloudwatch)421* [aws cloudwatch](./plugins/outputs/cloudwatch)
419* [azure_monitor](./plugins/outputs/azure_monitor)422* [azure_monitor](./plugins/outputs/azure_monitor)
423* [bigquery](./plugins/outputs/bigquery)
420* [cloud_pubsub](./plugins/outputs/cloud_pubsub) Google Cloud Pub/Sub424* [cloud_pubsub](./plugins/outputs/cloud_pubsub) Google Cloud Pub/Sub
421* [cratedb](./plugins/outputs/cratedb)425* [cratedb](./plugins/outputs/cratedb)
422* [datadog](./plugins/outputs/datadog)426* [datadog](./plugins/outputs/datadog)
@@ -442,6 +446,8 @@ For documentation on the latest development code see the [documentation index][d
442* [prometheus](./plugins/outputs/prometheus_client)446* [prometheus](./plugins/outputs/prometheus_client)
443* [riemann](./plugins/outputs/riemann)447* [riemann](./plugins/outputs/riemann)
444* [riemann_legacy](./plugins/outputs/riemann_legacy)448* [riemann_legacy](./plugins/outputs/riemann_legacy)
449* [sensu](./plugins/outputs/sensu)
450* [signalfx](./plugins/outputs/signalfx)
445* [socket_writer](./plugins/outputs/socket_writer)451* [socket_writer](./plugins/outputs/socket_writer)
446* [stackdriver](./plugins/outputs/stackdriver) (Google Cloud Monitoring)452* [stackdriver](./plugins/outputs/stackdriver) (Google Cloud Monitoring)
447* [syslog](./plugins/outputs/syslog)453* [syslog](./plugins/outputs/syslog)
diff --git a/agent/agent.go b/agent/agent.go
index e7ffee3..8bb1c8a 100644
--- a/agent/agent.go
+++ b/agent/agent.go
@@ -447,6 +447,13 @@ func stopServiceInputs(inputs []*models.RunningInput) {
447 }447 }
448}448}
449449
450// stopRunningOutputs stops all running outputs.
451func stopRunningOutputs(outputs []*models.RunningOutput) {
452 for _, output := range outputs {
453 output.Close()
454 }
455}
456
450// gather runs an input's gather function periodically until the context is457// gather runs an input's gather function periodically until the context is
451// done.458// done.
452func (a *Agent) gatherLoop(459func (a *Agent) gatherLoop(
@@ -785,6 +792,9 @@ func (a *Agent) runOutputs(
785 cancel()792 cancel()
786 wg.Wait()793 wg.Wait()
787794
795 log.Println("I! [agent] Stopping running outputs")
796 stopRunningOutputs(unit.outputs)
797
788 return nil798 return nil
789}799}
790800
@@ -793,7 +803,7 @@ func (a *Agent) runOutputs(
793func (a *Agent) flushLoop(803func (a *Agent) flushLoop(
794 ctx context.Context,804 ctx context.Context,
795 output *models.RunningOutput,805 output *models.RunningOutput,
796 ticker Ticker,806 ticker *RollingTicker,
797) {807) {
798 logError := func(err error) {808 logError := func(err error) {
799 if err != nil {809 if err != nil {
@@ -822,15 +832,11 @@ func (a *Agent) flushLoop(
822 case <-ticker.Elapsed():832 case <-ticker.Elapsed():
823 logError(a.flushOnce(output, ticker, output.Write))833 logError(a.flushOnce(output, ticker, output.Write))
824 case <-flushRequested:834 case <-flushRequested:
835 ticker.Reset()
825 logError(a.flushOnce(output, ticker, output.Write))836 logError(a.flushOnce(output, ticker, output.Write))
826 case <-output.BatchReady:837 case <-output.BatchReady:
827 // Favor the ticker over batch ready838 ticker.Reset()
828 select {839 logError(a.flushOnce(output, ticker, output.WriteBatch))
829 case <-ticker.Elapsed():
830 logError(a.flushOnce(output, ticker, output.Write))
831 default:
832 logError(a.flushOnce(output, ticker, output.WriteBatch))
833 }
834 }840 }
835 }841 }
836}842}
diff --git a/agent/tick.go b/agent/tick.go
index 91b9971..6afef2f 100644
--- a/agent/tick.go
+++ b/agent/tick.go
@@ -216,6 +216,7 @@ type RollingTicker struct {
216 ch chan time.Time216 ch chan time.Time
217 cancel context.CancelFunc217 cancel context.CancelFunc
218 wg sync.WaitGroup218 wg sync.WaitGroup
219 timer *clock.Timer
219}220}
220221
221func NewRollingTicker(interval, jitter time.Duration) *RollingTicker {222func NewRollingTicker(interval, jitter time.Duration) *RollingTicker {
@@ -232,12 +233,12 @@ func newRollingTicker(interval, jitter time.Duration, clock clock.Clock) *Rollin
232 }233 }
233234
234 d := t.next()235 d := t.next()
235 timer := clock.Timer(d)236 t.timer = clock.Timer(d)
236237
237 t.wg.Add(1)238 t.wg.Add(1)
238 go func() {239 go func() {
239 defer t.wg.Done()240 defer t.wg.Done()
240 t.run(ctx, timer)241 t.run(ctx)
241 }()242 }()
242243
243 return t244 return t
@@ -247,24 +248,28 @@ func (t *RollingTicker) next() time.Duration {
247 return t.interval + internal.RandomDuration(t.jitter)248 return t.interval + internal.RandomDuration(t.jitter)
248}249}
249250
250func (t *RollingTicker) run(ctx context.Context, timer *clock.Timer) {251func (t *RollingTicker) run(ctx context.Context) {
251 for {252 for {
252 select {253 select {
253 case <-ctx.Done():254 case <-ctx.Done():
254 timer.Stop()255 t.timer.Stop()
255 return256 return
256 case now := <-timer.C:257 case now := <-t.timer.C:
257 select {258 select {
258 case t.ch <- now:259 case t.ch <- now:
259 default:260 default:
260 }261 }
261262
262 d := t.next()263 t.Reset()
263 timer.Reset(d)
264 }264 }
265 }265 }
266}266}
267267
268// Reset the ticker to the next interval + jitter.
269func (t *RollingTicker) Reset() {
270 t.timer.Reset(t.next())
271}
272
268func (t *RollingTicker) Elapsed() <-chan time.Time {273func (t *RollingTicker) Elapsed() <-chan time.Time {
269 return t.ch274 return t.ch
270}275}
diff --git a/agent/tick_test.go b/agent/tick_test.go
index 5b8db7e..69bf0c2 100644
--- a/agent/tick_test.go
+++ b/agent/tick_test.go
@@ -10,8 +10,6 @@ import (
10 "github.com/stretchr/testify/require"10 "github.com/stretchr/testify/require"
11)11)
1212
13var format = "2006-01-02T15:04:05.999Z07:00"
14
15func TestAlignedTicker(t *testing.T) {13func TestAlignedTicker(t *testing.T) {
16 interval := 10 * time.Second14 interval := 10 * time.Second
17 jitter := 0 * time.Second15 jitter := 0 * time.Second
@@ -249,7 +247,7 @@ func simulatedDist(ticker Ticker, clock *clock.Mock) Distribution {
249 for !clock.Now().After(until) {247 for !clock.Now().After(until) {
250 select {248 select {
251 case tm := <-ticker.Elapsed():249 case tm := <-ticker.Elapsed():
252 dist.Buckets[tm.Second()] += 1250 dist.Buckets[tm.Second()]++
253 dist.Count++251 dist.Count++
254 dist.Waittime += tm.Sub(last).Seconds()252 dist.Waittime += tm.Sub(last).Seconds()
255 last = tm253 last = tm
diff --git a/appveyor.yml b/appveyor.yml
256deleted file mode 100644254deleted file mode 100644
index 6f5f6e9..0000000
--- a/appveyor.yml
+++ /dev/null
@@ -1,35 +0,0 @@
1version: "{build}"
2
3image: Visual Studio 2019
4
5cache:
6 - C:\gopath\pkg\mod -> go.sum
7 - C:\ProgramData\chocolatey\bin -> appveyor.yml
8 - C:\ProgramData\chocolatey\lib -> appveyor.yml
9
10clone_folder: C:\gopath\src\github.com\influxdata\telegraf
11
12environment:
13 GOPATH: C:\gopath
14
15stack: go 1.15
16
17platform: x64
18
19install:
20 - choco install make
21 - cd "%GOPATH%\src\github.com\influxdata\telegraf"
22 - git config --system core.longpaths true
23 - go version
24 - go env
25
26build_script:
27 - make deps
28 - make telegraf
29
30test_script:
31 - make check
32 - make test-windows
33
34artifacts:
35 - path: telegraf.exe
diff --git a/assets/icon.icns b/assets/icon.icns
36new file mode 1006440new file mode 100644
index 0000000..339a8da
37Binary files /dev/null and b/assets/icon.icns differ1Binary files /dev/null and b/assets/icon.icns differ
diff --git a/build_version.txt b/build_version.txt
index 06fb41b..ec6d649 100644
--- a/build_version.txt
+++ b/build_version.txt
@@ -1 +1 @@
11.17.211.18.1
diff --git a/cmd/telegraf/telegraf.go b/cmd/telegraf/telegraf.go
index 7e0b4ec..c6b2cc0 100644
--- a/cmd/telegraf/telegraf.go
+++ b/cmd/telegraf/telegraf.go
@@ -15,6 +15,7 @@ import (
15 "syscall"15 "syscall"
16 "time"16 "time"
1717
18 "github.com/influxdata/telegraf"
18 "github.com/influxdata/telegraf/agent"19 "github.com/influxdata/telegraf/agent"
19 "github.com/influxdata/telegraf/config"20 "github.com/influxdata/telegraf/config"
20 "github.com/influxdata/telegraf/internal"21 "github.com/influxdata/telegraf/internal"
@@ -158,8 +159,9 @@ func runAgent(ctx context.Context,
158 }159 }
159160
160 // Setup logging as configured.161 // Setup logging as configured.
162 telegraf.Debug = ag.Config.Agent.Debug || *fDebug
161 logConfig := logger.LogConfig{163 logConfig := logger.LogConfig{
162 Debug: ag.Config.Agent.Debug || *fDebug,164 Debug: telegraf.Debug,
163 Quiet: ag.Config.Agent.Quiet || *fQuiet,165 Quiet: ag.Config.Agent.Quiet || *fQuiet,
164 LogTarget: ag.Config.Agent.LogTarget,166 LogTarget: ag.Config.Agent.LogTarget,
165 Logfile: ag.Config.Agent.Logfile,167 Logfile: ag.Config.Agent.Logfile,
diff --git a/config/aws/credentials.go b/config/aws/credentials.go
index f9c98ed..d697d96 100644
--- a/config/aws/credentials.go
+++ b/config/aws/credentials.go
@@ -22,9 +22,9 @@ type CredentialConfig struct {
22func (c *CredentialConfig) Credentials() client.ConfigProvider {22func (c *CredentialConfig) Credentials() client.ConfigProvider {
23 if c.RoleARN != "" {23 if c.RoleARN != "" {
24 return c.assumeCredentials()24 return c.assumeCredentials()
25 } else {
26 return c.rootCredentials()
27 }25 }
26
27 return c.rootCredentials()
28}28}
2929
30func (c *CredentialConfig) rootCredentials() client.ConfigProvider {30func (c *CredentialConfig) rootCredentials() client.ConfigProvider {
diff --git a/config/config.go b/config/config.go
index b395f7d..5848342 100644
--- a/config/config.go
+++ b/config/config.go
@@ -49,6 +49,7 @@ var (
49 `"`, `\"`,49 `"`, `\"`,
50 `\`, `\\`,50 `\`, `\\`,
51 )51 )
52 httpLoadConfigRetryInterval = 10 * time.Second
52)53)
5354
54// Config specifies the URL/user/password for the database that telegraf55// Config specifies the URL/user/password for the database that telegraf
@@ -921,17 +922,27 @@ func fetchConfig(u *url.URL) ([]byte, error) {
921 }922 }
922 req.Header.Add("Accept", "application/toml")923 req.Header.Add("Accept", "application/toml")
923 req.Header.Set("User-Agent", internal.ProductToken())924 req.Header.Set("User-Agent", internal.ProductToken())
924 resp, err := http.DefaultClient.Do(req)
925 if err != nil {
926 return nil, err
927 }
928925
929 if resp.StatusCode != http.StatusOK {926 retries := 3
930 return nil, fmt.Errorf("failed to retrieve remote config: %s", resp.Status)927 for i := 0; i <= retries; i++ {
928 resp, err := http.DefaultClient.Do(req)
929 if err != nil {
930 return nil, fmt.Errorf("Retry %d of %d failed connecting to HTTP config server %s", i, retries, err)
931 }
932
933 if resp.StatusCode != http.StatusOK {
934 if i < retries {
935 log.Printf("Error getting HTTP config. Retry %d of %d in %s. Status=%d", i, retries, httpLoadConfigRetryInterval, resp.StatusCode)
936 time.Sleep(httpLoadConfigRetryInterval)
937 continue
938 }
939 return nil, fmt.Errorf("Retry %d of %d failed to retrieve remote config: %s", i, retries, resp.Status)
940 }
941 defer resp.Body.Close()
942 return ioutil.ReadAll(resp.Body)
931 }943 }
932944
933 defer resp.Body.Close()945 return nil, nil
934 return ioutil.ReadAll(resp.Body)
935}946}
936947
937// parseConfig loads a TOML configuration from a provided path and948// parseConfig loads a TOML configuration from a provided path and
@@ -1257,7 +1268,14 @@ func (c *Config) buildParser(name string, tbl *ast.Table) (parsers.Parser, error
1257 if err != nil {1268 if err != nil {
1258 return nil, err1269 return nil, err
1259 }1270 }
1260 return parsers.NewParser(config)1271 parser, err := parsers.NewParser(config)
1272 if err != nil {
1273 return nil, err
1274 }
1275 logger := models.NewLogger("parsers", config.DataFormat, name)
1276 models.SetLoggerOnPlugin(parser, logger)
1277
1278 return parser, nil
1261}1279}
12621280
1263func (c *Config) getParserConfig(name string, tbl *ast.Table) (*parsers.Config, error) {1281func (c *Config) getParserConfig(name string, tbl *ast.Table) (*parsers.Config, error) {
@@ -1324,6 +1342,28 @@ func (c *Config) getParserConfig(name string, tbl *ast.Table) (*parsers.Config,
13241342
1325 c.getFieldStringSlice(tbl, "form_urlencoded_tag_keys", &pc.FormUrlencodedTagKeys)1343 c.getFieldStringSlice(tbl, "form_urlencoded_tag_keys", &pc.FormUrlencodedTagKeys)
13261344
1345 //for XML parser
1346 if node, ok := tbl.Fields["xml"]; ok {
1347 if subtbls, ok := node.([]*ast.Table); ok {
1348 pc.XMLConfig = make([]parsers.XMLConfig, len(subtbls))
1349 for i, subtbl := range subtbls {
1350 subcfg := pc.XMLConfig[i]
1351 c.getFieldString(subtbl, "metric_name", &subcfg.MetricQuery)
1352 c.getFieldString(subtbl, "metric_selection", &subcfg.Selection)
1353 c.getFieldString(subtbl, "timestamp", &subcfg.Timestamp)
1354 c.getFieldString(subtbl, "timestamp_format", &subcfg.TimestampFmt)
1355 c.getFieldStringMap(subtbl, "tags", &subcfg.Tags)
1356 c.getFieldStringMap(subtbl, "fields", &subcfg.Fields)
1357 c.getFieldStringMap(subtbl, "fields_int", &subcfg.FieldsInt)
1358 c.getFieldString(subtbl, "field_selection", &subcfg.FieldSelection)
1359 c.getFieldBool(subtbl, "field_name_expansion", &subcfg.FieldNameExpand)
1360 c.getFieldString(subtbl, "field_name", &subcfg.FieldNameQuery)
1361 c.getFieldString(subtbl, "field_value", &subcfg.FieldValueQuery)
1362 pc.XMLConfig[i] = subcfg
1363 }
1364 }
1365 }
1366
1327 pc.MetricName = name1367 pc.MetricName = name
13281368
1329 if c.hasErrs() {1369 if c.hasErrs() {
@@ -1392,7 +1432,7 @@ func (c *Config) buildOutput(name string, tbl *ast.Table) (*models.OutputConfig,
1392 // TODO: support FieldPass/FieldDrop on outputs1432 // TODO: support FieldPass/FieldDrop on outputs
13931433
1394 c.getFieldDuration(tbl, "flush_interval", &oc.FlushInterval)1434 c.getFieldDuration(tbl, "flush_interval", &oc.FlushInterval)
1395 c.getFieldDuration(tbl, "flush_jitter", oc.FlushJitter)1435 c.getFieldDuration(tbl, "flush_jitter", &oc.FlushJitter)
13961436
1397 c.getFieldInt(tbl, "metric_buffer_limit", &oc.MetricBufferLimit)1437 c.getFieldInt(tbl, "metric_buffer_limit", &oc.MetricBufferLimit)
1398 c.getFieldInt(tbl, "metric_batch_size", &oc.MetricBatchSize)1438 c.getFieldInt(tbl, "metric_batch_size", &oc.MetricBatchSize)
@@ -1428,7 +1468,7 @@ func (c *Config) missingTomlField(typ reflect.Type, key string) error {
1428 "prefix", "prometheus_export_timestamp", "prometheus_sort_metrics", "prometheus_string_as_label",1468 "prefix", "prometheus_export_timestamp", "prometheus_sort_metrics", "prometheus_string_as_label",
1429 "separator", "splunkmetric_hec_routing", "splunkmetric_multimetric", "tag_keys",1469 "separator", "splunkmetric_hec_routing", "splunkmetric_multimetric", "tag_keys",
1430 "tagdrop", "tagexclude", "taginclude", "tagpass", "tags", "template", "templates",1470 "tagdrop", "tagexclude", "taginclude", "tagpass", "tags", "template", "templates",
1431 "wavefront_source_override", "wavefront_use_strict":1471 "wavefront_source_override", "wavefront_use_strict", "xml":
14321472
1433 // ignore fields that are common to all plugins.1473 // ignore fields that are common to all plugins.
1434 default:1474 default:
@@ -1527,10 +1567,14 @@ func (c *Config) getFieldStringSlice(tbl *ast.Table, fieldName string, target *[
1527 *target = append(*target, str.Value)1567 *target = append(*target, str.Value)
1528 }1568 }
1529 }1569 }
1570 } else {
1571 c.addError(tbl, fmt.Errorf("found unexpected format while parsing %q, expecting string array/slice format", fieldName))
1572 return
1530 }1573 }
1531 }1574 }
1532 }1575 }
1533}1576}
1577
1534func (c *Config) getFieldTagFilter(tbl *ast.Table, fieldName string, target *[]models.TagFilter) {1578func (c *Config) getFieldTagFilter(tbl *ast.Table, fieldName string, target *[]models.TagFilter) {
1535 if node, ok := tbl.Fields[fieldName]; ok {1579 if node, ok := tbl.Fields[fieldName]; ok {
1536 if subtbl, ok := node.(*ast.Table); ok {1580 if subtbl, ok := node.(*ast.Table); ok {
@@ -1543,6 +1587,9 @@ func (c *Config) getFieldTagFilter(tbl *ast.Table, fieldName string, target *[]m
1543 tagfilter.Filter = append(tagfilter.Filter, str.Value)1587 tagfilter.Filter = append(tagfilter.Filter, str.Value)
1544 }1588 }
1545 }1589 }
1590 } else {
1591 c.addError(tbl, fmt.Errorf("found unexpected format while parsing %q, expecting string array/slice format on each entry", fieldName))
1592 return
1546 }1593 }
1547 *target = append(*target, tagfilter)1594 *target = append(*target, tagfilter)
1548 }1595 }
diff --git a/config/config_test.go b/config/config_test.go
index 79d74e8..e238dba 100644
--- a/config/config_test.go
+++ b/config/config_test.go
@@ -1,6 +1,8 @@
1package config1package config
22
3import (3import (
4 "net/http"
5 "net/http/httptest"
4 "os"6 "os"
5 "strings"7 "strings"
6 "testing"8 "testing"
@@ -278,3 +280,37 @@ func TestConfig_AzureMonitorNamespacePrefix(t *testing.T) {
278 assert.Equal(t, "", azureMonitor.NamespacePrefix)280 assert.Equal(t, "", azureMonitor.NamespacePrefix)
279 assert.Equal(t, true, ok)281 assert.Equal(t, true, ok)
280}282}
283
284func TestConfig_URLRetries3Fails(t *testing.T) {
285 httpLoadConfigRetryInterval = 0 * time.Second
286 responseCounter := 0
287 ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
288 w.WriteHeader(http.StatusNotFound)
289 responseCounter++
290 }))
291 defer ts.Close()
292
293 c := NewConfig()
294 err := c.LoadConfig(ts.URL)
295 require.Error(t, err)
296 require.Equal(t, 4, responseCounter)
297}
298
299func TestConfig_URLRetries3FailsThenPasses(t *testing.T) {
300 httpLoadConfigRetryInterval = 0 * time.Second
301 responseCounter := 0
302 ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
303 if responseCounter <= 2 {
304 w.WriteHeader(http.StatusNotFound)
305 } else {
306 w.WriteHeader(http.StatusOK)
307 }
308 responseCounter++
309 }))
310 defer ts.Close()
311
312 c := NewConfig()
313 err := c.LoadConfig(ts.URL)
314 require.NoError(t, err)
315 require.Equal(t, 4, responseCounter)
316}
diff --git a/debian/changelog b/debian/changelog
index d63498e..3c5a39c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
1telegraf (1.18.1+ds1-0ubuntu1) impish; urgency=medium
2
3 * d/p/repack-telegraf-with-vendor.sh: Improve cleanup procedure.
4 * New upstream version 1.18.1+ds1.
5 * d/p/CVE-2021-3121.patch:
6 Fix for CVE-2021-3121. Update gogo/protobuf to 1.3.2. (LP: #1925968)
7
8 -- Sergio Durigan Junior <sergio.durigan@canonical.com> Tue, 27 Apr 2021 14:27:18 -0400
9
1telegraf (1.17.2+ds1-0ubuntu3) hirsute; urgency=medium10telegraf (1.17.2+ds1-0ubuntu3) hirsute; urgency=medium
211
3 * d/rules: Disable test for inputs/riemann_listener.12 * d/rules: Disable test for inputs/riemann_listener.
diff --git a/debian/patches/CVE-2021-3121.patch b/debian/patches/CVE-2021-3121.patch
4new file mode 10064413new file mode 100644
index 0000000..c98b779
--- /dev/null
+++ b/debian/patches/CVE-2021-3121.patch
@@ -0,0 +1,2726 @@
1From: Sergio Durigan Junior <sergio.durigan@canonical.com>
2Date: Tue, 27 Apr 2021 14:25:34 -0400
3Subject: CVE-2021-3121
4
5Update gogo/protobuf to version 1.3.2 in order to fix CVE-2021-3121.
6
7Bug: https://github.com/influxdata/telegraf/issues/9181
8Bug-Ubuntu: https://bugs.launchpad.net/telegraf/+bug/1925968
9Last-Updated: 2021-04-27
10---
11 go.mod | 2 +-
12 go.sum | 8 +
13 .../github.com/gogo/protobuf/proto/text_parser.go | 2 +-
14 vendor/github.com/gogo/protobuf/types/any.pb.go | 5 +-
15 vendor/github.com/gogo/protobuf/types/api.pb.go | 15 +-
16 .../github.com/gogo/protobuf/types/duration.pb.go | 5 +-
17 vendor/github.com/gogo/protobuf/types/empty.pb.go | 5 +-
18 .../gogo/protobuf/types/field_mask.pb.go | 5 +-
19 .../gogo/protobuf/types/source_context.pb.go | 5 +-
20 vendor/github.com/gogo/protobuf/types/struct.pb.go | 17 +-
21 .../github.com/gogo/protobuf/types/timestamp.pb.go | 5 +-
22 vendor/github.com/gogo/protobuf/types/type.pb.go | 25 +-
23 .../github.com/gogo/protobuf/types/wrappers.pb.go | 45 +-
24 vendor/golang.org/x/tools/cmd/goimports/doc.go | 4 +
25 vendor/golang.org/x/tools/go/analysis/analysis.go | 4 +
26 .../golang.org/x/tools/go/analysis/diagnostic.go | 4 +
27 vendor/golang.org/x/tools/go/analysis/doc.go | 4 +
28 vendor/golang.org/x/tools/go/analysis/validate.go | 4 +
29 vendor/golang.org/x/tools/go/ast/astutil/util.go | 4 +
30 .../golang.org/x/tools/go/ast/inspector/typeof.go | 4 +
31 .../golang.org/x/tools/go/buildutil/fakecontext.go | 4 +
32 vendor/golang.org/x/tools/go/buildutil/tags.go | 4 +
33 .../x/tools/go/internal/packagesdriver/sizes.go | 64 -
34 vendor/golang.org/x/tools/go/packages/external.go | 2 +-
35 vendor/golang.org/x/tools/go/packages/golist.go | 197 ++-
36 vendor/golang.org/x/tools/go/packages/visit.go | 4 +
37 .../x/tools/internal/event/core/event.go | 2 +-
38 .../x/tools/internal/gocommand/invoke.go | 29 +-
39 .../x/tools/internal/gocommand/version.go | 13 +-
40 vendor/golang.org/x/tools/internal/imports/mod.go | 19 +-
41 .../x/tools/internal/imports/mod_cache.go | 4 +
42 .../x/tools/internal/packagesinternal/packages.go | 4 +
43 .../x/tools/internal/typesinternal/errorcode.go | 1358 ++++++++++++++++++++
44 .../internal/typesinternal/errorcode_string.go | 152 +++
45 .../x/tools/internal/typesinternal/types.go | 17 +
46 vendor/modules.txt | 4 +-
47 36 files changed, 1814 insertions(+), 235 deletions(-)
48 create mode 100644 vendor/golang.org/x/tools/internal/typesinternal/errorcode.go
49 create mode 100644 vendor/golang.org/x/tools/internal/typesinternal/errorcode_string.go
50
51diff --git a/go.mod b/go.mod
52index f90bf65..3c8284d 100644
53--- a/go.mod
54+++ b/go.mod
55@@ -64,7 +64,7 @@ require (
56 github.com/goburrow/serial v0.1.0 // indirect
57 github.com/gobwas/glob v0.2.3
58 github.com/gofrs/uuid v2.1.0+incompatible
59- github.com/gogo/protobuf v1.3.1
60+ github.com/gogo/protobuf v1.3.2
61 github.com/golang/geo v0.0.0-20190916061304-5b978397cfec
62 github.com/golang/protobuf v1.3.5
63 github.com/golang/snappy v0.0.1
64diff --git a/go.sum b/go.sum
65index 7e29f97..9389924 100644
66--- a/go.sum
67+++ b/go.sum
68@@ -283,6 +283,8 @@ github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d/go.mod h1:SlYgWuQ5
69 github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
70 github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls=
71 github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
72+github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
73+github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
74 github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
75 github.com/golang/geo v0.0.0-20190916061304-5b978397cfec h1:lJwO/92dFXWeXOZdoGXgptLmNLwynMSHUmU6besqtiw=
76 github.com/golang/geo v0.0.0-20190916061304-5b978397cfec/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI=
77@@ -446,6 +448,7 @@ github.com/karrick/godirwalk v1.16.1/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1q
78 github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
79 github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
80 github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
81+github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
82 github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
83 github.com/klauspost/compress v1.11.0 h1:wJbzvpYMVGG9iTI9VxpnNZfd4DzMPoCWze3GgSqz8yg=
84 github.com/klauspost/compress v1.11.0/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
85@@ -686,6 +689,7 @@ github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c h1:u40Z8hqBAAQyv+vATcGgV
86 github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I=
87 github.com/xdg/stringprep v1.0.0 h1:d9X0esnoa3dFsV0FG35rAT0RIhYFlPq7MiP+DW89La0=
88 github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y=
89+github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
90 github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
91 github.com/yuin/gopher-lua v0.0.0-20180630135845-46796da1b0b4 h1:f6CCNiTjQZ0uWK4jPwhwYB8QIGGfn0ssD9kVzRUUUpk=
92 github.com/yuin/gopher-lua v0.0.0-20180630135845-46796da1b0b4/go.mod h1:aEV29XrmTYFr3CiRxZeGHpkvbwq+prZduBqMaascyCU=
93@@ -778,6 +782,7 @@ golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/go.mod h1:z5CRVTTTmAJ677TzLL
94 golang.org/x/net v0.0.0-20191007182048-72f939374954/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
95 golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
96 golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
97+golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
98 golang.org/x/net v0.0.0-20200425230154-ff2c4b7c35a0/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
99 golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
100 golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
101@@ -886,8 +891,11 @@ golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapK
102 golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
103 golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
104 golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
105+golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
106 golang.org/x/tools v0.0.0-20201022035929-9cf592e881e9 h1:sEvmEcJVKBNUvgCUClbUQeHOAa9U0I2Ce1BooMvVCY4=
107 golang.org/x/tools v0.0.0-20201022035929-9cf592e881e9/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
108+golang.org/x/tools v0.0.0-20210106214847-113979e3529a h1:CB3a9Nez8M13wwlr/E2YtwoU+qYHKfC+JrDa45RXXoQ=
109+golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
110 golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
111 golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
112 golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
113diff --git a/vendor/github.com/gogo/protobuf/proto/text_parser.go b/vendor/github.com/gogo/protobuf/proto/text_parser.go
114index 1ce0be2..f85c0cc 100644
115--- a/vendor/github.com/gogo/protobuf/proto/text_parser.go
116+++ b/vendor/github.com/gogo/protobuf/proto/text_parser.go
117@@ -318,7 +318,7 @@ func unescape(s string) (ch string, tail string, err error) {
118 if i > utf8.MaxRune {
119 return "", "", fmt.Errorf(`\%c%s is not a valid Unicode code point`, r, ss)
120 }
121- return string(i), s, nil
122+ return string(rune(i)), s, nil
123 }
124 return "", "", fmt.Errorf(`unknown escape \%c`, r)
125 }
126diff --git a/vendor/github.com/gogo/protobuf/types/any.pb.go b/vendor/github.com/gogo/protobuf/types/any.pb.go
127index 98e269d..e3d4d94 100644
128--- a/vendor/github.com/gogo/protobuf/types/any.pb.go
129+++ b/vendor/github.com/gogo/protobuf/types/any.pb.go
130@@ -592,10 +592,7 @@ func (m *Any) Unmarshal(dAtA []byte) error {
131 if err != nil {
132 return err
133 }
134- if skippy < 0 {
135- return ErrInvalidLengthAny
136- }
137- if (iNdEx + skippy) < 0 {
138+ if (skippy < 0) || (iNdEx+skippy) < 0 {
139 return ErrInvalidLengthAny
140 }
141 if (iNdEx + skippy) > l {
142diff --git a/vendor/github.com/gogo/protobuf/types/api.pb.go b/vendor/github.com/gogo/protobuf/types/api.pb.go
143index 58bf4b5..83e8869 100644
144--- a/vendor/github.com/gogo/protobuf/types/api.pb.go
145+++ b/vendor/github.com/gogo/protobuf/types/api.pb.go
146@@ -1677,10 +1677,7 @@ func (m *Api) Unmarshal(dAtA []byte) error {
147 if err != nil {
148 return err
149 }
150- if skippy < 0 {
151- return ErrInvalidLengthApi
152- }
153- if (iNdEx + skippy) < 0 {
154+ if (skippy < 0) || (iNdEx+skippy) < 0 {
155 return ErrInvalidLengthApi
156 }
157 if (iNdEx + skippy) > l {
158@@ -1920,10 +1917,7 @@ func (m *Method) Unmarshal(dAtA []byte) error {
159 if err != nil {
160 return err
161 }
162- if skippy < 0 {
163- return ErrInvalidLengthApi
164- }
165- if (iNdEx + skippy) < 0 {
166+ if (skippy < 0) || (iNdEx+skippy) < 0 {
167 return ErrInvalidLengthApi
168 }
169 if (iNdEx + skippy) > l {
170@@ -2038,10 +2032,7 @@ func (m *Mixin) Unmarshal(dAtA []byte) error {
171 if err != nil {
172 return err
173 }
174- if skippy < 0 {
175- return ErrInvalidLengthApi
176- }
177- if (iNdEx + skippy) < 0 {
178+ if (skippy < 0) || (iNdEx+skippy) < 0 {
179 return ErrInvalidLengthApi
180 }
181 if (iNdEx + skippy) > l {
182diff --git a/vendor/github.com/gogo/protobuf/types/duration.pb.go b/vendor/github.com/gogo/protobuf/types/duration.pb.go
183index 3959f06..4deafcb 100644
184--- a/vendor/github.com/gogo/protobuf/types/duration.pb.go
185+++ b/vendor/github.com/gogo/protobuf/types/duration.pb.go
186@@ -415,10 +415,7 @@ func (m *Duration) Unmarshal(dAtA []byte) error {
187 if err != nil {
188 return err
189 }
190- if skippy < 0 {
191- return ErrInvalidLengthDuration
192- }
193- if (iNdEx + skippy) < 0 {
194+ if (skippy < 0) || (iNdEx+skippy) < 0 {
195 return ErrInvalidLengthDuration
196 }
197 if (iNdEx + skippy) > l {
198diff --git a/vendor/github.com/gogo/protobuf/types/empty.pb.go b/vendor/github.com/gogo/protobuf/types/empty.pb.go
199index 17e3aa5..9e94748 100644
200--- a/vendor/github.com/gogo/protobuf/types/empty.pb.go
201+++ b/vendor/github.com/gogo/protobuf/types/empty.pb.go
202@@ -360,10 +360,7 @@ func (m *Empty) Unmarshal(dAtA []byte) error {
203 if err != nil {
204 return err
205 }
206- if skippy < 0 {
207- return ErrInvalidLengthEmpty
208- }
209- if (iNdEx + skippy) < 0 {
210+ if (skippy < 0) || (iNdEx+skippy) < 0 {
211 return ErrInvalidLengthEmpty
212 }
213 if (iNdEx + skippy) > l {
214diff --git a/vendor/github.com/gogo/protobuf/types/field_mask.pb.go b/vendor/github.com/gogo/protobuf/types/field_mask.pb.go
215index 7226b57..6ae346d 100644
216--- a/vendor/github.com/gogo/protobuf/types/field_mask.pb.go
217+++ b/vendor/github.com/gogo/protobuf/types/field_mask.pb.go
218@@ -636,10 +636,7 @@ func (m *FieldMask) Unmarshal(dAtA []byte) error {
219 if err != nil {
220 return err
221 }
222- if skippy < 0 {
223- return ErrInvalidLengthFieldMask
224- }
225- if (iNdEx + skippy) < 0 {
226+ if (skippy < 0) || (iNdEx+skippy) < 0 {
227 return ErrInvalidLengthFieldMask
228 }
229 if (iNdEx + skippy) > l {
230diff --git a/vendor/github.com/gogo/protobuf/types/source_context.pb.go b/vendor/github.com/gogo/protobuf/types/source_context.pb.go
231index 61045ce..8e6ce71 100644
232--- a/vendor/github.com/gogo/protobuf/types/source_context.pb.go
233+++ b/vendor/github.com/gogo/protobuf/types/source_context.pb.go
234@@ -422,10 +422,7 @@ func (m *SourceContext) Unmarshal(dAtA []byte) error {
235 if err != nil {
236 return err
237 }
238- if skippy < 0 {
239- return ErrInvalidLengthSourceContext
240- }
241- if (iNdEx + skippy) < 0 {
242+ if (skippy < 0) || (iNdEx+skippy) < 0 {
243 return ErrInvalidLengthSourceContext
244 }
245 if (iNdEx + skippy) > l {
246diff --git a/vendor/github.com/gogo/protobuf/types/struct.pb.go b/vendor/github.com/gogo/protobuf/types/struct.pb.go
247index cea553e..c045731 100644
248--- a/vendor/github.com/gogo/protobuf/types/struct.pb.go
249+++ b/vendor/github.com/gogo/protobuf/types/struct.pb.go
250@@ -1862,7 +1862,7 @@ func (m *Struct) Unmarshal(dAtA []byte) error {
251 if err != nil {
252 return err
253 }
254- if skippy < 0 {
255+ if (skippy < 0) || (iNdEx+skippy) < 0 {
256 return ErrInvalidLengthStruct
257 }
258 if (iNdEx + skippy) > postIndex {
259@@ -1879,10 +1879,7 @@ func (m *Struct) Unmarshal(dAtA []byte) error {
260 if err != nil {
261 return err
262 }
263- if skippy < 0 {
264- return ErrInvalidLengthStruct
265- }
266- if (iNdEx + skippy) < 0 {
267+ if (skippy < 0) || (iNdEx+skippy) < 0 {
268 return ErrInvalidLengthStruct
269 }
270 if (iNdEx + skippy) > l {
271@@ -2087,10 +2084,7 @@ func (m *Value) Unmarshal(dAtA []byte) error {
272 if err != nil {
273 return err
274 }
275- if skippy < 0 {
276- return ErrInvalidLengthStruct
277- }
278- if (iNdEx + skippy) < 0 {
279+ if (skippy < 0) || (iNdEx+skippy) < 0 {
280 return ErrInvalidLengthStruct
281 }
282 if (iNdEx + skippy) > l {
283@@ -2175,10 +2169,7 @@ func (m *ListValue) Unmarshal(dAtA []byte) error {
284 if err != nil {
285 return err
286 }
287- if skippy < 0 {
288- return ErrInvalidLengthStruct
289- }
290- if (iNdEx + skippy) < 0 {
291+ if (skippy < 0) || (iNdEx+skippy) < 0 {
292 return ErrInvalidLengthStruct
293 }
294 if (iNdEx + skippy) > l {
295diff --git a/vendor/github.com/gogo/protobuf/types/timestamp.pb.go b/vendor/github.com/gogo/protobuf/types/timestamp.pb.go
296index b818752..45db7b3 100644
297--- a/vendor/github.com/gogo/protobuf/types/timestamp.pb.go
298+++ b/vendor/github.com/gogo/protobuf/types/timestamp.pb.go
299@@ -437,10 +437,7 @@ func (m *Timestamp) Unmarshal(dAtA []byte) error {
300 if err != nil {
301 return err
302 }
303- if skippy < 0 {
304- return ErrInvalidLengthTimestamp
305- }
306- if (iNdEx + skippy) < 0 {
307+ if (skippy < 0) || (iNdEx+skippy) < 0 {
308 return ErrInvalidLengthTimestamp
309 }
310 if (iNdEx + skippy) > l {
311diff --git a/vendor/github.com/gogo/protobuf/types/type.pb.go b/vendor/github.com/gogo/protobuf/types/type.pb.go
312index 13b7ec0..791427b 100644
313--- a/vendor/github.com/gogo/protobuf/types/type.pb.go
314+++ b/vendor/github.com/gogo/protobuf/types/type.pb.go
315@@ -2483,10 +2483,7 @@ func (m *Type) Unmarshal(dAtA []byte) error {
316 if err != nil {
317 return err
318 }
319- if skippy < 0 {
320- return ErrInvalidLengthType
321- }
322- if (iNdEx + skippy) < 0 {
323+ if (skippy < 0) || (iNdEx+skippy) < 0 {
324 return ErrInvalidLengthType
325 }
326 if (iNdEx + skippy) > l {
327@@ -2795,10 +2792,7 @@ func (m *Field) Unmarshal(dAtA []byte) error {
328 if err != nil {
329 return err
330 }
331- if skippy < 0 {
332- return ErrInvalidLengthType
333- }
334- if (iNdEx + skippy) < 0 {
335+ if (skippy < 0) || (iNdEx+skippy) < 0 {
336 return ErrInvalidLengthType
337 }
338 if (iNdEx + skippy) > l {
339@@ -3004,10 +2998,7 @@ func (m *Enum) Unmarshal(dAtA []byte) error {
340 if err != nil {
341 return err
342 }
343- if skippy < 0 {
344- return ErrInvalidLengthType
345- }
346- if (iNdEx + skippy) < 0 {
347+ if (skippy < 0) || (iNdEx+skippy) < 0 {
348 return ErrInvalidLengthType
349 }
350 if (iNdEx + skippy) > l {
351@@ -3143,10 +3134,7 @@ func (m *EnumValue) Unmarshal(dAtA []byte) error {
352 if err != nil {
353 return err
354 }
355- if skippy < 0 {
356- return ErrInvalidLengthType
357- }
358- if (iNdEx + skippy) < 0 {
359+ if (skippy < 0) || (iNdEx+skippy) < 0 {
360 return ErrInvalidLengthType
361 }
362 if (iNdEx + skippy) > l {
363@@ -3265,10 +3253,7 @@ func (m *Option) Unmarshal(dAtA []byte) error {
364 if err != nil {
365 return err
366 }
367- if skippy < 0 {
368- return ErrInvalidLengthType
369- }
370- if (iNdEx + skippy) < 0 {
371+ if (skippy < 0) || (iNdEx+skippy) < 0 {
372 return ErrInvalidLengthType
373 }
374 if (iNdEx + skippy) > l {
375diff --git a/vendor/github.com/gogo/protobuf/types/wrappers.pb.go b/vendor/github.com/gogo/protobuf/types/wrappers.pb.go
376index 8f1edb5..8d41542 100644
377--- a/vendor/github.com/gogo/protobuf/types/wrappers.pb.go
378+++ b/vendor/github.com/gogo/protobuf/types/wrappers.pb.go
379@@ -2020,10 +2020,7 @@ func (m *DoubleValue) Unmarshal(dAtA []byte) error {
380 if err != nil {
381 return err
382 }
383- if skippy < 0 {
384- return ErrInvalidLengthWrappers
385- }
386- if (iNdEx + skippy) < 0 {
387+ if (skippy < 0) || (iNdEx+skippy) < 0 {
388 return ErrInvalidLengthWrappers
389 }
390 if (iNdEx + skippy) > l {
391@@ -2085,10 +2082,7 @@ func (m *FloatValue) Unmarshal(dAtA []byte) error {
392 if err != nil {
393 return err
394 }
395- if skippy < 0 {
396- return ErrInvalidLengthWrappers
397- }
398- if (iNdEx + skippy) < 0 {
399+ if (skippy < 0) || (iNdEx+skippy) < 0 {
400 return ErrInvalidLengthWrappers
401 }
402 if (iNdEx + skippy) > l {
403@@ -2158,10 +2152,7 @@ func (m *Int64Value) Unmarshal(dAtA []byte) error {
404 if err != nil {
405 return err
406 }
407- if skippy < 0 {
408- return ErrInvalidLengthWrappers
409- }
410- if (iNdEx + skippy) < 0 {
411+ if (skippy < 0) || (iNdEx+skippy) < 0 {
412 return ErrInvalidLengthWrappers
413 }
414 if (iNdEx + skippy) > l {
415@@ -2231,10 +2222,7 @@ func (m *UInt64Value) Unmarshal(dAtA []byte) error {
416 if err != nil {
417 return err
418 }
419- if skippy < 0 {
420- return ErrInvalidLengthWrappers
421- }
422- if (iNdEx + skippy) < 0 {
423+ if (skippy < 0) || (iNdEx+skippy) < 0 {
424 return ErrInvalidLengthWrappers
425 }
426 if (iNdEx + skippy) > l {
427@@ -2304,10 +2292,7 @@ func (m *Int32Value) Unmarshal(dAtA []byte) error {
428 if err != nil {
429 return err
430 }
431- if skippy < 0 {
432- return ErrInvalidLengthWrappers
433- }
434- if (iNdEx + skippy) < 0 {
435+ if (skippy < 0) || (iNdEx+skippy) < 0 {
436 return ErrInvalidLengthWrappers
437 }
438 if (iNdEx + skippy) > l {
439@@ -2377,10 +2362,7 @@ func (m *UInt32Value) Unmarshal(dAtA []byte) error {
440 if err != nil {
441 return err
442 }
443- if skippy < 0 {
444- return ErrInvalidLengthWrappers
445- }
446- if (iNdEx + skippy) < 0 {
447+ if (skippy < 0) || (iNdEx+skippy) < 0 {
448 return ErrInvalidLengthWrappers
449 }
450 if (iNdEx + skippy) > l {
451@@ -2451,10 +2433,7 @@ func (m *BoolValue) Unmarshal(dAtA []byte) error {
452 if err != nil {
453 return err
454 }
455- if skippy < 0 {
456- return ErrInvalidLengthWrappers
457- }
458- if (iNdEx + skippy) < 0 {
459+ if (skippy < 0) || (iNdEx+skippy) < 0 {
460 return ErrInvalidLengthWrappers
461 }
462 if (iNdEx + skippy) > l {
463@@ -2537,10 +2516,7 @@ func (m *StringValue) Unmarshal(dAtA []byte) error {
464 if err != nil {
465 return err
466 }
467- if skippy < 0 {
468- return ErrInvalidLengthWrappers
469- }
470- if (iNdEx + skippy) < 0 {
471+ if (skippy < 0) || (iNdEx+skippy) < 0 {
472 return ErrInvalidLengthWrappers
473 }
474 if (iNdEx + skippy) > l {
475@@ -2625,10 +2601,7 @@ func (m *BytesValue) Unmarshal(dAtA []byte) error {
476 if err != nil {
477 return err
478 }
479- if skippy < 0 {
480- return ErrInvalidLengthWrappers
481- }
482- if (iNdEx + skippy) < 0 {
483+ if (skippy < 0) || (iNdEx+skippy) < 0 {
484 return ErrInvalidLengthWrappers
485 }
486 if (iNdEx + skippy) > l {
487diff --git a/vendor/golang.org/x/tools/cmd/goimports/doc.go b/vendor/golang.org/x/tools/cmd/goimports/doc.go
488index 7033e4d..f344d80 100644
489--- a/vendor/golang.org/x/tools/cmd/goimports/doc.go
490+++ b/vendor/golang.org/x/tools/cmd/goimports/doc.go
491@@ -1,3 +1,7 @@
492+// Copyright 2013 The Go Authors. All rights reserved.
493+// Use of this source code is governed by a BSD-style
494+// license that can be found in the LICENSE file.
495+
496 /*
497
498 Command goimports updates your Go import lines,
499diff --git a/vendor/golang.org/x/tools/go/analysis/analysis.go b/vendor/golang.org/x/tools/go/analysis/analysis.go
500index 8c3c2e7..d11505a 100644
501--- a/vendor/golang.org/x/tools/go/analysis/analysis.go
502+++ b/vendor/golang.org/x/tools/go/analysis/analysis.go
503@@ -1,3 +1,7 @@
504+// Copyright 2018 The Go Authors. All rights reserved.
505+// Use of this source code is governed by a BSD-style
506+// license that can be found in the LICENSE file.
507+
508 package analysis
509
510 import (
511diff --git a/vendor/golang.org/x/tools/go/analysis/diagnostic.go b/vendor/golang.org/x/tools/go/analysis/diagnostic.go
512index 57eaf6f..cd462a0 100644
513--- a/vendor/golang.org/x/tools/go/analysis/diagnostic.go
514+++ b/vendor/golang.org/x/tools/go/analysis/diagnostic.go
515@@ -1,3 +1,7 @@
516+// Copyright 2019 The Go Authors. All rights reserved.
517+// Use of this source code is governed by a BSD-style
518+// license that can be found in the LICENSE file.
519+
520 package analysis
521
522 import "go/token"
523diff --git a/vendor/golang.org/x/tools/go/analysis/doc.go b/vendor/golang.org/x/tools/go/analysis/doc.go
524index 9fa3302..94a3bd5 100644
525--- a/vendor/golang.org/x/tools/go/analysis/doc.go
526+++ b/vendor/golang.org/x/tools/go/analysis/doc.go
527@@ -1,3 +1,7 @@
528+// Copyright 2018 The Go Authors. All rights reserved.
529+// Use of this source code is governed by a BSD-style
530+// license that can be found in the LICENSE file.
531+
532 /*
533
534 Package analysis defines the interface between a modular static
535diff --git a/vendor/golang.org/x/tools/go/analysis/validate.go b/vendor/golang.org/x/tools/go/analysis/validate.go
536index ad0e727..23e57bf 100644
537--- a/vendor/golang.org/x/tools/go/analysis/validate.go
538+++ b/vendor/golang.org/x/tools/go/analysis/validate.go
539@@ -1,3 +1,7 @@
540+// Copyright 2018 The Go Authors. All rights reserved.
541+// Use of this source code is governed by a BSD-style
542+// license that can be found in the LICENSE file.
543+
544 package analysis
545
546 import (
547diff --git a/vendor/golang.org/x/tools/go/ast/astutil/util.go b/vendor/golang.org/x/tools/go/ast/astutil/util.go
548index 7630629..919d530 100644
549--- a/vendor/golang.org/x/tools/go/ast/astutil/util.go
550+++ b/vendor/golang.org/x/tools/go/ast/astutil/util.go
551@@ -1,3 +1,7 @@
552+// Copyright 2015 The Go Authors. All rights reserved.
553+// Use of this source code is governed by a BSD-style
554+// license that can be found in the LICENSE file.
555+
556 package astutil
557
558 import "go/ast"
559diff --git a/vendor/golang.org/x/tools/go/ast/inspector/typeof.go b/vendor/golang.org/x/tools/go/ast/inspector/typeof.go
560index d61301b..b6b00cf 100644
561--- a/vendor/golang.org/x/tools/go/ast/inspector/typeof.go
562+++ b/vendor/golang.org/x/tools/go/ast/inspector/typeof.go
563@@ -1,3 +1,7 @@
564+// Copyright 2018 The Go Authors. All rights reserved.
565+// Use of this source code is governed by a BSD-style
566+// license that can be found in the LICENSE file.
567+
568 package inspector
569
570 // This file defines func typeOf(ast.Node) uint64.
571diff --git a/vendor/golang.org/x/tools/go/buildutil/fakecontext.go b/vendor/golang.org/x/tools/go/buildutil/fakecontext.go
572index 8b7f066..5fc672f 100644
573--- a/vendor/golang.org/x/tools/go/buildutil/fakecontext.go
574+++ b/vendor/golang.org/x/tools/go/buildutil/fakecontext.go
575@@ -1,3 +1,7 @@
576+// Copyright 2015 The Go Authors. All rights reserved.
577+// Use of this source code is governed by a BSD-style
578+// license that can be found in the LICENSE file.
579+
580 package buildutil
581
582 import (
583diff --git a/vendor/golang.org/x/tools/go/buildutil/tags.go b/vendor/golang.org/x/tools/go/buildutil/tags.go
584index 486606f..6da0ce4 100644
585--- a/vendor/golang.org/x/tools/go/buildutil/tags.go
586+++ b/vendor/golang.org/x/tools/go/buildutil/tags.go
587@@ -1,3 +1,7 @@
588+// Copyright 2015 The Go Authors. All rights reserved.
589+// Use of this source code is governed by a BSD-style
590+// license that can be found in the LICENSE file.
591+
592 package buildutil
593
594 // This logic was copied from stringsFlag from $GOROOT/src/cmd/go/build.go.
595diff --git a/vendor/golang.org/x/tools/go/internal/packagesdriver/sizes.go b/vendor/golang.org/x/tools/go/internal/packagesdriver/sizes.go
596index 35bc6a4..f4d73b2 100644
597--- a/vendor/golang.org/x/tools/go/internal/packagesdriver/sizes.go
598+++ b/vendor/golang.org/x/tools/go/internal/packagesdriver/sizes.go
599@@ -6,12 +6,9 @@
600 package packagesdriver
601
602 import (
603- "bytes"
604 "context"
605- "encoding/json"
606 "fmt"
607 "go/types"
608- "os/exec"
609 "strings"
610
611 "golang.org/x/tools/internal/gocommand"
612@@ -19,67 +16,6 @@ import (
613
614 var debug = false
615
616-func GetSizes(ctx context.Context, buildFlags, env []string, gocmdRunner *gocommand.Runner, dir string) (types.Sizes, error) {
617- // TODO(matloob): Clean this up. This code is mostly a copy of packages.findExternalDriver.
618- const toolPrefix = "GOPACKAGESDRIVER="
619- tool := ""
620- for _, env := range env {
621- if val := strings.TrimPrefix(env, toolPrefix); val != env {
622- tool = val
623- }
624- }
625-
626- if tool == "" {
627- var err error
628- tool, err = exec.LookPath("gopackagesdriver")
629- if err != nil {
630- // We did not find the driver, so use "go list".
631- tool = "off"
632- }
633- }
634-
635- if tool == "off" {
636- inv := gocommand.Invocation{
637- BuildFlags: buildFlags,
638- Env: env,
639- WorkingDir: dir,
640- }
641- return GetSizesGolist(ctx, inv, gocmdRunner)
642- }
643-
644- req, err := json.Marshal(struct {
645- Command string `json:"command"`
646- Env []string `json:"env"`
647- BuildFlags []string `json:"build_flags"`
648- }{
649- Command: "sizes",
650- Env: env,
651- BuildFlags: buildFlags,
652- })
653- if err != nil {
654- return nil, fmt.Errorf("failed to encode message to driver tool: %v", err)
655- }
656-
657- buf := new(bytes.Buffer)
658- cmd := exec.CommandContext(ctx, tool)
659- cmd.Dir = dir
660- cmd.Env = env
661- cmd.Stdin = bytes.NewReader(req)
662- cmd.Stdout = buf
663- cmd.Stderr = new(bytes.Buffer)
664- if err := cmd.Run(); err != nil {
665- return nil, fmt.Errorf("%v: %v: %s", tool, err, cmd.Stderr)
666- }
667- var response struct {
668- // Sizes, if not nil, is the types.Sizes to use when type checking.
669- Sizes *types.StdSizes
670- }
671- if err := json.Unmarshal(buf.Bytes(), &response); err != nil {
672- return nil, err
673- }
674- return response.Sizes, nil
675-}
676-
677 func GetSizesGolist(ctx context.Context, inv gocommand.Invocation, gocmdRunner *gocommand.Runner) (types.Sizes, error) {
678 inv.Verb = "list"
679 inv.Args = []string{"-f", "{{context.GOARCH}} {{context.Compiler}}", "--", "unsafe"}
680diff --git a/vendor/golang.org/x/tools/go/packages/external.go b/vendor/golang.org/x/tools/go/packages/external.go
681index 8c8473f..7db1d12 100644
682--- a/vendor/golang.org/x/tools/go/packages/external.go
683+++ b/vendor/golang.org/x/tools/go/packages/external.go
684@@ -89,7 +89,7 @@ func findExternalDriver(cfg *Config) driver {
685 return nil, fmt.Errorf("%v: %v: %s", tool, err, cmd.Stderr)
686 }
687 if len(stderr.Bytes()) != 0 && os.Getenv("GOPACKAGESPRINTDRIVERERRORS") != "" {
688- fmt.Fprintf(os.Stderr, "%s stderr: <<%s>>\n", cmdDebugStr(cmd, words...), stderr)
689+ fmt.Fprintf(os.Stderr, "%s stderr: <<%s>>\n", cmdDebugStr(cmd), stderr)
690 }
691
692 var response driverResponse
693diff --git a/vendor/golang.org/x/tools/go/packages/golist.go b/vendor/golang.org/x/tools/go/packages/golist.go
694index 787783c..c83ca09 100644
695--- a/vendor/golang.org/x/tools/go/packages/golist.go
696+++ b/vendor/golang.org/x/tools/go/packages/golist.go
697@@ -10,6 +10,7 @@ import (
698 "encoding/json"
699 "fmt"
700 "go/types"
701+ "io/ioutil"
702 "log"
703 "os"
704 "os/exec"
705@@ -208,56 +209,58 @@ extractQueries:
706 }
707 }
708
709- modifiedPkgs, needPkgs, err := state.processGolistOverlay(response)
710- if err != nil {
711- return nil, err
712- }
713+ // Only use go/packages' overlay processing if we're using a Go version
714+ // below 1.16. Otherwise, go list handles it.
715+ if goVersion, err := state.getGoVersion(); err == nil && goVersion < 16 {
716+ modifiedPkgs, needPkgs, err := state.processGolistOverlay(response)
717+ if err != nil {
718+ return nil, err
719+ }
720
721- var containsCandidates []string
722- if len(containFiles) > 0 {
723- containsCandidates = append(containsCandidates, modifiedPkgs...)
724- containsCandidates = append(containsCandidates, needPkgs...)
725- }
726- if err := state.addNeededOverlayPackages(response, needPkgs); err != nil {
727- return nil, err
728- }
729- // Check candidate packages for containFiles.
730- if len(containFiles) > 0 {
731- for _, id := range containsCandidates {
732- pkg, ok := response.seenPackages[id]
733- if !ok {
734- response.addPackage(&Package{
735- ID: id,
736- Errors: []Error{
737- {
738+ var containsCandidates []string
739+ if len(containFiles) > 0 {
740+ containsCandidates = append(containsCandidates, modifiedPkgs...)
741+ containsCandidates = append(containsCandidates, needPkgs...)
742+ }
743+ if err := state.addNeededOverlayPackages(response, needPkgs); err != nil {
744+ return nil, err
745+ }
746+ // Check candidate packages for containFiles.
747+ if len(containFiles) > 0 {
748+ for _, id := range containsCandidates {
749+ pkg, ok := response.seenPackages[id]
750+ if !ok {
751+ response.addPackage(&Package{
752+ ID: id,
753+ Errors: []Error{{
754 Kind: ListError,
755 Msg: fmt.Sprintf("package %s expected but not seen", id),
756- },
757- },
758- })
759- continue
760- }
761- for _, f := range containFiles {
762- for _, g := range pkg.GoFiles {
763- if sameFile(f, g) {
764- response.addRoot(id)
765+ }},
766+ })
767+ continue
768+ }
769+ for _, f := range containFiles {
770+ for _, g := range pkg.GoFiles {
771+ if sameFile(f, g) {
772+ response.addRoot(id)
773+ }
774 }
775 }
776 }
777 }
778- }
779- // Add root for any package that matches a pattern. This applies only to
780- // packages that are modified by overlays, since they are not added as
781- // roots automatically.
782- for _, pattern := range restPatterns {
783- match := matchPattern(pattern)
784- for _, pkgID := range modifiedPkgs {
785- pkg, ok := response.seenPackages[pkgID]
786- if !ok {
787- continue
788- }
789- if match(pkg.PkgPath) {
790- response.addRoot(pkg.ID)
791+ // Add root for any package that matches a pattern. This applies only to
792+ // packages that are modified by overlays, since they are not added as
793+ // roots automatically.
794+ for _, pattern := range restPatterns {
795+ match := matchPattern(pattern)
796+ for _, pkgID := range modifiedPkgs {
797+ pkg, ok := response.seenPackages[pkgID]
798+ if !ok {
799+ continue
800+ }
801+ if match(pkg.PkgPath) {
802+ response.addRoot(pkg.ID)
803+ }
804 }
805 }
806 }
807@@ -824,6 +827,7 @@ func (state *golistState) cfgInvocation() gocommand.Invocation {
808 BuildFlags: cfg.BuildFlags,
809 ModFile: cfg.modFile,
810 ModFlag: cfg.modFlag,
811+ CleanEnv: cfg.Env != nil,
812 Env: cfg.Env,
813 Logf: cfg.Logf,
814 WorkingDir: cfg.Dir,
815@@ -835,6 +839,26 @@ func (state *golistState) invokeGo(verb string, args ...string) (*bytes.Buffer,
816 cfg := state.cfg
817
818 inv := state.cfgInvocation()
819+
820+ // For Go versions 1.16 and above, `go list` accepts overlays directly via
821+ // the -overlay flag. Set it, if it's available.
822+ //
823+ // The check for "list" is not necessarily required, but we should avoid
824+ // getting the go version if possible.
825+ if verb == "list" {
826+ goVersion, err := state.getGoVersion()
827+ if err != nil {
828+ return nil, err
829+ }
830+ if goVersion >= 16 {
831+ filename, cleanup, err := state.writeOverlays()
832+ if err != nil {
833+ return nil, err
834+ }
835+ defer cleanup()
836+ inv.Overlay = filename
837+ }
838+ }
839 inv.Verb = verb
840 inv.Args = args
841 gocmdRunner := cfg.gocmdRunner
842@@ -878,8 +902,13 @@ func (state *golistState) invokeGo(verb string, args ...string) (*bytes.Buffer,
843 return unicode.IsOneOf([]*unicode.RangeTable{unicode.L, unicode.M, unicode.N, unicode.P, unicode.S}, r) &&
844 !strings.ContainsRune("!\"#$%&'()*,:;<=>?[\\]^`{|}\uFFFD", r)
845 }
846+ // golang/go#36770: Handle case where cmd/go prints module download messages before the error.
847+ msg := stderr.String()
848+ for strings.HasPrefix(msg, "go: downloading") {
849+ msg = msg[strings.IndexRune(msg, '\n')+1:]
850+ }
851 if len(stderr.String()) > 0 && strings.HasPrefix(stderr.String(), "# ") {
852- msg := stderr.String()[len("# "):]
853+ msg := msg[len("# "):]
854 if strings.HasPrefix(strings.TrimLeftFunc(msg, isPkgPathRune), "\n") {
855 return stdout, nil
856 }
857@@ -976,6 +1005,67 @@ func (state *golistState) invokeGo(verb string, args ...string) (*bytes.Buffer,
858 return stdout, nil
859 }
860
861+// OverlayJSON is the format overlay files are expected to be in.
862+// The Replace map maps from overlaid paths to replacement paths:
863+// the Go command will forward all reads trying to open
864+// each overlaid path to its replacement path, or consider the overlaid
865+// path not to exist if the replacement path is empty.
866+//
867+// From golang/go#39958.
868+type OverlayJSON struct {
869+ Replace map[string]string `json:"replace,omitempty"`
870+}
871+
872+// writeOverlays writes out files for go list's -overlay flag, as described
873+// above.
874+func (state *golistState) writeOverlays() (filename string, cleanup func(), err error) {
875+ // Do nothing if there are no overlays in the config.
876+ if len(state.cfg.Overlay) == 0 {
877+ return "", func() {}, nil
878+ }
879+ dir, err := ioutil.TempDir("", "gopackages-*")
880+ if err != nil {
881+ return "", nil, err
882+ }
883+ // The caller must clean up this directory, unless this function returns an
884+ // error.
885+ cleanup = func() {
886+ os.RemoveAll(dir)
887+ }
888+ defer func() {
889+ if err != nil {
890+ cleanup()
891+ }
892+ }()
893+ overlays := map[string]string{}
894+ for k, v := range state.cfg.Overlay {
895+ // Create a unique filename for the overlaid files, to avoid
896+ // creating nested directories.
897+ noSeparator := strings.Join(strings.Split(filepath.ToSlash(k), "/"), "")
898+ f, err := ioutil.TempFile(dir, fmt.Sprintf("*-%s", noSeparator))
899+ if err != nil {
900+ return "", func() {}, err
901+ }
902+ if _, err := f.Write(v); err != nil {
903+ return "", func() {}, err
904+ }
905+ if err := f.Close(); err != nil {
906+ return "", func() {}, err
907+ }
908+ overlays[k] = f.Name()
909+ }
910+ b, err := json.Marshal(OverlayJSON{Replace: overlays})
911+ if err != nil {
912+ return "", func() {}, err
913+ }
914+ // Write out the overlay file that contains the filepath mappings.
915+ filename = filepath.Join(dir, "overlay.json")
916+ if err := ioutil.WriteFile(filename, b, 0665); err != nil {
917+ return "", func() {}, err
918+ }
919+ return filename, cleanup, nil
920+}
921+
922 func containsGoFile(s []string) bool {
923 for _, f := range s {
924 if strings.HasSuffix(f, ".go") {
925@@ -985,17 +1075,22 @@ func containsGoFile(s []string) bool {
926 return false
927 }
928
929-func cmdDebugStr(cmd *exec.Cmd, args ...string) string {
930+func cmdDebugStr(cmd *exec.Cmd) string {
931 env := make(map[string]string)
932 for _, kv := range cmd.Env {
933- split := strings.Split(kv, "=")
934+ split := strings.SplitN(kv, "=", 2)
935 k, v := split[0], split[1]
936 env[k] = v
937 }
938- var quotedArgs []string
939- for _, arg := range args {
940- quotedArgs = append(quotedArgs, strconv.Quote(arg))
941- }
942
943- return fmt.Sprintf("GOROOT=%v GOPATH=%v GO111MODULE=%v PWD=%v go %s", env["GOROOT"], env["GOPATH"], env["GO111MODULE"], env["PWD"], strings.Join(quotedArgs, " "))
944+ var args []string
945+ for _, arg := range cmd.Args {
946+ quoted := strconv.Quote(arg)
947+ if quoted[1:len(quoted)-1] != arg || strings.Contains(arg, " ") {
948+ args = append(args, quoted)
949+ } else {
950+ args = append(args, arg)
951+ }
952+ }
953+ 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, " "))
954 }
955diff --git a/vendor/golang.org/x/tools/go/packages/visit.go b/vendor/golang.org/x/tools/go/packages/visit.go
956index b13cb08..a1dcc40 100644
957--- a/vendor/golang.org/x/tools/go/packages/visit.go
958+++ b/vendor/golang.org/x/tools/go/packages/visit.go
959@@ -1,3 +1,7 @@
960+// Copyright 2018 The Go Authors. All rights reserved.
961+// Use of this source code is governed by a BSD-style
962+// license that can be found in the LICENSE file.
963+
964 package packages
965
966 import (
967diff --git a/vendor/golang.org/x/tools/internal/event/core/event.go b/vendor/golang.org/x/tools/internal/event/core/event.go
968index e37b494..a6cf0e6 100644
969--- a/vendor/golang.org/x/tools/internal/event/core/event.go
970+++ b/vendor/golang.org/x/tools/internal/event/core/event.go
971@@ -12,7 +12,7 @@ import (
972 "golang.org/x/tools/internal/event/label"
973 )
974
975-// Event holds the information about an event of note that ocurred.
976+// Event holds the information about an event of note that occurred.
977 type Event struct {
978 at time.Time
979
980diff --git a/vendor/golang.org/x/tools/internal/gocommand/invoke.go b/vendor/golang.org/x/tools/internal/gocommand/invoke.go
981index b5c061b..f65aad4 100644
982--- a/vendor/golang.org/x/tools/internal/gocommand/invoke.go
983+++ b/vendor/golang.org/x/tools/internal/gocommand/invoke.go
984@@ -13,6 +13,7 @@ import (
985 "os"
986 "os/exec"
987 "regexp"
988+ "strconv"
989 "strings"
990 "sync"
991 "time"
992@@ -132,6 +133,10 @@ type Invocation struct {
993 BuildFlags []string
994 ModFlag string
995 ModFile string
996+ Overlay string
997+ // If CleanEnv is set, the invocation will run only with the environment
998+ // in Env, not starting with os.Environ.
999+ CleanEnv bool
1000 Env []string
1001 WorkingDir string
1002 Logf func(format string, args ...interface{})
1003@@ -171,6 +176,11 @@ func (i *Invocation) run(ctx context.Context, stdout, stderr io.Writer) error {
1004 goArgs = append(goArgs, "-mod="+i.ModFlag)
1005 }
1006 }
1007+ appendOverlayFlag := func() {
1008+ if i.Overlay != "" {
1009+ goArgs = append(goArgs, "-overlay="+i.Overlay)
1010+ }
1011+ }
1012
1013 switch i.Verb {
1014 case "env", "version":
1015@@ -189,6 +199,7 @@ func (i *Invocation) run(ctx context.Context, stdout, stderr io.Writer) error {
1016 goArgs = append(goArgs, i.BuildFlags...)
1017 appendModFile()
1018 appendModFlag()
1019+ appendOverlayFlag()
1020 goArgs = append(goArgs, i.Args...)
1021 }
1022 cmd := exec.Command("go", goArgs...)
1023@@ -200,7 +211,10 @@ func (i *Invocation) run(ctx context.Context, stdout, stderr io.Writer) error {
1024 // The Go stdlib has a special feature where if the cwd and the PWD are the
1025 // same node then it trusts the PWD, so by setting it in the env for the child
1026 // process we fix up all the paths returned by the go command.
1027- cmd.Env = append(os.Environ(), i.Env...)
1028+ if !i.CleanEnv {
1029+ cmd.Env = os.Environ()
1030+ }
1031+ cmd.Env = append(cmd.Env, i.Env...)
1032 if i.WorkingDir != "" {
1033 cmd.Env = append(cmd.Env, "PWD="+i.WorkingDir)
1034 cmd.Dir = i.WorkingDir
1035@@ -241,10 +255,19 @@ func runCmdContext(ctx context.Context, cmd *exec.Cmd) error {
1036 func cmdDebugStr(cmd *exec.Cmd) string {
1037 env := make(map[string]string)
1038 for _, kv := range cmd.Env {
1039- split := strings.Split(kv, "=")
1040+ split := strings.SplitN(kv, "=", 2)
1041 k, v := split[0], split[1]
1042 env[k] = v
1043 }
1044
1045- 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)
1046+ var args []string
1047+ for _, arg := range cmd.Args {
1048+ quoted := strconv.Quote(arg)
1049+ if quoted[1:len(quoted)-1] != arg || strings.Contains(arg, " ") {
1050+ args = append(args, quoted)
1051+ } else {
1052+ args = append(args, arg)
1053+ }
1054+ }
1055+ 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, " "))
1056 }
1057diff --git a/vendor/golang.org/x/tools/internal/gocommand/version.go b/vendor/golang.org/x/tools/internal/gocommand/version.go
1058index 60d45ac..0cebac6 100644
1059--- a/vendor/golang.org/x/tools/internal/gocommand/version.go
1060+++ b/vendor/golang.org/x/tools/internal/gocommand/version.go
1061@@ -16,9 +16,20 @@ func GoVersion(ctx context.Context, inv Invocation, r *Runner) (int, error) {
1062 inv.Verb = "list"
1063 inv.Args = []string{"-e", "-f", `{{context.ReleaseTags}}`}
1064 inv.Env = append(append([]string{}, inv.Env...), "GO111MODULE=off")
1065- // Unset any unneeded flags.
1066+ // Unset any unneeded flags, and remove them from BuildFlags, if they're
1067+ // present.
1068 inv.ModFile = ""
1069 inv.ModFlag = ""
1070+ var buildFlags []string
1071+ for _, flag := range inv.BuildFlags {
1072+ // Flags can be prefixed by one or two dashes.
1073+ f := strings.TrimPrefix(strings.TrimPrefix(flag, "-"), "-")
1074+ if strings.HasPrefix(f, "mod=") || strings.HasPrefix(f, "modfile=") {
1075+ continue
1076+ }
1077+ buildFlags = append(buildFlags, flag)
1078+ }
1079+ inv.BuildFlags = buildFlags
1080 stdoutBytes, err := r.Run(ctx, inv)
1081 if err != nil {
1082 return 0, err
1083diff --git a/vendor/golang.org/x/tools/internal/imports/mod.go b/vendor/golang.org/x/tools/internal/imports/mod.go
1084index 8a83613..901449a 100644
1085--- a/vendor/golang.org/x/tools/internal/imports/mod.go
1086+++ b/vendor/golang.org/x/tools/internal/imports/mod.go
1087@@ -1,3 +1,7 @@
1088+// Copyright 2019 The Go Authors. All rights reserved.
1089+// Use of this source code is governed by a BSD-style
1090+// license that can be found in the LICENSE file.
1091+
1092 package imports
1093
1094 import (
1095@@ -88,7 +92,11 @@ func (r *ModuleResolver) init() error {
1096 if gmc := r.env.Env["GOMODCACHE"]; gmc != "" {
1097 r.moduleCacheDir = gmc
1098 } else {
1099- r.moduleCacheDir = filepath.Join(filepath.SplitList(goenv["GOPATH"])[0], "/pkg/mod")
1100+ gopaths := filepath.SplitList(goenv["GOPATH"])
1101+ if len(gopaths) == 0 {
1102+ return fmt.Errorf("empty GOPATH")
1103+ }
1104+ r.moduleCacheDir = filepath.Join(gopaths[0], "/pkg/mod")
1105 }
1106
1107 sort.Slice(r.modsByModPath, func(i, j int) bool {
1108@@ -347,10 +355,11 @@ func (r *ModuleResolver) modInfo(dir string) (modDir string, modName string) {
1109 }
1110
1111 if r.dirInModuleCache(dir) {
1112- matches := modCacheRegexp.FindStringSubmatch(dir)
1113- index := strings.Index(dir, matches[1]+"@"+matches[2])
1114- modDir := filepath.Join(dir[:index], matches[1]+"@"+matches[2])
1115- return modDir, readModName(filepath.Join(modDir, "go.mod"))
1116+ if matches := modCacheRegexp.FindStringSubmatch(dir); len(matches) == 3 {
1117+ index := strings.Index(dir, matches[1]+"@"+matches[2])
1118+ modDir := filepath.Join(dir[:index], matches[1]+"@"+matches[2])
1119+ return modDir, readModName(filepath.Join(modDir, "go.mod"))
1120+ }
1121 }
1122 for {
1123 if info, ok := r.cacheLoad(dir); ok {
1124diff --git a/vendor/golang.org/x/tools/internal/imports/mod_cache.go b/vendor/golang.org/x/tools/internal/imports/mod_cache.go
1125index 5b4f03a..18dada4 100644
1126--- a/vendor/golang.org/x/tools/internal/imports/mod_cache.go
1127+++ b/vendor/golang.org/x/tools/internal/imports/mod_cache.go
1128@@ -1,3 +1,7 @@
1129+// Copyright 2019 The Go Authors. All rights reserved.
1130+// Use of this source code is governed by a BSD-style
1131+// license that can be found in the LICENSE file.
1132+
1133 package imports
1134
1135 import (
1136diff --git a/vendor/golang.org/x/tools/internal/packagesinternal/packages.go b/vendor/golang.org/x/tools/internal/packagesinternal/packages.go
1137index 1335a5e..d4ec6f9 100644
1138--- a/vendor/golang.org/x/tools/internal/packagesinternal/packages.go
1139+++ b/vendor/golang.org/x/tools/internal/packagesinternal/packages.go
1140@@ -1,3 +1,7 @@
1141+// Copyright 2020 The Go Authors. All rights reserved.
1142+// Use of this source code is governed by a BSD-style
1143+// license that can be found in the LICENSE file.
1144+
1145 // Package packagesinternal exposes internal-only fields from go/packages.
1146 package packagesinternal
1147
1148diff --git a/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go b/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go
1149new file mode 100644
1150index 0000000..65473eb
1151--- /dev/null
1152+++ b/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go
1153@@ -0,0 +1,1358 @@
1154+// Copyright 2020 The Go Authors. All rights reserved.
1155+// Use of this source code is governed by a BSD-style
1156+// license that can be found in the LICENSE file.
1157+
1158+package typesinternal
1159+
1160+//go:generate stringer -type=ErrorCode
1161+
1162+type ErrorCode int
1163+
1164+// This file defines the error codes that can be produced during type-checking.
1165+// Collectively, these codes provide an identifier that may be used to
1166+// implement special handling for certain types of errors.
1167+//
1168+// Error codes should be fine-grained enough that the exact nature of the error
1169+// can be easily determined, but coarse enough that they are not an
1170+// implementation detail of the type checking algorithm. As a rule-of-thumb,
1171+// errors should be considered equivalent if there is a theoretical refactoring
1172+// of the type checker in which they are emitted in exactly one place. For
1173+// example, the type checker emits different error messages for "too many
1174+// arguments" and "too few arguments", but one can imagine an alternative type
1175+// checker where this check instead just emits a single "wrong number of
1176+// arguments", so these errors should have the same code.
1177+//
1178+// Error code names should be as brief as possible while retaining accuracy and
1179+// distinctiveness. In most cases names should start with an adjective
1180+// describing the nature of the error (e.g. "invalid", "unused", "misplaced"),
1181+// and end with a noun identifying the relevant language object. For example,
1182+// "DuplicateDecl" or "InvalidSliceExpr". For brevity, naming follows the
1183+// convention that "bad" implies a problem with syntax, and "invalid" implies a
1184+// problem with types.
1185+
1186+const (
1187+ _ ErrorCode = iota
1188+
1189+ // Test is reserved for errors that only apply while in self-test mode.
1190+ Test
1191+
1192+ /* package names */
1193+
1194+ // BlankPkgName occurs when a package name is the blank identifier "_".
1195+ //
1196+ // Per the spec:
1197+ // "The PackageName must not be the blank identifier."
1198+ BlankPkgName
1199+
1200+ // MismatchedPkgName occurs when a file's package name doesn't match the
1201+ // package name already established by other files.
1202+ MismatchedPkgName
1203+
1204+ // InvalidPkgUse occurs when a package identifier is used outside of a
1205+ // selector expression.
1206+ //
1207+ // Example:
1208+ // import "fmt"
1209+ //
1210+ // var _ = fmt
1211+ InvalidPkgUse
1212+
1213+ /* imports */
1214+
1215+ // BadImportPath occurs when an import path is not valid.
1216+ BadImportPath
1217+
1218+ // BrokenImport occurs when importing a package fails.
1219+ //
1220+ // Example:
1221+ // import "amissingpackage"
1222+ BrokenImport
1223+
1224+ // ImportCRenamed occurs when the special import "C" is renamed. "C" is a
1225+ // pseudo-package, and must not be renamed.
1226+ //
1227+ // Example:
1228+ // import _ "C"
1229+ ImportCRenamed
1230+
1231+ // UnusedImport occurs when an import is unused.
1232+ //
1233+ // Example:
1234+ // import "fmt"
1235+ //
1236+ // func main() {}
1237+ UnusedImport
1238+
1239+ /* initialization */
1240+
1241+ // InvalidInitCycle occurs when an invalid cycle is detected within the
1242+ // initialization graph.
1243+ //
1244+ // Example:
1245+ // var x int = f()
1246+ //
1247+ // func f() int { return x }
1248+ InvalidInitCycle
1249+
1250+ /* decls */
1251+
1252+ // DuplicateDecl occurs when an identifier is declared multiple times.
1253+ //
1254+ // Example:
1255+ // var x = 1
1256+ // var x = 2
1257+ DuplicateDecl
1258+
1259+ // InvalidDeclCycle occurs when a declaration cycle is not valid.
1260+ //
1261+ // Example:
1262+ // import "unsafe"
1263+ //
1264+ // type T struct {
1265+ // a [n]int
1266+ // }
1267+ //
1268+ // var n = unsafe.Sizeof(T{})
1269+ InvalidDeclCycle
1270+
1271+ // InvalidTypeCycle occurs when a cycle in type definitions results in a
1272+ // type that is not well-defined.
1273+ //
1274+ // Example:
1275+ // import "unsafe"
1276+ //
1277+ // type T [unsafe.Sizeof(T{})]int
1278+ InvalidTypeCycle
1279+
1280+ /* decls > const */
1281+
1282+ // InvalidConstInit occurs when a const declaration has a non-constant
1283+ // initializer.
1284+ //
1285+ // Example:
1286+ // var x int
1287+ // const _ = x
1288+ InvalidConstInit
1289+
1290+ // InvalidConstVal occurs when a const value cannot be converted to its
1291+ // target type.
1292+ //
1293+ // TODO(findleyr): this error code and example are not very clear. Consider
1294+ // removing it.
1295+ //
1296+ // Example:
1297+ // const _ = 1 << "hello"
1298+ InvalidConstVal
1299+
1300+ // InvalidConstType occurs when the underlying type in a const declaration
1301+ // is not a valid constant type.
1302+ //
1303+ // Example:
1304+ // const c *int = 4
1305+ InvalidConstType
1306+
1307+ /* decls > var (+ other variable assignment codes) */
1308+
1309+ // UntypedNil occurs when the predeclared (untyped) value nil is used to
1310+ // initialize a variable declared without an explicit type.
1311+ //
1312+ // Example:
1313+ // var x = nil
1314+ UntypedNil
1315+
1316+ // WrongAssignCount occurs when the number of values on the right-hand side
1317+ // of an assignment or or initialization expression does not match the number
1318+ // of variables on the left-hand side.
1319+ //
1320+ // Example:
1321+ // var x = 1, 2
1322+ WrongAssignCount
1323+
1324+ // UnassignableOperand occurs when the left-hand side of an assignment is
1325+ // not assignable.
1326+ //
1327+ // Example:
1328+ // func f() {
1329+ // const c = 1
1330+ // c = 2
1331+ // }
1332+ UnassignableOperand
1333+
1334+ // NoNewVar occurs when a short variable declaration (':=') does not declare
1335+ // new variables.
1336+ //
1337+ // Example:
1338+ // func f() {
1339+ // x := 1
1340+ // x := 2
1341+ // }
1342+ NoNewVar
1343+
1344+ // MultiValAssignOp occurs when an assignment operation (+=, *=, etc) does
1345+ // not have single-valued left-hand or right-hand side.
1346+ //
1347+ // Per the spec:
1348+ // "In assignment operations, both the left- and right-hand expression lists
1349+ // must contain exactly one single-valued expression"
1350+ //
1351+ // Example:
1352+ // func f() int {
1353+ // x, y := 1, 2
1354+ // x, y += 1
1355+ // return x + y
1356+ // }
1357+ MultiValAssignOp
1358+
1359+ // InvalidIfaceAssign occurs when a value of type T is used as an
1360+ // interface, but T does not implement a method of the expected interface.
1361+ //
1362+ // Example:
1363+ // type I interface {
1364+ // f()
1365+ // }
1366+ //
1367+ // type T int
1368+ //
1369+ // var x I = T(1)
1370+ InvalidIfaceAssign
1371+
1372+ // InvalidChanAssign occurs when a chan assignment is invalid.
1373+ //
1374+ // Per the spec, a value x is assignable to a channel type T if:
1375+ // "x is a bidirectional channel value, T is a channel type, x's type V and
1376+ // T have identical element types, and at least one of V or T is not a
1377+ // defined type."
1378+ //
1379+ // Example:
1380+ // type T1 chan int
1381+ // type T2 chan int
1382+ //
1383+ // var x T1
1384+ // // Invalid assignment because both types are named
1385+ // var _ T2 = x
1386+ InvalidChanAssign
1387+
1388+ // IncompatibleAssign occurs when the type of the right-hand side expression
1389+ // in an assignment cannot be assigned to the type of the variable being
1390+ // assigned.
1391+ //
1392+ // Example:
1393+ // var x []int
1394+ // var _ int = x
1395+ IncompatibleAssign
1396+
1397+ // UnaddressableFieldAssign occurs when trying to assign to a struct field
1398+ // in a map value.
1399+ //
1400+ // Example:
1401+ // func f() {
1402+ // m := make(map[string]struct{i int})
1403+ // m["foo"].i = 42
1404+ // }
1405+ UnaddressableFieldAssign
1406+
1407+ /* decls > type (+ other type expression codes) */
1408+
1409+ // NotAType occurs when the identifier used as the underlying type in a type
1410+ // declaration or the right-hand side of a type alias does not denote a type.
1411+ //
1412+ // Example:
1413+ // var S = 2
1414+ //
1415+ // type T S
1416+ NotAType
1417+
1418+ // InvalidArrayLen occurs when an array length is not a constant value.
1419+ //
1420+ // Example:
1421+ // var n = 3
1422+ // var _ = [n]int{}
1423+ InvalidArrayLen
1424+
1425+ // BlankIfaceMethod occurs when a method name is '_'.
1426+ //
1427+ // Per the spec:
1428+ // "The name of each explicitly specified method must be unique and not
1429+ // blank."
1430+ //
1431+ // Example:
1432+ // type T interface {
1433+ // _(int)
1434+ // }
1435+ BlankIfaceMethod
1436+
1437+ // IncomparableMapKey occurs when a map key type does not support the == and
1438+ // != operators.
1439+ //
1440+ // Per the spec:
1441+ // "The comparison operators == and != must be fully defined for operands of
1442+ // the key type; thus the key type must not be a function, map, or slice."
1443+ //
1444+ // Example:
1445+ // var x map[T]int
1446+ //
1447+ // type T []int
1448+ IncomparableMapKey
1449+
1450+ // InvalidIfaceEmbed occurs when a non-interface type is embedded in an
1451+ // interface.
1452+ //
1453+ // Example:
1454+ // type T struct {}
1455+ //
1456+ // func (T) m()
1457+ //
1458+ // type I interface {
1459+ // T
1460+ // }
1461+ InvalidIfaceEmbed
1462+
1463+ // InvalidPtrEmbed occurs when an embedded field is of the pointer form *T,
1464+ // and T itself is itself a pointer, an unsafe.Pointer, or an interface.
1465+ //
1466+ // Per the spec:
1467+ // "An embedded field must be specified as a type name T or as a pointer to
1468+ // a non-interface type name *T, and T itself may not be a pointer type."
1469+ //
1470+ // Example:
1471+ // type T *int
1472+ //
1473+ // type S struct {
1474+ // *T
1475+ // }
1476+ InvalidPtrEmbed
1477+
1478+ /* decls > func and method */
1479+
1480+ // BadRecv occurs when a method declaration does not have exactly one
1481+ // receiver parameter.
1482+ //
1483+ // Example:
1484+ // func () _() {}
1485+ BadRecv
1486+
1487+ // InvalidRecv occurs when a receiver type expression is not of the form T
1488+ // or *T, or T is a pointer type.
1489+ //
1490+ // Example:
1491+ // type T struct {}
1492+ //
1493+ // func (**T) m() {}
1494+ InvalidRecv
1495+
1496+ // DuplicateFieldAndMethod occurs when an identifier appears as both a field
1497+ // and method name.
1498+ //
1499+ // Example:
1500+ // type T struct {
1501+ // m int
1502+ // }
1503+ //
1504+ // func (T) m() {}
1505+ DuplicateFieldAndMethod
1506+
1507+ // DuplicateMethod occurs when two methods on the same receiver type have
1508+ // the same name.
1509+ //
1510+ // Example:
1511+ // type T struct {}
1512+ // func (T) m() {}
1513+ // func (T) m(i int) int { return i }
1514+ DuplicateMethod
1515+
1516+ /* decls > special */
1517+
1518+ // InvalidBlank occurs when a blank identifier is used as a value or type.
1519+ //
1520+ // Per the spec:
1521+ // "The blank identifier may appear as an operand only on the left-hand side
1522+ // of an assignment."
1523+ //
1524+ // Example:
1525+ // var x = _
1526+ InvalidBlank
1527+
1528+ // InvalidIota occurs when the predeclared identifier iota is used outside
1529+ // of a constant declaration.
1530+ //
1531+ // Example:
1532+ // var x = iota
1533+ InvalidIota
1534+
1535+ // MissingInitBody occurs when an init function is missing its body.
1536+ //
1537+ // Example:
1538+ // func init()
1539+ MissingInitBody
1540+
1541+ // InvalidInitSig occurs when an init function declares parameters or
1542+ // results.
1543+ //
1544+ // Example:
1545+ // func init() int { return 1 }
1546+ InvalidInitSig
1547+
1548+ // InvalidInitDecl occurs when init is declared as anything other than a
1549+ // function.
1550+ //
1551+ // Example:
1552+ // var init = 1
1553+ InvalidInitDecl
1554+
1555+ // InvalidMainDecl occurs when main is declared as anything other than a
1556+ // function, in a main package.
1557+ InvalidMainDecl
1558+
1559+ /* exprs */
1560+
1561+ // TooManyValues occurs when a function returns too many values for the
1562+ // expression context in which it is used.
1563+ //
1564+ // Example:
1565+ // func ReturnTwo() (int, int) {
1566+ // return 1, 2
1567+ // }
1568+ //
1569+ // var x = ReturnTwo()
1570+ TooManyValues
1571+
1572+ // NotAnExpr occurs when a type expression is used where a value expression
1573+ // is expected.
1574+ //
1575+ // Example:
1576+ // type T struct {}
1577+ //
1578+ // func f() {
1579+ // T
1580+ // }
1581+ NotAnExpr
1582+
1583+ /* exprs > const */
1584+
1585+ // TruncatedFloat occurs when a float constant is truncated to an integer
1586+ // value.
1587+ //
1588+ // Example:
1589+ // var _ int = 98.6
1590+ TruncatedFloat
1591+
1592+ // NumericOverflow occurs when a numeric constant overflows its target type.
1593+ //
1594+ // Example:
1595+ // var x int8 = 1000
1596+ NumericOverflow
1597+
1598+ /* exprs > operation */
1599+
1600+ // UndefinedOp occurs when an operator is not defined for the type(s) used
1601+ // in an operation.
1602+ //
1603+ // Example:
1604+ // var c = "a" - "b"
1605+ UndefinedOp
1606+
1607+ // MismatchedTypes occurs when operand types are incompatible in a binary
1608+ // operation.
1609+ //
1610+ // Example:
1611+ // var a = "hello"
1612+ // var b = 1
1613+ // var c = a - b
1614+ MismatchedTypes
1615+
1616+ // DivByZero occurs when a division operation is provable at compile
1617+ // time to be a division by zero.
1618+ //
1619+ // Example:
1620+ // const divisor = 0
1621+ // var x int = 1/divisor
1622+ DivByZero
1623+
1624+ // NonNumericIncDec occurs when an increment or decrement operator is
1625+ // applied to a non-numeric value.
1626+ //
1627+ // Example:
1628+ // func f() {
1629+ // var c = "c"
1630+ // c++
1631+ // }
1632+ NonNumericIncDec
1633+
1634+ /* exprs > ptr */
1635+
1636+ // UnaddressableOperand occurs when the & operator is applied to an
1637+ // unaddressable expression.
1638+ //
1639+ // Example:
1640+ // var x = &1
1641+ UnaddressableOperand
1642+
1643+ // InvalidIndirection occurs when a non-pointer value is indirected via the
1644+ // '*' operator.
1645+ //
1646+ // Example:
1647+ // var x int
1648+ // var y = *x
1649+ InvalidIndirection
1650+
1651+ /* exprs > [] */
1652+
1653+ // NonIndexableOperand occurs when an index operation is applied to a value
1654+ // that cannot be indexed.
1655+ //
1656+ // Example:
1657+ // var x = 1
1658+ // var y = x[1]
1659+ NonIndexableOperand
1660+
1661+ // InvalidIndex occurs when an index argument is not of integer type,
1662+ // negative, or out-of-bounds.
1663+ //
1664+ // Example:
1665+ // var s = [...]int{1,2,3}
1666+ // var x = s[5]
1667+ //
1668+ // Example:
1669+ // var s = []int{1,2,3}
1670+ // var _ = s[-1]
1671+ //
1672+ // Example:
1673+ // var s = []int{1,2,3}
1674+ // var i string
1675+ // var _ = s[i]
1676+ InvalidIndex
1677+
1678+ // SwappedSliceIndices occurs when constant indices in a slice expression
1679+ // are decreasing in value.
1680+ //
1681+ // Example:
1682+ // var _ = []int{1,2,3}[2:1]
1683+ SwappedSliceIndices
1684+
1685+ /* operators > slice */
1686+
1687+ // NonSliceableOperand occurs when a slice operation is applied to a value
1688+ // whose type is not sliceable, or is unaddressable.
1689+ //
1690+ // Example:
1691+ // var x = [...]int{1, 2, 3}[:1]
1692+ //
1693+ // Example:
1694+ // var x = 1
1695+ // var y = 1[:1]
1696+ NonSliceableOperand
1697+
1698+ // InvalidSliceExpr occurs when a three-index slice expression (a[x:y:z]) is
1699+ // applied to a string.
1700+ //
1701+ // Example:
1702+ // var s = "hello"
1703+ // var x = s[1:2:3]
1704+ InvalidSliceExpr
1705+
1706+ /* exprs > shift */
1707+
1708+ // InvalidShiftCount occurs when the right-hand side of a shift operation is
1709+ // either non-integer, negative, or too large.
1710+ //
1711+ // Example:
1712+ // var (
1713+ // x string
1714+ // y int = 1 << x
1715+ // )
1716+ InvalidShiftCount
1717+
1718+ // InvalidShiftOperand occurs when the shifted operand is not an integer.
1719+ //
1720+ // Example:
1721+ // var s = "hello"
1722+ // var x = s << 2
1723+ InvalidShiftOperand
1724+
1725+ /* exprs > chan */
1726+
1727+ // InvalidReceive occurs when there is a channel receive from a value that
1728+ // is either not a channel, or is a send-only channel.
1729+ //
1730+ // Example:
1731+ // func f() {
1732+ // var x = 1
1733+ // <-x
1734+ // }
1735+ InvalidReceive
1736+
1737+ // InvalidSend occurs when there is a channel send to a value that is not a
1738+ // channel, or is a receive-only channel.
1739+ //
1740+ // Example:
1741+ // func f() {
1742+ // var x = 1
1743+ // x <- "hello!"
1744+ // }
1745+ InvalidSend
1746+
1747+ /* exprs > literal */
1748+
1749+ // DuplicateLitKey occurs when an index is duplicated in a slice, array, or
1750+ // map literal.
1751+ //
1752+ // Example:
1753+ // var _ = []int{0:1, 0:2}
1754+ //
1755+ // Example:
1756+ // var _ = map[string]int{"a": 1, "a": 2}
1757+ DuplicateLitKey
1758+
1759+ // MissingLitKey occurs when a map literal is missing a key expression.
1760+ //
1761+ // Example:
1762+ // var _ = map[string]int{1}
1763+ MissingLitKey
1764+
1765+ // InvalidLitIndex occurs when the key in a key-value element of a slice or
1766+ // array literal is not an integer constant.
1767+ //
1768+ // Example:
1769+ // var i = 0
1770+ // var x = []string{i: "world"}
1771+ InvalidLitIndex
1772+
1773+ // OversizeArrayLit occurs when an array literal exceeds its length.
1774+ //
1775+ // Example:
1776+ // var _ = [2]int{1,2,3}
1777+ OversizeArrayLit
1778+
1779+ // MixedStructLit occurs when a struct literal contains a mix of positional
1780+ // and named elements.
1781+ //
1782+ // Example:
1783+ // var _ = struct{i, j int}{i: 1, 2}
1784+ MixedStructLit
1785+
1786+ // InvalidStructLit occurs when a positional struct literal has an incorrect
1787+ // number of values.
1788+ //
1789+ // Example:
1790+ // var _ = struct{i, j int}{1,2,3}
1791+ InvalidStructLit
1792+
1793+ // MissingLitField occurs when a struct literal refers to a field that does
1794+ // not exist on the struct type.
1795+ //
1796+ // Example:
1797+ // var _ = struct{i int}{j: 2}
1798+ MissingLitField
1799+
1800+ // DuplicateLitField occurs when a struct literal contains duplicated
1801+ // fields.
1802+ //
1803+ // Example:
1804+ // var _ = struct{i int}{i: 1, i: 2}
1805+ DuplicateLitField
1806+
1807+ // UnexportedLitField occurs when a positional struct literal implicitly
1808+ // assigns an unexported field of an imported type.
1809+ UnexportedLitField
1810+
1811+ // InvalidLitField occurs when a field name is not a valid identifier.
1812+ //
1813+ // Example:
1814+ // var _ = struct{i int}{1: 1}
1815+ InvalidLitField
1816+
1817+ // UntypedLit occurs when a composite literal omits a required type
1818+ // identifier.
1819+ //
1820+ // Example:
1821+ // type outer struct{
1822+ // inner struct { i int }
1823+ // }
1824+ //
1825+ // var _ = outer{inner: {1}}
1826+ UntypedLit
1827+
1828+ // InvalidLit occurs when a composite literal expression does not match its
1829+ // type.
1830+ //
1831+ // Example:
1832+ // type P *struct{
1833+ // x int
1834+ // }
1835+ // var _ = P {}
1836+ InvalidLit
1837+
1838+ /* exprs > selector */
1839+
1840+ // AmbiguousSelector occurs when a selector is ambiguous.
1841+ //
1842+ // Example:
1843+ // type E1 struct { i int }
1844+ // type E2 struct { i int }
1845+ // type T struct { E1; E2 }
1846+ //
1847+ // var x T
1848+ // var _ = x.i
1849+ AmbiguousSelector
1850+
1851+ // UndeclaredImportedName occurs when a package-qualified identifier is
1852+ // undeclared by the imported package.
1853+ //
1854+ // Example:
1855+ // import "go/types"
1856+ //
1857+ // var _ = types.NotAnActualIdentifier
1858+ UndeclaredImportedName
1859+
1860+ // UnexportedName occurs when a selector refers to an unexported identifier
1861+ // of an imported package.
1862+ //
1863+ // Example:
1864+ // import "reflect"
1865+ //
1866+ // type _ reflect.flag
1867+ UnexportedName
1868+
1869+ // UndeclaredName occurs when an identifier is not declared in the current
1870+ // scope.
1871+ //
1872+ // Example:
1873+ // var x T
1874+ UndeclaredName
1875+
1876+ // MissingFieldOrMethod occurs when a selector references a field or method
1877+ // that does not exist.
1878+ //
1879+ // Example:
1880+ // type T struct {}
1881+ //
1882+ // var x = T{}.f
1883+ MissingFieldOrMethod
1884+
1885+ /* exprs > ... */
1886+
1887+ // BadDotDotDotSyntax occurs when a "..." occurs in a context where it is
1888+ // not valid.
1889+ //
1890+ // Example:
1891+ // var _ = map[int][...]int{0: {}}
1892+ BadDotDotDotSyntax
1893+
1894+ // NonVariadicDotDotDot occurs when a "..." is used on the final argument to
1895+ // a non-variadic function.
1896+ //
1897+ // Example:
1898+ // func printArgs(s []string) {
1899+ // for _, a := range s {
1900+ // println(a)
1901+ // }
1902+ // }
1903+ //
1904+ // func f() {
1905+ // s := []string{"a", "b", "c"}
1906+ // printArgs(s...)
1907+ // }
1908+ NonVariadicDotDotDot
1909+
1910+ // MisplacedDotDotDot occurs when a "..." is used somewhere other than the
1911+ // final argument to a function call.
1912+ //
1913+ // Example:
1914+ // func printArgs(args ...int) {
1915+ // for _, a := range args {
1916+ // println(a)
1917+ // }
1918+ // }
1919+ //
1920+ // func f() {
1921+ // a := []int{1,2,3}
1922+ // printArgs(0, a...)
1923+ // }
1924+ MisplacedDotDotDot
1925+
1926+ // InvalidDotDotDotOperand occurs when a "..." operator is applied to a
1927+ // single-valued operand.
1928+ //
1929+ // Example:
1930+ // func printArgs(args ...int) {
1931+ // for _, a := range args {
1932+ // println(a)
1933+ // }
1934+ // }
1935+ //
1936+ // func f() {
1937+ // a := 1
1938+ // printArgs(a...)
1939+ // }
1940+ //
1941+ // Example:
1942+ // func args() (int, int) {
1943+ // return 1, 2
1944+ // }
1945+ //
1946+ // func printArgs(args ...int) {
1947+ // for _, a := range args {
1948+ // println(a)
1949+ // }
1950+ // }
1951+ //
1952+ // func g() {
1953+ // printArgs(args()...)
1954+ // }
1955+ InvalidDotDotDotOperand
1956+
1957+ // InvalidDotDotDot occurs when a "..." is used in a non-variadic built-in
1958+ // function.
1959+ //
1960+ // Example:
1961+ // var s = []int{1, 2, 3}
1962+ // var l = len(s...)
1963+ InvalidDotDotDot
1964+
1965+ /* exprs > built-in */
1966+
1967+ // UncalledBuiltin occurs when a built-in function is used as a
1968+ // function-valued expression, instead of being called.
1969+ //
1970+ // Per the spec:
1971+ // "The built-in functions do not have standard Go types, so they can only
1972+ // appear in call expressions; they cannot be used as function values."
1973+ //
1974+ // Example:
1975+ // var _ = copy
1976+ UncalledBuiltin
1977+
1978+ // InvalidAppend occurs when append is called with a first argument that is
1979+ // not a slice.
1980+ //
1981+ // Example:
1982+ // var _ = append(1, 2)
1983+ InvalidAppend
1984+
1985+ // InvalidCap occurs when an argument to the cap built-in function is not of
1986+ // supported type.
1987+ //
1988+ // See https://golang.org/ref/spec#Lengthand_capacity for information on
1989+ // which underlying types are supported as arguments to cap and len.
1990+ //
1991+ // Example:
1992+ // var s = 2
1993+ // var x = cap(s)
1994+ InvalidCap
1995+
1996+ // InvalidClose occurs when close(...) is called with an argument that is
1997+ // not of channel type, or that is a receive-only channel.
1998+ //
1999+ // Example:
2000+ // func f() {
2001+ // var x int
2002+ // close(x)
2003+ // }
2004+ InvalidClose
2005+
2006+ // InvalidCopy occurs when the arguments are not of slice type or do not
2007+ // have compatible type.
2008+ //
2009+ // See https://golang.org/ref/spec#Appendingand_copying_slices for more
2010+ // information on the type requirements for the copy built-in.
2011+ //
2012+ // Example:
2013+ // func f() {
2014+ // var x []int
2015+ // y := []int64{1,2,3}
2016+ // copy(x, y)
2017+ // }
2018+ InvalidCopy
2019+
2020+ // InvalidComplex occurs when the complex built-in function is called with
2021+ // arguments with incompatible types.
2022+ //
2023+ // Example:
2024+ // var _ = complex(float32(1), float64(2))
2025+ InvalidComplex
2026+
2027+ // InvalidDelete occurs when the delete built-in function is called with a
2028+ // first argument that is not a map.
2029+ //
2030+ // Example:
2031+ // func f() {
2032+ // m := "hello"
2033+ // delete(m, "e")
2034+ // }
2035+ InvalidDelete
2036+
2037+ // InvalidImag occurs when the imag built-in function is called with an
2038+ // argument that does not have complex type.
2039+ //
2040+ // Example:
2041+ // var _ = imag(int(1))
2042+ InvalidImag
2043+
2044+ // InvalidLen occurs when an argument to the len built-in function is not of
2045+ // supported type.
2046+ //
2047+ // See https://golang.org/ref/spec#Lengthand_capacity for information on
2048+ // which underlying types are supported as arguments to cap and len.
2049+ //
2050+ // Example:
2051+ // var s = 2
2052+ // var x = len(s)
2053+ InvalidLen
2054+
2055+ // SwappedMakeArgs occurs when make is called with three arguments, and its
2056+ // length argument is larger than its capacity argument.
2057+ //
2058+ // Example:
2059+ // var x = make([]int, 3, 2)
2060+ SwappedMakeArgs
2061+
2062+ // InvalidMake occurs when make is called with an unsupported type argument.
2063+ //
2064+ // See https://golang.org/ref/spec#Makingslices_maps_and_channels for
2065+ // information on the types that may be created using make.
2066+ //
2067+ // Example:
2068+ // var x = make(int)
2069+ InvalidMake
2070+
2071+ // InvalidReal occurs when the real built-in function is called with an
2072+ // argument that does not have complex type.
2073+ //
2074+ // Example:
2075+ // var _ = real(int(1))
2076+ InvalidReal
2077+
2078+ /* exprs > assertion */
2079+
2080+ // InvalidAssert occurs when a type assertion is applied to a
2081+ // value that is not of interface type.
2082+ //
2083+ // Example:
2084+ // var x = 1
2085+ // var _ = x.(float64)
2086+ InvalidAssert
2087+
2088+ // ImpossibleAssert occurs for a type assertion x.(T) when the value x of
2089+ // interface cannot have dynamic type T, due to a missing or mismatching
2090+ // method on T.
2091+ //
2092+ // Example:
2093+ // type T int
2094+ //
2095+ // func (t *T) m() int { return int(*t) }
2096+ //
2097+ // type I interface { m() int }
2098+ //
2099+ // var x I
2100+ // var _ = x.(T)
2101+ ImpossibleAssert
2102+
2103+ /* exprs > conversion */
2104+
2105+ // InvalidConversion occurs when the argument type cannot be converted to the
2106+ // target.
2107+ //
2108+ // See https://golang.org/ref/spec#Conversions for the rules of
2109+ // convertibility.
2110+ //
2111+ // Example:
2112+ // var x float64
2113+ // var _ = string(x)
2114+ InvalidConversion
2115+
2116+ // InvalidUntypedConversion occurs when an there is no valid implicit
2117+ // conversion from an untyped value satisfying the type constraints of the
2118+ // context in which it is used.
2119+ //
2120+ // Example:
2121+ // var _ = 1 + ""
2122+ InvalidUntypedConversion
2123+
2124+ /* offsetof */
2125+
2126+ // BadOffsetofSyntax occurs when unsafe.Offsetof is called with an argument
2127+ // that is not a selector expression.
2128+ //
2129+ // Example:
2130+ // import "unsafe"
2131+ //
2132+ // var x int
2133+ // var _ = unsafe.Offsetof(x)
2134+ BadOffsetofSyntax
2135+
2136+ // InvalidOffsetof occurs when unsafe.Offsetof is called with a method
2137+ // selector, rather than a field selector, or when the field is embedded via
2138+ // a pointer.
2139+ //
2140+ // Per the spec:
2141+ //
2142+ // "If f is an embedded field, it must be reachable without pointer
2143+ // indirections through fields of the struct. "
2144+ //
2145+ // Example:
2146+ // import "unsafe"
2147+ //
2148+ // type T struct { f int }
2149+ // type S struct { *T }
2150+ // var s S
2151+ // var _ = unsafe.Offsetof(s.f)
2152+ //
2153+ // Example:
2154+ // import "unsafe"
2155+ //
2156+ // type S struct{}
2157+ //
2158+ // func (S) m() {}
2159+ //
2160+ // var s S
2161+ // var _ = unsafe.Offsetof(s.m)
2162+ InvalidOffsetof
2163+
2164+ /* control flow > scope */
2165+
2166+ // UnusedExpr occurs when a side-effect free expression is used as a
2167+ // statement. Such a statement has no effect.
2168+ //
2169+ // Example:
2170+ // func f(i int) {
2171+ // i*i
2172+ // }
2173+ UnusedExpr
2174+
2175+ // UnusedVar occurs when a variable is declared but unused.
2176+ //
2177+ // Example:
2178+ // func f() {
2179+ // x := 1
2180+ // }
2181+ UnusedVar
2182+
2183+ // MissingReturn occurs when a function with results is missing a return
2184+ // statement.
2185+ //
2186+ // Example:
2187+ // func f() int {}
2188+ MissingReturn
2189+
2190+ // WrongResultCount occurs when a return statement returns an incorrect
2191+ // number of values.
2192+ //
2193+ // Example:
2194+ // func ReturnOne() int {
2195+ // return 1, 2
2196+ // }
2197+ WrongResultCount
2198+
2199+ // OutOfScopeResult occurs when the name of a value implicitly returned by
2200+ // an empty return statement is shadowed in a nested scope.
2201+ //
2202+ // Example:
2203+ // func factor(n int) (i int) {
2204+ // for i := 2; i < n; i++ {
2205+ // if n%i == 0 {
2206+ // return
2207+ // }
2208+ // }
2209+ // return 0
2210+ // }
2211+ OutOfScopeResult
2212+
2213+ /* control flow > if */
2214+
2215+ // InvalidCond occurs when an if condition is not a boolean expression.
2216+ //
2217+ // Example:
2218+ // func checkReturn(i int) {
2219+ // if i {
2220+ // panic("non-zero return")
2221+ // }
2222+ // }
2223+ InvalidCond
2224+
2225+ /* control flow > for */
2226+
2227+ // InvalidPostDecl occurs when there is a declaration in a for-loop post
2228+ // statement.
2229+ //
2230+ // Example:
2231+ // func f() {
2232+ // for i := 0; i < 10; j := 0 {}
2233+ // }
2234+ InvalidPostDecl
2235+
2236+ // InvalidChanRange occurs when a send-only channel used in a range
2237+ // expression.
2238+ //
2239+ // Example:
2240+ // func sum(c chan<- int) {
2241+ // s := 0
2242+ // for i := range c {
2243+ // s += i
2244+ // }
2245+ // }
2246+ InvalidChanRange
2247+
2248+ // InvalidIterVar occurs when two iteration variables are used while ranging
2249+ // over a channel.
2250+ //
2251+ // Example:
2252+ // func f(c chan int) {
2253+ // for k, v := range c {
2254+ // println(k, v)
2255+ // }
2256+ // }
2257+ InvalidIterVar
2258+
2259+ // InvalidRangeExpr occurs when the type of a range expression is not array,
2260+ // slice, string, map, or channel.
2261+ //
2262+ // Example:
2263+ // func f(i int) {
2264+ // for j := range i {
2265+ // println(j)
2266+ // }
2267+ // }
2268+ InvalidRangeExpr
2269+
2270+ /* control flow > switch */
2271+
2272+ // MisplacedBreak occurs when a break statement is not within a for, switch,
2273+ // or select statement of the innermost function definition.
2274+ //
2275+ // Example:
2276+ // func f() {
2277+ // break
2278+ // }
2279+ MisplacedBreak
2280+
2281+ // MisplacedContinue occurs when a continue statement is not within a for
2282+ // loop of the innermost function definition.
2283+ //
2284+ // Example:
2285+ // func sumeven(n int) int {
2286+ // proceed := func() {
2287+ // continue
2288+ // }
2289+ // sum := 0
2290+ // for i := 1; i <= n; i++ {
2291+ // if i % 2 != 0 {
2292+ // proceed()
2293+ // }
2294+ // sum += i
2295+ // }
2296+ // return sum
2297+ // }
2298+ MisplacedContinue
2299+
2300+ // MisplacedFallthrough occurs when a fallthrough statement is not within an
2301+ // expression switch.
2302+ //
2303+ // Example:
2304+ // func typename(i interface{}) string {
2305+ // switch i.(type) {
2306+ // case int64:
2307+ // fallthrough
2308+ // case int:
2309+ // return "int"
2310+ // }
2311+ // return "unsupported"
2312+ // }
2313+ MisplacedFallthrough
2314+
2315+ // DuplicateCase occurs when a type or expression switch has duplicate
2316+ // cases.
2317+ //
2318+ // Example:
2319+ // func printInt(i int) {
2320+ // switch i {
2321+ // case 1:
2322+ // println("one")
2323+ // case 1:
2324+ // println("One")
2325+ // }
2326+ // }
2327+ DuplicateCase
2328+
2329+ // DuplicateDefault occurs when a type or expression switch has multiple
2330+ // default clauses.
2331+ //
2332+ // Example:
2333+ // func printInt(i int) {
2334+ // switch i {
2335+ // case 1:
2336+ // println("one")
2337+ // default:
2338+ // println("One")
2339+ // default:
2340+ // println("1")
2341+ // }
2342+ // }
2343+ DuplicateDefault
2344+
2345+ // BadTypeKeyword occurs when a .(type) expression is used anywhere other
2346+ // than a type switch.
2347+ //
2348+ // Example:
2349+ // type I interface {
2350+ // m()
2351+ // }
2352+ // var t I
2353+ // var _ = t.(type)
2354+ BadTypeKeyword
2355+
2356+ // InvalidTypeSwitch occurs when .(type) is used on an expression that is
2357+ // not of interface type.
2358+ //
2359+ // Example:
2360+ // func f(i int) {
2361+ // switch x := i.(type) {}
2362+ // }
2363+ InvalidTypeSwitch
2364+
2365+ /* control flow > select */
2366+
2367+ // InvalidSelectCase occurs when a select case is not a channel send or
2368+ // receive.
2369+ //
2370+ // Example:
2371+ // func checkChan(c <-chan int) bool {
2372+ // select {
2373+ // case c:
2374+ // return true
2375+ // default:
2376+ // return false
2377+ // }
2378+ // }
2379+ InvalidSelectCase
2380+
2381+ /* control flow > labels and jumps */
2382+
2383+ // UndeclaredLabel occurs when an undeclared label is jumped to.
2384+ //
2385+ // Example:
2386+ // func f() {
2387+ // goto L
2388+ // }
2389+ UndeclaredLabel
2390+
2391+ // DuplicateLabel occurs when a label is declared more than once.
2392+ //
2393+ // Example:
2394+ // func f() int {
2395+ // L:
2396+ // L:
2397+ // return 1
2398+ // }
2399+ DuplicateLabel
2400+
2401+ // MisplacedLabel occurs when a break or continue label is not on a for,
2402+ // switch, or select statement.
2403+ //
2404+ // Example:
2405+ // func f() {
2406+ // L:
2407+ // a := []int{1,2,3}
2408+ // for _, e := range a {
2409+ // if e > 10 {
2410+ // break L
2411+ // }
2412+ // println(a)
2413+ // }
2414+ // }
2415+ MisplacedLabel
2416+
2417+ // UnusedLabel occurs when a label is declared but not used.
2418+ //
2419+ // Example:
2420+ // func f() {
2421+ // L:
2422+ // }
2423+ UnusedLabel
2424+
2425+ // JumpOverDecl occurs when a label jumps over a variable declaration.
2426+ //
2427+ // Example:
2428+ // func f() int {
2429+ // goto L
2430+ // x := 2
2431+ // L:
2432+ // x++
2433+ // return x
2434+ // }
2435+ JumpOverDecl
2436+
2437+ // JumpIntoBlock occurs when a forward jump goes to a label inside a nested
2438+ // block.
2439+ //
2440+ // Example:
2441+ // func f(x int) {
2442+ // goto L
2443+ // if x > 0 {
2444+ // L:
2445+ // print("inside block")
2446+ // }
2447+ // }
2448+ JumpIntoBlock
2449+
2450+ /* control flow > calls */
2451+
2452+ // InvalidMethodExpr occurs when a pointer method is called but the argument
2453+ // is not addressable.
2454+ //
2455+ // Example:
2456+ // type T struct {}
2457+ //
2458+ // func (*T) m() int { return 1 }
2459+ //
2460+ // var _ = T.m(T{})
2461+ InvalidMethodExpr
2462+
2463+ // WrongArgCount occurs when too few or too many arguments are passed by a
2464+ // function call.
2465+ //
2466+ // Example:
2467+ // func f(i int) {}
2468+ // var x = f()
2469+ WrongArgCount
2470+
2471+ // InvalidCall occurs when an expression is called that is not of function
2472+ // type.
2473+ //
2474+ // Example:
2475+ // var x = "x"
2476+ // var y = x()
2477+ InvalidCall
2478+
2479+ /* control flow > suspended */
2480+
2481+ // UnusedResults occurs when a restricted expression-only built-in function
2482+ // is suspended via go or defer. Such a suspension discards the results of
2483+ // these side-effect free built-in functions, and therefore is ineffectual.
2484+ //
2485+ // Example:
2486+ // func f(a []int) int {
2487+ // defer len(a)
2488+ // return i
2489+ // }
2490+ UnusedResults
2491+
2492+ // InvalidDefer occurs when a deferred expression is not a function call,
2493+ // for example if the expression is a type conversion.
2494+ //
2495+ // Example:
2496+ // func f(i int) int {
2497+ // defer int32(i)
2498+ // return i
2499+ // }
2500+ InvalidDefer
2501+
2502+ // InvalidGo occurs when a go expression is not a function call, for example
2503+ // if the expression is a type conversion.
2504+ //
2505+ // Example:
2506+ // func f(i int) int {
2507+ // go int32(i)
2508+ // return i
2509+ // }
2510+ InvalidGo
2511+)
2512diff --git a/vendor/golang.org/x/tools/internal/typesinternal/errorcode_string.go b/vendor/golang.org/x/tools/internal/typesinternal/errorcode_string.go
2513new file mode 100644
2514index 0000000..97f3ec8
2515--- /dev/null
2516+++ b/vendor/golang.org/x/tools/internal/typesinternal/errorcode_string.go
2517@@ -0,0 +1,152 @@
2518+// Code generated by "stringer -type=ErrorCode"; DO NOT EDIT.
2519+
2520+package typesinternal
2521+
2522+import "strconv"
2523+
2524+func _() {
2525+ // An "invalid array index" compiler error signifies that the constant values have changed.
2526+ // Re-run the stringer command to generate them again.
2527+ var x [1]struct{}
2528+ _ = x[Test-1]
2529+ _ = x[BlankPkgName-2]
2530+ _ = x[MismatchedPkgName-3]
2531+ _ = x[InvalidPkgUse-4]
2532+ _ = x[BadImportPath-5]
2533+ _ = x[BrokenImport-6]
2534+ _ = x[ImportCRenamed-7]
2535+ _ = x[UnusedImport-8]
2536+ _ = x[InvalidInitCycle-9]
2537+ _ = x[DuplicateDecl-10]
2538+ _ = x[InvalidDeclCycle-11]
2539+ _ = x[InvalidTypeCycle-12]
2540+ _ = x[InvalidConstInit-13]
2541+ _ = x[InvalidConstVal-14]
2542+ _ = x[InvalidConstType-15]
2543+ _ = x[UntypedNil-16]
2544+ _ = x[WrongAssignCount-17]
2545+ _ = x[UnassignableOperand-18]
2546+ _ = x[NoNewVar-19]
2547+ _ = x[MultiValAssignOp-20]
2548+ _ = x[InvalidIfaceAssign-21]
2549+ _ = x[InvalidChanAssign-22]
2550+ _ = x[IncompatibleAssign-23]
2551+ _ = x[UnaddressableFieldAssign-24]
2552+ _ = x[NotAType-25]
2553+ _ = x[InvalidArrayLen-26]
2554+ _ = x[BlankIfaceMethod-27]
2555+ _ = x[IncomparableMapKey-28]
2556+ _ = x[InvalidIfaceEmbed-29]
2557+ _ = x[InvalidPtrEmbed-30]
2558+ _ = x[BadRecv-31]
2559+ _ = x[InvalidRecv-32]
2560+ _ = x[DuplicateFieldAndMethod-33]
2561+ _ = x[DuplicateMethod-34]
2562+ _ = x[InvalidBlank-35]
2563+ _ = x[InvalidIota-36]
2564+ _ = x[MissingInitBody-37]
2565+ _ = x[InvalidInitSig-38]
2566+ _ = x[InvalidInitDecl-39]
2567+ _ = x[InvalidMainDecl-40]
2568+ _ = x[TooManyValues-41]
2569+ _ = x[NotAnExpr-42]
2570+ _ = x[TruncatedFloat-43]
2571+ _ = x[NumericOverflow-44]
2572+ _ = x[UndefinedOp-45]
2573+ _ = x[MismatchedTypes-46]
2574+ _ = x[DivByZero-47]
2575+ _ = x[NonNumericIncDec-48]
2576+ _ = x[UnaddressableOperand-49]
2577+ _ = x[InvalidIndirection-50]
2578+ _ = x[NonIndexableOperand-51]
2579+ _ = x[InvalidIndex-52]
2580+ _ = x[SwappedSliceIndices-53]
2581+ _ = x[NonSliceableOperand-54]
2582+ _ = x[InvalidSliceExpr-55]
2583+ _ = x[InvalidShiftCount-56]
2584+ _ = x[InvalidShiftOperand-57]
2585+ _ = x[InvalidReceive-58]
2586+ _ = x[InvalidSend-59]
2587+ _ = x[DuplicateLitKey-60]
2588+ _ = x[MissingLitKey-61]
2589+ _ = x[InvalidLitIndex-62]
2590+ _ = x[OversizeArrayLit-63]
2591+ _ = x[MixedStructLit-64]
2592+ _ = x[InvalidStructLit-65]
2593+ _ = x[MissingLitField-66]
2594+ _ = x[DuplicateLitField-67]
2595+ _ = x[UnexportedLitField-68]
2596+ _ = x[InvalidLitField-69]
2597+ _ = x[UntypedLit-70]
2598+ _ = x[InvalidLit-71]
2599+ _ = x[AmbiguousSelector-72]
2600+ _ = x[UndeclaredImportedName-73]
2601+ _ = x[UnexportedName-74]
2602+ _ = x[UndeclaredName-75]
2603+ _ = x[MissingFieldOrMethod-76]
2604+ _ = x[BadDotDotDotSyntax-77]
2605+ _ = x[NonVariadicDotDotDot-78]
2606+ _ = x[MisplacedDotDotDot-79]
2607+ _ = x[InvalidDotDotDotOperand-80]
2608+ _ = x[InvalidDotDotDot-81]
2609+ _ = x[UncalledBuiltin-82]
2610+ _ = x[InvalidAppend-83]
2611+ _ = x[InvalidCap-84]
2612+ _ = x[InvalidClose-85]
2613+ _ = x[InvalidCopy-86]
2614+ _ = x[InvalidComplex-87]
2615+ _ = x[InvalidDelete-88]
2616+ _ = x[InvalidImag-89]
2617+ _ = x[InvalidLen-90]
2618+ _ = x[SwappedMakeArgs-91]
2619+ _ = x[InvalidMake-92]
2620+ _ = x[InvalidReal-93]
2621+ _ = x[InvalidAssert-94]
2622+ _ = x[ImpossibleAssert-95]
2623+ _ = x[InvalidConversion-96]
2624+ _ = x[InvalidUntypedConversion-97]
2625+ _ = x[BadOffsetofSyntax-98]
2626+ _ = x[InvalidOffsetof-99]
2627+ _ = x[UnusedExpr-100]
2628+ _ = x[UnusedVar-101]
2629+ _ = x[MissingReturn-102]
2630+ _ = x[WrongResultCount-103]
2631+ _ = x[OutOfScopeResult-104]
2632+ _ = x[InvalidCond-105]
2633+ _ = x[InvalidPostDecl-106]
2634+ _ = x[InvalidChanRange-107]
2635+ _ = x[InvalidIterVar-108]
2636+ _ = x[InvalidRangeExpr-109]
2637+ _ = x[MisplacedBreak-110]
2638+ _ = x[MisplacedContinue-111]
2639+ _ = x[MisplacedFallthrough-112]
2640+ _ = x[DuplicateCase-113]
2641+ _ = x[DuplicateDefault-114]
2642+ _ = x[BadTypeKeyword-115]
2643+ _ = x[InvalidTypeSwitch-116]
2644+ _ = x[InvalidSelectCase-117]
2645+ _ = x[UndeclaredLabel-118]
2646+ _ = x[DuplicateLabel-119]
2647+ _ = x[MisplacedLabel-120]
2648+ _ = x[UnusedLabel-121]
2649+ _ = x[JumpOverDecl-122]
2650+ _ = x[JumpIntoBlock-123]
2651+ _ = x[InvalidMethodExpr-124]
2652+ _ = x[WrongArgCount-125]
2653+ _ = x[InvalidCall-126]
2654+ _ = x[UnusedResults-127]
2655+ _ = x[InvalidDefer-128]
2656+ _ = x[InvalidGo-129]
2657+}
2658+
2659+const _ErrorCode_name = "TestBlankPkgNameMismatchedPkgNameInvalidPkgUseBadImportPathBrokenImportImportCRenamedUnusedImportInvalidInitCycleDuplicateDeclInvalidDeclCycleInvalidTypeCycleInvalidConstInitInvalidConstValInvalidConstTypeUntypedNilWrongAssignCountUnassignableOperandNoNewVarMultiValAssignOpInvalidIfaceAssignInvalidChanAssignIncompatibleAssignUnaddressableFieldAssignNotATypeInvalidArrayLenBlankIfaceMethodIncomparableMapKeyInvalidIfaceEmbedInvalidPtrEmbedBadRecvInvalidRecvDuplicateFieldAndMethodDuplicateMethodInvalidBlankInvalidIotaMissingInitBodyInvalidInitSigInvalidInitDeclInvalidMainDeclTooManyValuesNotAnExprTruncatedFloatNumericOverflowUndefinedOpMismatchedTypesDivByZeroNonNumericIncDecUnaddressableOperandInvalidIndirectionNonIndexableOperandInvalidIndexSwappedSliceIndicesNonSliceableOperandInvalidSliceExprInvalidShiftCountInvalidShiftOperandInvalidReceiveInvalidSendDuplicateLitKeyMissingLitKeyInvalidLitIndexOversizeArrayLitMixedStructLitInvalidStructLitMissingLitFieldDuplicateLitFieldUnexportedLitFieldInvalidLitFieldUntypedLitInvalidLitAmbiguousSelectorUndeclaredImportedNameUnexportedNameUndeclaredNameMissingFieldOrMethodBadDotDotDotSyntaxNonVariadicDotDotDotMisplacedDotDotDotInvalidDotDotDotOperandInvalidDotDotDotUncalledBuiltinInvalidAppendInvalidCapInvalidCloseInvalidCopyInvalidComplexInvalidDeleteInvalidImagInvalidLenSwappedMakeArgsInvalidMakeInvalidRealInvalidAssertImpossibleAssertInvalidConversionInvalidUntypedConversionBadOffsetofSyntaxInvalidOffsetofUnusedExprUnusedVarMissingReturnWrongResultCountOutOfScopeResultInvalidCondInvalidPostDeclInvalidChanRangeInvalidIterVarInvalidRangeExprMisplacedBreakMisplacedContinueMisplacedFallthroughDuplicateCaseDuplicateDefaultBadTypeKeywordInvalidTypeSwitchInvalidSelectCaseUndeclaredLabelDuplicateLabelMisplacedLabelUnusedLabelJumpOverDeclJumpIntoBlockInvalidMethodExprWrongArgCountInvalidCallUnusedResultsInvalidDeferInvalidGo"
2660+
2661+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}
2662+
2663+func (i ErrorCode) String() string {
2664+ i -= 1
2665+ if i < 0 || i >= ErrorCode(len(_ErrorCode_index)-1) {
2666+ return "ErrorCode(" + strconv.FormatInt(int64(i+1), 10) + ")"
2667+ }
2668+ return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]]
2669+}
2670diff --git a/vendor/golang.org/x/tools/internal/typesinternal/types.go b/vendor/golang.org/x/tools/internal/typesinternal/types.go
2671index a5bb408..c3e1a39 100644
2672--- a/vendor/golang.org/x/tools/internal/typesinternal/types.go
2673+++ b/vendor/golang.org/x/tools/internal/typesinternal/types.go
2674@@ -2,9 +2,12 @@
2675 // Use of this source code is governed by a BSD-style
2676 // license that can be found in the LICENSE file.
2677
2678+// Package typesinternal provides access to internal go/types APIs that are not
2679+// yet exported.
2680 package typesinternal
2681
2682 import (
2683+ "go/token"
2684 "go/types"
2685 "reflect"
2686 "unsafe"
2687@@ -26,3 +29,17 @@ func SetUsesCgo(conf *types.Config) bool {
2688
2689 return true
2690 }
2691+
2692+func ReadGo116ErrorData(terr types.Error) (ErrorCode, token.Pos, token.Pos, bool) {
2693+ var data [3]int
2694+ // By coincidence all of these fields are ints, which simplifies things.
2695+ v := reflect.ValueOf(terr)
2696+ for i, name := range []string{"go116code", "go116start", "go116end"} {
2697+ f := v.FieldByName(name)
2698+ if !f.IsValid() {
2699+ return 0, 0, 0, false
2700+ }
2701+ data[i] = int(f.Int())
2702+ }
2703+ return ErrorCode(data[0]), token.Pos(data[1]), token.Pos(data[2]), true
2704+}
2705diff --git a/vendor/modules.txt b/vendor/modules.txt
2706index dc6e25d..6681e7b 100644
2707--- a/vendor/modules.txt
2708+++ b/vendor/modules.txt
2709@@ -419,7 +419,7 @@ github.com/gobwas/glob/util/strings
2710 github.com/gofrs/uuid
2711 # github.com/gogo/googleapis v1.3.1
2712 github.com/gogo/googleapis/google/api
2713-# github.com/gogo/protobuf v1.3.1
2714+# github.com/gogo/protobuf v1.3.2
2715 ## explicit
2716 github.com/gogo/protobuf/gogoproto
2717 github.com/gogo/protobuf/jsonpb
2718@@ -1002,7 +1002,7 @@ golang.org/x/text/unicode/norm
2719 golang.org/x/text/width
2720 # golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
2721 golang.org/x/time/rate
2722-# golang.org/x/tools v0.0.0-20201022035929-9cf592e881e9
2723+# golang.org/x/tools v0.0.0-20210106214847-113979e3529a
2724 golang.org/x/tools/cmd/goimports
2725 golang.org/x/tools/go/analysis
2726 golang.org/x/tools/go/analysis/passes/inspect
diff --git a/debian/patches/series b/debian/patches/series
index 7de5f2c..34bbc19 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
1adjust-service-user.patch1adjust-service-user.patch
2adjust-etc-telegraf.conf.patch2adjust-etc-telegraf.conf.patch
3CVE-2021-3121.patch
diff --git a/debian/repack-telegraf-with-vendor.sh b/debian/repack-telegraf-with-vendor.sh
index a13a5e7..2be0ed5 100755
--- a/debian/repack-telegraf-with-vendor.sh
+++ b/debian/repack-telegraf-with-vendor.sh
@@ -18,9 +18,15 @@ GOBIN=${GOBIN:-go}
18upstream_version="$2"18upstream_version="$2"
19orig_tar=$(realpath "../telegraf_${upstream_version}.orig.tar.xz")19orig_tar=$(realpath "../telegraf_${upstream_version}.orig.tar.xz")
20orig_dir="$PWD"20orig_dir="$PWD"
21work_dir="$(mktemp -d)"21work_dir=$(mktemp -d)
2222
23trap "rm -rf $work_dir" INT QUIT 023cleanup ()
24{
25 "$GOBIN" clean -cache -modcache
26 rm -rf "$work_dir"
27}
28
29trap cleanup INT QUIT 0
2430
25export GOPATH="$work_dir/.gopath"31export GOPATH="$work_dir/.gopath"
26export GOCACHE="$work_dir/.gocache"32export GOCACHE="$work_dir/.gocache"
@@ -28,13 +34,12 @@ export GOCACHE="$work_dir/.gocache"
28printf "Unpacking tarball '$orig_tar' to '$work_dir'"34printf "Unpacking tarball '$orig_tar' to '$work_dir'"
2935
30tar xf "$orig_tar" -C "$work_dir"36tar xf "$orig_tar" -C "$work_dir"
31source_dir_name="$(ls -1 "$work_dir")"37source_dir_name=$(ls -1 "$work_dir")
32cd "$work_dir/$source_dir_name"38cd "$work_dir/$source_dir_name"
33$GOBIN mod vendor39"$GOBIN" mod vendor
34cd ..40cd ..
35tar cJf "$orig_tar" "$source_dir_name"41tar cJf "$orig_tar" "$source_dir_name"
3642
37$GOBIN clean -cache -modcache43cleanup
38rm -rf "$work_dir"
3944
40exit 045exit 0
diff --git a/docker-compose.yml b/docker-compose.yml
index 092a7b9..1da9d2a 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -40,6 +40,9 @@ services:
40 - MYSQL_ALLOW_EMPTY_PASSWORD=yes40 - MYSQL_ALLOW_EMPTY_PASSWORD=yes
41 ports:41 ports:
42 - "3306:3306"42 - "3306:3306"
43 # removes warning "mbind operation not permitted" enables you to see the docker logs
44 cap_add:
45 - SYS_NICE # CAP_SYS_NICE
43 memcached:46 memcached:
44 image: memcached47 image: memcached
45 ports:48 ports:
diff --git a/docs/DATA_FORMATS_INPUT.md b/docs/DATA_FORMATS_INPUT.md
index dbcb283..3e7dd10 100644
--- a/docs/DATA_FORMATS_INPUT.md
+++ b/docs/DATA_FORMATS_INPUT.md
@@ -17,6 +17,7 @@ Protocol or in JSON format.
17- [Prometheus](/plugins/parsers/prometheus)17- [Prometheus](/plugins/parsers/prometheus)
18- [Value](/plugins/parsers/value), ie: 45 or "booyah"18- [Value](/plugins/parsers/value), ie: 45 or "booyah"
19- [Wavefront](/plugins/parsers/wavefront)19- [Wavefront](/plugins/parsers/wavefront)
20- [XML](/plugins/parsers/xml)
2021
21Any input plugin containing the `data_format` option can use it to select the22Any input plugin containing the `data_format` option can use it to select the
22desired parser:23desired parser:
diff --git a/docs/DATA_FORMATS_OUTPUT.md b/docs/DATA_FORMATS_OUTPUT.md
index 0d0bdff..720c922 100644
--- a/docs/DATA_FORMATS_OUTPUT.md
+++ b/docs/DATA_FORMATS_OUTPUT.md
@@ -8,6 +8,7 @@ plugins.
81. [Carbon2](/plugins/serializers/carbon2)81. [Carbon2](/plugins/serializers/carbon2)
91. [Graphite](/plugins/serializers/graphite)91. [Graphite](/plugins/serializers/graphite)
101. [JSON](/plugins/serializers/json)101. [JSON](/plugins/serializers/json)
111. [MessagePack](/plugins/serializers/msgpack)
111. [Prometheus](/plugins/serializers/prometheus)121. [Prometheus](/plugins/serializers/prometheus)
121. [Prometheus Remote Write](/plugins/serializers/prometheusremotewrite)131. [Prometheus Remote Write](/plugins/serializers/prometheusremotewrite)
131. [ServiceNow Metrics](/plugins/serializers/nowmetric)141. [ServiceNow Metrics](/plugins/serializers/nowmetric)
diff --git a/docs/EXTERNAL_PLUGINS.md b/docs/EXTERNAL_PLUGINS.md
index abef068..83759ed 100644
--- a/docs/EXTERNAL_PLUGINS.md
+++ b/docs/EXTERNAL_PLUGINS.md
@@ -8,6 +8,8 @@ more flexibility compared to internal Telegraf plugins.
8- External plugins can access to libraries not written in Go8- External plugins can access to libraries not written in Go
9- Utilize licensed software that isn't available to the open source community9- Utilize licensed software that isn't available to the open source community
10- Can include large dependencies that would otherwise bloat Telegraf10- Can include large dependencies that would otherwise bloat Telegraf
11- You don't need to wait on the Telegraf team to publish your plugin and start working with it.
12- using the [shim](/plugins/common/shim) you can easily convert plugins between internal and external use
1113
12### External Plugin Guidelines14### External Plugin Guidelines
13The guidelines of writing external plugins would follow those for our general [input](/docs/INPUTS.md),15The guidelines of writing external plugins would follow those for our general [input](/docs/INPUTS.md),
@@ -59,10 +61,9 @@ This is a guide to help you set up your plugin to use it with `execd`
59 [openvpn](https://github.com/danielnelson/telegraf-execd-openvpn#usage) and [awsalarms](https://github.com/vipinvkmenon/awsalarms#installation) 61 [openvpn](https://github.com/danielnelson/telegraf-execd-openvpn#usage) and [awsalarms](https://github.com/vipinvkmenon/awsalarms#installation)
60 for examples. Include the following steps:62 for examples. Include the following steps:
61 1. How to download the release package for your platform or how to clone the binary for your external plugin63 1. How to download the release package for your platform or how to clone the binary for your external plugin
62 1. The commands to unpack or build your binary64 1. The commands to build your binary
63 1. Location to edit your `telegraf.conf`65 1. Location to edit your `telegraf.conf`
64 1. Configuration to run your external plugin with [inputs.execd](/plugins/inputs/execd), 66 1. Configuration to run your external plugin with [inputs.execd](/plugins/inputs/execd),
65 [processors.execd](/plugins/processors/execd) or [outputs.execd](/plugins/outputs/execd)67 [processors.execd](/plugins/processors/execd) or [outputs.execd](/plugins/outputs/execd)
66 1. Note that restart or reload of Telegraf is required
67 1. Submit your plugin by opening a PR to add your external plugin to the [/EXTERNAL_PLUGINS.md](/EXTERNAL_PLUGINS.md) 68 1. Submit your plugin by opening a PR to add your external plugin to the [/EXTERNAL_PLUGINS.md](/EXTERNAL_PLUGINS.md)
68 list. Please include the plugin name, link to the plugin repository and a short description of the plugin. 69 list. Please include the plugin name, link to the plugin repository and a short description of the plugin.
diff --git a/docs/FAQ.md b/docs/FAQ.md
index 4fe28db..3667c10 100644
--- a/docs/FAQ.md
+++ b/docs/FAQ.md
@@ -50,8 +50,6 @@ You can use the following techniques to avoid cardinality issues:
5050
51- Use [metric filtering][] options to exclude unneeded measurements and tags.51- Use [metric filtering][] options to exclude unneeded measurements and tags.
52- Write to a database with an appropriate [retention policy][].52- Write to a database with an appropriate [retention policy][].
53- Limit series cardinality in your database using the
54 [max-series-per-database][] and [max-values-per-tag][] settings.
55- Consider using the [Time Series Index][tsi].53- Consider using the [Time Series Index][tsi].
56- Monitor your databases using the [show cardinality][] commands.54- Monitor your databases using the [show cardinality][] commands.
57- Consult the [InfluxDB documentation][influx docs] for the most up-to-date techniques.55- Consult the [InfluxDB documentation][influx docs] for the most up-to-date techniques.
@@ -59,8 +57,6 @@ You can use the following techniques to avoid cardinality issues:
59[series cardinality]: https://docs.influxdata.com/influxdb/v1.7/concepts/glossary/#series-cardinality57[series cardinality]: https://docs.influxdata.com/influxdb/v1.7/concepts/glossary/#series-cardinality
60[metric filtering]: https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md#metric-filtering58[metric filtering]: https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md#metric-filtering
61[retention policy]: https://docs.influxdata.com/influxdb/latest/guides/downsampling_and_retention/59[retention policy]: https://docs.influxdata.com/influxdb/latest/guides/downsampling_and_retention/
62[max-series-per-database]: https://docs.influxdata.com/influxdb/latest/administration/config/#max-series-per-database-1000000
63[max-values-per-tag]: https://docs.influxdata.com/influxdb/latest/administration/config/#max-values-per-tag-100000
64[tsi]: https://docs.influxdata.com/influxdb/latest/concepts/time-series-index/60[tsi]: https://docs.influxdata.com/influxdb/latest/concepts/time-series-index/
65[show cardinality]: https://docs.influxdata.com/influxdb/latest/query_language/spec/#show-cardinality61[show cardinality]: https://docs.influxdata.com/influxdb/latest/query_language/spec/#show-cardinality
66[influx docs]: https://docs.influxdata.com/influxdb/latest/62[influx docs]: https://docs.influxdata.com/influxdb/latest/
diff --git a/docs/INTEGRATION_TESTS.md b/docs/INTEGRATION_TESTS.md
67new file mode 10064463new file mode 100644
index 0000000..b7af829
--- /dev/null
+++ b/docs/INTEGRATION_TESTS.md
@@ -0,0 +1,61 @@
1# Integration Tests
2
3To run our current integration test suite:
4
5Running the integration tests requires several docker containers to be
6running. You can start the containers with:
7```
8docker-compose up
9```
10
11To run only the integration tests use:
12
13```
14make test-integration
15```
16
17Use `make docker-kill` to stop the containers.
18
19Contributing integration tests:
20
21- Add Integration to the end of the test name so it will be run with the above command.
22- Writes tests where no library is being used in the plugin
23- There is poor code coverage
24- It has dynamic code that only gets run at runtime eg: SQL
25
26Current areas we have integration tests:
27
28| Area | What it does |
29|------------------------------------|-------------------------------------------|
30| Inputs: Aerospike | |
31| Inputs: Disque | |
32| Inputs: Dovecot | |
33| Inputs: Mcrouter | |
34| Inputs: Memcached | |
35| Inputs: Mysql | |
36| Inputs: Opcua | |
37| Inputs: Openldap | |
38| Inputs: Pgbouncer | |
39| Inputs: Postgresql | |
40| Inputs: Postgresql extensible | |
41| Inputs: Procstat / Native windows | |
42| Inputs: Prometheus | |
43| Inputs: Redis | |
44| Inputs: Sqlserver | |
45| Inputs: Win perf counters | |
46| Inputs: Win services | |
47| Inputs: Zookeeper | |
48| Outputs: Cratedb / Postgres | |
49| Outputs: Elasticsearch | |
50| Outputs: Kafka | |
51| Outputs: MQTT | |
52| Outputs: Nats | |
53| Outputs: NSQ | |
54
55Areas we would benefit most from new integration tests:
56
57| Area |
58|------------------------------------|
59| SNMP |
60| MYSQL |
61| SQLSERVER |
diff --git a/docs/LICENSE_OF_DEPENDENCIES.md b/docs/LICENSE_OF_DEPENDENCIES.md
index 14c4644..0aff4fb 100644
--- a/docs/LICENSE_OF_DEPENDENCIES.md
+++ b/docs/LICENSE_OF_DEPENDENCIES.md
@@ -21,12 +21,24 @@ following works:
21- github.com/aerospike/aerospike-client-go [Apache License 2.0](https://github.com/aerospike/aerospike-client-go/blob/master/LICENSE)21- github.com/aerospike/aerospike-client-go [Apache License 2.0](https://github.com/aerospike/aerospike-client-go/blob/master/LICENSE)
22- github.com/alecthomas/units [MIT License](https://github.com/alecthomas/units/blob/master/COPYING)22- github.com/alecthomas/units [MIT License](https://github.com/alecthomas/units/blob/master/COPYING)
23- github.com/amir/raidman [The Unlicense](https://github.com/amir/raidman/blob/master/UNLICENSE)23- github.com/amir/raidman [The Unlicense](https://github.com/amir/raidman/blob/master/UNLICENSE)
24- github.com/antchfx/xmlquery [MIT License](https://github.com/antchfx/xmlquery/blob/master/LICENSE)
25- github.com/antchfx/xpath [MIT License](https://github.com/antchfx/xpath/blob/master/LICENSE)
24- github.com/apache/thrift [Apache License 2.0](https://github.com/apache/thrift/blob/master/LICENSE)26- github.com/apache/thrift [Apache License 2.0](https://github.com/apache/thrift/blob/master/LICENSE)
25- github.com/aristanetworks/glog [Apache License 2.0](https://github.com/aristanetworks/glog/blob/master/LICENSE)27- github.com/aristanetworks/glog [Apache License 2.0](https://github.com/aristanetworks/glog/blob/master/LICENSE)
26- github.com/aristanetworks/goarista [Apache License 2.0](https://github.com/aristanetworks/goarista/blob/master/COPYING)28- github.com/aristanetworks/goarista [Apache License 2.0](https://github.com/aristanetworks/goarista/blob/master/COPYING)
27- github.com/aws/aws-sdk-go [Apache License 2.0](https://github.com/aws/aws-sdk-go/blob/master/LICENSE.txt)29- github.com/aws/aws-sdk-go [Apache License 2.0](https://github.com/aws/aws-sdk-go/blob/master/LICENSE.txt)
30- github.com/aws/aws-sdk-go-v2 [Apache License 2.0](https://github.com/aws/aws-sdk-go-v2/blob/main/LICENSE.txt)
31- 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)
32- 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)
33- 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)
34- 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)
35- 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)
36- 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)
37- 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)
38- github.com/aws/smithy-go [Apache License 2.0](https://github.com/aws/smithy-go/blob/main/LICENSE)
28- github.com/benbjohnson/clock [MIT License](https://github.com/benbjohnson/clock/blob/master/LICENSE)39- github.com/benbjohnson/clock [MIT License](https://github.com/benbjohnson/clock/blob/master/LICENSE)
29- github.com/beorn7/perks [MIT License](https://github.com/beorn7/perks/blob/master/LICENSE)40- github.com/beorn7/perks [MIT License](https://github.com/beorn7/perks/blob/master/LICENSE)
41- github.com/bmatcuk/doublestar [MIT License](https://github.com/bmatcuk/doublestar/blob/master/LICENSE)
30- github.com/caio/go-tdigest [MIT License](https://github.com/caio/go-tdigest/blob/master/LICENSE)42- github.com/caio/go-tdigest [MIT License](https://github.com/caio/go-tdigest/blob/master/LICENSE)
31- github.com/cenkalti/backoff [MIT License](https://github.com/cenkalti/backoff/blob/master/LICENSE)43- github.com/cenkalti/backoff [MIT License](https://github.com/cenkalti/backoff/blob/master/LICENSE)
32- github.com/cespare/xxhash [MIT License](https://github.com/cespare/xxhash/blob/master/LICENSE.txt)44- github.com/cespare/xxhash [MIT License](https://github.com/cespare/xxhash/blob/master/LICENSE.txt)
@@ -56,10 +68,12 @@ following works:
56- github.com/go-ping/ping [MIT License](https://github.com/go-ping/ping/blob/master/LICENSE)68- github.com/go-ping/ping [MIT License](https://github.com/go-ping/ping/blob/master/LICENSE)
57- github.com/go-redis/redis [BSD 2-Clause "Simplified" License](https://github.com/go-redis/redis/blob/master/LICENSE)69- github.com/go-redis/redis [BSD 2-Clause "Simplified" License](https://github.com/go-redis/redis/blob/master/LICENSE)
58- github.com/go-sql-driver/mysql [Mozilla Public License 2.0](https://github.com/go-sql-driver/mysql/blob/master/LICENSE)70- github.com/go-sql-driver/mysql [Mozilla Public License 2.0](https://github.com/go-sql-driver/mysql/blob/master/LICENSE)
71- github.com/go-stack/stack [MIT License](https://github.com/go-stack/stack/blob/master/LICENSE.md)
59- github.com/goburrow/modbus [BSD 3-Clause "New" or "Revised" License](https://github.com/goburrow/modbus/blob/master/LICENSE)72- github.com/goburrow/modbus [BSD 3-Clause "New" or "Revised" License](https://github.com/goburrow/modbus/blob/master/LICENSE)
60- github.com/goburrow/serial [MIT License](https://github.com/goburrow/serial/LICENSE)73- github.com/goburrow/serial [MIT License](https://github.com/goburrow/serial/LICENSE)
61- github.com/gobwas/glob [MIT License](https://github.com/gobwas/glob/blob/master/LICENSE)74- github.com/gobwas/glob [MIT License](https://github.com/gobwas/glob/blob/master/LICENSE)
62- github.com/gofrs/uuid [MIT License](https://github.com/gofrs/uuid/blob/master/LICENSE)75- github.com/gofrs/uuid [MIT License](https://github.com/gofrs/uuid/blob/master/LICENSE)
76- github.com/gogo/googleapis [Apache License 2.0](https://github.com/gogo/googleapis/blob/master/LICENSE)
63- github.com/gogo/protobuf [BSD 3-Clause Clear License](https://github.com/gogo/protobuf/blob/master/LICENSE)77- github.com/gogo/protobuf [BSD 3-Clause Clear License](https://github.com/gogo/protobuf/blob/master/LICENSE)
64- github.com/golang/geo [Apache License 2.0](https://github.com/golang/geo/blob/master/LICENSE)78- github.com/golang/geo [Apache License 2.0](https://github.com/golang/geo/blob/master/LICENSE)
65- github.com/golang/groupcache [Apache License 2.0](https://github.com/golang/groupcache/blob/master/LICENSE)79- github.com/golang/groupcache [Apache License 2.0](https://github.com/golang/groupcache/blob/master/LICENSE)
@@ -71,6 +85,7 @@ following works:
71- github.com/googleapis/gax-go [BSD 3-Clause "New" or "Revised" License](https://github.com/googleapis/gax-go/blob/master/LICENSE)85- github.com/googleapis/gax-go [BSD 3-Clause "New" or "Revised" License](https://github.com/googleapis/gax-go/blob/master/LICENSE)
72- github.com/gopcua/opcua [MIT License](https://github.com/gopcua/opcua/blob/master/LICENSE)86- github.com/gopcua/opcua [MIT License](https://github.com/gopcua/opcua/blob/master/LICENSE)
73- github.com/gorilla/mux [BSD 3-Clause "New" or "Revised" License](https://github.com/gorilla/mux/blob/master/LICENSE)87- github.com/gorilla/mux [BSD 3-Clause "New" or "Revised" License](https://github.com/gorilla/mux/blob/master/LICENSE)
88- github.com/gorilla/websocket [BSD 2-Clause "Simplified" License](https://github.com/gorilla/websocket/blob/master/LICENSE)
74- github.com/gosnmp/gosnmp [BSD 2-Clause "Simplified" License](https://github.com/gosnmp/gosnmp/blob/master/LICENSE)89- github.com/gosnmp/gosnmp [BSD 2-Clause "Simplified" License](https://github.com/gosnmp/gosnmp/blob/master/LICENSE)
75- github.com/grpc-ecosystem/grpc-gateway [BSD 3-Clause "New" or "Revised" License](https://github.com/grpc-ecosystem/grpc-gateway/blob/master/LICENSE.txt)90- github.com/grpc-ecosystem/grpc-gateway [BSD 3-Clause "New" or "Revised" License](https://github.com/grpc-ecosystem/grpc-gateway/blob/master/LICENSE.txt)
76- github.com/hailocab/go-hostpool [MIT License](https://github.com/hailocab/go-hostpool/blob/master/LICENSE)91- github.com/hailocab/go-hostpool [MIT License](https://github.com/hailocab/go-hostpool/blob/master/LICENSE)
@@ -85,6 +100,8 @@ following works:
85- github.com/influxdata/toml [MIT License](https://github.com/influxdata/toml/blob/master/LICENSE)100- github.com/influxdata/toml [MIT License](https://github.com/influxdata/toml/blob/master/LICENSE)
86- github.com/influxdata/wlog [MIT License](https://github.com/influxdata/wlog/blob/master/LICENSE)101- github.com/influxdata/wlog [MIT License](https://github.com/influxdata/wlog/blob/master/LICENSE)
87- github.com/jackc/pgx [MIT License](https://github.com/jackc/pgx/blob/master/LICENSE)102- github.com/jackc/pgx [MIT License](https://github.com/jackc/pgx/blob/master/LICENSE)
103- github.com/jaegertracing/jaeger [Apache License 2.0](https://github.com/jaegertracing/jaeger/blob/master/LICENSE)
104- github.com/james4k/rcon [MIT License](https://github.com/james4k/rcon/blob/master/LICENSE)
88- github.com/jcmturner/gofork [BSD 3-Clause "New" or "Revised" License](https://github.com/jcmturner/gofork/blob/master/LICENSE)105- github.com/jcmturner/gofork [BSD 3-Clause "New" or "Revised" License](https://github.com/jcmturner/gofork/blob/master/LICENSE)
89- github.com/jmespath/go-jmespath [Apache License 2.0](https://github.com/jmespath/go-jmespath/blob/master/LICENSE)106- github.com/jmespath/go-jmespath [Apache License 2.0](https://github.com/jmespath/go-jmespath/blob/master/LICENSE)
90- github.com/jpillora/backoff [MIT License](https://github.com/jpillora/backoff/blob/master/LICENSE)107- github.com/jpillora/backoff [MIT License](https://github.com/jpillora/backoff/blob/master/LICENSE)
@@ -116,7 +133,9 @@ following works:
116- github.com/openconfig/gnmi [Apache License 2.0](https://github.com/openconfig/gnmi/blob/master/LICENSE)133- github.com/openconfig/gnmi [Apache License 2.0](https://github.com/openconfig/gnmi/blob/master/LICENSE)
117- github.com/opencontainers/go-digest [Apache License 2.0](https://github.com/opencontainers/go-digest/blob/master/LICENSE)134- github.com/opencontainers/go-digest [Apache License 2.0](https://github.com/opencontainers/go-digest/blob/master/LICENSE)
118- github.com/opencontainers/image-spec [Apache License 2.0](https://github.com/opencontainers/image-spec/blob/master/LICENSE)135- github.com/opencontainers/image-spec [Apache License 2.0](https://github.com/opencontainers/image-spec/blob/master/LICENSE)
136- github.com/opentracing/opentracing-go [Apache License 2.0](https://github.com/opentracing/opentracing-go/blob/master/LICENSE)
119- github.com/openzipkin/zipkin-go-opentracing [MIT License](https://github.com/openzipkin/zipkin-go-opentracing/blob/master/LICENSE)137- github.com/openzipkin/zipkin-go-opentracing [MIT License](https://github.com/openzipkin/zipkin-go-opentracing/blob/master/LICENSE)
138- github.com/philhofer/fwd [MIT License](https://github.com/philhofer/fwd/blob/master/LICENSE.md)
120- github.com/pierrec/lz4 [BSD 3-Clause "New" or "Revised" License](https://github.com/pierrec/lz4/blob/master/LICENSE)139- github.com/pierrec/lz4 [BSD 3-Clause "New" or "Revised" License](https://github.com/pierrec/lz4/blob/master/LICENSE)
121- github.com/pkg/errors [BSD 2-Clause "Simplified" License](https://github.com/pkg/errors/blob/master/LICENSE)140- github.com/pkg/errors [BSD 2-Clause "Simplified" License](https://github.com/pkg/errors/blob/master/LICENSE)
122- github.com/pmezard/go-difflib [BSD 3-Clause Clear License](https://github.com/pmezard/go-difflib/blob/master/LICENSE)141- github.com/pmezard/go-difflib [BSD 3-Clause Clear License](https://github.com/pmezard/go-difflib/blob/master/LICENSE)
@@ -130,6 +149,10 @@ following works:
130- github.com/safchain/ethtool [Apache License 2.0](https://github.com/safchain/ethtool/blob/master/LICENSE)149- github.com/safchain/ethtool [Apache License 2.0](https://github.com/safchain/ethtool/blob/master/LICENSE)
131- github.com/samuel/go-zookeeper [BSD 3-Clause Clear License](https://github.com/samuel/go-zookeeper/blob/master/LICENSE)150- github.com/samuel/go-zookeeper [BSD 3-Clause Clear License](https://github.com/samuel/go-zookeeper/blob/master/LICENSE)
132- github.com/shirou/gopsutil [BSD 3-Clause Clear License](https://github.com/shirou/gopsutil/blob/master/LICENSE)151- github.com/shirou/gopsutil [BSD 3-Clause Clear License](https://github.com/shirou/gopsutil/blob/master/LICENSE)
152- github.com/signalfx/com_signalfx_metrics_protobuf [Apache License 2.0](https://github.com/signalfx/com_signalfx_metrics_protobuf/blob/master/LICENSE)
153- github.com/signalfx/gohistogram [MIT License](https://github.com/signalfx/gohistogram/blob/master/LICENSE)
154- github.com/signalfx/golib [Apache License 2.0](https://github.com/signalfx/golib/blob/master/LICENSE)
155- github.com/signalfx/sapm-proto [Apache License 2.0](https://github.com/signalfx/sapm-proto/blob/master/LICENSE)
133- github.com/sirupsen/logrus [MIT License](https://github.com/sirupsen/logrus/blob/master/LICENSE)156- github.com/sirupsen/logrus [MIT License](https://github.com/sirupsen/logrus/blob/master/LICENSE)
134- github.com/soniah/gosnmp [BSD 2-Clause "Simplified" License](https://github.com/soniah/gosnmp/blob/master/LICENSE)157- github.com/soniah/gosnmp [BSD 2-Clause "Simplified" License](https://github.com/soniah/gosnmp/blob/master/LICENSE)
135- github.com/streadway/amqp [BSD 2-Clause "Simplified" License](https://github.com/streadway/amqp/blob/master/LICENSE)158- github.com/streadway/amqp [BSD 2-Clause "Simplified" License](https://github.com/streadway/amqp/blob/master/LICENSE)
@@ -138,6 +161,7 @@ following works:
138- github.com/tidwall/gjson [MIT License](https://github.com/tidwall/gjson/blob/master/LICENSE)161- github.com/tidwall/gjson [MIT License](https://github.com/tidwall/gjson/blob/master/LICENSE)
139- github.com/tidwall/match [MIT License](https://github.com/tidwall/match/blob/master/LICENSE)162- github.com/tidwall/match [MIT License](https://github.com/tidwall/match/blob/master/LICENSE)
140- github.com/tidwall/pretty [MIT License](https://github.com/tidwall/pretty/blob/master/LICENSE)163- github.com/tidwall/pretty [MIT License](https://github.com/tidwall/pretty/blob/master/LICENSE)
164- github.com/tinylib/msgp [MIT License](https://github.com/tinylib/msgp/blob/master/LICENSE)
141- github.com/vishvananda/netlink [Apache License 2.0](https://github.com/vishvananda/netlink/blob/master/LICENSE)165- github.com/vishvananda/netlink [Apache License 2.0](https://github.com/vishvananda/netlink/blob/master/LICENSE)
142- github.com/vishvananda/netns [Apache License 2.0](https://github.com/vishvananda/netns/blob/master/LICENSE)166- github.com/vishvananda/netns [Apache License 2.0](https://github.com/vishvananda/netns/blob/master/LICENSE)
143- github.com/vjeantet/grok [Apache License 2.0](https://github.com/vjeantet/grok/blob/master/LICENSE)167- github.com/vjeantet/grok [Apache License 2.0](https://github.com/vjeantet/grok/blob/master/LICENSE)
@@ -164,6 +188,7 @@ following works:
164- google.golang.org/genproto [Apache License 2.0](https://github.com/google/go-genproto/blob/master/LICENSE)188- google.golang.org/genproto [Apache License 2.0](https://github.com/google/go-genproto/blob/master/LICENSE)
165- google.golang.org/grpc [Apache License 2.0](https://github.com/grpc/grpc-go/blob/master/LICENSE)189- google.golang.org/grpc [Apache License 2.0](https://github.com/grpc/grpc-go/blob/master/LICENSE)
166- gopkg.in/asn1-ber.v1 [MIT License](https://github.com/go-asn1-ber/asn1-ber/blob/v1.3/LICENSE)190- gopkg.in/asn1-ber.v1 [MIT License](https://github.com/go-asn1-ber/asn1-ber/blob/v1.3/LICENSE)
191- gopkg.in/djherbis/times.v1 [MIT License](https://github.com/djherbis/times/blob/master/LICENSE)
167- gopkg.in/fatih/pool.v2 [MIT License](https://github.com/fatih/pool/blob/v2.0.0/LICENSE)192- gopkg.in/fatih/pool.v2 [MIT License](https://github.com/fatih/pool/blob/v2.0.0/LICENSE)
168- gopkg.in/fsnotify.v1 [BSD 3-Clause "New" or "Revised" License](https://github.com/fsnotify/fsnotify/blob/v1.4.7/LICENSE)193- gopkg.in/fsnotify.v1 [BSD 3-Clause "New" or "Revised" License](https://github.com/fsnotify/fsnotify/blob/v1.4.7/LICENSE)
169- gopkg.in/gorethink/gorethink.v3 [Apache License 2.0](https://github.com/rethinkdb/rethinkdb-go/blob/v3.0.5/LICENSE)194- gopkg.in/gorethink/gorethink.v3 [Apache License 2.0](https://github.com/rethinkdb/rethinkdb-go/blob/v3.0.5/LICENSE)
@@ -179,6 +204,8 @@ following works:
179- gopkg.in/tomb.v2 [BSD 3-Clause Clear License](https://github.com/go-tomb/tomb/blob/v2/LICENSE)204- gopkg.in/tomb.v2 [BSD 3-Clause Clear License](https://github.com/go-tomb/tomb/blob/v2/LICENSE)
180- gopkg.in/yaml.v2 [Apache License 2.0](https://github.com/go-yaml/yaml/blob/v2.2.2/LICENSE)205- gopkg.in/yaml.v2 [Apache License 2.0](https://github.com/go-yaml/yaml/blob/v2.2.2/LICENSE)
181- gopkg.in/yaml.v3 [Apache License 2.0](https://github.com/go-yaml/yaml/blob/v3/LICENSE)206- gopkg.in/yaml.v3 [Apache License 2.0](https://github.com/go-yaml/yaml/blob/v3/LICENSE)
207- k8s.io/apimachinery [Apache License 2.0](https://github.com/kubernetes/apimachinery/blob/master/LICENSE)
208- k8s.io/klog [Apache License 2.0](https://github.com/kubernetes/klog/blob/master/LICENSE)
182- modernc.org/libc [BSD 3-Clause "New" or "Revised" License](https://gitlab.com/cznic/libc/-/blob/master/LICENSE)209- modernc.org/libc [BSD 3-Clause "New" or "Revised" License](https://gitlab.com/cznic/libc/-/blob/master/LICENSE)
183- modernc.org/memory [BSD 3-Clause "New" or "Revised" License](https://gitlab.com/cznic/memory/-/blob/master/LICENSE)210- modernc.org/memory [BSD 3-Clause "New" or "Revised" License](https://gitlab.com/cznic/memory/-/blob/master/LICENSE)
184- modernc.org/sqlite [BSD 3-Clause "New" or "Revised" License](https://gitlab.com/cznic/sqlite/-/blob/master/LICENSE)211- modernc.org/sqlite [BSD 3-Clause "New" or "Revised" License](https://gitlab.com/cznic/sqlite/-/blob/master/LICENSE)
diff --git a/etc/telegraf.conf b/etc/telegraf.conf
index 9d52d0a..a238afa 100644
--- a/etc/telegraf.conf
+++ b/etc/telegraf.conf
@@ -343,6 +343,20 @@
343# # endpoint_url = "https://monitoring.core.usgovcloudapi.net"343# # endpoint_url = "https://monitoring.core.usgovcloudapi.net"
344344
345345
346# [[outputs.bigquery]]
347# ## GCP Project
348# project = "erudite-bloom-151019"
349#
350# ## The BigQuery dataset
351# dataset = "telegraf"
352#
353# ## Timeout for BigQuery operations.
354# # timeout = "5s"
355#
356# ## Character to replace hyphens on Metric name
357# # replace_hyphen_to = "_"
358
359
346# # Publish Telegraf metrics to a Google Cloud PubSub topic360# # Publish Telegraf metrics to a Google Cloud PubSub topic
347# [[outputs.cloud_pubsub]]361# [[outputs.cloud_pubsub]]
348# ## Required. Name of Google Cloud Platform (GCP) Project that owns362# ## Required. Name of Google Cloud Platform (GCP) Project that owns
@@ -496,6 +510,9 @@
496#510#
497# ## Connection timeout, defaults to "5s" if not set.511# ## Connection timeout, defaults to "5s" if not set.
498# timeout = "5s"512# timeout = "5s"
513#
514# ## If you want to convert values represented as gauges to counters, add the metric names here
515# additional_counters = [ ]
499516
500517
501# # Configuration for Elasticsearch to send metrics to.518# # Configuration for Elasticsearch to send metrics to.
@@ -1066,6 +1083,33 @@
1066# # url = "https://listener.logz.io:8071"1083# # url = "https://listener.logz.io:8071"
10671084
10681085
1086# # Send logs to Loki
1087# [[outputs.loki]]
1088# ## The domain of Loki
1089# domain = "https://loki.domain.tld"
1090#
1091# ## Endpoint to write api
1092# # endpoint = "/loki/api/v1/push"
1093#
1094# ## Connection timeout, defaults to "5s" if not set.
1095# # timeout = "5s"
1096#
1097# ## Basic auth credential
1098# # username = "loki"
1099# # password = "pass"
1100#
1101# ## Additional HTTP headers
1102# # http_headers = {"X-Scope-OrgID" = "1"}
1103#
1104# ## If the request must be gzip encoded
1105# # gzip_request = false
1106#
1107# ## Optional TLS Config
1108# # tls_ca = "/etc/telegraf/ca.pem"
1109# # tls_cert = "/etc/telegraf/cert.pem"
1110# # tls_key = "/etc/telegraf/key.pem"
1111
1112
1069# # Configuration for MQTT server to send metrics to1113# # Configuration for MQTT server to send metrics to
1070# [[outputs.mqtt]]1114# [[outputs.mqtt]]
1071# servers = ["localhost:1883"] # required.1115# servers = ["localhost:1883"] # required.
@@ -1158,6 +1202,10 @@
1158#1202#
1159# ## Timeout for writes to the New Relic API.1203# ## Timeout for writes to the New Relic API.
1160# # timeout = "15s"1204# # timeout = "15s"
1205#
1206# ## HTTP Proxy override. If unset use values from the standard
1207# ## proxy environment variables to determine proxy, if any.
1208# # http_proxy = "http://corporate.proxy:3128"
11611209
11621210
1163# # Send telegraf measurements to NSQD1211# # Send telegraf measurements to NSQD
@@ -1293,6 +1341,116 @@
1293# separator = " "1341# separator = " "
12941342
12951343
1344# # Send aggregate metrics to Sensu Monitor
1345# [[outputs.sensu]]
1346# ## BACKEND API URL is the Sensu Backend API root URL to send metrics to
1347# ## (protocol, host, and port only). The output plugin will automatically
1348# ## append the corresponding backend API path
1349# ## /api/core/v2/namespaces/:entity_namespace/events/:entity_name/:check_name).
1350# ##
1351# ## Backend Events API reference:
1352# ## https://docs.sensu.io/sensu-go/latest/api/events/
1353# ##
1354# ## AGENT API URL is the Sensu Agent API root URL to send metrics to
1355# ## (protocol, host, and port only). The output plugin will automatically
1356# ## append the correspeonding agent API path (/events).
1357# ##
1358# ## Agent API Events API reference:
1359# ## https://docs.sensu.io/sensu-go/latest/api/events/
1360# ##
1361# ## NOTE: if backend_api_url and agent_api_url and api_key are set, the output
1362# ## plugin will use backend_api_url. If backend_api_url and agent_api_url are
1363# ## not provided, the output plugin will default to use an agent_api_url of
1364# ## http://127.0.0.1:3031
1365# ##
1366# # backend_api_url = "http://127.0.0.1:8080"
1367# # agent_api_url = "http://127.0.0.1:3031"
1368#
1369# ## API KEY is the Sensu Backend API token
1370# ## Generate a new API token via:
1371# ##
1372# ## $ sensuctl cluster-role create telegraf --verb create --resource events,entities
1373# ## $ sensuctl cluster-role-binding create telegraf --cluster-role telegraf --group telegraf
1374# ## $ sensuctl user create telegraf --group telegraf --password REDACTED
1375# ## $ sensuctl api-key grant telegraf
1376# ##
1377# ## For more information on Sensu RBAC profiles & API tokens, please visit:
1378# ## - https://docs.sensu.io/sensu-go/latest/reference/rbac/
1379# ## - https://docs.sensu.io/sensu-go/latest/reference/apikeys/
1380# ##
1381# # api_key = "${SENSU_API_KEY}"
1382#
1383# ## Optional TLS Config
1384# # tls_ca = "/etc/telegraf/ca.pem"
1385# # tls_cert = "/etc/telegraf/cert.pem"
1386# # tls_key = "/etc/telegraf/key.pem"
1387# ## Use TLS but skip chain & host verification
1388# # insecure_skip_verify = false
1389#
1390# ## Timeout for HTTP message
1391# # timeout = "5s"
1392#
1393# ## HTTP Content-Encoding for write request body, can be set to "gzip" to
1394# ## compress body or "identity" to apply no encoding.
1395# # content_encoding = "identity"
1396#
1397# ## Sensu Event details
1398# ##
1399# ## Below are the event details to be sent to Sensu. The main portions of the
1400# ## event are the check, entity, and metrics specifications. For more information
1401# ## on Sensu events and its components, please visit:
1402# ## - Events - https://docs.sensu.io/sensu-go/latest/reference/events
1403# ## - Checks - https://docs.sensu.io/sensu-go/latest/reference/checks
1404# ## - Entities - https://docs.sensu.io/sensu-go/latest/reference/entities
1405# ## - Metrics - https://docs.sensu.io/sensu-go/latest/reference/events#metrics
1406# ##
1407# ## Check specification
1408# ## The check name is the name to give the Sensu check associated with the event
1409# ## created. This maps to check.metatadata.name in the event.
1410# [outputs.sensu.check]
1411# name = "telegraf"
1412#
1413# ## Entity specification
1414# ## Configure the entity name and namespace, if necessary. This will be part of
1415# ## the entity.metadata in the event.
1416# ##
1417# ## NOTE: if the output plugin is configured to send events to a
1418# ## backend_api_url and entity_name is not set, the value returned by
1419# ## os.Hostname() will be used; if the output plugin is configured to send
1420# ## events to an agent_api_url, entity_name and entity_namespace are not used.
1421# # [outputs.sensu.entity]
1422# # name = "server-01"
1423# # namespace = "default"
1424#
1425# ## Metrics specification
1426# ## Configure the tags for the metrics that are sent as part of the Sensu event
1427# # [outputs.sensu.tags]
1428# # source = "telegraf"
1429#
1430# ## Configure the handler(s) for processing the provided metrics
1431# # [outputs.sensu.metrics]
1432# # handlers = ["influxdb","elasticsearch"]
1433
1434
1435# # Send metrics and events to SignalFx
1436# [[outputs.signalfx]]
1437# ## SignalFx Org Access Token
1438# access_token = "my-secret-token"
1439#
1440# ## The SignalFx realm that your organization resides in
1441# signalfx_realm = "us9" # Required if ingest_url is not set
1442#
1443# ## You can optionally provide a custom ingest url instead of the
1444# ## signalfx_realm option above if you are using a gateway or proxy
1445# ## instance. This option takes precident over signalfx_realm.
1446# ingest_url = "https://my-custom-ingest/"
1447#
1448# ## Event typed metrics are omitted by default,
1449# ## If you require an event typed metric you must specify the
1450# ## metric name in the following list.
1451# included_event_names = ["plugin.metric_name"]
1452
1453
1296# # Generic socket writer capable of handling multiple socket types.1454# # Generic socket writer capable of handling multiple socket types.
1297# [[outputs.socket_writer]]1455# [[outputs.socket_writer]]
1298# ## URL to connect to1456# ## URL to connect to
@@ -1698,6 +1856,55 @@
1698###############################################################################1856###############################################################################
16991857
17001858
1859# # Attach AWS EC2 metadata to metrics
1860# [[processors.aws_ec2]]
1861# ## Instance identity document tags to attach to metrics.
1862# ## For more information see:
1863# ## https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-identity-documents.html
1864# ##
1865# ## Available tags:
1866# ## * accountId
1867# ## * architecture
1868# ## * availabilityZone
1869# ## * billingProducts
1870# ## * imageId
1871# ## * instanceId
1872# ## * instanceType
1873# ## * kernelId
1874# ## * pendingTime
1875# ## * privateIp
1876# ## * ramdiskId
1877# ## * region
1878# ## * version
1879# imds_tags = []
1880#
1881# ## EC2 instance tags retrieved with DescribeTags action.
1882# ## In case tag is empty upon retrieval it's omitted when tagging metrics.
1883# ## Note that in order for this to work, role attached to EC2 instance or AWS
1884# ## credentials available from the environment must have a policy attached, that
1885# ## allows ec2:DescribeTags.
1886# ##
1887# ## For more information see:
1888# ## https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTags.html
1889# ec2_tags = []
1890#
1891# ## Timeout for http requests made by against aws ec2 metadata endpoint.
1892# timeout = "10s"
1893#
1894# ## ordered controls whether or not the metrics need to stay in the same order
1895# ## this plugin received them in. If false, this plugin will change the order
1896# ## with requests hitting cached results moving through immediately and not
1897# ## waiting on slower lookups. This may cause issues for you if you are
1898# ## depending on the order of metrics staying the same. If so, set this to true.
1899# ## Keeping the metrics ordered may be slightly slower.
1900# ordered = false
1901#
1902# ## max_parallel_calls is the maximum number of AWS API calls to be in flight
1903# ## at the same time.
1904# ## It's probably best to keep this number fairly low.
1905# max_parallel_calls = 10
1906
1907
1701# # Clone metrics and apply modifications.1908# # Clone metrics and apply modifications.
1702# [[processors.clone]]1909# [[processors.clone]]
1703# ## All modifications on inputs and aggregators can be overridden:1910# ## All modifications on inputs and aggregators can be overridden:
@@ -2092,6 +2299,13 @@
2092#2299#
2093# ## File containing a Starlark script.2300# ## File containing a Starlark script.
2094# # script = "/usr/local/bin/myscript.star"2301# # script = "/usr/local/bin/myscript.star"
2302#
2303# ## The constants of the Starlark script.
2304# # [processors.starlark.constants]
2305# # max_size = 10
2306# # threshold = 0.75
2307# # default_name = "Julia"
2308# # debug_mode = true
20952309
20962310
2097# # Perform string processing on tags, fields, and measurements2311# # Perform string processing on tags, fields, and measurements
@@ -2245,6 +2459,49 @@
2245# # stats = ["count", "min", "max", "mean", "stdev", "s2", "sum"]2459# # stats = ["count", "min", "max", "mean", "stdev", "s2", "sum"]
22462460
22472461
2462# # Calculates a derivative for every field.
2463# [[aggregators.derivative]]
2464# ## The period in which to flush the aggregator.
2465# period = "30s"
2466# ##
2467# ## If true, the original metric will be dropped by the
2468# ## aggregator and will not get sent to the output plugins.
2469# drop_original = false
2470# ##
2471# ## This aggregator will estimate a derivative for each field, which is
2472# ## contained in both the first and last metric of the aggregation interval.
2473# ## Without further configuration the derivative will be calculated with
2474# ## respect to the time difference between these two measurements in seconds.
2475# ## The formula applied is for every field:
2476# ##
2477# ## value_last - value_first
2478# ## derivative = --------------------------
2479# ## time_difference_in_seconds
2480# ##
2481# ## The resulting derivative will be named *fieldname_rate*. The suffix
2482# ## "_rate" can be configured by the *suffix* parameter. When using a
2483# ## derivation variable you can include its name for more clarity.
2484# # suffix = "_rate"
2485# ##
2486# ## As an abstraction the derivative can be calculated not only by the time
2487# ## difference but by the difference of a field, which is contained in the
2488# ## measurement. This field is assumed to be monotonously increasing. This
2489# ## feature is used by specifying a *variable*.
2490# ## Make sure the specified variable is not filtered and exists in the metrics
2491# ## passed to this aggregator!
2492# # variable = ""
2493# ##
2494# ## When using a field as the derivation parameter the name of that field will
2495# ## be used for the resulting derivative, e.g. *fieldname_by_parameter*.
2496# ##
2497# ## Note, that the calculation is based on the actual timestamp of the
2498# ## measurements. When there is only one measurement during that period, the
2499# ## measurement will be rolled over to the next period. The maximum number of
2500# ## such roll-overs can be configured with a default of 10.
2501# # max_roll_over = 10
2502# ##
2503
2504
2248# # Report the final metric of a series2505# # Report the final metric of a series
2249# [[aggregators.final]]2506# [[aggregators.final]]
2250# ## The period on which to flush & clear the aggregator.2507# ## The period on which to flush & clear the aggregator.
@@ -2308,6 +2565,34 @@
2308# drop_original = false2565# drop_original = false
23092566
23102567
2568# # Keep the aggregate quantiles of each metric passing through.
2569# [[aggregators.quantile]]
2570# ## General Aggregator Arguments:
2571# ## The period on which to flush & clear the aggregator.
2572# period = "30s"
2573#
2574# ## If true, the original metric will be dropped by the
2575# ## aggregator and will not get sent to the output plugins.
2576# drop_original = false
2577#
2578# ## Quantiles to output in the range [0,1]
2579# # quantiles = [0.25, 0.5, 0.75]
2580#
2581# ## Type of aggregation algorithm
2582# ## Supported are:
2583# ## "t-digest" -- approximation using centroids, can cope with large number of samples
2584# ## "exact R7" -- exact computation also used by Excel or NumPy (Hyndman & Fan 1996 R7)
2585# ## "exact R8" -- exact computation (Hyndman & Fan 1996 R8)
2586# ## NOTE: Do not use "exact" algorithms with large number of samples
2587# ## to not impair performance or memory consumption!
2588# # algorithm = "t-digest"
2589#
2590# ## Compression for approximation (t-digest). The value needs to be
2591# ## greater or equal to 1.0. Smaller values will result in more
2592# ## performance but less accuracy.
2593# # compression = 100.0
2594
2595
2311# # Count the occurrence of values in fields.2596# # Count the occurrence of values in fields.
2312# [[aggregators.valuecounter]]2597# [[aggregators.valuecounter]]
2313# ## General Aggregator Arguments:2598# ## General Aggregator Arguments:
@@ -2562,6 +2847,41 @@
2562# tubes = ["notifications"]2847# tubes = ["notifications"]
25632848
25642849
2850# # Read metrics exposed by Beat
2851# [[inputs.beat]]
2852# ## An URL from which to read Beat-formatted JSON
2853# ## Default is "http://127.0.0.1:5066".
2854# url = "http://127.0.0.1:5066"
2855#
2856# ## Enable collection of the listed stats
2857# ## An empty list means collect all. Available options are currently
2858# ## "beat", "libbeat", "system" and "filebeat".
2859# # include = ["beat", "libbeat", "filebeat"]
2860#
2861# ## HTTP method
2862# # method = "GET"
2863#
2864# ## Optional HTTP headers
2865# # headers = {"X-Special-Header" = "Special-Value"}
2866#
2867# ## Override HTTP "Host" header
2868# # host_header = "logstash.example.com"
2869#
2870# ## Timeout for HTTP requests
2871# # timeout = "5s"
2872#
2873# ## Optional HTTP Basic Auth credentials
2874# # username = "username"
2875# # password = "pa$$word"
2876#
2877# ## Optional TLS Config
2878# # tls_ca = "/etc/telegraf/ca.pem"
2879# # tls_cert = "/etc/telegraf/cert.pem"
2880# # tls_key = "/etc/telegraf/key.pem"
2881# ## Use TLS but skip chain & host verification
2882# # insecure_skip_verify = false
2883
2884
2565# # Read BIND nameserver XML statistics2885# # Read BIND nameserver XML statistics
2566# [[inputs.bind]]2886# [[inputs.bind]]
2567# ## An array of BIND XML statistics URI to gather stats.2887# ## An array of BIND XML statistics URI to gather stats.
@@ -2713,6 +3033,9 @@
2713# ## ex: endpoint_url = "http://localhost:8000"3033# ## ex: endpoint_url = "http://localhost:8000"
2714# # endpoint_url = ""3034# # endpoint_url = ""
2715#3035#
3036# ## Set http_proxy (telegraf uses the system wide proxy settings if it's is not set)
3037# # http_proxy_url = "http://localhost:8888"
3038#
2716# # The minimum period for Cloudwatch metrics is 1 minute (60s). However not all3039# # The minimum period for Cloudwatch metrics is 1 minute (60s). However not all
2717# # metrics are made available to the 1 minute period. Some are collected at3040# # metrics are made available to the 1 minute period. Some are collected at
2718# # 3 minute, 5 minute, or larger intervals. See https://aws.amazon.com/cloudwatch/faqs/#monitoring.3041# # 3 minute, 5 minute, or larger intervals. See https://aws.amazon.com/cloudwatch/faqs/#monitoring.
@@ -2854,6 +3177,18 @@
2854# # basic_password = "p@ssw0rd"3177# # basic_password = "p@ssw0rd"
28553178
28563179
3180# # Fetch metrics from a CSGO SRCDS
3181# [[inputs.csgo]]
3182# ## Specify servers using the following format:
3183# ## servers = [
3184# ## ["ip1:port1", "rcon_password1"],
3185# ## ["ip2:port2", "rcon_password2"],
3186# ## ]
3187# #
3188# ## If no servers are specified, no data will be collected
3189# servers = []
3190
3191
2857# # Input plugin for DC/OS metrics3192# # Input plugin for DC/OS metrics
2858# [[inputs.dcos]]3193# [[inputs.dcos]]
2859# ## The DC/OS cluster URL.3194# ## The DC/OS cluster URL.
@@ -2966,13 +3301,30 @@
2966# ## Timeout for docker list, info, and stats commands3301# ## Timeout for docker list, info, and stats commands
2967# timeout = "5s"3302# timeout = "5s"
2968#3303#
2969# ## Whether to report for each container per-device blkio (8:0, 8:1...) and3304# ## Whether to report for each container per-device blkio (8:0, 8:1...),
2970# ## network (eth0, eth1, ...) stats or not3305# ## network (eth0, eth1, ...) and cpu (cpu0, cpu1, ...) stats or not.
3306# ## Usage of this setting is discouraged since it will be deprecated in favor of 'perdevice_include'.
3307# ## Default value is 'true' for backwards compatibility, please set it to 'false' so that 'perdevice_include' setting
3308# ## is honored.
2971# perdevice = true3309# perdevice = true
2972#3310#
2973# ## Whether to report for each container total blkio and network stats or not3311# ## Specifies for which classes a per-device metric should be issued
3312# ## Possible values are 'cpu' (cpu0, cpu1, ...), 'blkio' (8:0, 8:1, ...) and 'network' (eth0, eth1, ...)
3313# ## Please note that this setting has no effect if 'perdevice' is set to 'true'
3314# # perdevice_include = ["cpu"]
3315#
3316# ## Whether to report for each container total blkio and network stats or not.
3317# ## Usage of this setting is discouraged since it will be deprecated in favor of 'total_include'.
3318# ## Default value is 'false' for backwards compatibility, please set it to 'true' so that 'total_include' setting
3319# ## is honored.
2974# total = false3320# total = false
2975#3321#
3322# ## Specifies for which classes a total metric should be issued. Total is an aggregated of the 'perdevice' values.
3323# ## Possible values are 'cpu', 'blkio' and 'network'
3324# ## Total 'cpu' is reported directly by Docker daemon, and 'network' and 'blkio' totals are aggregated by this plugin.
3325# ## Please note that this setting has no effect if 'total' is set to 'false'
3326# # total_include = ["cpu", "blkio", "network"]
3327#
2976# ## Which environment variables should we use as a tag3328# ## Which environment variables should we use as a tag
2977# ##tag_env = ["JAVA_HOME", "HEAP_SIZE"]3329# ##tag_env = ["JAVA_HOME", "HEAP_SIZE"]
2978#3330#
@@ -3065,6 +3417,7 @@
3065# cluster_stats_only_from_master = true3417# cluster_stats_only_from_master = true
3066#3418#
3067# ## Indices to collect; can be one or more indices names or _all3419# ## Indices to collect; can be one or more indices names or _all
3420# ## Use of wildcards is allowed. Use a wildcard at the end to retrieve index names that end with a changing value, like a date.
3068# indices_include = ["_all"]3421# indices_include = ["_all"]
3069#3422#
3070# ## One of "shards", "cluster", "indices"3423# ## One of "shards", "cluster", "indices"
@@ -3085,6 +3438,11 @@
3085# # tls_key = "/etc/telegraf/key.pem"3438# # tls_key = "/etc/telegraf/key.pem"
3086# ## Use TLS but skip chain & host verification3439# ## Use TLS but skip chain & host verification
3087# # insecure_skip_verify = false3440# # insecure_skip_verify = false
3441#
3442# ## Sets the number of most recent indices to return for indices that are configured with a date-stamped suffix.
3443# ## Each 'indices_include' entry ending with a wildcard (*) or glob matching pattern will group together all indices that match it, and sort them
3444# ## by the date or number after the wildcard. Metrics then are gathered for only the 'num_most_recent_indices' amount of most recent indices.
3445# # num_most_recent_indices = 0
30883446
30893447
3090# # Returns ethtool statistics for given interfaces3448# # Returns ethtool statistics for given interfaces
@@ -4478,6 +4836,35 @@
4478# # no configuration4836# # no configuration
44794837
44804838
4839# # Read per-mount NFS client metrics from /proc/self/mountstats
4840# [[inputs.nfsclient]]
4841# ## Read more low-level metrics (optional, defaults to false)
4842# # fullstat = false
4843#
4844# ## List of mounts to explictly include or exclude (optional)
4845# ## The pattern (Go regexp) is matched against the mount point (not the
4846# ## device being mounted). If include_mounts is set, all mounts are ignored
4847# ## unless present in the list. If a mount is listed in both include_mounts
4848# ## and exclude_mounts, it is excluded. Go regexp patterns can be used.
4849# # include_mounts = []
4850# # exclude_mounts = []
4851#
4852# ## List of operations to include or exclude from collecting. This applies
4853# ## only when fullstat=true. Symantics are similar to {include,exclude}_mounts:
4854# ## the default is to collect everything; when include_operations is set, only
4855# ## those OPs are collected; when exclude_operations is set, all are collected
4856# ## except those listed. If include and exclude are set, the OP is excluded.
4857# ## See /proc/self/mountstats for a list of valid operations; note that
4858# ## NFSv3 and NFSv4 have different lists. While it is not possible to
4859# ## have different include/exclude lists for NFSv3/4, unused elements
4860# ## in the list should be okay. It is possible to have different lists
4861# ## for different mountpoints: use mulitple [[input.nfsclient]] stanzas,
4862# ## with their own lists. See "include_mounts" above, and be careful of
4863# ## duplicate metrics.
4864# # include_operations = []
4865# # exclude_operations = []
4866
4867
4481# # Read Nginx's basic status information (ngx_http_stub_status_module)4868# # Read Nginx's basic status information (ngx_http_stub_status_module)
4482# [[inputs.nginx]]4869# [[inputs.nginx]]
4483# # An array of Nginx stub_status URI to gather stats.4870# # An array of Nginx stub_status URI to gather stats.
@@ -5070,6 +5457,41 @@
5070# urls = ["http://localhost:8080/_raindrops"]5457# urls = ["http://localhost:8080/_raindrops"]
50715458
50725459
5460# # Reads metrics from RavenDB servers via the Monitoring Endpoints
5461# [[inputs.ravendb]]
5462# ## Node URL and port that RavenDB is listening on
5463# url = "https://localhost:8080"
5464#
5465# ## RavenDB X509 client certificate setup
5466# # tls_cert = "/etc/telegraf/raven.crt"
5467# # tls_key = "/etc/telegraf/raven.key"
5468#
5469# ## Optional request timeout
5470# ##
5471# ## Timeout, specifies the amount of time to wait
5472# ## for a server's response headers after fully writing the request and
5473# ## time limit for requests made by this client
5474# # timeout = "5s"
5475#
5476# ## List of statistics which are collected
5477# # At least one is required
5478# # Allowed values: server, databases, indexes, collections
5479# #
5480# # stats_include = ["server", "databases", "indexes", "collections"]
5481#
5482# ## List of db where database stats are collected
5483# ## If empty, all db are concerned
5484# # db_stats_dbs = []
5485#
5486# ## List of db where index status are collected
5487# ## If empty, all indexes from all db are concerned
5488# # index_stats_dbs = []
5489#
5490# ## List of db where collection status are collected
5491# ## If empty, all collections from all db are concerned
5492# # collection_stats_dbs = []
5493
5494
5073# # Read CPU, Fans, Powersupply and Voltage metrics of hardware server through redfish APIs5495# # Read CPU, Fans, Powersupply and Voltage metrics of hardware server through redfish APIs
5074# [[inputs.redfish]]5496# [[inputs.redfish]]
5075# ## Server url5497# ## Server url
@@ -5223,8 +5645,13 @@
5223# # Retrieves SNMP values from remote agents5645# # Retrieves SNMP values from remote agents
5224# [[inputs.snmp]]5646# [[inputs.snmp]]
5225# ## Agent addresses to retrieve values from.5647# ## Agent addresses to retrieve values from.
5648# ## format: agents = ["<scheme://><hostname>:<port>"]
5649# ## scheme: optional, either udp, udp4, udp6, tcp, tcp4, tcp6.
5650# ## default is udp
5651# ## port: optional
5226# ## example: agents = ["udp://127.0.0.1:161"]5652# ## example: agents = ["udp://127.0.0.1:161"]
5227# ## agents = ["tcp://127.0.0.1:161"]5653# ## agents = ["tcp://127.0.0.1:161"]
5654# ## agents = ["udp4://v4only-snmp-agent"]
5228# agents = ["udp://127.0.0.1:161"]5655# agents = ["udp://127.0.0.1:161"]
5229#5656#
5230# ## Timeout for each request.5657# ## Timeout for each request.
@@ -5249,7 +5676,7 @@
5249# ##5676# ##
5250# ## Security Name.5677# ## Security Name.
5251# # sec_name = "myuser"5678# # sec_name = "myuser"
5252# ## Authentication protocol; one of "MD5", "SHA", or "".5679# ## Authentication protocol; one of "MD5", "SHA", "SHA224", "SHA256", "SHA384", "SHA512" or "".
5253# # auth_protocol = "MD5"5680# # auth_protocol = "MD5"
5254# ## Authentication password.5681# ## Authentication password.
5255# # auth_password = "pass"5682# # auth_password = "pass"
@@ -5804,6 +6231,32 @@
5804###############################################################################6231###############################################################################
58056232
58066233
6234# # Intel Resource Director Technology plugin
6235# [[inputs.IntelRDT]]
6236# ## Optionally set sampling interval to Nx100ms.
6237# ## This value is propagated to pqos tool. Interval format is defined by pqos itself.
6238# ## If not provided or provided 0, will be set to 10 = 10x100ms = 1s.
6239# # sampling_interval = "10"
6240#
6241# ## Optionally specify the path to pqos executable.
6242# ## If not provided, auto discovery will be performed.
6243# # pqos_path = "/usr/local/bin/pqos"
6244#
6245# ## Optionally specify if IPC and LLC_Misses metrics shouldn't be propagated.
6246# ## If not provided, default value is false.
6247# # shortened_metrics = false
6248#
6249# ## Specify the list of groups of CPU core(s) to be provided as pqos input.
6250# ## Mandatory if processes aren't set and forbidden if processes are specified.
6251# ## e.g. ["0-3", "4,5,6"] or ["1-3,4"]
6252# # cores = ["0-3"]
6253#
6254# ## Specify the list of processes for which Metrics will be collected.
6255# ## Mandatory if cores aren't set and forbidden if cores are specified.
6256# ## e.g. ["qemu", "pmd"]
6257# # processes = ["process"]
6258
6259
5807# # AMQP consumer plugin6260# # AMQP consumer plugin
5808# [[inputs.amqp_consumer]]6261# [[inputs.amqp_consumer]]
5809# ## Broker to consume from.6262# ## Broker to consume from.
@@ -6124,6 +6577,46 @@
6124# data_format = "influx"6577# data_format = "influx"
61256578
61266579
6580# # Ingests files in a directory and then moves them to a target directory.
6581# [[inputs.directory_monitor]]
6582# ## The directory to monitor and read files from.
6583# directory = ""
6584# #
6585# ## The directory to move finished files to.
6586# finished_directory = ""
6587# #
6588# ## The directory to move files to upon file error.
6589# ## If not provided, erroring files will stay in the monitored directory.
6590# # error_directory = ""
6591# #
6592# ## The amount of time a file is allowed to sit in the directory before it is picked up.
6593# ## 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,
6594# ## set this higher so that the plugin will wait until the file is fully copied to the directory.
6595# # directory_duration_threshold = "50ms"
6596# #
6597# ## A list of the only file names to monitor, if necessary. Supports regex. If left blank, all files are ingested.
6598# # files_to_monitor = ["^.*\.csv"]
6599# #
6600# ## A list of files to ignore, if necessary. Supports regex.
6601# # files_to_ignore = [".DS_Store"]
6602# #
6603# ## Maximum lines of the file to process that have not yet be written by the
6604# ## output. For best throughput set to the size of the output's metric_buffer_limit.
6605# ## Warning: setting this number higher than the output's metric_buffer_limit can cause dropped metrics.
6606# # max_buffered_metrics = 10000
6607# #
6608# ## The maximum amount of file paths to queue up for processing at once, before waiting until files are processed to find more files.
6609# ## Lowering this value will result in *slightly* less memory use, with a potential sacrifice in speed efficiency, if absolutely necessary.
6610# # file_queue_size = 100000
6611# #
6612# ## The dataformat to be read from the files.
6613# ## Each data format has its own unique set of configuration options, read
6614# ## more about them here:
6615# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
6616# ## NOTE: We currently only support parsing newline-delimited JSON. See the format here: https://github.com/ndjson/ndjson-spec
6617# data_format = "influx"
6618
6619
6127# # Read logging output from the Docker engine6620# # Read logging output from the Docker engine
6128# [[inputs.docker_log]]6621# [[inputs.docker_log]]
6129# ## Docker Endpoint6622# ## Docker Endpoint
@@ -6486,7 +6979,7 @@
6486# ## This value is propagated to pqos tool. Interval format is defined by pqos itself.6979# ## This value is propagated to pqos tool. Interval format is defined by pqos itself.
6487# ## If not provided or provided 0, will be set to 10 = 10x100ms = 1s.6980# ## If not provided or provided 0, will be set to 10 = 10x100ms = 1s.
6488# # sampling_interval = "10"6981# # sampling_interval = "10"
6489#6982#
6490# ## Optionally specify the path to pqos executable.6983# ## Optionally specify the path to pqos executable.
6491# ## If not provided, auto discovery will be performed.6984# ## If not provided, auto discovery will be performed.
6492# # pqos_path = "/usr/local/bin/pqos"6985# # pqos_path = "/usr/local/bin/pqos"
@@ -6494,12 +6987,12 @@
6494# ## Optionally specify if IPC and LLC_Misses metrics shouldn't be propagated.6987# ## Optionally specify if IPC and LLC_Misses metrics shouldn't be propagated.
6495# ## If not provided, default value is false.6988# ## If not provided, default value is false.
6496# # shortened_metrics = false6989# # shortened_metrics = false
6497#6990#
6498# ## Specify the list of groups of CPU core(s) to be provided as pqos input.6991# ## Specify the list of groups of CPU core(s) to be provided as pqos input.
6499# ## Mandatory if processes aren't set and forbidden if processes are specified.6992# ## Mandatory if processes aren't set and forbidden if processes are specified.
6500# ## e.g. ["0-3", "4,5,6"] or ["1-3,4"]6993# ## e.g. ["0-3", "4,5,6"] or ["1-3,4"]
6501# # cores = ["0-3"]6994# # cores = ["0-3"]
6502#6995#
6503# ## Specify the list of processes for which Metrics will be collected.6996# ## Specify the list of processes for which Metrics will be collected.
6504# ## Mandatory if cores aren't set and forbidden if cores are specified.6997# ## Mandatory if cores aren't set and forbidden if cores are specified.
6505# ## e.g. ["qemu", "pmd"]6998# ## e.g. ["qemu", "pmd"]
@@ -7099,6 +7592,16 @@
7099# ## - prometheus.io/path: If the metrics path is not /metrics, define it with this annotation.7592# ## - prometheus.io/path: If the metrics path is not /metrics, define it with this annotation.
7100# ## - prometheus.io/port: If port is not 9102 use this annotation7593# ## - prometheus.io/port: If port is not 9102 use this annotation
7101# # monitor_kubernetes_pods = true7594# # monitor_kubernetes_pods = true
7595# ## Get the list of pods to scrape with either the scope of
7596# ## - cluster: the kubernetes watch api (default, no need to specify)
7597# ## - 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.
7598# # pod_scrape_scope = "cluster"
7599# ## Only for node scrape scope: node IP of the node that telegraf is running on.
7600# ## Either this config or the environment variable NODE_IP must be set.
7601# # node_ip = "10.180.1.1"
7602# ## Only for node scrape scope: interval in seconds for how often to get updated pod list for scraping.
7603# ## Default is 60 seconds.
7604# # pod_scrape_interval = 60
7102# ## Restricts Kubernetes monitoring to a single namespace7605# ## Restricts Kubernetes monitoring to a single namespace
7103# ## ex: monitor_kubernetes_pods_namespace = "default"7606# ## ex: monitor_kubernetes_pods_namespace = "default"
7104# # monitor_kubernetes_pods_namespace = ""7607# # monitor_kubernetes_pods_namespace = ""
@@ -7313,6 +7816,10 @@
7313# ## Parses datadog extensions to the statsd format7816# ## Parses datadog extensions to the statsd format
7314# datadog_extensions = false7817# datadog_extensions = false
7315#7818#
7819# ## Parses distributions metric as specified in the datadog statsd format
7820# ## https://docs.datadoghq.com/developers/metrics/types/?tab=distribution#definition
7821# datadog_distributions = false
7822#
7316# ## Statsd data translation templates, more info can be read here:7823# ## Statsd data translation templates, more info can be read here:
7317# ## https://github.com/influxdata/telegraf/blob/master/docs/TEMPLATE_PATTERN.md7824# ## https://github.com/influxdata/telegraf/blob/master/docs/TEMPLATE_PATTERN.md
7318# # templates = [7825# # templates = [
@@ -7402,7 +7909,8 @@
7402# ## "/var/log/**.log" -> recursively find all .log files in /var/log7909# ## "/var/log/**.log" -> recursively find all .log files in /var/log
7403# ## "/var/log/*/*.log" -> find all .log files with a parent dir in /var/log7910# ## "/var/log/*/*.log" -> find all .log files with a parent dir in /var/log
7404# ## "/var/log/apache.log" -> just tail the apache log file7911# ## "/var/log/apache.log" -> just tail the apache log file
7405# ##7912# ## "/var/log/log[!1-2]* -> tail files without 1-2
7913# ## "/var/log/log[^1-2]* -> identical behavior as above
7406# ## See https://github.com/gobwas/glob for more examples7914# ## See https://github.com/gobwas/glob for more examples
7407# ##7915# ##
7408# files = ["/var/mymetrics.out"]7916# files = ["/var/mymetrics.out"]
@@ -7436,6 +7944,9 @@
7436# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md7944# ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
7437# data_format = "influx"7945# data_format = "influx"
7438#7946#
7947# ## 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.
7948# # path_tag = "path"
7949#
7439# ## multiline parser/codec7950# ## multiline parser/codec
7440# ## https://www.elastic.co/guide/en/logstash/2.4/plugins-filters-multiline.html7951# ## https://www.elastic.co/guide/en/logstash/2.4/plugins-filters-multiline.html
7441# #[inputs.tail.multiline]7952# #[inputs.tail.multiline]
@@ -7681,3 +8192,4 @@
7681# [[inputs.zipkin]]8192# [[inputs.zipkin]]
7682# # path = "/api/v1/spans" # URL path for span data8193# # path = "/api/v1/spans" # URL path for span data
7683# # port = 9411 # Port on which Telegraf listens8194# # port = 9411 # Port on which Telegraf listens
8195
diff --git a/go.mod b/go.mod
index 912eb3f..f90bf65 100644
--- a/go.mod
+++ b/go.mod
@@ -1,11 +1,11 @@
1module github.com/influxdata/telegraf1module github.com/influxdata/telegraf
22
3go 1.153go 1.16
44
5require (5require (
6 cloud.google.com/go v0.53.06 cloud.google.com/go v0.53.0
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches