From d9d5b058e5b9b1beb62db1c92ff4cfc4c15d22aa Mon Sep 17 00:00:00 2001 From: jgsqware Date: Tue, 7 Jun 2016 10:08:50 +0200 Subject: [PATCH] replace GoDep by Glide --- Godeps/Godeps.json | 152 - Godeps/Readme | 5 - glide.lock | 105 + glide.yaml | 96 + .../bitbucket.org/liamstask/goose/.gitignore | 4 + .../liamstask/goose/MIT-License.md | 7 + .../bitbucket.org/liamstask/goose/README.md | 265 + .../liamstask/goose/cmd/goose/cmd.go | 27 + .../liamstask/goose/cmd/goose/cmd_create.go | 51 + .../goose/cmd/goose/cmd_dbversion.go | 29 + .../liamstask/goose/cmd/goose/cmd_down.go | 36 + .../liamstask/goose/cmd/goose/cmd_redo.go | 39 + .../liamstask/goose/cmd/goose/cmd_status.go | 77 + .../liamstask/goose/cmd/goose/cmd_up.go | 31 + .../liamstask/goose/cmd/goose/main.go | 78 + .../liamstask/goose/db-sample/dbconf.yml | 22 + .../goose/db-sample/migrations/001_basics.sql | 11 + .../goose/db-sample/migrations/002_next.sql | 12 + .../migrations/20130106222315_and_again.go | 15 + .../liamstask/goose/lib/goose/dbconf_test.go | 70 + .../liamstask/goose/lib/goose/migrate_test.go | 71 + .../goose/lib/goose/migration_sql_test.go | 147 + vendor/github.com/beorn7/perks/.gitignore | 2 + vendor/github.com/beorn7/perks/README.md | 31 + .../beorn7/perks/histogram/bench_test.go | 26 + .../beorn7/perks/histogram/histogram.go | 108 + .../beorn7/perks/histogram/histogram_test.go | 38 + .../beorn7/perks/quantile/bench_test.go | 63 + .../beorn7/perks/quantile/example_test.go | 121 + .../beorn7/perks/quantile/stream_test.go | 188 + vendor/github.com/beorn7/perks/topk/topk.go | 90 + .../github.com/beorn7/perks/topk/topk_test.go | 57 + .../codegangsta/negroni/logger_test.go | 33 + .../codegangsta/negroni/negroni_test.go | 75 + .../codegangsta/negroni/recovery_test.go | 28 + .../negroni/response_writer_test.go | 150 + .../codegangsta/negroni/static_test.go | 113 + .../github.com/coreos/go-systemd/.travis.yml | 8 + .../coreos/go-systemd/CONTRIBUTING.md | 77 + vendor/github.com/coreos/go-systemd/DCO | 36 + vendor/github.com/coreos/go-systemd/README.md | 54 + .../coreos/go-systemd/activation/files.go | 52 + .../go-systemd/activation/files_test.go | 82 + .../coreos/go-systemd/activation/listeners.go | 62 + .../go-systemd/activation/listeners_test.go | 86 + .../go-systemd/activation/packetconns.go | 37 + .../go-systemd/activation/packetconns_test.go | 68 + .../coreos/go-systemd/daemon/sdnotify.go | 31 + .../github.com/coreos/go-systemd/dbus/dbus.go | 198 + .../coreos/go-systemd/dbus/dbus_test.go | 77 + .../coreos/go-systemd/dbus/methods.go | 442 + .../coreos/go-systemd/dbus/methods_test.go | 345 + .../coreos/go-systemd/dbus/properties.go | 218 + .../github.com/coreos/go-systemd/dbus/set.go | 47 + .../coreos/go-systemd/dbus/set_test.go | 53 + .../coreos/go-systemd/dbus/subscription.go | 250 + .../go-systemd/dbus/subscription_set.go | 57 + .../go-systemd/dbus/subscription_set_test.go | 82 + .../go-systemd/dbus/subscription_test.go | 105 + .../examples/activation/activation.go | 58 + .../examples/activation/httpserver/README.md | 19 + .../activation/httpserver/hello.service | 11 + .../activation/httpserver/hello.socket | 5 + .../activation/httpserver/httpserver.go | 40 + .../go-systemd/examples/activation/listen.go | 64 + .../go-systemd/examples/activation/udpconn.go | 86 + .../fixtures/enable-disable.service | 5 + .../go-systemd/fixtures/start-stop.service | 5 + .../fixtures/subscribe-events-set.service | 5 + .../fixtures/subscribe-events.service | 5 + .../coreos/go-systemd/login1/dbus.go | 108 + .../coreos/go-systemd/login1/dbus_test.go | 28 + .../coreos/go-systemd/machine1/dbus.go | 81 + .../coreos/go-systemd/machine1/dbus_test.go | 30 + .../coreos/go-systemd/sdjournal/journal.go | 356 + .../go-systemd/sdjournal/journal_test.go | 90 + .../coreos/go-systemd/sdjournal/read.go | 201 + vendor/github.com/coreos/go-systemd/test | 76 + .../coreos/go-systemd/unit/deserialize.go | 276 + .../go-systemd/unit/deserialize_test.go | 381 + .../coreos/go-systemd/unit/end_to_end_test.go | 88 + .../coreos/go-systemd/unit/escape.go | 116 + .../coreos/go-systemd/unit/escape_test.go | 211 + .../coreos/go-systemd/unit/option.go | 54 + .../coreos/go-systemd/unit/option_test.go | 214 + .../coreos/go-systemd/unit/serialize.go | 75 + .../coreos/go-systemd/unit/serialize_test.go | 170 + .../github.com/coreos/go-systemd/util/util.go | 270 + vendor/github.com/coreos/pkg/.gitignore | 27 + vendor/github.com/coreos/pkg/CONTRIBUTING.md | 71 + vendor/github.com/coreos/pkg/DCO | 36 + vendor/github.com/coreos/pkg/MAINTAINERS | 1 + vendor/github.com/coreos/pkg/README.md | 3 + vendor/github.com/coreos/pkg/build | 3 + .../github.com/coreos/pkg/cryptoutil/aes.go | 94 + .../coreos/pkg/cryptoutil/aes_test.go | 93 + vendor/github.com/coreos/pkg/flagutil/env.go | 33 + .../coreos/pkg/flagutil/env_test.go | 64 + .../github.com/coreos/pkg/flagutil/types.go | 44 + .../coreos/pkg/flagutil/types_test.go | 57 + vendor/github.com/coreos/pkg/health/README.md | 11 + vendor/github.com/coreos/pkg/health/health.go | 127 + .../coreos/pkg/health/health_test.go | 198 + .../github.com/coreos/pkg/httputil/README.md | 13 + .../github.com/coreos/pkg/httputil/cookie.go | 21 + .../coreos/pkg/httputil/cookie_test.go | 51 + vendor/github.com/coreos/pkg/httputil/json.go | 27 + .../coreos/pkg/httputil/json_test.go | 56 + .../coreos/pkg/multierror/multierror.go | 32 + .../coreos/pkg/multierror/multierror_test.go | 59 + vendor/github.com/coreos/pkg/netutil/proxy.go | 55 + vendor/github.com/coreos/pkg/netutil/url.go | 17 + .../github.com/coreos/pkg/netutil/url_test.go | 86 + vendor/github.com/coreos/pkg/test | 56 + .../coreos/pkg/timeutil/backoff_test.go | 52 + vendor/github.com/coreos/pkg/yamlutil/yaml.go | 55 + .../coreos/pkg/yamlutil/yaml_test.go | 80 + vendor/github.com/davecgh/go-spew/.gitignore | 22 + vendor/github.com/davecgh/go-spew/.travis.yml | 11 + vendor/github.com/davecgh/go-spew/README.md | 194 + .../github.com/davecgh/go-spew/cov_report.sh | 22 + .../davecgh/go-spew/spew/common_test.go | 298 + .../davecgh/go-spew/spew/dump_test.go | 1042 + .../davecgh/go-spew/spew/dumpcgo_test.go | 98 + .../davecgh/go-spew/spew/dumpnocgo_test.go | 26 + .../davecgh/go-spew/spew/example_test.go | 226 + .../davecgh/go-spew/spew/format_test.go | 1558 ++ .../davecgh/go-spew/spew/internal_test.go | 87 + .../go-spew/spew/internalunsafe_test.go | 101 + .../davecgh/go-spew/spew/spew_test.go | 309 + .../davecgh/go-spew/spew/testdata/dumpcgo.go | 82 + .../davecgh/go-spew/test_coverage.txt | 61 + vendor/github.com/fatih/color | 1 + .../fernet/fernet-go/example_test.go | 20 + .../fernet/fernet-go/fernet_test.go | 159 + .../github.com/fernet/fernet-go/key_test.go | 106 + .../go-sql-driver/mysql/benchmark_test.go | 246 + .../go-sql-driver/mysql/driver_test.go | 1681 ++ .../go-sql-driver/mysql/errors_test.go | 42 + .../go-sql-driver/mysql/utils_test.go | 346 + vendor/github.com/golang/protobuf/.gitignore | 17 + vendor/github.com/golang/protobuf/AUTHORS | 3 + .../github.com/golang/protobuf/CONTRIBUTORS | 3 + .../github.com/golang/protobuf/Make.protobuf | 40 + vendor/github.com/golang/protobuf/Makefile | 56 + vendor/github.com/golang/protobuf/README.md | 192 + .../golang/protobuf/jsonpb/jsonpb.go | 524 + .../golang/protobuf/jsonpb/jsonpb_test.go | 391 + .../jsonpb/jsonpb_test_proto/Makefile | 33 + .../jsonpb_test_proto/more_test_objects.proto | 46 + .../jsonpb_test_proto/test_objects.proto | 110 + .../golang/protobuf/proto/all_test.go | 2169 +++ .../golang/protobuf/proto/clone_test.go | 267 + .../golang/protobuf/proto/equal_test.go | 212 + .../golang/protobuf/proto/extensions_test.go | 430 + .../golang/protobuf/proto/message_set_test.go | 66 + .../golang/protobuf/proto/proto3_test.go | 125 + .../golang/protobuf/proto/size2_test.go | 63 + .../golang/protobuf/proto/size_test.go | 164 + .../golang/protobuf/proto/testdata/Makefile | 50 + .../protobuf/proto/testdata/golden_test.go | 86 + .../golang/protobuf/proto/testdata/test.proto | 535 + .../golang/protobuf/proto/text_parser_test.go | 532 + .../golang/protobuf/proto/text_test.go | 474 + .../golang/protobuf/protoc-gen-go/Makefile | 33 + .../protoc-gen-go/descriptor/Makefile | 39 + .../golang/protobuf/protoc-gen-go/doc.go | 51 + .../protobuf/protoc-gen-go/generator/Makefile | 40 + .../protoc-gen-go/generator/generator.go | 2717 +++ .../protoc-gen-go/generator/name_test.go | 56 + .../protoc-gen-go/internal/grpc/grpc.go | 442 + .../protobuf/protoc-gen-go/link_grpc.go | 34 + .../golang/protobuf/protoc-gen-go/main.go | 98 + .../protobuf/protoc-gen-go/plugin/Makefile | 45 + .../protoc-gen-go/plugin/plugin.pb.golden | 83 + .../protobuf/protoc-gen-go/testdata/Makefile | 72 + .../testdata/extension_base.proto | 46 + .../testdata/extension_extra.proto | 38 + .../protoc-gen-go/testdata/extension_test.go | 210 + .../testdata/extension_user.proto | 100 + .../protoc-gen-go/testdata/grpc.proto | 59 + .../protoc-gen-go/testdata/imp.pb.go.golden | 113 + .../protobuf/protoc-gen-go/testdata/imp.proto | 70 + .../protoc-gen-go/testdata/imp2.proto | 43 + .../protoc-gen-go/testdata/imp3.proto | 38 + .../protoc-gen-go/testdata/main_test.go | 46 + .../protoc-gen-go/testdata/multi/multi1.proto | 44 + .../protoc-gen-go/testdata/multi/multi2.proto | 46 + .../protoc-gen-go/testdata/multi/multi3.proto | 43 + .../testdata/my_test/test.pb.go.golden | 882 + .../protoc-gen-go/testdata/my_test/test.proto | 156 + .../protoc-gen-go/testdata/proto3.proto | 52 + vendor/github.com/guregu/null/.gitignore | 1 + vendor/github.com/guregu/null/README.md | 75 + vendor/github.com/guregu/null/bool.go | 129 + vendor/github.com/guregu/null/bool_test.go | 201 + vendor/github.com/guregu/null/float.go | 117 + vendor/github.com/guregu/null/float_test.go | 169 + vendor/github.com/guregu/null/int.go | 118 + vendor/github.com/guregu/null/int_test.go | 196 + vendor/github.com/guregu/null/string.go | 102 + vendor/github.com/guregu/null/string_test.go | 197 + vendor/github.com/guregu/null/time.go | 135 + vendor/github.com/guregu/null/time_test.go | 175 + .../github.com/guregu/null/zero/bool_test.go | 187 + .../github.com/guregu/null/zero/float_test.go | 180 + .../github.com/guregu/null/zero/int_test.go | 207 + .../guregu/null/zero/string_test.go | 189 + .../github.com/guregu/null/zero/time_test.go | 209 + .../hashicorp/golang-lru/2q_test.go | 306 + .../hashicorp/golang-lru/arc_test.go | 377 + .../hashicorp/golang-lru/lru_test.go | 221 + .../golang-lru/simplelru/lru_test.go | 167 + .../julienschmidt/httprouter/path_test.go | 92 + .../julienschmidt/httprouter/router_test.go | 420 + .../julienschmidt/httprouter/tree_test.go | 635 + vendor/github.com/kr/text | 1 + .../github.com/kylelemons/go-gypsy/.gitignore | 18 + vendor/github.com/kylelemons/go-gypsy/README | 1 + .../go-gypsy/example/yget/.gitignore | 1 + .../kylelemons/go-gypsy/example/yget/Makefile | 11 + .../go-gypsy/example/yget/config.yaml | 16 + .../kylelemons/go-gypsy/example/yget/main.go | 78 + .../kylelemons/go-gypsy/yaml/config_test.go | 99 + .../kylelemons/go-gypsy/yaml/parser_test.go | 233 + .../kylelemons/go-gypsy/yaml/types_test.go | 128 + vendor/github.com/lib/pq/bench_test.go | 435 + vendor/github.com/lib/pq/conn_test.go | 1359 ++ vendor/github.com/lib/pq/copy_test.go | 462 + vendor/github.com/lib/pq/encode_test.go | 719 + .../github.com/lib/pq/hstore/hstore_test.go | 148 + vendor/github.com/lib/pq/notify_test.go | 574 + vendor/github.com/lib/pq/ssl_test.go | 226 + vendor/github.com/lib/pq/url_test.go | 54 + .../go-sqlite3/_example/custom_func/main.go | 133 + .../mattn/go-sqlite3/_example/hook/hook.go | 71 + .../go-sqlite3/_example/mod_regexp/Makefile | 22 + .../_example/mod_regexp/extension.go | 43 + .../_example/mod_regexp/sqlite3_mod_regexp.c | 31 + .../go-sqlite3/_example/mod_vtable/Makefile | 24 + .../_example/mod_vtable/extension.go | 36 + .../go-sqlite3/_example/mod_vtable/picojson.h | 1040 + .../_example/mod_vtable/sqlite3_mod_vtable.cc | 238 + .../go-sqlite3/_example/simple/simple.go | 92 + .../mattn/go-sqlite3/callback_test.go | 97 + .../github.com/mattn/go-sqlite3/error_test.go | 242 + .../mattn/go-sqlite3/sqlite3_fts3_test.go | 127 + .../mattn/go-sqlite3/sqlite3_test.go | 1315 ++ .../golang_protobuf_extensions/.travis.yml | 2 + .../golang_protobuf_extensions/README.md | 20 + .../golang_protobuf_extensions/ext/moved.go | 2 + .../golang_protobuf_extensions/pbtest/doc.go | 16 + .../pbtest/example_test.go | 64 + .../pbtest/quick.go | 78 + .../pbutil/all_test.go | 320 + .../pbutil/fixtures_test.go | 103 + vendor/github.com/pborman/uuid/dce.go | 0 vendor/github.com/pborman/uuid/doc.go | 0 vendor/github.com/pborman/uuid/json_test.go | 32 + vendor/github.com/pborman/uuid/node.go | 0 vendor/github.com/pborman/uuid/seq_test.go | 66 + vendor/github.com/pborman/uuid/sql_test.go | 58 + vendor/github.com/pborman/uuid/time.go | 0 vendor/github.com/pborman/uuid/uuid.go | 0 vendor/github.com/pborman/uuid/uuid_test.go | 390 + .../github.com/pmezard/go-difflib/.travis.yml | 5 + .../github.com/pmezard/go-difflib/README.md | 50 + .../go-difflib/difflib/difflib_test.go | 391 + .../prometheus/client_golang/.gitignore | 26 + .../prometheus/client_golang/.travis.yml | 8 + .../prometheus/client_golang/AUTHORS.md | 18 + .../prometheus/client_golang/CHANGELOG.md | 86 + .../prometheus/client_golang/CONTRIBUTING.md | 18 + .../prometheus/client_golang/README.md | 45 + .../prometheus/client_golang/VERSION | 1 + .../client_golang/api/prometheus/api.go | 341 + .../client_golang/api/prometheus/api_test.go | 453 + .../client_golang/examples/random/main.go | 103 + .../client_golang/examples/simple/main.go | 30 + .../prometheus/benchmark_test.go | 183 + .../client_golang/prometheus/counter_test.go | 58 + .../prometheus/example_clustermanager_test.go | 130 + .../prometheus/example_memstats_test.go | 87 + .../prometheus/example_selfcollector_test.go | 69 + .../client_golang/prometheus/examples_test.go | 649 + .../client_golang/prometheus/expvar_test.go | 97 + .../client_golang/prometheus/gauge_test.go | 182 + .../prometheus/go_collector_test.go | 123 + .../prometheus/histogram_test.go | 326 + .../client_golang/prometheus/http_test.go | 121 + .../client_golang/prometheus/metric_test.go | 35 + .../prometheus/process_collector_test.go | 54 + .../client_golang/prometheus/registry_test.go | 535 + .../client_golang/prometheus/summary_test.go | 347 + .../client_golang/prometheus/vec_test.go | 88 + .../prometheus/client_model/.gitignore | 1 + .../prometheus/client_model/AUTHORS.md | 13 + .../prometheus/client_model/CONTRIBUTING.md | 18 + .../prometheus/client_model/Makefile | 61 + .../prometheus/client_model/README.md | 26 + .../prometheus/client_model/cpp/metrics.pb.cc | 3380 ++++ .../prometheus/client_model/cpp/metrics.pb.h | 2072 ++ .../prometheus/client_model/metrics.proto | 81 + .../prometheus/client_model/pom.xml | 130 + .../python/prometheus/__init__.py | 12 + .../python/prometheus/client/__init__.py | 12 + .../prometheus/client/model/__init__.py | 14 + .../prometheus/client/model/metrics_pb2.py | 575 + .../prometheus/client_model/ruby/.gitignore | 5 + .../prometheus/client_model/ruby/Gemfile | 4 + .../prometheus/client_model/ruby/Makefile | 17 + .../prometheus/client_model/ruby/README.md | 31 + .../prometheus/client_model/ruby/Rakefile | 1 + .../ruby/lib/prometheus/client/model.rb | 2 + .../lib/prometheus/client/model/metrics.pb.rb | 111 + .../lib/prometheus/client/model/version.rb | 7 + .../ruby/prometheus-client-model.gemspec | 22 + .../prometheus/client_model/setup.py | 23 + .../java/io/prometheus/client/Metrics.java | 7683 ++++++++ .../github.com/prometheus/common/.travis.yml | 7 + .../github.com/prometheus/common/AUTHORS.md | 11 + .../prometheus/common/CONTRIBUTING.md | 18 + vendor/github.com/prometheus/common/README.md | 10 + .../prometheus/common/expfmt/bench_test.go | 171 + .../prometheus/common/expfmt/decode_test.go | 367 + .../common/expfmt/json_decode_test.go | 139 + .../prometheus/common/expfmt/testdata/json2 | 46 + .../common/expfmt/testdata/json2_bad | 46 + .../common/expfmt/testdata/protobuf | 516 + .../common/expfmt/testdata/protobuf.gz | 129 + .../prometheus/common/expfmt/testdata/test.gz | 163 + .../prometheus/common/expfmt/testdata/text | 322 + .../common/expfmt/text_create_test.go | 443 + .../common/expfmt/text_parse_test.go | 586 + .../ww/goautoneg/autoneg_test.go | 33 + .../github.com/prometheus/common/log/log.go | 304 + .../prometheus/common/log/log_test.go | 39 + .../prometheus/common/log/syslog_formatter.go | 119 + .../prometheus/common/model/alert_test.go | 118 + .../prometheus/common/model/labels_test.go | 129 + .../prometheus/common/model/metric_test.go | 121 + .../prometheus/common/model/signature_test.go | 304 + .../prometheus/common/model/silence_test.go | 228 + .../prometheus/common/model/time_test.go | 129 + .../prometheus/common/model/value_test.go | 362 + .../prometheus/common/route/route.go | 119 + .../prometheus/common/route/route_test.go | 27 + .../github.com/prometheus/procfs/fs_test.go | 13 + .../github.com/prometheus/procfs/ipvs_test.go | 190 + .../prometheus/procfs/mdstat_test.go | 31 + .../prometheus/procfs/proc_io_test.go | 33 + .../prometheus/procfs/proc_limits_test.go | 31 + .../prometheus/procfs/proc_stat_test.go | 107 + .../github.com/prometheus/procfs/proc_test.go | 160 + .../github.com/prometheus/procfs/stat_test.go | 14 + vendor/github.com/shiena/ansicolor | 1 + vendor/github.com/stretchr/testify/.gitignore | 24 + .../github.com/stretchr/testify/.travis.yml | 13 + vendor/github.com/stretchr/testify/README.md | 332 + .../testify/assert/assertions_test.go | 1089 ++ .../testify/assert/forward_assertions_test.go | 611 + .../testify/assert/http_assertions_test.go | 86 + vendor/github.com/stretchr/testify/doc.go | 22 + .../github.com/stretchr/testify/http/doc.go | 2 + .../testify/http/test_response_writer.go | 52 + .../testify/http/test_round_tripper.go | 15 + .../github.com/stretchr/testify/mock/doc.go | 43 + .../github.com/stretchr/testify/mock/mock.go | 680 + .../stretchr/testify/mock/mock_test.go | 1068 ++ .../stretchr/testify/package_test.go | 12 + .../stretchr/testify/require/doc.go | 27 + .../testify/require/forward_requirements.go | 230 + .../require/forward_requirements_test.go | 385 + .../stretchr/testify/require/requirements.go | 308 + .../testify/require/requirements_test.go | 369 + .../github.com/stretchr/testify/suite/doc.go | 65 + .../stretchr/testify/suite/interfaces.go | 34 + .../stretchr/testify/suite/suite.go | 115 + .../stretchr/testify/suite/suite_test.go | 239 + vendor/github.com/tylerb/graceful/.travis.yml | 12 + vendor/github.com/tylerb/graceful/README.md | 17 +- vendor/github.com/tylerb/graceful/graceful.go | 173 +- .../tylerb/graceful/graceful_test.go | 537 + .../github.com/tylerb/graceful/http2_test.go | 123 + .../tylerb/graceful/test-fixtures/cert.crt | 43 + .../tylerb/graceful/test-fixtures/key.pem | 27 + vendor/github.com/ziutek/mymysql/.gitignore | 10 + vendor/github.com/ziutek/mymysql/README.md | 720 + vendor/github.com/ziutek/mymysql/all.bash | 4 + .../ziutek/mymysql/autorc/autorecon.go | 354 + .../ziutek/mymysql/autorc/autorecon_test.go | 100 + .../examples/database_sql/database_sql.go | 37 + .../mymysql/examples/long_data/long_data.go | 133 + .../mymysql/examples/parallel/parallel.go | 96 + .../examples/prepared_stmt/prepared_stmt.go | 112 + .../mymysql/examples/reconnect/reconnect.go | 108 + .../ziutek/mymysql/examples/simple/simple.go | 88 + .../examples/transactions/transactions.go | 115 + .../ziutek/mymysql/godrv/driver_test.go | 350 + .../ziutek/mymysql/mysql/types_test.go | 100 + .../ziutek/mymysql/native/bind_test.go | 386 + .../ziutek/mymysql/native/native_test.go | 1218 ++ .../ziutek/mymysql/thrsafe/thrsafe.go | 349 + .../ziutek/mymysql/thrsafe/thrsafe_test.go | 136 + vendor/golang.org/x/net/.gitattributes | 10 + vendor/golang.org/x/net/.gitignore | 2 + vendor/golang.org/x/net/AUTHORS | 3 + vendor/golang.org/x/net/CONTRIBUTING.md | 31 + vendor/golang.org/x/net/CONTRIBUTORS | 3 + vendor/golang.org/x/net/README | 3 + vendor/golang.org/x/net/codereview.cfg | 1 + vendor/golang.org/x/net/context/context.go | 447 + .../golang.org/x/net/context/context_test.go | 575 + .../x/net/context/ctxhttp/cancelreq.go | 19 + .../x/net/context/ctxhttp/cancelreq_go14.go | 23 + .../x/net/context/ctxhttp/ctxhttp.go | 123 + .../x/net/context/ctxhttp/ctxhttp_test.go | 111 + .../x/net/context/withtimeout_test.go | 26 + vendor/golang.org/x/net/dict/dict.go | 210 + vendor/golang.org/x/net/html/atom/atom.go | 78 + .../golang.org/x/net/html/atom/atom_test.go | 109 + vendor/golang.org/x/net/html/atom/gen.go | 648 + vendor/golang.org/x/net/html/atom/table.go | 713 + .../golang.org/x/net/html/atom/table_test.go | 351 + .../golang.org/x/net/html/charset/charset.go | 257 + .../x/net/html/charset/charset_test.go | 237 + .../html/charset/testdata/HTTP-charset.html | 48 + .../charset/testdata/HTTP-vs-UTF-8-BOM.html | 48 + .../testdata/HTTP-vs-meta-charset.html | 49 + .../testdata/HTTP-vs-meta-content.html | 49 + .../testdata/No-encoding-declaration.html | 47 + .../x/net/html/charset/testdata/README | 9 + .../html/charset/testdata/UTF-16BE-BOM.html | Bin 0 -> 2670 bytes .../html/charset/testdata/UTF-16LE-BOM.html | Bin 0 -> 2682 bytes .../testdata/UTF-8-BOM-vs-meta-charset.html | 49 + .../testdata/UTF-8-BOM-vs-meta-content.html | 48 + .../testdata/meta-charset-attribute.html | 48 + .../testdata/meta-content-attribute.html | 48 + vendor/golang.org/x/net/html/const.go | 102 + vendor/golang.org/x/net/html/doc.go | 106 + vendor/golang.org/x/net/html/doctype.go | 156 + vendor/golang.org/x/net/html/entity.go | 2253 +++ vendor/golang.org/x/net/html/entity_test.go | 29 + vendor/golang.org/x/net/html/escape.go | 258 + vendor/golang.org/x/net/html/escape_test.go | 97 + vendor/golang.org/x/net/html/example_test.go | 40 + vendor/golang.org/x/net/html/foreign.go | 226 + vendor/golang.org/x/net/html/node.go | 193 + vendor/golang.org/x/net/html/node_test.go | 146 + vendor/golang.org/x/net/html/parse.go | 2094 +++ vendor/golang.org/x/net/html/parse_test.go | 388 + vendor/golang.org/x/net/html/render.go | 271 + vendor/golang.org/x/net/html/render_test.go | 156 + .../golang.org/x/net/html/testdata/go1.html | 2237 +++ .../x/net/html/testdata/webkit/README | 28 + .../x/net/html/testdata/webkit/adoption01.dat | 194 + .../x/net/html/testdata/webkit/adoption02.dat | 31 + .../x/net/html/testdata/webkit/comments01.dat | 135 + .../x/net/html/testdata/webkit/doctype01.dat | 370 + .../x/net/html/testdata/webkit/entities01.dat | 603 + .../x/net/html/testdata/webkit/entities02.dat | 249 + .../html/testdata/webkit/html5test-com.dat | 246 + .../x/net/html/testdata/webkit/inbody01.dat | 43 + .../x/net/html/testdata/webkit/isindex.dat | 40 + ...pending-spec-changes-plain-text-unsafe.dat | Bin 0 -> 115 bytes .../testdata/webkit/pending-spec-changes.dat | 52 + .../testdata/webkit/plain-text-unsafe.dat | Bin 0 -> 4166 bytes .../net/html/testdata/webkit/scriptdata01.dat | 308 + .../testdata/webkit/scripted/adoption01.dat | 15 + .../testdata/webkit/scripted/webkit01.dat | 28 + .../x/net/html/testdata/webkit/tables01.dat | 212 + .../x/net/html/testdata/webkit/tests1.dat | 1952 ++ .../x/net/html/testdata/webkit/tests10.dat | 799 + .../x/net/html/testdata/webkit/tests11.dat | 482 + .../x/net/html/testdata/webkit/tests12.dat | 62 + .../x/net/html/testdata/webkit/tests14.dat | 74 + .../x/net/html/testdata/webkit/tests15.dat | 208 + .../x/net/html/testdata/webkit/tests16.dat | 2299 +++ .../x/net/html/testdata/webkit/tests17.dat | 153 + .../x/net/html/testdata/webkit/tests18.dat | 269 + .../x/net/html/testdata/webkit/tests19.dat | 1237 ++ .../x/net/html/testdata/webkit/tests2.dat | 763 + .../x/net/html/testdata/webkit/tests20.dat | 455 + .../x/net/html/testdata/webkit/tests21.dat | 221 + .../x/net/html/testdata/webkit/tests22.dat | 157 + .../x/net/html/testdata/webkit/tests23.dat | 155 + .../x/net/html/testdata/webkit/tests24.dat | 79 + .../x/net/html/testdata/webkit/tests25.dat | 219 + .../x/net/html/testdata/webkit/tests26.dat | 313 + .../x/net/html/testdata/webkit/tests3.dat | 305 + .../x/net/html/testdata/webkit/tests4.dat | 59 + .../x/net/html/testdata/webkit/tests5.dat | 191 + .../x/net/html/testdata/webkit/tests6.dat | 663 + .../x/net/html/testdata/webkit/tests7.dat | 390 + .../x/net/html/testdata/webkit/tests8.dat | 148 + .../x/net/html/testdata/webkit/tests9.dat | 457 + .../testdata/webkit/tests_innerHTML_1.dat | 741 + .../x/net/html/testdata/webkit/tricky01.dat | 261 + .../x/net/html/testdata/webkit/webkit01.dat | 610 + .../x/net/html/testdata/webkit/webkit02.dat | 159 + vendor/golang.org/x/net/html/token.go | 1219 ++ vendor/golang.org/x/net/html/token_test.go | 748 + vendor/golang.org/x/net/http2/.gitignore | 2 + vendor/golang.org/x/net/http2/Dockerfile | 51 + vendor/golang.org/x/net/http2/Makefile | 3 + vendor/golang.org/x/net/http2/README | 20 + .../x/net/http2/client_conn_pool.go | 158 + .../x/net/http2/configure_transport.go | 81 + vendor/golang.org/x/net/http2/errors.go | 90 + vendor/golang.org/x/net/http2/errors_test.go | 24 + vendor/golang.org/x/net/http2/fixed_buffer.go | 60 + .../x/net/http2/fixed_buffer_test.go | 128 + vendor/golang.org/x/net/http2/flow.go | 50 + vendor/golang.org/x/net/http2/flow_test.go | 53 + vendor/golang.org/x/net/http2/frame.go | 1193 ++ vendor/golang.org/x/net/http2/frame_test.go | 735 + vendor/golang.org/x/net/http2/go15.go | 11 + vendor/golang.org/x/net/http2/gotrack.go | 170 + vendor/golang.org/x/net/http2/gotrack_test.go | 33 + .../golang.org/x/net/http2/h2demo/.gitignore | 5 + vendor/golang.org/x/net/http2/h2demo/Makefile | 8 + vendor/golang.org/x/net/http2/h2demo/README | 16 + .../golang.org/x/net/http2/h2demo/h2demo.go | 472 + .../golang.org/x/net/http2/h2demo/launch.go | 302 + .../golang.org/x/net/http2/h2demo/rootCA.key | 27 + .../golang.org/x/net/http2/h2demo/rootCA.pem | 26 + .../golang.org/x/net/http2/h2demo/rootCA.srl | 1 + .../golang.org/x/net/http2/h2demo/server.crt | 20 + .../golang.org/x/net/http2/h2demo/server.key | 27 + vendor/golang.org/x/net/http2/h2i/README.md | 97 + vendor/golang.org/x/net/http2/h2i/h2i.go | 499 + vendor/golang.org/x/net/http2/headermap.go | 78 + vendor/golang.org/x/net/http2/hpack/encode.go | 251 + .../x/net/http2/hpack/encode_test.go | 330 + vendor/golang.org/x/net/http2/hpack/hpack.go | 525 + .../x/net/http2/hpack/hpack_test.go | 813 + .../golang.org/x/net/http2/hpack/huffman.go | 190 + vendor/golang.org/x/net/http2/hpack/tables.go | 352 + vendor/golang.org/x/net/http2/http2.go | 271 + vendor/golang.org/x/net/http2/http2_test.go | 174 + vendor/golang.org/x/net/http2/not_go15.go | 11 + vendor/golang.org/x/net/http2/not_go16.go | 13 + vendor/golang.org/x/net/http2/pipe.go | 147 + vendor/golang.org/x/net/http2/pipe_test.go | 109 + .../golang.org/x/net/http2/priority_test.go | 118 + vendor/golang.org/x/net/http2/server.go | 2140 +++ vendor/golang.org/x/net/http2/server_test.go | 2899 +++ .../testdata/draft-ietf-httpbis-http2.xml | 5021 +++++ vendor/golang.org/x/net/http2/transport.go | 1486 ++ .../golang.org/x/net/http2/transport_test.go | 821 + vendor/golang.org/x/net/http2/write.go | 248 + vendor/golang.org/x/net/http2/writesched.go | 283 + vendor/golang.org/x/net/http2/z_spec_test.go | 356 + vendor/golang.org/x/net/icmp/dstunreach.go | 41 + vendor/golang.org/x/net/icmp/echo.go | 43 + vendor/golang.org/x/net/icmp/endpoint.go | 113 + vendor/golang.org/x/net/icmp/example_test.go | 63 + vendor/golang.org/x/net/icmp/extension.go | 87 + .../golang.org/x/net/icmp/extension_test.go | 259 + vendor/golang.org/x/net/icmp/helper_posix.go | 75 + vendor/golang.org/x/net/icmp/interface.go | 235 + vendor/golang.org/x/net/icmp/ipv4.go | 61 + vendor/golang.org/x/net/icmp/ipv4_test.go | 71 + vendor/golang.org/x/net/icmp/ipv6.go | 23 + vendor/golang.org/x/net/icmp/listen_posix.go | 98 + vendor/golang.org/x/net/icmp/listen_stub.go | 33 + vendor/golang.org/x/net/icmp/message.go | 149 + vendor/golang.org/x/net/icmp/message_test.go | 134 + vendor/golang.org/x/net/icmp/messagebody.go | 41 + vendor/golang.org/x/net/icmp/mpls.go | 75 + vendor/golang.org/x/net/icmp/multipart.go | 109 + .../golang.org/x/net/icmp/multipart_test.go | 442 + vendor/golang.org/x/net/icmp/packettoobig.go | 41 + vendor/golang.org/x/net/icmp/paramprob.go | 60 + vendor/golang.org/x/net/icmp/ping_test.go | 166 + vendor/golang.org/x/net/icmp/sys_freebsd.go | 11 + vendor/golang.org/x/net/icmp/timeexceeded.go | 39 + vendor/golang.org/x/net/idna/idna.go | 68 + vendor/golang.org/x/net/idna/idna_test.go | 43 + vendor/golang.org/x/net/idna/punycode.go | 200 + vendor/golang.org/x/net/idna/punycode_test.go | 198 + .../golang.org/x/net/internal/iana/const.go | 181 + vendor/golang.org/x/net/internal/iana/gen.go | 293 + .../x/net/internal/nettest/error_posix.go | 31 + .../x/net/internal/nettest/error_stub.go | 11 + .../x/net/internal/nettest/interface.go | 94 + .../x/net/internal/nettest/rlimit.go | 11 + .../x/net/internal/nettest/rlimit_stub.go | 9 + .../x/net/internal/nettest/rlimit_unix.go | 17 + .../x/net/internal/nettest/rlimit_windows.go | 7 + .../x/net/internal/nettest/stack.go | 36 + .../x/net/internal/nettest/stack_stub.go | 18 + .../x/net/internal/nettest/stack_unix.go | 22 + .../x/net/internal/nettest/stack_windows.go | 32 + .../x/net/internal/timeseries/timeseries.go | 525 + .../internal/timeseries/timeseries_test.go | 170 + vendor/golang.org/x/net/ipv4/control.go | 70 + vendor/golang.org/x/net/ipv4/control_bsd.go | 40 + .../golang.org/x/net/ipv4/control_pktinfo.go | 37 + vendor/golang.org/x/net/ipv4/control_stub.go | 23 + vendor/golang.org/x/net/ipv4/control_unix.go | 164 + .../golang.org/x/net/ipv4/control_windows.go | 27 + vendor/golang.org/x/net/ipv4/defs_darwin.go | 77 + .../golang.org/x/net/ipv4/defs_dragonfly.go | 38 + vendor/golang.org/x/net/ipv4/defs_freebsd.go | 75 + vendor/golang.org/x/net/ipv4/defs_linux.go | 111 + vendor/golang.org/x/net/ipv4/defs_netbsd.go | 37 + vendor/golang.org/x/net/ipv4/defs_openbsd.go | 37 + vendor/golang.org/x/net/ipv4/defs_solaris.go | 57 + .../golang.org/x/net/ipv4/dgramopt_posix.go | 251 + vendor/golang.org/x/net/ipv4/dgramopt_stub.go | 106 + vendor/golang.org/x/net/ipv4/doc.go | 242 + vendor/golang.org/x/net/ipv4/endpoint.go | 187 + vendor/golang.org/x/net/ipv4/example_test.go | 224 + vendor/golang.org/x/net/ipv4/gen.go | 208 + .../golang.org/x/net/ipv4/genericopt_posix.go | 59 + .../golang.org/x/net/ipv4/genericopt_stub.go | 29 + vendor/golang.org/x/net/ipv4/header.go | 140 + vendor/golang.org/x/net/ipv4/header_test.go | 119 + vendor/golang.org/x/net/ipv4/helper.go | 42 + vendor/golang.org/x/net/ipv4/helper_stub.go | 23 + vendor/golang.org/x/net/ipv4/helper_unix.go | 50 + .../golang.org/x/net/ipv4/helper_windows.go | 49 + vendor/golang.org/x/net/ipv4/iana.go | 34 + vendor/golang.org/x/net/ipv4/icmp.go | 57 + vendor/golang.org/x/net/ipv4/icmp_linux.go | 25 + vendor/golang.org/x/net/ipv4/icmp_stub.go | 25 + vendor/golang.org/x/net/ipv4/icmp_test.go | 95 + .../x/net/ipv4/mocktransponder_test.go | 21 + .../golang.org/x/net/ipv4/multicast_test.go | 330 + .../x/net/ipv4/multicastlistener_test.go | 249 + .../x/net/ipv4/multicastsockopt_test.go | 195 + vendor/golang.org/x/net/ipv4/packet.go | 97 + vendor/golang.org/x/net/ipv4/payload.go | 15 + vendor/golang.org/x/net/ipv4/payload_cmsg.go | 81 + .../golang.org/x/net/ipv4/payload_nocmsg.go | 42 + .../golang.org/x/net/ipv4/readwrite_test.go | 174 + vendor/golang.org/x/net/ipv4/sockopt.go | 46 + .../golang.org/x/net/ipv4/sockopt_asmreq.go | 83 + .../x/net/ipv4/sockopt_asmreq_stub.go | 21 + .../x/net/ipv4/sockopt_asmreq_unix.go | 46 + .../x/net/ipv4/sockopt_asmreq_windows.go | 45 + .../x/net/ipv4/sockopt_asmreqn_stub.go | 17 + .../x/net/ipv4/sockopt_asmreqn_unix.go | 42 + .../x/net/ipv4/sockopt_ssmreq_stub.go | 17 + .../x/net/ipv4/sockopt_ssmreq_unix.go | 61 + vendor/golang.org/x/net/ipv4/sockopt_stub.go | 11 + vendor/golang.org/x/net/ipv4/sockopt_unix.go | 122 + .../golang.org/x/net/ipv4/sockopt_windows.go | 68 + vendor/golang.org/x/net/ipv4/sys_bsd.go | 36 + vendor/golang.org/x/net/ipv4/sys_darwin.go | 98 + vendor/golang.org/x/net/ipv4/sys_freebsd.go | 75 + vendor/golang.org/x/net/ipv4/sys_linux.go | 57 + vendor/golang.org/x/net/ipv4/sys_openbsd.go | 34 + vendor/golang.org/x/net/ipv4/sys_stub.go | 15 + vendor/golang.org/x/net/ipv4/sys_windows.go | 61 + .../x/net/ipv4/syscall_linux_386.go | 31 + vendor/golang.org/x/net/ipv4/syscall_unix.go | 26 + .../golang.org/x/net/ipv4/thunk_linux_386.s | 8 + vendor/golang.org/x/net/ipv4/unicast_test.go | 246 + .../x/net/ipv4/unicastsockopt_test.go | 139 + vendor/golang.org/x/net/ipv4/zsys_darwin.go | 99 + .../golang.org/x/net/ipv4/zsys_dragonfly.go | 33 + .../golang.org/x/net/ipv4/zsys_freebsd_386.go | 93 + .../x/net/ipv4/zsys_freebsd_amd64.go | 95 + .../golang.org/x/net/ipv4/zsys_freebsd_arm.go | 95 + .../golang.org/x/net/ipv4/zsys_linux_386.go | 130 + .../golang.org/x/net/ipv4/zsys_linux_amd64.go | 132 + .../golang.org/x/net/ipv4/zsys_linux_arm.go | 130 + .../golang.org/x/net/ipv4/zsys_linux_arm64.go | 134 + .../x/net/ipv4/zsys_linux_mips64.go | 134 + .../x/net/ipv4/zsys_linux_mips64le.go | 134 + .../golang.org/x/net/ipv4/zsys_linux_ppc64.go | 134 + .../x/net/ipv4/zsys_linux_ppc64le.go | 134 + vendor/golang.org/x/net/ipv4/zsys_netbsd.go | 30 + vendor/golang.org/x/net/ipv4/zsys_openbsd.go | 30 + vendor/golang.org/x/net/ipv4/zsys_solaris.go | 60 + vendor/golang.org/x/net/ipv6/control.go | 85 + .../x/net/ipv6/control_rfc2292_unix.go | 56 + .../x/net/ipv6/control_rfc3542_unix.go | 103 + vendor/golang.org/x/net/ipv6/control_stub.go | 23 + vendor/golang.org/x/net/ipv6/control_unix.go | 166 + .../golang.org/x/net/ipv6/control_windows.go | 27 + vendor/golang.org/x/net/ipv6/defs_darwin.go | 112 + .../golang.org/x/net/ipv6/defs_dragonfly.go | 84 + vendor/golang.org/x/net/ipv6/defs_freebsd.go | 105 + vendor/golang.org/x/net/ipv6/defs_linux.go | 136 + vendor/golang.org/x/net/ipv6/defs_netbsd.go | 80 + vendor/golang.org/x/net/ipv6/defs_openbsd.go | 89 + vendor/golang.org/x/net/ipv6/defs_solaris.go | 96 + .../golang.org/x/net/ipv6/dgramopt_posix.go | 288 + vendor/golang.org/x/net/ipv6/dgramopt_stub.go | 119 + vendor/golang.org/x/net/ipv6/doc.go | 240 + vendor/golang.org/x/net/ipv6/endpoint.go | 123 + vendor/golang.org/x/net/ipv6/example_test.go | 216 + vendor/golang.org/x/net/ipv6/gen.go | 208 + .../golang.org/x/net/ipv6/genericopt_posix.go | 60 + .../golang.org/x/net/ipv6/genericopt_stub.go | 30 + vendor/golang.org/x/net/ipv6/header.go | 54 + vendor/golang.org/x/net/ipv6/header_test.go | 55 + vendor/golang.org/x/net/ipv6/helper.go | 39 + vendor/golang.org/x/net/ipv6/helper_stub.go | 19 + vendor/golang.org/x/net/ipv6/helper_unix.go | 46 + .../golang.org/x/net/ipv6/helper_windows.go | 45 + vendor/golang.org/x/net/ipv6/iana.go | 82 + vendor/golang.org/x/net/ipv6/icmp.go | 57 + vendor/golang.org/x/net/ipv6/icmp_bsd.go | 29 + vendor/golang.org/x/net/ipv6/icmp_linux.go | 27 + vendor/golang.org/x/net/ipv6/icmp_solaris.go | 24 + vendor/golang.org/x/net/ipv6/icmp_stub.go | 23 + vendor/golang.org/x/net/ipv6/icmp_test.go | 96 + vendor/golang.org/x/net/ipv6/icmp_windows.go | 26 + .../x/net/ipv6/mocktransponder_test.go | 32 + .../golang.org/x/net/ipv6/multicast_test.go | 260 + .../x/net/ipv6/multicastlistener_test.go | 246 + .../x/net/ipv6/multicastsockopt_test.go | 157 + vendor/golang.org/x/net/ipv6/payload.go | 15 + vendor/golang.org/x/net/ipv6/payload_cmsg.go | 70 + .../golang.org/x/net/ipv6/payload_nocmsg.go | 41 + .../golang.org/x/net/ipv6/readwrite_test.go | 189 + vendor/golang.org/x/net/ipv6/sockopt.go | 46 + .../x/net/ipv6/sockopt_asmreq_unix.go | 22 + .../x/net/ipv6/sockopt_asmreq_windows.go | 21 + .../x/net/ipv6/sockopt_ssmreq_stub.go | 17 + .../x/net/ipv6/sockopt_ssmreq_unix.go | 59 + vendor/golang.org/x/net/ipv6/sockopt_stub.go | 13 + vendor/golang.org/x/net/ipv6/sockopt_test.go | 133 + vendor/golang.org/x/net/ipv6/sockopt_unix.go | 122 + .../golang.org/x/net/ipv6/sockopt_windows.go | 86 + vendor/golang.org/x/net/ipv6/sys_bsd.go | 58 + vendor/golang.org/x/net/ipv6/sys_darwin.go | 135 + vendor/golang.org/x/net/ipv6/sys_freebsd.go | 93 + vendor/golang.org/x/net/ipv6/sys_linux.go | 74 + vendor/golang.org/x/net/ipv6/sys_stub.go | 15 + vendor/golang.org/x/net/ipv6/sys_windows.go | 63 + .../x/net/ipv6/syscall_linux_386.go | 31 + vendor/golang.org/x/net/ipv6/syscall_unix.go | 26 + .../golang.org/x/net/ipv6/thunk_linux_386.s | 8 + vendor/golang.org/x/net/ipv6/unicast_test.go | 182 + .../x/net/ipv6/unicastsockopt_test.go | 111 + vendor/golang.org/x/net/ipv6/zsys_darwin.go | 131 + .../golang.org/x/net/ipv6/zsys_dragonfly.go | 90 + .../golang.org/x/net/ipv6/zsys_freebsd_386.go | 122 + .../x/net/ipv6/zsys_freebsd_amd64.go | 124 + .../golang.org/x/net/ipv6/zsys_freebsd_arm.go | 124 + .../golang.org/x/net/ipv6/zsys_linux_386.go | 152 + .../golang.org/x/net/ipv6/zsys_linux_amd64.go | 154 + .../golang.org/x/net/ipv6/zsys_linux_arm.go | 152 + .../golang.org/x/net/ipv6/zsys_linux_arm64.go | 156 + .../x/net/ipv6/zsys_linux_mips64.go | 156 + .../x/net/ipv6/zsys_linux_mips64le.go | 156 + .../golang.org/x/net/ipv6/zsys_linux_ppc64.go | 156 + .../x/net/ipv6/zsys_linux_ppc64le.go | 156 + vendor/golang.org/x/net/ipv6/zsys_netbsd.go | 84 + vendor/golang.org/x/net/ipv6/zsys_openbsd.go | 93 + vendor/golang.org/x/net/ipv6/zsys_solaris.go | 105 + vendor/golang.org/x/net/netutil/listen.go | 2 +- .../golang.org/x/net/netutil/listen_test.go | 101 + vendor/golang.org/x/net/proxy/direct.go | 18 + vendor/golang.org/x/net/proxy/per_host.go | 140 + .../golang.org/x/net/proxy/per_host_test.go | 55 + vendor/golang.org/x/net/proxy/proxy.go | 94 + vendor/golang.org/x/net/proxy/proxy_test.go | 142 + vendor/golang.org/x/net/proxy/socks5.go | 210 + vendor/golang.org/x/net/publicsuffix/gen.go | 608 + vendor/golang.org/x/net/publicsuffix/list.go | 133 + .../x/net/publicsuffix/list_test.go | 416 + vendor/golang.org/x/net/publicsuffix/table.go | 8744 +++++++++ .../x/net/publicsuffix/table_test.go | 15680 ++++++++++++++++ vendor/golang.org/x/net/trace/events.go | 524 + vendor/golang.org/x/net/trace/histogram.go | 356 + .../golang.org/x/net/trace/histogram_test.go | 325 + vendor/golang.org/x/net/trace/trace.go | 1059 ++ vendor/golang.org/x/net/trace/trace_test.go | 46 + vendor/golang.org/x/net/webdav/file.go | 795 + vendor/golang.org/x/net/webdav/file_test.go | 1167 ++ vendor/golang.org/x/net/webdav/if.go | 173 + vendor/golang.org/x/net/webdav/if_test.go | 322 + .../x/net/webdav/internal/xml/README | 11 + .../x/net/webdav/internal/xml/atom_test.go | 56 + .../x/net/webdav/internal/xml/example_test.go | 151 + .../x/net/webdav/internal/xml/marshal.go | 1223 ++ .../x/net/webdav/internal/xml/marshal_test.go | 1939 ++ .../x/net/webdav/internal/xml/read.go | 692 + .../x/net/webdav/internal/xml/read_test.go | 744 + .../x/net/webdav/internal/xml/typeinfo.go | 371 + .../x/net/webdav/internal/xml/xml.go | 1998 ++ .../x/net/webdav/internal/xml/xml_test.go | 752 + .../x/net/webdav/litmus_test_server.go | 94 + vendor/golang.org/x/net/webdav/lock.go | 445 + vendor/golang.org/x/net/webdav/lock_test.go | 731 + vendor/golang.org/x/net/webdav/prop.go | 389 + vendor/golang.org/x/net/webdav/prop_test.go | 607 + vendor/golang.org/x/net/webdav/webdav.go | 707 + vendor/golang.org/x/net/webdav/webdav_test.go | 242 + vendor/golang.org/x/net/webdav/xml.go | 469 + vendor/golang.org/x/net/webdav/xml_test.go | 909 + vendor/golang.org/x/net/websocket/client.go | 113 + .../x/net/websocket/exampledial_test.go | 31 + .../x/net/websocket/examplehandler_test.go | 26 + vendor/golang.org/x/net/websocket/hybi.go | 586 + .../golang.org/x/net/websocket/hybi_test.go | 608 + vendor/golang.org/x/net/websocket/server.go | 113 + .../golang.org/x/net/websocket/websocket.go | 412 + .../x/net/websocket/websocket_test.go | 587 + vendor/golang.org/x/net/xsrftoken/xsrf.go | 88 + .../golang.org/x/net/xsrftoken/xsrf_test.go | 83 + vendor/gopkg.in/yaml.v2/decode_test.go | 988 + vendor/gopkg.in/yaml.v2/encode_test.go | 501 + vendor/gopkg.in/yaml.v2/suite_test.go | 12 + 810 files changed, 197431 insertions(+), 192 deletions(-) delete mode 100644 Godeps/Godeps.json delete mode 100644 Godeps/Readme create mode 100644 glide.lock create mode 100644 glide.yaml create mode 100644 vendor/bitbucket.org/liamstask/goose/.gitignore create mode 100644 vendor/bitbucket.org/liamstask/goose/MIT-License.md create mode 100644 vendor/bitbucket.org/liamstask/goose/README.md create mode 100644 vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd.go create mode 100644 vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_create.go create mode 100644 vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_dbversion.go create mode 100644 vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_down.go create mode 100644 vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_redo.go create mode 100644 vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_status.go create mode 100644 vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_up.go create mode 100644 vendor/bitbucket.org/liamstask/goose/cmd/goose/main.go create mode 100644 vendor/bitbucket.org/liamstask/goose/db-sample/dbconf.yml create mode 100644 vendor/bitbucket.org/liamstask/goose/db-sample/migrations/001_basics.sql create mode 100644 vendor/bitbucket.org/liamstask/goose/db-sample/migrations/002_next.sql create mode 100644 vendor/bitbucket.org/liamstask/goose/db-sample/migrations/20130106222315_and_again.go create mode 100644 vendor/bitbucket.org/liamstask/goose/lib/goose/dbconf_test.go create mode 100644 vendor/bitbucket.org/liamstask/goose/lib/goose/migrate_test.go create mode 100644 vendor/bitbucket.org/liamstask/goose/lib/goose/migration_sql_test.go create mode 100644 vendor/github.com/beorn7/perks/.gitignore create mode 100644 vendor/github.com/beorn7/perks/README.md create mode 100644 vendor/github.com/beorn7/perks/histogram/bench_test.go create mode 100644 vendor/github.com/beorn7/perks/histogram/histogram.go create mode 100644 vendor/github.com/beorn7/perks/histogram/histogram_test.go create mode 100644 vendor/github.com/beorn7/perks/quantile/bench_test.go create mode 100644 vendor/github.com/beorn7/perks/quantile/example_test.go create mode 100644 vendor/github.com/beorn7/perks/quantile/stream_test.go create mode 100644 vendor/github.com/beorn7/perks/topk/topk.go create mode 100644 vendor/github.com/beorn7/perks/topk/topk_test.go create mode 100644 vendor/github.com/codegangsta/negroni/logger_test.go create mode 100644 vendor/github.com/codegangsta/negroni/negroni_test.go create mode 100644 vendor/github.com/codegangsta/negroni/recovery_test.go create mode 100644 vendor/github.com/codegangsta/negroni/response_writer_test.go create mode 100644 vendor/github.com/codegangsta/negroni/static_test.go create mode 100644 vendor/github.com/coreos/go-systemd/.travis.yml create mode 100644 vendor/github.com/coreos/go-systemd/CONTRIBUTING.md create mode 100644 vendor/github.com/coreos/go-systemd/DCO create mode 100644 vendor/github.com/coreos/go-systemd/README.md create mode 100644 vendor/github.com/coreos/go-systemd/activation/files.go create mode 100644 vendor/github.com/coreos/go-systemd/activation/files_test.go create mode 100644 vendor/github.com/coreos/go-systemd/activation/listeners.go create mode 100644 vendor/github.com/coreos/go-systemd/activation/listeners_test.go create mode 100644 vendor/github.com/coreos/go-systemd/activation/packetconns.go create mode 100644 vendor/github.com/coreos/go-systemd/activation/packetconns_test.go create mode 100644 vendor/github.com/coreos/go-systemd/daemon/sdnotify.go create mode 100644 vendor/github.com/coreos/go-systemd/dbus/dbus.go create mode 100644 vendor/github.com/coreos/go-systemd/dbus/dbus_test.go create mode 100644 vendor/github.com/coreos/go-systemd/dbus/methods.go create mode 100644 vendor/github.com/coreos/go-systemd/dbus/methods_test.go create mode 100644 vendor/github.com/coreos/go-systemd/dbus/properties.go create mode 100644 vendor/github.com/coreos/go-systemd/dbus/set.go create mode 100644 vendor/github.com/coreos/go-systemd/dbus/set_test.go create mode 100644 vendor/github.com/coreos/go-systemd/dbus/subscription.go create mode 100644 vendor/github.com/coreos/go-systemd/dbus/subscription_set.go create mode 100644 vendor/github.com/coreos/go-systemd/dbus/subscription_set_test.go create mode 100644 vendor/github.com/coreos/go-systemd/dbus/subscription_test.go create mode 100644 vendor/github.com/coreos/go-systemd/examples/activation/activation.go create mode 100644 vendor/github.com/coreos/go-systemd/examples/activation/httpserver/README.md create mode 100644 vendor/github.com/coreos/go-systemd/examples/activation/httpserver/hello.service create mode 100644 vendor/github.com/coreos/go-systemd/examples/activation/httpserver/hello.socket create mode 100644 vendor/github.com/coreos/go-systemd/examples/activation/httpserver/httpserver.go create mode 100644 vendor/github.com/coreos/go-systemd/examples/activation/listen.go create mode 100644 vendor/github.com/coreos/go-systemd/examples/activation/udpconn.go create mode 100644 vendor/github.com/coreos/go-systemd/fixtures/enable-disable.service create mode 100644 vendor/github.com/coreos/go-systemd/fixtures/start-stop.service create mode 100644 vendor/github.com/coreos/go-systemd/fixtures/subscribe-events-set.service create mode 100644 vendor/github.com/coreos/go-systemd/fixtures/subscribe-events.service create mode 100644 vendor/github.com/coreos/go-systemd/login1/dbus.go create mode 100644 vendor/github.com/coreos/go-systemd/login1/dbus_test.go create mode 100644 vendor/github.com/coreos/go-systemd/machine1/dbus.go create mode 100644 vendor/github.com/coreos/go-systemd/machine1/dbus_test.go create mode 100644 vendor/github.com/coreos/go-systemd/sdjournal/journal.go create mode 100644 vendor/github.com/coreos/go-systemd/sdjournal/journal_test.go create mode 100644 vendor/github.com/coreos/go-systemd/sdjournal/read.go create mode 100755 vendor/github.com/coreos/go-systemd/test create mode 100644 vendor/github.com/coreos/go-systemd/unit/deserialize.go create mode 100644 vendor/github.com/coreos/go-systemd/unit/deserialize_test.go create mode 100644 vendor/github.com/coreos/go-systemd/unit/end_to_end_test.go create mode 100644 vendor/github.com/coreos/go-systemd/unit/escape.go create mode 100644 vendor/github.com/coreos/go-systemd/unit/escape_test.go create mode 100644 vendor/github.com/coreos/go-systemd/unit/option.go create mode 100644 vendor/github.com/coreos/go-systemd/unit/option_test.go create mode 100644 vendor/github.com/coreos/go-systemd/unit/serialize.go create mode 100644 vendor/github.com/coreos/go-systemd/unit/serialize_test.go create mode 100644 vendor/github.com/coreos/go-systemd/util/util.go create mode 100644 vendor/github.com/coreos/pkg/.gitignore create mode 100644 vendor/github.com/coreos/pkg/CONTRIBUTING.md create mode 100644 vendor/github.com/coreos/pkg/DCO create mode 100644 vendor/github.com/coreos/pkg/MAINTAINERS create mode 100644 vendor/github.com/coreos/pkg/README.md create mode 100755 vendor/github.com/coreos/pkg/build create mode 100644 vendor/github.com/coreos/pkg/cryptoutil/aes.go create mode 100644 vendor/github.com/coreos/pkg/cryptoutil/aes_test.go create mode 100644 vendor/github.com/coreos/pkg/flagutil/env.go create mode 100644 vendor/github.com/coreos/pkg/flagutil/env_test.go create mode 100644 vendor/github.com/coreos/pkg/flagutil/types.go create mode 100644 vendor/github.com/coreos/pkg/flagutil/types_test.go create mode 100644 vendor/github.com/coreos/pkg/health/README.md create mode 100644 vendor/github.com/coreos/pkg/health/health.go create mode 100644 vendor/github.com/coreos/pkg/health/health_test.go create mode 100644 vendor/github.com/coreos/pkg/httputil/README.md create mode 100644 vendor/github.com/coreos/pkg/httputil/cookie.go create mode 100644 vendor/github.com/coreos/pkg/httputil/cookie_test.go create mode 100644 vendor/github.com/coreos/pkg/httputil/json.go create mode 100644 vendor/github.com/coreos/pkg/httputil/json_test.go create mode 100644 vendor/github.com/coreos/pkg/multierror/multierror.go create mode 100644 vendor/github.com/coreos/pkg/multierror/multierror_test.go create mode 100644 vendor/github.com/coreos/pkg/netutil/proxy.go create mode 100644 vendor/github.com/coreos/pkg/netutil/url.go create mode 100644 vendor/github.com/coreos/pkg/netutil/url_test.go create mode 100755 vendor/github.com/coreos/pkg/test create mode 100644 vendor/github.com/coreos/pkg/timeutil/backoff_test.go create mode 100644 vendor/github.com/coreos/pkg/yamlutil/yaml.go create mode 100644 vendor/github.com/coreos/pkg/yamlutil/yaml_test.go create mode 100644 vendor/github.com/davecgh/go-spew/.gitignore create mode 100644 vendor/github.com/davecgh/go-spew/.travis.yml create mode 100644 vendor/github.com/davecgh/go-spew/README.md create mode 100644 vendor/github.com/davecgh/go-spew/cov_report.sh create mode 100644 vendor/github.com/davecgh/go-spew/spew/common_test.go create mode 100644 vendor/github.com/davecgh/go-spew/spew/dump_test.go create mode 100644 vendor/github.com/davecgh/go-spew/spew/dumpcgo_test.go create mode 100644 vendor/github.com/davecgh/go-spew/spew/dumpnocgo_test.go create mode 100644 vendor/github.com/davecgh/go-spew/spew/example_test.go create mode 100644 vendor/github.com/davecgh/go-spew/spew/format_test.go create mode 100644 vendor/github.com/davecgh/go-spew/spew/internal_test.go create mode 100644 vendor/github.com/davecgh/go-spew/spew/internalunsafe_test.go create mode 100644 vendor/github.com/davecgh/go-spew/spew/spew_test.go create mode 100644 vendor/github.com/davecgh/go-spew/spew/testdata/dumpcgo.go create mode 100644 vendor/github.com/davecgh/go-spew/test_coverage.txt create mode 160000 vendor/github.com/fatih/color create mode 100644 vendor/github.com/fernet/fernet-go/example_test.go create mode 100644 vendor/github.com/fernet/fernet-go/fernet_test.go create mode 100644 vendor/github.com/fernet/fernet-go/key_test.go create mode 100644 vendor/github.com/go-sql-driver/mysql/benchmark_test.go create mode 100644 vendor/github.com/go-sql-driver/mysql/driver_test.go create mode 100644 vendor/github.com/go-sql-driver/mysql/errors_test.go create mode 100644 vendor/github.com/go-sql-driver/mysql/utils_test.go create mode 100644 vendor/github.com/golang/protobuf/.gitignore create mode 100644 vendor/github.com/golang/protobuf/AUTHORS create mode 100644 vendor/github.com/golang/protobuf/CONTRIBUTORS create mode 100644 vendor/github.com/golang/protobuf/Make.protobuf create mode 100644 vendor/github.com/golang/protobuf/Makefile create mode 100644 vendor/github.com/golang/protobuf/README.md create mode 100644 vendor/github.com/golang/protobuf/jsonpb/jsonpb.go create mode 100644 vendor/github.com/golang/protobuf/jsonpb/jsonpb_test.go create mode 100644 vendor/github.com/golang/protobuf/jsonpb/jsonpb_test_proto/Makefile create mode 100644 vendor/github.com/golang/protobuf/jsonpb/jsonpb_test_proto/more_test_objects.proto create mode 100644 vendor/github.com/golang/protobuf/jsonpb/jsonpb_test_proto/test_objects.proto create mode 100644 vendor/github.com/golang/protobuf/proto/all_test.go create mode 100644 vendor/github.com/golang/protobuf/proto/clone_test.go create mode 100644 vendor/github.com/golang/protobuf/proto/equal_test.go create mode 100644 vendor/github.com/golang/protobuf/proto/extensions_test.go create mode 100644 vendor/github.com/golang/protobuf/proto/message_set_test.go create mode 100644 vendor/github.com/golang/protobuf/proto/proto3_test.go create mode 100644 vendor/github.com/golang/protobuf/proto/size2_test.go create mode 100644 vendor/github.com/golang/protobuf/proto/size_test.go create mode 100644 vendor/github.com/golang/protobuf/proto/testdata/Makefile create mode 100644 vendor/github.com/golang/protobuf/proto/testdata/golden_test.go create mode 100644 vendor/github.com/golang/protobuf/proto/testdata/test.proto create mode 100644 vendor/github.com/golang/protobuf/proto/text_parser_test.go create mode 100644 vendor/github.com/golang/protobuf/proto/text_test.go create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/Makefile create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/Makefile create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/doc.go create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/generator/Makefile create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/generator/generator.go create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/generator/name_test.go create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/internal/grpc/grpc.go create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/link_grpc.go create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/main.go create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/plugin/Makefile create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.pb.golden create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/testdata/Makefile create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_base.proto create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_extra.proto create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_test.go create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_user.proto create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/testdata/grpc.proto create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imp.pb.go.golden create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imp.proto create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imp2.proto create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imp3.proto create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/testdata/main_test.go create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi1.proto create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi2.proto create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi3.proto create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/testdata/my_test/test.pb.go.golden create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/testdata/my_test/test.proto create mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/testdata/proto3.proto create mode 100644 vendor/github.com/guregu/null/.gitignore create mode 100644 vendor/github.com/guregu/null/README.md create mode 100644 vendor/github.com/guregu/null/bool.go create mode 100644 vendor/github.com/guregu/null/bool_test.go create mode 100644 vendor/github.com/guregu/null/float.go create mode 100644 vendor/github.com/guregu/null/float_test.go create mode 100644 vendor/github.com/guregu/null/int.go create mode 100644 vendor/github.com/guregu/null/int_test.go create mode 100644 vendor/github.com/guregu/null/string.go create mode 100644 vendor/github.com/guregu/null/string_test.go create mode 100644 vendor/github.com/guregu/null/time.go create mode 100644 vendor/github.com/guregu/null/time_test.go create mode 100644 vendor/github.com/guregu/null/zero/bool_test.go create mode 100644 vendor/github.com/guregu/null/zero/float_test.go create mode 100644 vendor/github.com/guregu/null/zero/int_test.go create mode 100644 vendor/github.com/guregu/null/zero/string_test.go create mode 100644 vendor/github.com/guregu/null/zero/time_test.go create mode 100644 vendor/github.com/hashicorp/golang-lru/2q_test.go create mode 100644 vendor/github.com/hashicorp/golang-lru/arc_test.go create mode 100644 vendor/github.com/hashicorp/golang-lru/lru_test.go create mode 100644 vendor/github.com/hashicorp/golang-lru/simplelru/lru_test.go create mode 100644 vendor/github.com/julienschmidt/httprouter/path_test.go create mode 100644 vendor/github.com/julienschmidt/httprouter/router_test.go create mode 100644 vendor/github.com/julienschmidt/httprouter/tree_test.go create mode 160000 vendor/github.com/kr/text create mode 100644 vendor/github.com/kylelemons/go-gypsy/.gitignore create mode 120000 vendor/github.com/kylelemons/go-gypsy/README create mode 100644 vendor/github.com/kylelemons/go-gypsy/example/yget/.gitignore create mode 100644 vendor/github.com/kylelemons/go-gypsy/example/yget/Makefile create mode 100644 vendor/github.com/kylelemons/go-gypsy/example/yget/config.yaml create mode 100644 vendor/github.com/kylelemons/go-gypsy/example/yget/main.go create mode 100644 vendor/github.com/kylelemons/go-gypsy/yaml/config_test.go create mode 100644 vendor/github.com/kylelemons/go-gypsy/yaml/parser_test.go create mode 100644 vendor/github.com/kylelemons/go-gypsy/yaml/types_test.go create mode 100644 vendor/github.com/lib/pq/bench_test.go create mode 100644 vendor/github.com/lib/pq/conn_test.go create mode 100644 vendor/github.com/lib/pq/copy_test.go create mode 100644 vendor/github.com/lib/pq/encode_test.go create mode 100644 vendor/github.com/lib/pq/hstore/hstore_test.go create mode 100644 vendor/github.com/lib/pq/notify_test.go create mode 100644 vendor/github.com/lib/pq/ssl_test.go create mode 100644 vendor/github.com/lib/pq/url_test.go create mode 100644 vendor/github.com/mattn/go-sqlite3/_example/custom_func/main.go create mode 100644 vendor/github.com/mattn/go-sqlite3/_example/hook/hook.go create mode 100644 vendor/github.com/mattn/go-sqlite3/_example/mod_regexp/Makefile create mode 100644 vendor/github.com/mattn/go-sqlite3/_example/mod_regexp/extension.go create mode 100644 vendor/github.com/mattn/go-sqlite3/_example/mod_regexp/sqlite3_mod_regexp.c create mode 100644 vendor/github.com/mattn/go-sqlite3/_example/mod_vtable/Makefile create mode 100644 vendor/github.com/mattn/go-sqlite3/_example/mod_vtable/extension.go create mode 100644 vendor/github.com/mattn/go-sqlite3/_example/mod_vtable/picojson.h create mode 100644 vendor/github.com/mattn/go-sqlite3/_example/mod_vtable/sqlite3_mod_vtable.cc create mode 100644 vendor/github.com/mattn/go-sqlite3/_example/simple/simple.go create mode 100644 vendor/github.com/mattn/go-sqlite3/callback_test.go create mode 100644 vendor/github.com/mattn/go-sqlite3/error_test.go create mode 100644 vendor/github.com/mattn/go-sqlite3/sqlite3_fts3_test.go create mode 100644 vendor/github.com/mattn/go-sqlite3/sqlite3_test.go create mode 100644 vendor/github.com/matttproud/golang_protobuf_extensions/.travis.yml create mode 100644 vendor/github.com/matttproud/golang_protobuf_extensions/README.md create mode 100644 vendor/github.com/matttproud/golang_protobuf_extensions/ext/moved.go create mode 100644 vendor/github.com/matttproud/golang_protobuf_extensions/pbtest/doc.go create mode 100644 vendor/github.com/matttproud/golang_protobuf_extensions/pbtest/example_test.go create mode 100644 vendor/github.com/matttproud/golang_protobuf_extensions/pbtest/quick.go create mode 100644 vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/all_test.go create mode 100644 vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/fixtures_test.go mode change 100644 => 100755 vendor/github.com/pborman/uuid/dce.go mode change 100644 => 100755 vendor/github.com/pborman/uuid/doc.go create mode 100644 vendor/github.com/pborman/uuid/json_test.go mode change 100644 => 100755 vendor/github.com/pborman/uuid/node.go create mode 100644 vendor/github.com/pborman/uuid/seq_test.go create mode 100644 vendor/github.com/pborman/uuid/sql_test.go mode change 100644 => 100755 vendor/github.com/pborman/uuid/time.go mode change 100644 => 100755 vendor/github.com/pborman/uuid/uuid.go create mode 100755 vendor/github.com/pborman/uuid/uuid_test.go create mode 100644 vendor/github.com/pmezard/go-difflib/.travis.yml create mode 100644 vendor/github.com/pmezard/go-difflib/README.md create mode 100644 vendor/github.com/pmezard/go-difflib/difflib/difflib_test.go create mode 100644 vendor/github.com/prometheus/client_golang/.gitignore create mode 100644 vendor/github.com/prometheus/client_golang/.travis.yml create mode 100644 vendor/github.com/prometheus/client_golang/AUTHORS.md create mode 100644 vendor/github.com/prometheus/client_golang/CHANGELOG.md create mode 100644 vendor/github.com/prometheus/client_golang/CONTRIBUTING.md create mode 100644 vendor/github.com/prometheus/client_golang/README.md create mode 100644 vendor/github.com/prometheus/client_golang/VERSION create mode 100644 vendor/github.com/prometheus/client_golang/api/prometheus/api.go create mode 100644 vendor/github.com/prometheus/client_golang/api/prometheus/api_test.go create mode 100644 vendor/github.com/prometheus/client_golang/examples/random/main.go create mode 100644 vendor/github.com/prometheus/client_golang/examples/simple/main.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/benchmark_test.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/counter_test.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/example_clustermanager_test.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/example_memstats_test.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/example_selfcollector_test.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/examples_test.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/expvar_test.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/gauge_test.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/go_collector_test.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/histogram_test.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/http_test.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/metric_test.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/process_collector_test.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/registry_test.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/summary_test.go create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/vec_test.go create mode 100644 vendor/github.com/prometheus/client_model/.gitignore create mode 100644 vendor/github.com/prometheus/client_model/AUTHORS.md create mode 100644 vendor/github.com/prometheus/client_model/CONTRIBUTING.md create mode 100644 vendor/github.com/prometheus/client_model/Makefile create mode 100644 vendor/github.com/prometheus/client_model/README.md create mode 100644 vendor/github.com/prometheus/client_model/cpp/metrics.pb.cc create mode 100644 vendor/github.com/prometheus/client_model/cpp/metrics.pb.h create mode 100644 vendor/github.com/prometheus/client_model/metrics.proto create mode 100644 vendor/github.com/prometheus/client_model/pom.xml create mode 100644 vendor/github.com/prometheus/client_model/python/prometheus/__init__.py create mode 100644 vendor/github.com/prometheus/client_model/python/prometheus/client/__init__.py create mode 100644 vendor/github.com/prometheus/client_model/python/prometheus/client/model/__init__.py create mode 100644 vendor/github.com/prometheus/client_model/python/prometheus/client/model/metrics_pb2.py create mode 100644 vendor/github.com/prometheus/client_model/ruby/.gitignore create mode 100644 vendor/github.com/prometheus/client_model/ruby/Gemfile create mode 100644 vendor/github.com/prometheus/client_model/ruby/Makefile create mode 100644 vendor/github.com/prometheus/client_model/ruby/README.md create mode 100644 vendor/github.com/prometheus/client_model/ruby/Rakefile create mode 100644 vendor/github.com/prometheus/client_model/ruby/lib/prometheus/client/model.rb create mode 100644 vendor/github.com/prometheus/client_model/ruby/lib/prometheus/client/model/metrics.pb.rb create mode 100644 vendor/github.com/prometheus/client_model/ruby/lib/prometheus/client/model/version.rb create mode 100644 vendor/github.com/prometheus/client_model/ruby/prometheus-client-model.gemspec create mode 100644 vendor/github.com/prometheus/client_model/setup.py create mode 100644 vendor/github.com/prometheus/client_model/src/main/java/io/prometheus/client/Metrics.java create mode 100644 vendor/github.com/prometheus/common/.travis.yml create mode 100644 vendor/github.com/prometheus/common/AUTHORS.md create mode 100644 vendor/github.com/prometheus/common/CONTRIBUTING.md create mode 100644 vendor/github.com/prometheus/common/README.md create mode 100644 vendor/github.com/prometheus/common/expfmt/bench_test.go create mode 100644 vendor/github.com/prometheus/common/expfmt/decode_test.go create mode 100644 vendor/github.com/prometheus/common/expfmt/json_decode_test.go create mode 100644 vendor/github.com/prometheus/common/expfmt/testdata/json2 create mode 100644 vendor/github.com/prometheus/common/expfmt/testdata/json2_bad create mode 100644 vendor/github.com/prometheus/common/expfmt/testdata/protobuf create mode 100644 vendor/github.com/prometheus/common/expfmt/testdata/protobuf.gz create mode 100644 vendor/github.com/prometheus/common/expfmt/testdata/test.gz create mode 100644 vendor/github.com/prometheus/common/expfmt/testdata/text create mode 100644 vendor/github.com/prometheus/common/expfmt/text_create_test.go create mode 100644 vendor/github.com/prometheus/common/expfmt/text_parse_test.go create mode 100644 vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/autoneg_test.go create mode 100644 vendor/github.com/prometheus/common/log/log.go create mode 100644 vendor/github.com/prometheus/common/log/log_test.go create mode 100644 vendor/github.com/prometheus/common/log/syslog_formatter.go create mode 100644 vendor/github.com/prometheus/common/model/alert_test.go create mode 100644 vendor/github.com/prometheus/common/model/labels_test.go create mode 100644 vendor/github.com/prometheus/common/model/metric_test.go create mode 100644 vendor/github.com/prometheus/common/model/signature_test.go create mode 100644 vendor/github.com/prometheus/common/model/silence_test.go create mode 100644 vendor/github.com/prometheus/common/model/time_test.go create mode 100644 vendor/github.com/prometheus/common/model/value_test.go create mode 100644 vendor/github.com/prometheus/common/route/route.go create mode 100644 vendor/github.com/prometheus/common/route/route_test.go create mode 100644 vendor/github.com/prometheus/procfs/fs_test.go create mode 100644 vendor/github.com/prometheus/procfs/ipvs_test.go create mode 100644 vendor/github.com/prometheus/procfs/mdstat_test.go create mode 100644 vendor/github.com/prometheus/procfs/proc_io_test.go create mode 100644 vendor/github.com/prometheus/procfs/proc_limits_test.go create mode 100644 vendor/github.com/prometheus/procfs/proc_stat_test.go create mode 100644 vendor/github.com/prometheus/procfs/proc_test.go create mode 100644 vendor/github.com/prometheus/procfs/stat_test.go create mode 160000 vendor/github.com/shiena/ansicolor create mode 100644 vendor/github.com/stretchr/testify/.gitignore create mode 100644 vendor/github.com/stretchr/testify/.travis.yml create mode 100644 vendor/github.com/stretchr/testify/README.md create mode 100644 vendor/github.com/stretchr/testify/assert/assertions_test.go create mode 100644 vendor/github.com/stretchr/testify/assert/forward_assertions_test.go create mode 100644 vendor/github.com/stretchr/testify/assert/http_assertions_test.go create mode 100644 vendor/github.com/stretchr/testify/doc.go create mode 100644 vendor/github.com/stretchr/testify/http/doc.go create mode 100644 vendor/github.com/stretchr/testify/http/test_response_writer.go create mode 100644 vendor/github.com/stretchr/testify/http/test_round_tripper.go create mode 100644 vendor/github.com/stretchr/testify/mock/doc.go create mode 100644 vendor/github.com/stretchr/testify/mock/mock.go create mode 100644 vendor/github.com/stretchr/testify/mock/mock_test.go create mode 100644 vendor/github.com/stretchr/testify/package_test.go create mode 100644 vendor/github.com/stretchr/testify/require/doc.go create mode 100644 vendor/github.com/stretchr/testify/require/forward_requirements.go create mode 100644 vendor/github.com/stretchr/testify/require/forward_requirements_test.go create mode 100644 vendor/github.com/stretchr/testify/require/requirements.go create mode 100644 vendor/github.com/stretchr/testify/require/requirements_test.go create mode 100644 vendor/github.com/stretchr/testify/suite/doc.go create mode 100644 vendor/github.com/stretchr/testify/suite/interfaces.go create mode 100644 vendor/github.com/stretchr/testify/suite/suite.go create mode 100644 vendor/github.com/stretchr/testify/suite/suite_test.go create mode 100644 vendor/github.com/tylerb/graceful/.travis.yml create mode 100644 vendor/github.com/tylerb/graceful/graceful_test.go create mode 100644 vendor/github.com/tylerb/graceful/http2_test.go create mode 100644 vendor/github.com/tylerb/graceful/test-fixtures/cert.crt create mode 100644 vendor/github.com/tylerb/graceful/test-fixtures/key.pem create mode 100644 vendor/github.com/ziutek/mymysql/.gitignore create mode 100644 vendor/github.com/ziutek/mymysql/README.md create mode 100755 vendor/github.com/ziutek/mymysql/all.bash create mode 100644 vendor/github.com/ziutek/mymysql/autorc/autorecon.go create mode 100644 vendor/github.com/ziutek/mymysql/autorc/autorecon_test.go create mode 100644 vendor/github.com/ziutek/mymysql/examples/database_sql/database_sql.go create mode 100644 vendor/github.com/ziutek/mymysql/examples/long_data/long_data.go create mode 100644 vendor/github.com/ziutek/mymysql/examples/parallel/parallel.go create mode 100644 vendor/github.com/ziutek/mymysql/examples/prepared_stmt/prepared_stmt.go create mode 100644 vendor/github.com/ziutek/mymysql/examples/reconnect/reconnect.go create mode 100644 vendor/github.com/ziutek/mymysql/examples/simple/simple.go create mode 100644 vendor/github.com/ziutek/mymysql/examples/transactions/transactions.go create mode 100644 vendor/github.com/ziutek/mymysql/godrv/driver_test.go create mode 100644 vendor/github.com/ziutek/mymysql/mysql/types_test.go create mode 100644 vendor/github.com/ziutek/mymysql/native/bind_test.go create mode 100644 vendor/github.com/ziutek/mymysql/native/native_test.go create mode 100644 vendor/github.com/ziutek/mymysql/thrsafe/thrsafe.go create mode 100644 vendor/github.com/ziutek/mymysql/thrsafe/thrsafe_test.go create mode 100644 vendor/golang.org/x/net/.gitattributes create mode 100644 vendor/golang.org/x/net/.gitignore create mode 100644 vendor/golang.org/x/net/AUTHORS create mode 100644 vendor/golang.org/x/net/CONTRIBUTING.md create mode 100644 vendor/golang.org/x/net/CONTRIBUTORS create mode 100644 vendor/golang.org/x/net/README create mode 100644 vendor/golang.org/x/net/codereview.cfg create mode 100644 vendor/golang.org/x/net/context/context.go create mode 100644 vendor/golang.org/x/net/context/context_test.go create mode 100644 vendor/golang.org/x/net/context/ctxhttp/cancelreq.go create mode 100644 vendor/golang.org/x/net/context/ctxhttp/cancelreq_go14.go create mode 100644 vendor/golang.org/x/net/context/ctxhttp/ctxhttp.go create mode 100644 vendor/golang.org/x/net/context/ctxhttp/ctxhttp_test.go create mode 100644 vendor/golang.org/x/net/context/withtimeout_test.go create mode 100644 vendor/golang.org/x/net/dict/dict.go create mode 100644 vendor/golang.org/x/net/html/atom/atom.go create mode 100644 vendor/golang.org/x/net/html/atom/atom_test.go create mode 100644 vendor/golang.org/x/net/html/atom/gen.go create mode 100644 vendor/golang.org/x/net/html/atom/table.go create mode 100644 vendor/golang.org/x/net/html/atom/table_test.go create mode 100644 vendor/golang.org/x/net/html/charset/charset.go create mode 100644 vendor/golang.org/x/net/html/charset/charset_test.go create mode 100644 vendor/golang.org/x/net/html/charset/testdata/HTTP-charset.html create mode 100644 vendor/golang.org/x/net/html/charset/testdata/HTTP-vs-UTF-8-BOM.html create mode 100644 vendor/golang.org/x/net/html/charset/testdata/HTTP-vs-meta-charset.html create mode 100644 vendor/golang.org/x/net/html/charset/testdata/HTTP-vs-meta-content.html create mode 100644 vendor/golang.org/x/net/html/charset/testdata/No-encoding-declaration.html create mode 100644 vendor/golang.org/x/net/html/charset/testdata/README create mode 100644 vendor/golang.org/x/net/html/charset/testdata/UTF-16BE-BOM.html create mode 100644 vendor/golang.org/x/net/html/charset/testdata/UTF-16LE-BOM.html create mode 100644 vendor/golang.org/x/net/html/charset/testdata/UTF-8-BOM-vs-meta-charset.html create mode 100644 vendor/golang.org/x/net/html/charset/testdata/UTF-8-BOM-vs-meta-content.html create mode 100644 vendor/golang.org/x/net/html/charset/testdata/meta-charset-attribute.html create mode 100644 vendor/golang.org/x/net/html/charset/testdata/meta-content-attribute.html create mode 100644 vendor/golang.org/x/net/html/const.go create mode 100644 vendor/golang.org/x/net/html/doc.go create mode 100644 vendor/golang.org/x/net/html/doctype.go create mode 100644 vendor/golang.org/x/net/html/entity.go create mode 100644 vendor/golang.org/x/net/html/entity_test.go create mode 100644 vendor/golang.org/x/net/html/escape.go create mode 100644 vendor/golang.org/x/net/html/escape_test.go create mode 100644 vendor/golang.org/x/net/html/example_test.go create mode 100644 vendor/golang.org/x/net/html/foreign.go create mode 100644 vendor/golang.org/x/net/html/node.go create mode 100644 vendor/golang.org/x/net/html/node_test.go create mode 100644 vendor/golang.org/x/net/html/parse.go create mode 100644 vendor/golang.org/x/net/html/parse_test.go create mode 100644 vendor/golang.org/x/net/html/render.go create mode 100644 vendor/golang.org/x/net/html/render_test.go create mode 100644 vendor/golang.org/x/net/html/testdata/go1.html create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/README create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/adoption01.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/adoption02.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/comments01.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/doctype01.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/entities01.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/entities02.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/html5test-com.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/inbody01.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/isindex.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/pending-spec-changes-plain-text-unsafe.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/pending-spec-changes.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/plain-text-unsafe.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/scriptdata01.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/scripted/adoption01.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/scripted/webkit01.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tables01.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests1.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests10.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests11.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests12.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests14.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests15.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests16.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests17.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests18.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests19.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests2.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests20.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests21.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests22.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests23.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests24.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests25.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests26.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests3.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests4.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests5.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests6.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests7.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests8.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests9.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tests_innerHTML_1.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/tricky01.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/webkit01.dat create mode 100644 vendor/golang.org/x/net/html/testdata/webkit/webkit02.dat create mode 100644 vendor/golang.org/x/net/html/token.go create mode 100644 vendor/golang.org/x/net/html/token_test.go create mode 100644 vendor/golang.org/x/net/http2/.gitignore create mode 100644 vendor/golang.org/x/net/http2/Dockerfile create mode 100644 vendor/golang.org/x/net/http2/Makefile create mode 100644 vendor/golang.org/x/net/http2/README create mode 100644 vendor/golang.org/x/net/http2/client_conn_pool.go create mode 100644 vendor/golang.org/x/net/http2/configure_transport.go create mode 100644 vendor/golang.org/x/net/http2/errors.go create mode 100644 vendor/golang.org/x/net/http2/errors_test.go create mode 100644 vendor/golang.org/x/net/http2/fixed_buffer.go create mode 100644 vendor/golang.org/x/net/http2/fixed_buffer_test.go create mode 100644 vendor/golang.org/x/net/http2/flow.go create mode 100644 vendor/golang.org/x/net/http2/flow_test.go create mode 100644 vendor/golang.org/x/net/http2/frame.go create mode 100644 vendor/golang.org/x/net/http2/frame_test.go create mode 100644 vendor/golang.org/x/net/http2/go15.go create mode 100644 vendor/golang.org/x/net/http2/gotrack.go create mode 100644 vendor/golang.org/x/net/http2/gotrack_test.go create mode 100644 vendor/golang.org/x/net/http2/h2demo/.gitignore create mode 100644 vendor/golang.org/x/net/http2/h2demo/Makefile create mode 100644 vendor/golang.org/x/net/http2/h2demo/README create mode 100644 vendor/golang.org/x/net/http2/h2demo/h2demo.go create mode 100644 vendor/golang.org/x/net/http2/h2demo/launch.go create mode 100644 vendor/golang.org/x/net/http2/h2demo/rootCA.key create mode 100644 vendor/golang.org/x/net/http2/h2demo/rootCA.pem create mode 100644 vendor/golang.org/x/net/http2/h2demo/rootCA.srl create mode 100644 vendor/golang.org/x/net/http2/h2demo/server.crt create mode 100644 vendor/golang.org/x/net/http2/h2demo/server.key create mode 100644 vendor/golang.org/x/net/http2/h2i/README.md create mode 100644 vendor/golang.org/x/net/http2/h2i/h2i.go create mode 100644 vendor/golang.org/x/net/http2/headermap.go create mode 100644 vendor/golang.org/x/net/http2/hpack/encode.go create mode 100644 vendor/golang.org/x/net/http2/hpack/encode_test.go create mode 100644 vendor/golang.org/x/net/http2/hpack/hpack.go create mode 100644 vendor/golang.org/x/net/http2/hpack/hpack_test.go create mode 100644 vendor/golang.org/x/net/http2/hpack/huffman.go create mode 100644 vendor/golang.org/x/net/http2/hpack/tables.go create mode 100644 vendor/golang.org/x/net/http2/http2.go create mode 100644 vendor/golang.org/x/net/http2/http2_test.go create mode 100644 vendor/golang.org/x/net/http2/not_go15.go create mode 100644 vendor/golang.org/x/net/http2/not_go16.go create mode 100644 vendor/golang.org/x/net/http2/pipe.go create mode 100644 vendor/golang.org/x/net/http2/pipe_test.go create mode 100644 vendor/golang.org/x/net/http2/priority_test.go create mode 100644 vendor/golang.org/x/net/http2/server.go create mode 100644 vendor/golang.org/x/net/http2/server_test.go create mode 100644 vendor/golang.org/x/net/http2/testdata/draft-ietf-httpbis-http2.xml create mode 100644 vendor/golang.org/x/net/http2/transport.go create mode 100644 vendor/golang.org/x/net/http2/transport_test.go create mode 100644 vendor/golang.org/x/net/http2/write.go create mode 100644 vendor/golang.org/x/net/http2/writesched.go create mode 100644 vendor/golang.org/x/net/http2/z_spec_test.go create mode 100644 vendor/golang.org/x/net/icmp/dstunreach.go create mode 100644 vendor/golang.org/x/net/icmp/echo.go create mode 100644 vendor/golang.org/x/net/icmp/endpoint.go create mode 100644 vendor/golang.org/x/net/icmp/example_test.go create mode 100644 vendor/golang.org/x/net/icmp/extension.go create mode 100644 vendor/golang.org/x/net/icmp/extension_test.go create mode 100644 vendor/golang.org/x/net/icmp/helper_posix.go create mode 100644 vendor/golang.org/x/net/icmp/interface.go create mode 100644 vendor/golang.org/x/net/icmp/ipv4.go create mode 100644 vendor/golang.org/x/net/icmp/ipv4_test.go create mode 100644 vendor/golang.org/x/net/icmp/ipv6.go create mode 100644 vendor/golang.org/x/net/icmp/listen_posix.go create mode 100644 vendor/golang.org/x/net/icmp/listen_stub.go create mode 100644 vendor/golang.org/x/net/icmp/message.go create mode 100644 vendor/golang.org/x/net/icmp/message_test.go create mode 100644 vendor/golang.org/x/net/icmp/messagebody.go create mode 100644 vendor/golang.org/x/net/icmp/mpls.go create mode 100644 vendor/golang.org/x/net/icmp/multipart.go create mode 100644 vendor/golang.org/x/net/icmp/multipart_test.go create mode 100644 vendor/golang.org/x/net/icmp/packettoobig.go create mode 100644 vendor/golang.org/x/net/icmp/paramprob.go create mode 100644 vendor/golang.org/x/net/icmp/ping_test.go create mode 100644 vendor/golang.org/x/net/icmp/sys_freebsd.go create mode 100644 vendor/golang.org/x/net/icmp/timeexceeded.go create mode 100644 vendor/golang.org/x/net/idna/idna.go create mode 100644 vendor/golang.org/x/net/idna/idna_test.go create mode 100644 vendor/golang.org/x/net/idna/punycode.go create mode 100644 vendor/golang.org/x/net/idna/punycode_test.go create mode 100644 vendor/golang.org/x/net/internal/iana/const.go create mode 100644 vendor/golang.org/x/net/internal/iana/gen.go create mode 100644 vendor/golang.org/x/net/internal/nettest/error_posix.go create mode 100644 vendor/golang.org/x/net/internal/nettest/error_stub.go create mode 100644 vendor/golang.org/x/net/internal/nettest/interface.go create mode 100644 vendor/golang.org/x/net/internal/nettest/rlimit.go create mode 100644 vendor/golang.org/x/net/internal/nettest/rlimit_stub.go create mode 100644 vendor/golang.org/x/net/internal/nettest/rlimit_unix.go create mode 100644 vendor/golang.org/x/net/internal/nettest/rlimit_windows.go create mode 100644 vendor/golang.org/x/net/internal/nettest/stack.go create mode 100644 vendor/golang.org/x/net/internal/nettest/stack_stub.go create mode 100644 vendor/golang.org/x/net/internal/nettest/stack_unix.go create mode 100644 vendor/golang.org/x/net/internal/nettest/stack_windows.go create mode 100644 vendor/golang.org/x/net/internal/timeseries/timeseries.go create mode 100644 vendor/golang.org/x/net/internal/timeseries/timeseries_test.go create mode 100644 vendor/golang.org/x/net/ipv4/control.go create mode 100644 vendor/golang.org/x/net/ipv4/control_bsd.go create mode 100644 vendor/golang.org/x/net/ipv4/control_pktinfo.go create mode 100644 vendor/golang.org/x/net/ipv4/control_stub.go create mode 100644 vendor/golang.org/x/net/ipv4/control_unix.go create mode 100644 vendor/golang.org/x/net/ipv4/control_windows.go create mode 100644 vendor/golang.org/x/net/ipv4/defs_darwin.go create mode 100644 vendor/golang.org/x/net/ipv4/defs_dragonfly.go create mode 100644 vendor/golang.org/x/net/ipv4/defs_freebsd.go create mode 100644 vendor/golang.org/x/net/ipv4/defs_linux.go create mode 100644 vendor/golang.org/x/net/ipv4/defs_netbsd.go create mode 100644 vendor/golang.org/x/net/ipv4/defs_openbsd.go create mode 100644 vendor/golang.org/x/net/ipv4/defs_solaris.go create mode 100644 vendor/golang.org/x/net/ipv4/dgramopt_posix.go create mode 100644 vendor/golang.org/x/net/ipv4/dgramopt_stub.go create mode 100644 vendor/golang.org/x/net/ipv4/doc.go create mode 100644 vendor/golang.org/x/net/ipv4/endpoint.go create mode 100644 vendor/golang.org/x/net/ipv4/example_test.go create mode 100644 vendor/golang.org/x/net/ipv4/gen.go create mode 100644 vendor/golang.org/x/net/ipv4/genericopt_posix.go create mode 100644 vendor/golang.org/x/net/ipv4/genericopt_stub.go create mode 100644 vendor/golang.org/x/net/ipv4/header.go create mode 100644 vendor/golang.org/x/net/ipv4/header_test.go create mode 100644 vendor/golang.org/x/net/ipv4/helper.go create mode 100644 vendor/golang.org/x/net/ipv4/helper_stub.go create mode 100644 vendor/golang.org/x/net/ipv4/helper_unix.go create mode 100644 vendor/golang.org/x/net/ipv4/helper_windows.go create mode 100644 vendor/golang.org/x/net/ipv4/iana.go create mode 100644 vendor/golang.org/x/net/ipv4/icmp.go create mode 100644 vendor/golang.org/x/net/ipv4/icmp_linux.go create mode 100644 vendor/golang.org/x/net/ipv4/icmp_stub.go create mode 100644 vendor/golang.org/x/net/ipv4/icmp_test.go create mode 100644 vendor/golang.org/x/net/ipv4/mocktransponder_test.go create mode 100644 vendor/golang.org/x/net/ipv4/multicast_test.go create mode 100644 vendor/golang.org/x/net/ipv4/multicastlistener_test.go create mode 100644 vendor/golang.org/x/net/ipv4/multicastsockopt_test.go create mode 100644 vendor/golang.org/x/net/ipv4/packet.go create mode 100644 vendor/golang.org/x/net/ipv4/payload.go create mode 100644 vendor/golang.org/x/net/ipv4/payload_cmsg.go create mode 100644 vendor/golang.org/x/net/ipv4/payload_nocmsg.go create mode 100644 vendor/golang.org/x/net/ipv4/readwrite_test.go create mode 100644 vendor/golang.org/x/net/ipv4/sockopt.go create mode 100644 vendor/golang.org/x/net/ipv4/sockopt_asmreq.go create mode 100644 vendor/golang.org/x/net/ipv4/sockopt_asmreq_stub.go create mode 100644 vendor/golang.org/x/net/ipv4/sockopt_asmreq_unix.go create mode 100644 vendor/golang.org/x/net/ipv4/sockopt_asmreq_windows.go create mode 100644 vendor/golang.org/x/net/ipv4/sockopt_asmreqn_stub.go create mode 100644 vendor/golang.org/x/net/ipv4/sockopt_asmreqn_unix.go create mode 100644 vendor/golang.org/x/net/ipv4/sockopt_ssmreq_stub.go create mode 100644 vendor/golang.org/x/net/ipv4/sockopt_ssmreq_unix.go create mode 100644 vendor/golang.org/x/net/ipv4/sockopt_stub.go create mode 100644 vendor/golang.org/x/net/ipv4/sockopt_unix.go create mode 100644 vendor/golang.org/x/net/ipv4/sockopt_windows.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_bsd.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_darwin.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_freebsd.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_linux.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_openbsd.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_stub.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_windows.go create mode 100644 vendor/golang.org/x/net/ipv4/syscall_linux_386.go create mode 100644 vendor/golang.org/x/net/ipv4/syscall_unix.go create mode 100644 vendor/golang.org/x/net/ipv4/thunk_linux_386.s create mode 100644 vendor/golang.org/x/net/ipv4/unicast_test.go create mode 100644 vendor/golang.org/x/net/ipv4/unicastsockopt_test.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_darwin.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_dragonfly.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_freebsd_386.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_freebsd_amd64.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_freebsd_arm.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_386.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_amd64.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_arm.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_arm64.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_mips64.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_mips64le.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_ppc64.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_ppc64le.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_netbsd.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_openbsd.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_solaris.go create mode 100644 vendor/golang.org/x/net/ipv6/control.go create mode 100644 vendor/golang.org/x/net/ipv6/control_rfc2292_unix.go create mode 100644 vendor/golang.org/x/net/ipv6/control_rfc3542_unix.go create mode 100644 vendor/golang.org/x/net/ipv6/control_stub.go create mode 100644 vendor/golang.org/x/net/ipv6/control_unix.go create mode 100644 vendor/golang.org/x/net/ipv6/control_windows.go create mode 100644 vendor/golang.org/x/net/ipv6/defs_darwin.go create mode 100644 vendor/golang.org/x/net/ipv6/defs_dragonfly.go create mode 100644 vendor/golang.org/x/net/ipv6/defs_freebsd.go create mode 100644 vendor/golang.org/x/net/ipv6/defs_linux.go create mode 100644 vendor/golang.org/x/net/ipv6/defs_netbsd.go create mode 100644 vendor/golang.org/x/net/ipv6/defs_openbsd.go create mode 100644 vendor/golang.org/x/net/ipv6/defs_solaris.go create mode 100644 vendor/golang.org/x/net/ipv6/dgramopt_posix.go create mode 100644 vendor/golang.org/x/net/ipv6/dgramopt_stub.go create mode 100644 vendor/golang.org/x/net/ipv6/doc.go create mode 100644 vendor/golang.org/x/net/ipv6/endpoint.go create mode 100644 vendor/golang.org/x/net/ipv6/example_test.go create mode 100644 vendor/golang.org/x/net/ipv6/gen.go create mode 100644 vendor/golang.org/x/net/ipv6/genericopt_posix.go create mode 100644 vendor/golang.org/x/net/ipv6/genericopt_stub.go create mode 100644 vendor/golang.org/x/net/ipv6/header.go create mode 100644 vendor/golang.org/x/net/ipv6/header_test.go create mode 100644 vendor/golang.org/x/net/ipv6/helper.go create mode 100644 vendor/golang.org/x/net/ipv6/helper_stub.go create mode 100644 vendor/golang.org/x/net/ipv6/helper_unix.go create mode 100644 vendor/golang.org/x/net/ipv6/helper_windows.go create mode 100644 vendor/golang.org/x/net/ipv6/iana.go create mode 100644 vendor/golang.org/x/net/ipv6/icmp.go create mode 100644 vendor/golang.org/x/net/ipv6/icmp_bsd.go create mode 100644 vendor/golang.org/x/net/ipv6/icmp_linux.go create mode 100644 vendor/golang.org/x/net/ipv6/icmp_solaris.go create mode 100644 vendor/golang.org/x/net/ipv6/icmp_stub.go create mode 100644 vendor/golang.org/x/net/ipv6/icmp_test.go create mode 100644 vendor/golang.org/x/net/ipv6/icmp_windows.go create mode 100644 vendor/golang.org/x/net/ipv6/mocktransponder_test.go create mode 100644 vendor/golang.org/x/net/ipv6/multicast_test.go create mode 100644 vendor/golang.org/x/net/ipv6/multicastlistener_test.go create mode 100644 vendor/golang.org/x/net/ipv6/multicastsockopt_test.go create mode 100644 vendor/golang.org/x/net/ipv6/payload.go create mode 100644 vendor/golang.org/x/net/ipv6/payload_cmsg.go create mode 100644 vendor/golang.org/x/net/ipv6/payload_nocmsg.go create mode 100644 vendor/golang.org/x/net/ipv6/readwrite_test.go create mode 100644 vendor/golang.org/x/net/ipv6/sockopt.go create mode 100644 vendor/golang.org/x/net/ipv6/sockopt_asmreq_unix.go create mode 100644 vendor/golang.org/x/net/ipv6/sockopt_asmreq_windows.go create mode 100644 vendor/golang.org/x/net/ipv6/sockopt_ssmreq_stub.go create mode 100644 vendor/golang.org/x/net/ipv6/sockopt_ssmreq_unix.go create mode 100644 vendor/golang.org/x/net/ipv6/sockopt_stub.go create mode 100644 vendor/golang.org/x/net/ipv6/sockopt_test.go create mode 100644 vendor/golang.org/x/net/ipv6/sockopt_unix.go create mode 100644 vendor/golang.org/x/net/ipv6/sockopt_windows.go create mode 100644 vendor/golang.org/x/net/ipv6/sys_bsd.go create mode 100644 vendor/golang.org/x/net/ipv6/sys_darwin.go create mode 100644 vendor/golang.org/x/net/ipv6/sys_freebsd.go create mode 100644 vendor/golang.org/x/net/ipv6/sys_linux.go create mode 100644 vendor/golang.org/x/net/ipv6/sys_stub.go create mode 100644 vendor/golang.org/x/net/ipv6/sys_windows.go create mode 100644 vendor/golang.org/x/net/ipv6/syscall_linux_386.go create mode 100644 vendor/golang.org/x/net/ipv6/syscall_unix.go create mode 100644 vendor/golang.org/x/net/ipv6/thunk_linux_386.s create mode 100644 vendor/golang.org/x/net/ipv6/unicast_test.go create mode 100644 vendor/golang.org/x/net/ipv6/unicastsockopt_test.go create mode 100644 vendor/golang.org/x/net/ipv6/zsys_darwin.go create mode 100644 vendor/golang.org/x/net/ipv6/zsys_dragonfly.go create mode 100644 vendor/golang.org/x/net/ipv6/zsys_freebsd_386.go create mode 100644 vendor/golang.org/x/net/ipv6/zsys_freebsd_amd64.go create mode 100644 vendor/golang.org/x/net/ipv6/zsys_freebsd_arm.go create mode 100644 vendor/golang.org/x/net/ipv6/zsys_linux_386.go create mode 100644 vendor/golang.org/x/net/ipv6/zsys_linux_amd64.go create mode 100644 vendor/golang.org/x/net/ipv6/zsys_linux_arm.go create mode 100644 vendor/golang.org/x/net/ipv6/zsys_linux_arm64.go create mode 100644 vendor/golang.org/x/net/ipv6/zsys_linux_mips64.go create mode 100644 vendor/golang.org/x/net/ipv6/zsys_linux_mips64le.go create mode 100644 vendor/golang.org/x/net/ipv6/zsys_linux_ppc64.go create mode 100644 vendor/golang.org/x/net/ipv6/zsys_linux_ppc64le.go create mode 100644 vendor/golang.org/x/net/ipv6/zsys_netbsd.go create mode 100644 vendor/golang.org/x/net/ipv6/zsys_openbsd.go create mode 100644 vendor/golang.org/x/net/ipv6/zsys_solaris.go create mode 100644 vendor/golang.org/x/net/netutil/listen_test.go create mode 100644 vendor/golang.org/x/net/proxy/direct.go create mode 100644 vendor/golang.org/x/net/proxy/per_host.go create mode 100644 vendor/golang.org/x/net/proxy/per_host_test.go create mode 100644 vendor/golang.org/x/net/proxy/proxy.go create mode 100644 vendor/golang.org/x/net/proxy/proxy_test.go create mode 100644 vendor/golang.org/x/net/proxy/socks5.go create mode 100644 vendor/golang.org/x/net/publicsuffix/gen.go create mode 100644 vendor/golang.org/x/net/publicsuffix/list.go create mode 100644 vendor/golang.org/x/net/publicsuffix/list_test.go create mode 100644 vendor/golang.org/x/net/publicsuffix/table.go create mode 100644 vendor/golang.org/x/net/publicsuffix/table_test.go create mode 100644 vendor/golang.org/x/net/trace/events.go create mode 100644 vendor/golang.org/x/net/trace/histogram.go create mode 100644 vendor/golang.org/x/net/trace/histogram_test.go create mode 100644 vendor/golang.org/x/net/trace/trace.go create mode 100644 vendor/golang.org/x/net/trace/trace_test.go create mode 100644 vendor/golang.org/x/net/webdav/file.go create mode 100644 vendor/golang.org/x/net/webdav/file_test.go create mode 100644 vendor/golang.org/x/net/webdav/if.go create mode 100644 vendor/golang.org/x/net/webdav/if_test.go create mode 100644 vendor/golang.org/x/net/webdav/internal/xml/README create mode 100644 vendor/golang.org/x/net/webdav/internal/xml/atom_test.go create mode 100644 vendor/golang.org/x/net/webdav/internal/xml/example_test.go create mode 100644 vendor/golang.org/x/net/webdav/internal/xml/marshal.go create mode 100644 vendor/golang.org/x/net/webdav/internal/xml/marshal_test.go create mode 100644 vendor/golang.org/x/net/webdav/internal/xml/read.go create mode 100644 vendor/golang.org/x/net/webdav/internal/xml/read_test.go create mode 100644 vendor/golang.org/x/net/webdav/internal/xml/typeinfo.go create mode 100644 vendor/golang.org/x/net/webdav/internal/xml/xml.go create mode 100644 vendor/golang.org/x/net/webdav/internal/xml/xml_test.go create mode 100644 vendor/golang.org/x/net/webdav/litmus_test_server.go create mode 100644 vendor/golang.org/x/net/webdav/lock.go create mode 100644 vendor/golang.org/x/net/webdav/lock_test.go create mode 100644 vendor/golang.org/x/net/webdav/prop.go create mode 100644 vendor/golang.org/x/net/webdav/prop_test.go create mode 100644 vendor/golang.org/x/net/webdav/webdav.go create mode 100644 vendor/golang.org/x/net/webdav/webdav_test.go create mode 100644 vendor/golang.org/x/net/webdav/xml.go create mode 100644 vendor/golang.org/x/net/webdav/xml_test.go create mode 100644 vendor/golang.org/x/net/websocket/client.go create mode 100644 vendor/golang.org/x/net/websocket/exampledial_test.go create mode 100644 vendor/golang.org/x/net/websocket/examplehandler_test.go create mode 100644 vendor/golang.org/x/net/websocket/hybi.go create mode 100644 vendor/golang.org/x/net/websocket/hybi_test.go create mode 100644 vendor/golang.org/x/net/websocket/server.go create mode 100644 vendor/golang.org/x/net/websocket/websocket.go create mode 100644 vendor/golang.org/x/net/websocket/websocket_test.go create mode 100644 vendor/golang.org/x/net/xsrftoken/xsrf.go create mode 100644 vendor/golang.org/x/net/xsrftoken/xsrf_test.go create mode 100644 vendor/gopkg.in/yaml.v2/decode_test.go create mode 100644 vendor/gopkg.in/yaml.v2/encode_test.go create mode 100644 vendor/gopkg.in/yaml.v2/suite_test.go diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json deleted file mode 100644 index 9578ccd6..00000000 --- a/Godeps/Godeps.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "ImportPath": "github.com/coreos/clair", - "GoVersion": "go1.5", - "Packages": [ - "./..." - ], - "Deps": [ - { - "ImportPath": "bitbucket.org/liamstask/goose/lib/goose", - "Rev": "8488cc47d90c8a502b1c41a462a6d9cc8ee0a895" - }, - { - "ImportPath": "github.com/beorn7/perks/quantile", - "Rev": "b965b613227fddccbfffe13eae360ed3fa822f8d" - }, - { - "ImportPath": "github.com/codegangsta/negroni", - "Comment": "v0.1-70-gc7477ad", - "Rev": "c7477ad8e330bef55bf1ebe300cf8aa67c492d1b" - }, - { - "ImportPath": "github.com/coreos/go-systemd/journal", - "Comment": "v4-34-g4f14f6d", - "Rev": "4f14f6deef2da87e4aa59e6c1c1f3e02ba44c5e1" - }, - { - "ImportPath": "github.com/coreos/pkg/capnslog", - "Rev": "2c77715c4df99b5420ffcae14ead08f52104065d" - }, - { - "ImportPath": "github.com/coreos/pkg/timeutil", - "Rev": "2c77715c4df99b5420ffcae14ead08f52104065d" - }, - { - "ImportPath": "github.com/davecgh/go-spew/spew", - "Rev": "5215b55f46b2b919f50a1df0eaa5886afe4e3b3d" - }, - { - "ImportPath": "github.com/fernet/fernet-go", - "Rev": "1b2437bc582b3cfbb341ee5a29f8ef5b42912ff2" - }, - { - "ImportPath": "github.com/go-sql-driver/mysql", - "Comment": "v1.2-125-gd512f20", - "Rev": "d512f204a577a4ab037a1816604c48c9c13210be" - }, - { - "ImportPath": "github.com/golang/protobuf/proto", - "Rev": "5fc2294e655b78ed8a02082d37808d46c17d7e64" - }, - { - "ImportPath": "github.com/guregu/null/zero", - "Comment": "v3-3-g79c5bd3", - "Rev": "79c5bd36b615db4c06132321189f579c8a5fca98" - }, - { - "ImportPath": "github.com/hashicorp/golang-lru", - "Rev": "5c7531c003d8bf158b0fe5063649a2f41a822146" - }, - { - "ImportPath": "github.com/julienschmidt/httprouter", - "Comment": "v1.1-14-g21439ef", - "Rev": "21439ef4d70ba4f3e2a5ed9249e7b03af4019b40" - }, - { - "ImportPath": "github.com/kylelemons/go-gypsy/yaml", - "Comment": "go.weekly.2011-11-02-19-g42fc2c7", - "Rev": "42fc2c7ee9b8bd0ff636cd2d7a8c0a49491044c5" - }, - { - "ImportPath": "github.com/lib/pq", - "Comment": "go1.0-cutoff-63-g11fc39a", - "Rev": "11fc39a580a008f1f39bb3d11d984fb34ed778d9" - }, - { - "ImportPath": "github.com/mattn/go-sqlite3", - "Comment": "v1.1.0-30-g5510da3", - "Rev": "5510da399572b4962c020184bb291120c0a412e2" - }, - { - "ImportPath": "github.com/matttproud/golang_protobuf_extensions/pbutil", - "Rev": "d0c3fe89de86839aecf2e0579c40ba3bb336a453" - }, - { - "ImportPath": "github.com/pborman/uuid", - "Rev": "dee7705ef7b324f27ceb85a121c61f2c2e8ce988" - }, - { - "ImportPath": "github.com/pmezard/go-difflib/difflib", - "Rev": "e8554b8641db39598be7f6342874b958f12ae1d4" - }, - { - "ImportPath": "github.com/prometheus/client_golang/prometheus", - "Comment": "0.7.0-68-g67994f1", - "Rev": "67994f177195311c3ea3d4407ed0175e34a4256f" - }, - { - "ImportPath": "github.com/prometheus/client_model/go", - "Comment": "model-0.0.2-12-gfa8ad6f", - "Rev": "fa8ad6fec33561be4280a8f0514318c79d7f6cb6" - }, - { - "ImportPath": "github.com/prometheus/common/expfmt", - "Rev": "dba5e39d4516169e840def50e507ef5f21b985f9" - }, - { - "ImportPath": "github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg", - "Rev": "dba5e39d4516169e840def50e507ef5f21b985f9" - }, - { - "ImportPath": "github.com/prometheus/common/model", - "Rev": "dba5e39d4516169e840def50e507ef5f21b985f9" - }, - { - "ImportPath": "github.com/prometheus/procfs", - "Rev": "406e5b7bfd8201a36e2bb5f7bdae0b03380c2ce8" - }, - { - "ImportPath": "github.com/stretchr/testify/assert", - "Comment": "v1.0-91-g5b9da39", - "Rev": "5b9da39b66e8e994455c2525c4421c8cc00a7f93" - }, - { - "ImportPath": "github.com/tylerb/graceful", - "Comment": "v1.2.3", - "Rev": "48afeb21e2fcbcff0f30bd5ad6b97747b0fae38e" - }, - { - "ImportPath": "github.com/ziutek/mymysql/godrv", - "Comment": "v1.5.4-13-g75ce5fb", - "Rev": "75ce5fbba34b1912a3641adbd58cf317d7315821" - }, - { - "ImportPath": "github.com/ziutek/mymysql/mysql", - "Comment": "v1.5.4-13-g75ce5fb", - "Rev": "75ce5fbba34b1912a3641adbd58cf317d7315821" - }, - { - "ImportPath": "github.com/ziutek/mymysql/native", - "Comment": "v1.5.4-13-g75ce5fb", - "Rev": "75ce5fbba34b1912a3641adbd58cf317d7315821" - }, - { - "ImportPath": "golang.org/x/net/netutil", - "Rev": "1d7a0b2100da090d8b02afcfb42f97e2c77e71a4" - }, - { - "ImportPath": "gopkg.in/yaml.v2", - "Rev": "f7716cbe52baa25d2e9b0d0da546fcf909fc16b4" - } - ] -} diff --git a/Godeps/Readme b/Godeps/Readme deleted file mode 100644 index 4cdaa53d..00000000 --- a/Godeps/Readme +++ /dev/null @@ -1,5 +0,0 @@ -This directory tree is generated automatically by godep. - -Please do not edit. - -See https://github.com/tools/godep for more information. diff --git a/glide.lock b/glide.lock new file mode 100644 index 00000000..3404ad54 --- /dev/null +++ b/glide.lock @@ -0,0 +1,105 @@ +hash: 6787deaa403181a20c0c0ba7e3135ba0f300281e7b3f98294593aa9f60563627 +updated: 2016-06-07T06:56:38.153128536+02:00 +imports: +- name: bitbucket.org/liamstask/goose + version: 8488cc47d90c8a502b1c41a462a6d9cc8ee0a895 + subpackages: + - lib/goose +- name: github.com/beorn7/perks + version: b965b613227fddccbfffe13eae360ed3fa822f8d + subpackages: + - quantile +- name: github.com/codegangsta/negroni + version: c7477ad8e330bef55bf1ebe300cf8aa67c492d1b +- name: github.com/coreos/go-systemd + version: 4f14f6deef2da87e4aa59e6c1c1f3e02ba44c5e1 + subpackages: + - journal +- name: github.com/coreos/pkg + version: 2c77715c4df99b5420ffcae14ead08f52104065d + subpackages: + - capnslog + - timeutil +- name: github.com/davecgh/go-spew + version: 5215b55f46b2b919f50a1df0eaa5886afe4e3b3d + subpackages: + - spew +- name: github.com/fatih/color + version: 1b35f289c47d5c73c398cea8e006b7bcb6234a96 +- name: github.com/fernet/fernet-go + version: 1b2437bc582b3cfbb341ee5a29f8ef5b42912ff2 +- name: github.com/go-sql-driver/mysql + version: d512f204a577a4ab037a1816604c48c9c13210be +- name: github.com/golang/protobuf + version: 5fc2294e655b78ed8a02082d37808d46c17d7e64 + subpackages: + - proto +- name: github.com/guregu/null + version: 79c5bd36b615db4c06132321189f579c8a5fca98 + subpackages: + - zero +- name: github.com/hashicorp/golang-lru + version: 5c7531c003d8bf158b0fe5063649a2f41a822146 + subpackages: + - simplelru +- name: github.com/julienschmidt/httprouter + version: 21439ef4d70ba4f3e2a5ed9249e7b03af4019b40 +- name: github.com/kr/text + version: 7cafcd837844e784b526369c9bce262804aebc60 +- name: github.com/kylelemons/go-gypsy + version: 42fc2c7ee9b8bd0ff636cd2d7a8c0a49491044c5 + subpackages: + - yaml +- name: github.com/lib/pq + version: 11fc39a580a008f1f39bb3d11d984fb34ed778d9 + subpackages: + - oid +- name: github.com/mattn/go-sqlite3 + version: 5510da399572b4962c020184bb291120c0a412e2 +- name: github.com/matttproud/golang_protobuf_extensions + version: d0c3fe89de86839aecf2e0579c40ba3bb336a453 + subpackages: + - pbutil +- name: github.com/pborman/uuid + version: dee7705ef7b324f27ceb85a121c61f2c2e8ce988 +- name: github.com/pmezard/go-difflib + version: e8554b8641db39598be7f6342874b958f12ae1d4 + subpackages: + - difflib +- name: github.com/prometheus/client_golang + version: 67994f177195311c3ea3d4407ed0175e34a4256f + subpackages: + - prometheus +- name: github.com/prometheus/client_model + version: fa8ad6fec33561be4280a8f0514318c79d7f6cb6 + subpackages: + - go +- name: github.com/prometheus/common + version: dba5e39d4516169e840def50e507ef5f21b985f9 + subpackages: + - expfmt + - internal/bitbucket.org/ww/goautoneg + - model +- name: github.com/prometheus/procfs + version: 406e5b7bfd8201a36e2bb5f7bdae0b03380c2ce8 +- name: github.com/shiena/ansicolor + version: a422bbe96644373c5753384a59d678f7d261ff10 +- name: github.com/stretchr/testify + version: 5b9da39b66e8e994455c2525c4421c8cc00a7f93 + subpackages: + - assert +- name: github.com/tylerb/graceful + version: 84177357ab104029f9237abcb52339a7b80760ef +- name: github.com/ziutek/mymysql + version: 75ce5fbba34b1912a3641adbd58cf317d7315821 + subpackages: + - godrv + - mysql + - native +- name: golang.org/x/net + version: 1d7a0b2100da090d8b02afcfb42f97e2c77e71a4 + subpackages: + - netutil +- name: gopkg.in/yaml.v2 + version: f7716cbe52baa25d2e9b0d0da546fcf909fc16b4 +devImports: [] diff --git a/glide.yaml b/glide.yaml new file mode 100644 index 00000000..bc32c3b0 --- /dev/null +++ b/glide.yaml @@ -0,0 +1,96 @@ +package: github.com/coreos/clair +import: +- package: bitbucket.org/liamstask/goose + version: 8488cc47d90c8a502b1c41a462a6d9cc8ee0a895 + subpackages: + - lib/goose +- package: github.com/beorn7/perks + version: b965b613227fddccbfffe13eae360ed3fa822f8d + subpackages: + - quantile +- package: github.com/codegangsta/negroni + version: c7477ad8e330bef55bf1ebe300cf8aa67c492d1b +- package: github.com/coreos/go-systemd + version: 4f14f6deef2da87e4aa59e6c1c1f3e02ba44c5e1 + subpackages: + - journal +- package: github.com/coreos/pkg + version: 2c77715c4df99b5420ffcae14ead08f52104065d + subpackages: + - capnslog + - timeutil +- package: github.com/davecgh/go-spew + version: 5215b55f46b2b919f50a1df0eaa5886afe4e3b3d + subpackages: + - spew +- package: github.com/fernet/fernet-go + version: 1b2437bc582b3cfbb341ee5a29f8ef5b42912ff2 +- package: github.com/go-sql-driver/mysql + version: d512f204a577a4ab037a1816604c48c9c13210be +- package: github.com/golang/protobuf + version: 5fc2294e655b78ed8a02082d37808d46c17d7e64 + subpackages: + - proto +- package: github.com/guregu/null + version: 79c5bd36b615db4c06132321189f579c8a5fca98 + subpackages: + - zero +- package: github.com/hashicorp/golang-lru + version: 5c7531c003d8bf158b0fe5063649a2f41a822146 +- package: github.com/julienschmidt/httprouter + version: 21439ef4d70ba4f3e2a5ed9249e7b03af4019b40 +- package: github.com/kylelemons/go-gypsy + version: 42fc2c7ee9b8bd0ff636cd2d7a8c0a49491044c5 + subpackages: + - yaml +- package: github.com/lib/pq + version: 11fc39a580a008f1f39bb3d11d984fb34ed778d9 +- package: github.com/mattn/go-sqlite3 + version: 5510da399572b4962c020184bb291120c0a412e2 +- package: github.com/matttproud/golang_protobuf_extensions + version: d0c3fe89de86839aecf2e0579c40ba3bb336a453 + subpackages: + - pbutil +- package: github.com/pborman/uuid + version: dee7705ef7b324f27ceb85a121c61f2c2e8ce988 +- package: github.com/pmezard/go-difflib + version: e8554b8641db39598be7f6342874b958f12ae1d4 + subpackages: + - difflib +- package: github.com/prometheus/client_golang + version: 67994f177195311c3ea3d4407ed0175e34a4256f + subpackages: + - prometheus +- package: github.com/prometheus/client_model + version: fa8ad6fec33561be4280a8f0514318c79d7f6cb6 + subpackages: + - go +- package: github.com/prometheus/common + version: dba5e39d4516169e840def50e507ef5f21b985f9 + subpackages: + - expfmt + - internal/bitbucket.org/ww/goautoneg + - model +- package: github.com/prometheus/procfs + version: 406e5b7bfd8201a36e2bb5f7bdae0b03380c2ce8 +- package: github.com/stretchr/testify + version: 5b9da39b66e8e994455c2525c4421c8cc00a7f93 + subpackages: + - assert +- package: github.com/tylerb/graceful + version: ^1.2.3 +- package: github.com/ziutek/mymysql + version: 75ce5fbba34b1912a3641adbd58cf317d7315821 + subpackages: + - godrv + - mysql + - native +- package: golang.org/x/net + version: 1d7a0b2100da090d8b02afcfb42f97e2c77e71a4 + subpackages: + - netutil +- package: gopkg.in/yaml.v2 + version: f7716cbe52baa25d2e9b0d0da546fcf909fc16b4 +- package: github.com/fatih/color + version: ^0.1.0 +- package: github.com/kr/text diff --git a/vendor/bitbucket.org/liamstask/goose/.gitignore b/vendor/bitbucket.org/liamstask/goose/.gitignore new file mode 100644 index 00000000..09c6c0fc --- /dev/null +++ b/vendor/bitbucket.org/liamstask/goose/.gitignore @@ -0,0 +1,4 @@ +.DS_Store +cmd/goose/goose* +*.swp +*.test diff --git a/vendor/bitbucket.org/liamstask/goose/MIT-License.md b/vendor/bitbucket.org/liamstask/goose/MIT-License.md new file mode 100644 index 00000000..18289a76 --- /dev/null +++ b/vendor/bitbucket.org/liamstask/goose/MIT-License.md @@ -0,0 +1,7 @@ +Copyright (c) <2012> + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/bitbucket.org/liamstask/goose/README.md b/vendor/bitbucket.org/liamstask/goose/README.md new file mode 100644 index 00000000..da412eb3 --- /dev/null +++ b/vendor/bitbucket.org/liamstask/goose/README.md @@ -0,0 +1,265 @@ +# goose + +goose is a database migration tool. + +You can manage your database's evolution by creating incremental SQL or Go scripts. + +[![Build Status](https://drone.io/bitbucket.org/liamstask/goose/status.png)](https://drone.io/bitbucket.org/liamstask/goose/latest) + +# Install + + $ go get bitbucket.org/liamstask/goose/cmd/goose + +This will install the `goose` binary to your `$GOPATH/bin` directory. + +You can also build goose into your own applications by importing `bitbucket.org/liamstask/goose/lib/goose`. Documentation is available at [godoc.org](http://godoc.org/bitbucket.org/liamstask/goose/lib/goose). + +NOTE: the API is still new, and may undergo some changes. + +# Usage + +goose provides several commands to help manage your database schema. + +## create + +Create a new Go migration. + + $ goose create AddSomeColumns + $ goose: created db/migrations/20130106093224_AddSomeColumns.go + +Edit the newly created script to define the behavior of your migration. + +You can also create an SQL migration: + + $ goose create AddSomeColumns sql + $ goose: created db/migrations/20130106093224_AddSomeColumns.sql + +## up + +Apply all available migrations. + + $ goose up + $ goose: migrating db environment 'development', current version: 0, target: 3 + $ OK 001_basics.sql + $ OK 002_next.sql + $ OK 003_and_again.go + +### option: pgschema + +Use the `pgschema` flag with the `up` command specify a postgres schema. + + $ goose -pgschema=my_schema_name up + $ goose: migrating db environment 'development', current version: 0, target: 3 + $ OK 001_basics.sql + $ OK 002_next.sql + $ OK 003_and_again.go + +## down + +Roll back a single migration from the current version. + + $ goose down + $ goose: migrating db environment 'development', current version: 3, target: 2 + $ OK 003_and_again.go + +## redo + +Roll back the most recently applied migration, then run it again. + + $ goose redo + $ goose: migrating db environment 'development', current version: 3, target: 2 + $ OK 003_and_again.go + $ goose: migrating db environment 'development', current version: 2, target: 3 + $ OK 003_and_again.go + +## status + +Print the status of all migrations: + + $ goose status + $ goose: status for environment 'development' + $ Applied At Migration + $ ======================================= + $ Sun Jan 6 11:25:03 2013 -- 001_basics.sql + $ Sun Jan 6 11:25:03 2013 -- 002_next.sql + $ Pending -- 003_and_again.go + +## dbversion + +Print the current version of the database: + + $ goose dbversion + $ goose: dbversion 002 + + +`goose -h` provides more detailed info on each command. + + +# Migrations + +goose supports migrations written in SQL or in Go - see the `goose create` command above for details on how to generate them. + +## SQL Migrations + +A sample SQL migration looks like: + +```sql +-- +goose Up +CREATE TABLE post ( + id int NOT NULL, + title text, + body text, + PRIMARY KEY(id) +); + +-- +goose Down +DROP TABLE post; +``` + +Notice the annotations in the comments. Any statements following `-- +goose Up` will be executed as part of a forward migration, and any statements following `-- +goose Down` will be executed as part of a rollback. + +By default, SQL statements are delimited by semicolons - in fact, query statements must end with a semicolon to be properly recognized by goose. + +More complex statements (PL/pgSQL) that have semicolons within them must be annotated with `-- +goose StatementBegin` and `-- +goose StatementEnd` to be properly recognized. For example: + +```sql +-- +goose Up +-- +goose StatementBegin +CREATE OR REPLACE FUNCTION histories_partition_creation( DATE, DATE ) +returns void AS $$ +DECLARE + create_query text; +BEGIN + FOR create_query IN SELECT + 'CREATE TABLE IF NOT EXISTS histories_' + || TO_CHAR( d, 'YYYY_MM' ) + || ' ( CHECK( created_at >= timestamp ''' + || TO_CHAR( d, 'YYYY-MM-DD 00:00:00' ) + || ''' AND created_at < timestamp ''' + || TO_CHAR( d + INTERVAL '1 month', 'YYYY-MM-DD 00:00:00' ) + || ''' ) ) inherits ( histories );' + FROM generate_series( $1, $2, '1 month' ) AS d + LOOP + EXECUTE create_query; + END LOOP; -- LOOP END +END; -- FUNCTION END +$$ +language plpgsql; +-- +goose StatementEnd +``` + +## Go Migrations + +A sample Go migration looks like: + +```go +package main + +import ( + "database/sql" + "fmt" +) + +func Up_20130106222315(txn *sql.Tx) { + fmt.Println("Hello from migration 20130106222315 Up!") +} + +func Down_20130106222315(txn *sql.Tx) { + fmt.Println("Hello from migration 20130106222315 Down!") +} +``` + +`Up_20130106222315()` will be executed as part of a forward migration, and `Down_20130106222315()` will be executed as part of a rollback. + +The numeric portion of the function name (`20130106222315`) must be the leading portion of migration's filename, such as `20130106222315_descriptive_name.go`. `goose create` does this by default. + +A transaction is provided, rather than the DB instance directly, since goose also needs to record the schema version within the same transaction. Each migration should run as a single transaction to ensure DB integrity, so it's good practice anyway. + + +# Configuration + +goose expects you to maintain a folder (typically called "db"), which contains the following: + +* a `dbconf.yml` file that describes the database configurations you'd like to use +* a folder called "migrations" which contains `.sql` and/or `.go` scripts that implement your migrations + +You may use the `-path` option to specify an alternate location for the folder containing your config and migrations. + +A sample `dbconf.yml` looks like + +```yml +development: + driver: postgres + open: user=liam dbname=tester sslmode=disable +``` + +Here, `development` specifies the name of the environment, and the `driver` and `open` elements are passed directly to database/sql to access the specified database. + +You may include as many environments as you like, and you can use the `-env` command line option to specify which one to use. goose defaults to using an environment called `development`. + +goose will expand environment variables in the `open` element. For an example, see the Heroku section below. + +## Other Drivers +goose knows about some common SQL drivers, but it can still be used to run Go-based migrations with any driver supported by `database/sql`. An import path and known dialect are required. + +Currently, available dialects are: "postgres", "mysql", or "sqlite3" + +To run Go-based migrations with another driver, specify its import path and dialect, as shown below. + +```yml +customdriver: + driver: custom + open: custom open string + import: github.com/custom/driver + dialect: mysql +``` + +NOTE: Because migrations written in SQL are executed directly by the goose binary, only drivers compiled into goose may be used for these migrations. + +## Using goose with Heroku + +These instructions assume that you're using [Keith Rarick's Heroku Go buildpack](https://github.com/kr/heroku-buildpack-go). First, add a file to your project called (e.g.) `install_goose.go` to trigger building of the goose executable during deployment, with these contents: + +```go +// use build constraints to work around http://code.google.com/p/go/issues/detail?id=4210 +// +build heroku + +// note: need at least one blank line after build constraint +package main + +import _ "bitbucket.org/liamstask/goose/cmd/goose" +``` + +[Set up your Heroku database(s) as usual.](https://devcenter.heroku.com/articles/heroku-postgresql) + +Then make use of environment variable expansion in your `dbconf.yml`: + +```yml +production: + driver: postgres + open: $DATABASE_URL +``` + +To run goose in production, use `heroku run`: + + heroku run goose -env production up + +# Contributors + +Thank you! + +* Josh Bleecher Snyder (josharian) +* Abigail Walthall (ghthor) +* Daniel Heath (danielrheath) +* Chris Baynes (chris_baynes) +* Michael Gerow (gerow) +* Vytautas Šaltenis (rtfb) +* James Cooper (coopernurse) +* Gyepi Sam (gyepisam) +* Matt Sherman (clipperhouse) +* runner_mei +* John Luebs (jkl1337) +* Luke Hutton (lukehutton) +* Kevin Gorjan (kevingorjan) +* Brendan Fosberry (Fozz) +* Nate Guerin (gusennan) diff --git a/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd.go b/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd.go new file mode 100644 index 00000000..8a520d55 --- /dev/null +++ b/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd.go @@ -0,0 +1,27 @@ +package main + +import ( + "flag" +) + +// shamelessly snagged from the go tool +// each command gets its own set of args, +// defines its own entry point, and provides its own help +type Command struct { + Run func(cmd *Command, args ...string) + Flag flag.FlagSet + + Name string + Usage string + + Summary string + Help string +} + +func (c *Command) Exec(args []string) { + c.Flag.Usage = func() { + // helpFunc(c, c.Name) + } + c.Flag.Parse(args) + c.Run(c, c.Flag.Args()...) +} diff --git a/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_create.go b/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_create.go new file mode 100644 index 00000000..e07a9b43 --- /dev/null +++ b/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_create.go @@ -0,0 +1,51 @@ +package main + +import ( + "bitbucket.org/liamstask/goose/lib/goose" + "fmt" + "log" + "os" + "path/filepath" + "time" +) + +var createCmd = &Command{ + Name: "create", + Usage: "", + Summary: "Create the scaffolding for a new migration", + Help: `create extended help here...`, + Run: createRun, +} + +func createRun(cmd *Command, args ...string) { + + if len(args) < 1 { + log.Fatal("goose create: migration name required") + } + + migrationType := "go" // default to Go migrations + if len(args) >= 2 { + migrationType = args[1] + } + + conf, err := dbConfFromFlags() + if err != nil { + log.Fatal(err) + } + + if err = os.MkdirAll(conf.MigrationsDir, 0777); err != nil { + log.Fatal(err) + } + + n, err := goose.CreateMigration(args[0], migrationType, conf.MigrationsDir, time.Now()) + if err != nil { + log.Fatal(err) + } + + a, e := filepath.Abs(n) + if e != nil { + log.Fatal(e) + } + + fmt.Println("goose: created", a) +} diff --git a/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_dbversion.go b/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_dbversion.go new file mode 100644 index 00000000..ea43f5c8 --- /dev/null +++ b/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_dbversion.go @@ -0,0 +1,29 @@ +package main + +import ( + "bitbucket.org/liamstask/goose/lib/goose" + "fmt" + "log" +) + +var dbVersionCmd = &Command{ + Name: "dbversion", + Usage: "", + Summary: "Print the current version of the database", + Help: `dbversion extended help here...`, + Run: dbVersionRun, +} + +func dbVersionRun(cmd *Command, args ...string) { + conf, err := dbConfFromFlags() + if err != nil { + log.Fatal(err) + } + + current, err := goose.GetDBVersion(conf) + if err != nil { + log.Fatal(err) + } + + fmt.Printf("goose: dbversion %v\n", current) +} diff --git a/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_down.go b/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_down.go new file mode 100644 index 00000000..342a7fc0 --- /dev/null +++ b/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_down.go @@ -0,0 +1,36 @@ +package main + +import ( + "bitbucket.org/liamstask/goose/lib/goose" + "log" +) + +var downCmd = &Command{ + Name: "down", + Usage: "", + Summary: "Roll back the version by 1", + Help: `down extended help here...`, + Run: downRun, +} + +func downRun(cmd *Command, args ...string) { + + conf, err := dbConfFromFlags() + if err != nil { + log.Fatal(err) + } + + current, err := goose.GetDBVersion(conf) + if err != nil { + log.Fatal(err) + } + + previous, err := goose.GetPreviousDBVersion(conf.MigrationsDir, current) + if err != nil { + log.Fatal(err) + } + + if err = goose.RunMigrations(conf, conf.MigrationsDir, previous); err != nil { + log.Fatal(err) + } +} diff --git a/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_redo.go b/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_redo.go new file mode 100644 index 00000000..1776e07c --- /dev/null +++ b/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_redo.go @@ -0,0 +1,39 @@ +package main + +import ( + "bitbucket.org/liamstask/goose/lib/goose" + "log" +) + +var redoCmd = &Command{ + Name: "redo", + Usage: "", + Summary: "Re-run the latest migration", + Help: `redo extended help here...`, + Run: redoRun, +} + +func redoRun(cmd *Command, args ...string) { + conf, err := dbConfFromFlags() + if err != nil { + log.Fatal(err) + } + + current, err := goose.GetDBVersion(conf) + if err != nil { + log.Fatal(err) + } + + previous, err := goose.GetPreviousDBVersion(conf.MigrationsDir, current) + if err != nil { + log.Fatal(err) + } + + if err := goose.RunMigrations(conf, conf.MigrationsDir, previous); err != nil { + log.Fatal(err) + } + + if err := goose.RunMigrations(conf, conf.MigrationsDir, current); err != nil { + log.Fatal(err) + } +} diff --git a/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_status.go b/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_status.go new file mode 100644 index 00000000..514de268 --- /dev/null +++ b/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_status.go @@ -0,0 +1,77 @@ +package main + +import ( + "bitbucket.org/liamstask/goose/lib/goose" + "database/sql" + "fmt" + "log" + "path/filepath" + "time" +) + +var statusCmd = &Command{ + Name: "status", + Usage: "", + Summary: "dump the migration status for the current DB", + Help: `status extended help here...`, + Run: statusRun, +} + +type StatusData struct { + Source string + Status string +} + +func statusRun(cmd *Command, args ...string) { + + conf, err := dbConfFromFlags() + if err != nil { + log.Fatal(err) + } + + // collect all migrations + min := int64(0) + max := int64((1 << 63) - 1) + migrations, e := goose.CollectMigrations(conf.MigrationsDir, min, max) + if e != nil { + log.Fatal(e) + } + + db, e := goose.OpenDBFromDBConf(conf) + if e != nil { + log.Fatal("couldn't open DB:", e) + } + defer db.Close() + + // must ensure that the version table exists if we're running on a pristine DB + if _, e := goose.EnsureDBVersion(conf, db); e != nil { + log.Fatal(e) + } + + fmt.Printf("goose: status for environment '%v'\n", conf.Env) + fmt.Println(" Applied At Migration") + fmt.Println(" =======================================") + for _, m := range migrations { + printMigrationStatus(db, m.Version, filepath.Base(m.Source)) + } +} + +func printMigrationStatus(db *sql.DB, version int64, script string) { + var row goose.MigrationRecord + q := fmt.Sprintf("SELECT tstamp, is_applied FROM goose_db_version WHERE version_id=%d ORDER BY tstamp DESC LIMIT 1", version) + e := db.QueryRow(q).Scan(&row.TStamp, &row.IsApplied) + + if e != nil && e != sql.ErrNoRows { + log.Fatal(e) + } + + var appliedAt string + + if row.IsApplied { + appliedAt = row.TStamp.Format(time.ANSIC) + } else { + appliedAt = "Pending" + } + + fmt.Printf(" %-24s -- %v\n", appliedAt, script) +} diff --git a/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_up.go b/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_up.go new file mode 100644 index 00000000..7f4c66a3 --- /dev/null +++ b/vendor/bitbucket.org/liamstask/goose/cmd/goose/cmd_up.go @@ -0,0 +1,31 @@ +package main + +import ( + "bitbucket.org/liamstask/goose/lib/goose" + "log" +) + +var upCmd = &Command{ + Name: "up", + Usage: "", + Summary: "Migrate the DB to the most recent version available", + Help: `up extended help here...`, + Run: upRun, +} + +func upRun(cmd *Command, args ...string) { + + conf, err := dbConfFromFlags() + if err != nil { + log.Fatal(err) + } + + target, err := goose.GetMostRecentDBVersion(conf.MigrationsDir) + if err != nil { + log.Fatal(err) + } + + if err := goose.RunMigrations(conf, conf.MigrationsDir, target); err != nil { + log.Fatal(err) + } +} diff --git a/vendor/bitbucket.org/liamstask/goose/cmd/goose/main.go b/vendor/bitbucket.org/liamstask/goose/cmd/goose/main.go new file mode 100644 index 00000000..dc84f3a4 --- /dev/null +++ b/vendor/bitbucket.org/liamstask/goose/cmd/goose/main.go @@ -0,0 +1,78 @@ +package main + +import ( + "bitbucket.org/liamstask/goose/lib/goose" + "flag" + "fmt" + "os" + "strings" + "text/template" +) + +// global options. available to any subcommands. +var flagPath = flag.String("path", "db", "folder containing db info") +var flagEnv = flag.String("env", "development", "which DB environment to use") +var flagPgSchema = flag.String("pgschema", "", "which postgres-schema to migrate (default = none)") + +// helper to create a DBConf from the given flags +func dbConfFromFlags() (dbconf *goose.DBConf, err error) { + return goose.NewDBConf(*flagPath, *flagEnv, *flagPgSchema) +} + +var commands = []*Command{ + upCmd, + downCmd, + redoCmd, + statusCmd, + createCmd, + dbVersionCmd, +} + +func main() { + + flag.Usage = usage + flag.Parse() + + args := flag.Args() + if len(args) == 0 || args[0] == "-h" { + flag.Usage() + return + } + + var cmd *Command + name := args[0] + for _, c := range commands { + if strings.HasPrefix(c.Name, name) { + cmd = c + break + } + } + + if cmd == nil { + fmt.Printf("error: unknown command %q\n", name) + flag.Usage() + os.Exit(1) + } + + cmd.Exec(args[1:]) +} + +func usage() { + fmt.Print(usagePrefix) + flag.PrintDefaults() + usageTmpl.Execute(os.Stdout, commands) +} + +var usagePrefix = ` +goose is a database migration management system for Go projects. + +Usage: + goose [options] [subcommand options] + +Options: +` +var usageTmpl = template.Must(template.New("usage").Parse( + ` +Commands:{{range .}} + {{.Name | printf "%-10s"}} {{.Summary}}{{end}} +`)) diff --git a/vendor/bitbucket.org/liamstask/goose/db-sample/dbconf.yml b/vendor/bitbucket.org/liamstask/goose/db-sample/dbconf.yml new file mode 100644 index 00000000..b8205270 --- /dev/null +++ b/vendor/bitbucket.org/liamstask/goose/db-sample/dbconf.yml @@ -0,0 +1,22 @@ + +test: + driver: postgres + open: user=liam dbname=tester sslmode=disable + +development: + driver: postgres + open: user=liam dbname=tester sslmode=disable + +production: + driver: postgres + open: user=liam dbname=tester sslmode=verify-full + +customimport: + driver: customdriver + open: customdriver open + import: github.com/custom/driver + dialect: mysql + +environment_variable_config: + driver: $DB_DRIVER + open: $DATABASE_URL diff --git a/vendor/bitbucket.org/liamstask/goose/db-sample/migrations/001_basics.sql b/vendor/bitbucket.org/liamstask/goose/db-sample/migrations/001_basics.sql new file mode 100644 index 00000000..2a5bb57c --- /dev/null +++ b/vendor/bitbucket.org/liamstask/goose/db-sample/migrations/001_basics.sql @@ -0,0 +1,11 @@ + +-- +goose Up +CREATE TABLE post ( + id int NOT NULL, + title text, + body text, + PRIMARY KEY(id) +); + +-- +goose Down +DROP TABLE post; diff --git a/vendor/bitbucket.org/liamstask/goose/db-sample/migrations/002_next.sql b/vendor/bitbucket.org/liamstask/goose/db-sample/migrations/002_next.sql new file mode 100644 index 00000000..9f9be33b --- /dev/null +++ b/vendor/bitbucket.org/liamstask/goose/db-sample/migrations/002_next.sql @@ -0,0 +1,12 @@ + +-- +goose Up +CREATE TABLE fancier_post ( + id int NOT NULL, + title text, + body text, + created_on timestamp without time zone, + PRIMARY KEY(id) +); + +-- +goose Down +DROP TABLE fancier_post; diff --git a/vendor/bitbucket.org/liamstask/goose/db-sample/migrations/20130106222315_and_again.go b/vendor/bitbucket.org/liamstask/goose/db-sample/migrations/20130106222315_and_again.go new file mode 100644 index 00000000..1aac8ba5 --- /dev/null +++ b/vendor/bitbucket.org/liamstask/goose/db-sample/migrations/20130106222315_and_again.go @@ -0,0 +1,15 @@ + +package main + +import ( + "database/sql" + "fmt" +) + +func Up_20130106222315(txn *sql.Tx) { + fmt.Println("Hello from migration 20130106222315 Up!") +} + +func Down_20130106222315(txn *sql.Tx) { + fmt.Println("Hello from migration 20130106222315 Down!") +} diff --git a/vendor/bitbucket.org/liamstask/goose/lib/goose/dbconf_test.go b/vendor/bitbucket.org/liamstask/goose/lib/goose/dbconf_test.go new file mode 100644 index 00000000..37828ae8 --- /dev/null +++ b/vendor/bitbucket.org/liamstask/goose/lib/goose/dbconf_test.go @@ -0,0 +1,70 @@ +package goose + +import ( + "os" + "reflect" + "testing" +) + +func TestBasics(t *testing.T) { + + dbconf, err := NewDBConf("../../db-sample", "test", "") + if err != nil { + t.Fatal(err) + } + + got := []string{dbconf.MigrationsDir, dbconf.Env, dbconf.Driver.Name, dbconf.Driver.OpenStr} + want := []string{"../../db-sample/migrations", "test", "postgres", "user=liam dbname=tester sslmode=disable"} + + for i, s := range got { + if s != want[i] { + t.Errorf("Unexpected DBConf value. got %v, want %v", s, want[i]) + } + } +} + +func TestImportOverride(t *testing.T) { + + dbconf, err := NewDBConf("../../db-sample", "customimport", "") + if err != nil { + t.Fatal(err) + } + + got := dbconf.Driver.Import + want := "github.com/custom/driver" + if got != want { + t.Errorf("bad custom import. got %v want %v", got, want) + } +} + +func TestDriverSetFromEnvironmentVariable(t *testing.T) { + + databaseUrlEnvVariableKey := "DB_DRIVER" + databaseUrlEnvVariableVal := "sqlite3" + databaseOpenStringKey := "DATABASE_URL" + databaseOpenStringVal := "db.db" + + os.Setenv(databaseUrlEnvVariableKey, databaseUrlEnvVariableVal) + os.Setenv(databaseOpenStringKey, databaseOpenStringVal) + + dbconf, err := NewDBConf("../../db-sample", "environment_variable_config", "") + if err != nil { + t.Fatal(err) + } + + got := reflect.TypeOf(dbconf.Driver.Dialect) + want := reflect.TypeOf(&Sqlite3Dialect{}) + + if got != want { + t.Errorf("Not able to read the driver type from environment variable."+ + "got %v want %v", got, want) + } + + gotOpenString := dbconf.Driver.OpenStr + wantOpenString := databaseOpenStringVal + + if gotOpenString != wantOpenString { + t.Errorf("Not able to read the open string from the environment."+ + "got %v want %v", gotOpenString, wantOpenString) + } +} diff --git a/vendor/bitbucket.org/liamstask/goose/lib/goose/migrate_test.go b/vendor/bitbucket.org/liamstask/goose/lib/goose/migrate_test.go new file mode 100644 index 00000000..6dbffa36 --- /dev/null +++ b/vendor/bitbucket.org/liamstask/goose/lib/goose/migrate_test.go @@ -0,0 +1,71 @@ +package goose + +import ( + "testing" +) + +func TestMigrationMapSortUp(t *testing.T) { + + ms := migrationSorter{} + + // insert in any order + ms = append(ms, newMigration(20120000, "test")) + ms = append(ms, newMigration(20128000, "test")) + ms = append(ms, newMigration(20129000, "test")) + ms = append(ms, newMigration(20127000, "test")) + + ms.Sort(true) // sort Upwards + + sorted := []int64{20120000, 20127000, 20128000, 20129000} + + validateMigrationSort(t, ms, sorted) +} + +func TestMigrationMapSortDown(t *testing.T) { + + ms := migrationSorter{} + + // insert in any order + ms = append(ms, newMigration(20120000, "test")) + ms = append(ms, newMigration(20128000, "test")) + ms = append(ms, newMigration(20129000, "test")) + ms = append(ms, newMigration(20127000, "test")) + + ms.Sort(false) // sort Downwards + + sorted := []int64{20129000, 20128000, 20127000, 20120000} + + validateMigrationSort(t, ms, sorted) +} + +func validateMigrationSort(t *testing.T, ms migrationSorter, sorted []int64) { + + for i, m := range ms { + if sorted[i] != m.Version { + t.Error("incorrect sorted version") + } + + var next, prev int64 + + if i == 0 { + prev = -1 + next = ms[i+1].Version + } else if i == len(ms)-1 { + prev = ms[i-1].Version + next = -1 + } else { + prev = ms[i-1].Version + next = ms[i+1].Version + } + + if m.Next != next { + t.Errorf("mismatched Next. v: %v, got %v, wanted %v\n", m, m.Next, next) + } + + if m.Previous != prev { + t.Errorf("mismatched Previous v: %v, got %v, wanted %v\n", m, m.Previous, prev) + } + } + + t.Log(ms) +} diff --git a/vendor/bitbucket.org/liamstask/goose/lib/goose/migration_sql_test.go b/vendor/bitbucket.org/liamstask/goose/lib/goose/migration_sql_test.go new file mode 100644 index 00000000..5852960b --- /dev/null +++ b/vendor/bitbucket.org/liamstask/goose/lib/goose/migration_sql_test.go @@ -0,0 +1,147 @@ +package goose + +import ( + "strings" + "testing" +) + +func TestSemicolons(t *testing.T) { + + type testData struct { + line string + result bool + } + + tests := []testData{ + { + line: "END;", + result: true, + }, + { + line: "END; -- comment", + result: true, + }, + { + line: "END ; -- comment", + result: true, + }, + { + line: "END -- comment", + result: false, + }, + { + line: "END -- comment ;", + result: false, + }, + { + line: "END \" ; \" -- comment", + result: false, + }, + } + + for _, test := range tests { + r := endsWithSemicolon(test.line) + if r != test.result { + t.Errorf("incorrect semicolon. got %v, want %v", r, test.result) + } + } +} + +func TestSplitStatements(t *testing.T) { + + type testData struct { + sql string + direction bool + count int + } + + tests := []testData{ + { + sql: functxt, + direction: true, + count: 2, + }, + { + sql: functxt, + direction: false, + count: 2, + }, + { + sql: multitxt, + direction: true, + count: 2, + }, + { + sql: multitxt, + direction: false, + count: 2, + }, + } + + for _, test := range tests { + stmts := splitSQLStatements(strings.NewReader(test.sql), test.direction) + if len(stmts) != test.count { + t.Errorf("incorrect number of stmts. got %v, want %v", len(stmts), test.count) + } + } +} + +var functxt = `-- +goose Up +CREATE TABLE IF NOT EXISTS histories ( + id BIGSERIAL PRIMARY KEY, + current_value varchar(2000) NOT NULL, + created_at timestamp with time zone NOT NULL +); + +-- +goose StatementBegin +CREATE OR REPLACE FUNCTION histories_partition_creation( DATE, DATE ) +returns void AS $$ +DECLARE + create_query text; +BEGIN + FOR create_query IN SELECT + 'CREATE TABLE IF NOT EXISTS histories_' + || TO_CHAR( d, 'YYYY_MM' ) + || ' ( CHECK( created_at >= timestamp ''' + || TO_CHAR( d, 'YYYY-MM-DD 00:00:00' ) + || ''' AND created_at < timestamp ''' + || TO_CHAR( d + INTERVAL '1 month', 'YYYY-MM-DD 00:00:00' ) + || ''' ) ) inherits ( histories );' + FROM generate_series( $1, $2, '1 month' ) AS d + LOOP + EXECUTE create_query; + END LOOP; -- LOOP END +END; -- FUNCTION END +$$ +language plpgsql; +-- +goose StatementEnd + +-- +goose Down +drop function histories_partition_creation(DATE, DATE); +drop TABLE histories; +` + +// test multiple up/down transitions in a single script +var multitxt = `-- +goose Up +CREATE TABLE post ( + id int NOT NULL, + title text, + body text, + PRIMARY KEY(id) +); + +-- +goose Down +DROP TABLE post; + +-- +goose Up +CREATE TABLE fancier_post ( + id int NOT NULL, + title text, + body text, + created_on timestamp without time zone, + PRIMARY KEY(id) +); + +-- +goose Down +DROP TABLE fancier_post; +` diff --git a/vendor/github.com/beorn7/perks/.gitignore b/vendor/github.com/beorn7/perks/.gitignore new file mode 100644 index 00000000..1bd9209a --- /dev/null +++ b/vendor/github.com/beorn7/perks/.gitignore @@ -0,0 +1,2 @@ +*.test +*.prof diff --git a/vendor/github.com/beorn7/perks/README.md b/vendor/github.com/beorn7/perks/README.md new file mode 100644 index 00000000..fc057777 --- /dev/null +++ b/vendor/github.com/beorn7/perks/README.md @@ -0,0 +1,31 @@ +# Perks for Go (golang.org) + +Perks contains the Go package quantile that computes approximate quantiles over +an unbounded data stream within low memory and CPU bounds. + +For more information and examples, see: +http://godoc.org/github.com/bmizerany/perks + +A very special thank you and shout out to Graham Cormode (Rutgers University), +Flip Korn (AT&T Labs–Research), S. Muthukrishnan (Rutgers University), and +Divesh Srivastava (AT&T Labs–Research) for their research and publication of +[Effective Computation of Biased Quantiles over Data Streams](http://www.cs.rutgers.edu/~muthu/bquant.pdf) + +Thank you, also: +* Armon Dadgar (@armon) +* Andrew Gerrand (@nf) +* Brad Fitzpatrick (@bradfitz) +* Keith Rarick (@kr) + +FAQ: + +Q: Why not move the quantile package into the project root? +A: I want to add more packages to perks later. + +Copyright (C) 2013 Blake Mizerany + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/github.com/beorn7/perks/histogram/bench_test.go b/vendor/github.com/beorn7/perks/histogram/bench_test.go new file mode 100644 index 00000000..56c7e551 --- /dev/null +++ b/vendor/github.com/beorn7/perks/histogram/bench_test.go @@ -0,0 +1,26 @@ +package histogram + +import ( + "math/rand" + "testing" +) + +func BenchmarkInsert10Bins(b *testing.B) { + b.StopTimer() + h := New(10) + b.StartTimer() + for i := 0; i < b.N; i++ { + f := rand.ExpFloat64() + h.Insert(f) + } +} + +func BenchmarkInsert100Bins(b *testing.B) { + b.StopTimer() + h := New(100) + b.StartTimer() + for i := 0; i < b.N; i++ { + f := rand.ExpFloat64() + h.Insert(f) + } +} diff --git a/vendor/github.com/beorn7/perks/histogram/histogram.go b/vendor/github.com/beorn7/perks/histogram/histogram.go new file mode 100644 index 00000000..bef05c70 --- /dev/null +++ b/vendor/github.com/beorn7/perks/histogram/histogram.go @@ -0,0 +1,108 @@ +// Package histogram provides a Go implementation of BigML's histogram package +// for Clojure/Java. It is currently experimental. +package histogram + +import ( + "container/heap" + "math" + "sort" +) + +type Bin struct { + Count int + Sum float64 +} + +func (b *Bin) Update(x *Bin) { + b.Count += x.Count + b.Sum += x.Sum +} + +func (b *Bin) Mean() float64 { + return b.Sum / float64(b.Count) +} + +type Bins []*Bin + +func (bs Bins) Len() int { return len(bs) } +func (bs Bins) Less(i, j int) bool { return bs[i].Mean() < bs[j].Mean() } +func (bs Bins) Swap(i, j int) { bs[i], bs[j] = bs[j], bs[i] } + +func (bs *Bins) Push(x interface{}) { + *bs = append(*bs, x.(*Bin)) +} + +func (bs *Bins) Pop() interface{} { + return bs.remove(len(*bs) - 1) +} + +func (bs *Bins) remove(n int) *Bin { + if n < 0 || len(*bs) < n { + return nil + } + x := (*bs)[n] + *bs = append((*bs)[:n], (*bs)[n+1:]...) + return x +} + +type Histogram struct { + res *reservoir +} + +func New(maxBins int) *Histogram { + return &Histogram{res: newReservoir(maxBins)} +} + +func (h *Histogram) Insert(f float64) { + h.res.insert(&Bin{1, f}) + h.res.compress() +} + +func (h *Histogram) Bins() Bins { + return h.res.bins +} + +type reservoir struct { + n int + maxBins int + bins Bins +} + +func newReservoir(maxBins int) *reservoir { + return &reservoir{maxBins: maxBins} +} + +func (r *reservoir) insert(bin *Bin) { + r.n += bin.Count + i := sort.Search(len(r.bins), func(i int) bool { + return r.bins[i].Mean() >= bin.Mean() + }) + if i < 0 || i == r.bins.Len() { + // TODO(blake): Maybe use an .insert(i, bin) instead of + // performing the extra work of a heap.Push. + heap.Push(&r.bins, bin) + return + } + r.bins[i].Update(bin) +} + +func (r *reservoir) compress() { + for r.bins.Len() > r.maxBins { + minGapIndex := -1 + minGap := math.MaxFloat64 + for i := 0; i < r.bins.Len()-1; i++ { + gap := gapWeight(r.bins[i], r.bins[i+1]) + if minGap > gap { + minGap = gap + minGapIndex = i + } + } + prev := r.bins[minGapIndex] + next := r.bins.remove(minGapIndex + 1) + prev.Update(next) + } +} + +func gapWeight(prev, next *Bin) float64 { + return next.Mean() - prev.Mean() +} diff --git a/vendor/github.com/beorn7/perks/histogram/histogram_test.go b/vendor/github.com/beorn7/perks/histogram/histogram_test.go new file mode 100644 index 00000000..0575ebee --- /dev/null +++ b/vendor/github.com/beorn7/perks/histogram/histogram_test.go @@ -0,0 +1,38 @@ +package histogram + +import ( + "math/rand" + "testing" +) + +func TestHistogram(t *testing.T) { + const numPoints = 1e6 + const maxBins = 3 + + h := New(maxBins) + for i := 0; i < numPoints; i++ { + f := rand.ExpFloat64() + h.Insert(f) + } + + bins := h.Bins() + if g := len(bins); g > maxBins { + t.Fatalf("got %d bins, wanted <= %d", g, maxBins) + } + + for _, b := range bins { + t.Logf("%+v", b) + } + + if g := count(h.Bins()); g != numPoints { + t.Fatalf("binned %d points, wanted %d", g, numPoints) + } +} + +func count(bins Bins) int { + binCounts := 0 + for _, b := range bins { + binCounts += b.Count + } + return binCounts +} diff --git a/vendor/github.com/beorn7/perks/quantile/bench_test.go b/vendor/github.com/beorn7/perks/quantile/bench_test.go new file mode 100644 index 00000000..0bd0e4e7 --- /dev/null +++ b/vendor/github.com/beorn7/perks/quantile/bench_test.go @@ -0,0 +1,63 @@ +package quantile + +import ( + "testing" +) + +func BenchmarkInsertTargeted(b *testing.B) { + b.ReportAllocs() + + s := NewTargeted(Targets) + b.ResetTimer() + for i := float64(0); i < float64(b.N); i++ { + s.Insert(i) + } +} + +func BenchmarkInsertTargetedSmallEpsilon(b *testing.B) { + s := NewTargeted(TargetsSmallEpsilon) + b.ResetTimer() + for i := float64(0); i < float64(b.N); i++ { + s.Insert(i) + } +} + +func BenchmarkInsertBiased(b *testing.B) { + s := NewLowBiased(0.01) + b.ResetTimer() + for i := float64(0); i < float64(b.N); i++ { + s.Insert(i) + } +} + +func BenchmarkInsertBiasedSmallEpsilon(b *testing.B) { + s := NewLowBiased(0.0001) + b.ResetTimer() + for i := float64(0); i < float64(b.N); i++ { + s.Insert(i) + } +} + +func BenchmarkQuery(b *testing.B) { + s := NewTargeted(Targets) + for i := float64(0); i < 1e6; i++ { + s.Insert(i) + } + b.ResetTimer() + n := float64(b.N) + for i := float64(0); i < n; i++ { + s.Query(i / n) + } +} + +func BenchmarkQuerySmallEpsilon(b *testing.B) { + s := NewTargeted(TargetsSmallEpsilon) + for i := float64(0); i < 1e6; i++ { + s.Insert(i) + } + b.ResetTimer() + n := float64(b.N) + for i := float64(0); i < n; i++ { + s.Query(i / n) + } +} diff --git a/vendor/github.com/beorn7/perks/quantile/example_test.go b/vendor/github.com/beorn7/perks/quantile/example_test.go new file mode 100644 index 00000000..ab3293aa --- /dev/null +++ b/vendor/github.com/beorn7/perks/quantile/example_test.go @@ -0,0 +1,121 @@ +// +build go1.1 + +package quantile_test + +import ( + "bufio" + "fmt" + "log" + "os" + "strconv" + "time" + + "github.com/beorn7/perks/quantile" +) + +func Example_simple() { + ch := make(chan float64) + go sendFloats(ch) + + // Compute the 50th, 90th, and 99th percentile. + q := quantile.NewTargeted(map[float64]float64{ + 0.50: 0.005, + 0.90: 0.001, + 0.99: 0.0001, + }) + for v := range ch { + q.Insert(v) + } + + fmt.Println("perc50:", q.Query(0.50)) + fmt.Println("perc90:", q.Query(0.90)) + fmt.Println("perc99:", q.Query(0.99)) + fmt.Println("count:", q.Count()) + // Output: + // perc50: 5 + // perc90: 16 + // perc99: 223 + // count: 2388 +} + +func Example_mergeMultipleStreams() { + // Scenario: + // We have multiple database shards. On each shard, there is a process + // collecting query response times from the database logs and inserting + // them into a Stream (created via NewTargeted(0.90)), much like the + // Simple example. These processes expose a network interface for us to + // ask them to serialize and send us the results of their + // Stream.Samples so we may Merge and Query them. + // + // NOTES: + // * These sample sets are small, allowing us to get them + // across the network much faster than sending the entire list of data + // points. + // + // * For this to work correctly, we must supply the same quantiles + // a priori the process collecting the samples supplied to NewTargeted, + // even if we do not plan to query them all here. + ch := make(chan quantile.Samples) + getDBQuerySamples(ch) + q := quantile.NewTargeted(map[float64]float64{0.90: 0.001}) + for samples := range ch { + q.Merge(samples) + } + fmt.Println("perc90:", q.Query(0.90)) +} + +func Example_window() { + // Scenario: We want the 90th, 95th, and 99th percentiles for each + // minute. + + ch := make(chan float64) + go sendStreamValues(ch) + + tick := time.NewTicker(1 * time.Minute) + q := quantile.NewTargeted(map[float64]float64{ + 0.90: 0.001, + 0.95: 0.0005, + 0.99: 0.0001, + }) + for { + select { + case t := <-tick.C: + flushToDB(t, q.Samples()) + q.Reset() + case v := <-ch: + q.Insert(v) + } + } +} + +func sendStreamValues(ch chan float64) { + // Use your imagination +} + +func flushToDB(t time.Time, samples quantile.Samples) { + // Use your imagination +} + +// This is a stub for the above example. In reality this would hit the remote +// servers via http or something like it. +func getDBQuerySamples(ch chan quantile.Samples) {} + +func sendFloats(ch chan<- float64) { + f, err := os.Open("exampledata.txt") + if err != nil { + log.Fatal(err) + } + sc := bufio.NewScanner(f) + for sc.Scan() { + b := sc.Bytes() + v, err := strconv.ParseFloat(string(b), 64) + if err != nil { + log.Fatal(err) + } + ch <- v + } + if sc.Err() != nil { + log.Fatal(sc.Err()) + } + close(ch) +} diff --git a/vendor/github.com/beorn7/perks/quantile/stream_test.go b/vendor/github.com/beorn7/perks/quantile/stream_test.go new file mode 100644 index 00000000..4dba0544 --- /dev/null +++ b/vendor/github.com/beorn7/perks/quantile/stream_test.go @@ -0,0 +1,188 @@ +package quantile + +import ( + "math" + "math/rand" + "sort" + "testing" +) + +var ( + Targets = map[float64]float64{ + 0.01: 0.001, + 0.10: 0.01, + 0.50: 0.05, + 0.90: 0.01, + 0.99: 0.001, + } + TargetsSmallEpsilon = map[float64]float64{ + 0.01: 0.0001, + 0.10: 0.001, + 0.50: 0.005, + 0.90: 0.001, + 0.99: 0.0001, + } + LowQuantiles = []float64{0.01, 0.1, 0.5} + HighQuantiles = []float64{0.99, 0.9, 0.5} +) + +const RelativeEpsilon = 0.01 + +func verifyPercsWithAbsoluteEpsilon(t *testing.T, a []float64, s *Stream) { + sort.Float64s(a) + for quantile, epsilon := range Targets { + n := float64(len(a)) + k := int(quantile * n) + lower := int((quantile - epsilon) * n) + if lower < 1 { + lower = 1 + } + upper := int(math.Ceil((quantile + epsilon) * n)) + if upper > len(a) { + upper = len(a) + } + w, min, max := a[k-1], a[lower-1], a[upper-1] + if g := s.Query(quantile); g < min || g > max { + t.Errorf("q=%f: want %v [%f,%f], got %v", quantile, w, min, max, g) + } + } +} + +func verifyLowPercsWithRelativeEpsilon(t *testing.T, a []float64, s *Stream) { + sort.Float64s(a) + for _, qu := range LowQuantiles { + n := float64(len(a)) + k := int(qu * n) + + lowerRank := int((1 - RelativeEpsilon) * qu * n) + upperRank := int(math.Ceil((1 + RelativeEpsilon) * qu * n)) + w, min, max := a[k-1], a[lowerRank-1], a[upperRank-1] + if g := s.Query(qu); g < min || g > max { + t.Errorf("q=%f: want %v [%f,%f], got %v", qu, w, min, max, g) + } + } +} + +func verifyHighPercsWithRelativeEpsilon(t *testing.T, a []float64, s *Stream) { + sort.Float64s(a) + for _, qu := range HighQuantiles { + n := float64(len(a)) + k := int(qu * n) + + lowerRank := int((1 - (1+RelativeEpsilon)*(1-qu)) * n) + upperRank := int(math.Ceil((1 - (1-RelativeEpsilon)*(1-qu)) * n)) + w, min, max := a[k-1], a[lowerRank-1], a[upperRank-1] + if g := s.Query(qu); g < min || g > max { + t.Errorf("q=%f: want %v [%f,%f], got %v", qu, w, min, max, g) + } + } +} + +func populateStream(s *Stream) []float64 { + a := make([]float64, 0, 1e5+100) + for i := 0; i < cap(a); i++ { + v := rand.NormFloat64() + // Add 5% asymmetric outliers. + if i%20 == 0 { + v = v*v + 1 + } + s.Insert(v) + a = append(a, v) + } + return a +} + +func TestTargetedQuery(t *testing.T) { + rand.Seed(42) + s := NewTargeted(Targets) + a := populateStream(s) + verifyPercsWithAbsoluteEpsilon(t, a, s) +} + +func TestLowBiasedQuery(t *testing.T) { + rand.Seed(42) + s := NewLowBiased(RelativeEpsilon) + a := populateStream(s) + verifyLowPercsWithRelativeEpsilon(t, a, s) +} + +func TestHighBiasedQuery(t *testing.T) { + rand.Seed(42) + s := NewHighBiased(RelativeEpsilon) + a := populateStream(s) + verifyHighPercsWithRelativeEpsilon(t, a, s) +} + +// BrokenTestTargetedMerge is broken, see Merge doc comment. +func BrokenTestTargetedMerge(t *testing.T) { + rand.Seed(42) + s1 := NewTargeted(Targets) + s2 := NewTargeted(Targets) + a := populateStream(s1) + a = append(a, populateStream(s2)...) + s1.Merge(s2.Samples()) + verifyPercsWithAbsoluteEpsilon(t, a, s1) +} + +// BrokenTestLowBiasedMerge is broken, see Merge doc comment. +func BrokenTestLowBiasedMerge(t *testing.T) { + rand.Seed(42) + s1 := NewLowBiased(RelativeEpsilon) + s2 := NewLowBiased(RelativeEpsilon) + a := populateStream(s1) + a = append(a, populateStream(s2)...) + s1.Merge(s2.Samples()) + verifyLowPercsWithRelativeEpsilon(t, a, s2) +} + +// BrokenTestHighBiasedMerge is broken, see Merge doc comment. +func BrokenTestHighBiasedMerge(t *testing.T) { + rand.Seed(42) + s1 := NewHighBiased(RelativeEpsilon) + s2 := NewHighBiased(RelativeEpsilon) + a := populateStream(s1) + a = append(a, populateStream(s2)...) + s1.Merge(s2.Samples()) + verifyHighPercsWithRelativeEpsilon(t, a, s2) +} + +func TestUncompressed(t *testing.T) { + q := NewTargeted(Targets) + for i := 100; i > 0; i-- { + q.Insert(float64(i)) + } + if g := q.Count(); g != 100 { + t.Errorf("want count 100, got %d", g) + } + // Before compression, Query should have 100% accuracy. + for quantile := range Targets { + w := quantile * 100 + if g := q.Query(quantile); g != w { + t.Errorf("want %f, got %f", w, g) + } + } +} + +func TestUncompressedSamples(t *testing.T) { + q := NewTargeted(map[float64]float64{0.99: 0.001}) + for i := 1; i <= 100; i++ { + q.Insert(float64(i)) + } + if g := q.Samples().Len(); g != 100 { + t.Errorf("want count 100, got %d", g) + } +} + +func TestUncompressedOne(t *testing.T) { + q := NewTargeted(map[float64]float64{0.99: 0.01}) + q.Insert(3.14) + if g := q.Query(0.90); g != 3.14 { + t.Error("want PI, got", g) + } +} + +func TestDefaults(t *testing.T) { + if g := NewTargeted(map[float64]float64{0.99: 0.001}).Query(0.99); g != 0 { + t.Errorf("want 0, got %f", g) + } +} diff --git a/vendor/github.com/beorn7/perks/topk/topk.go b/vendor/github.com/beorn7/perks/topk/topk.go new file mode 100644 index 00000000..5ac3d990 --- /dev/null +++ b/vendor/github.com/beorn7/perks/topk/topk.go @@ -0,0 +1,90 @@ +package topk + +import ( + "sort" +) + +// http://www.cs.ucsb.edu/research/tech_reports/reports/2005-23.pdf + +type Element struct { + Value string + Count int +} + +type Samples []*Element + +func (sm Samples) Len() int { + return len(sm) +} + +func (sm Samples) Less(i, j int) bool { + return sm[i].Count < sm[j].Count +} + +func (sm Samples) Swap(i, j int) { + sm[i], sm[j] = sm[j], sm[i] +} + +type Stream struct { + k int + mon map[string]*Element + + // the minimum Element + min *Element +} + +func New(k int) *Stream { + s := new(Stream) + s.k = k + s.mon = make(map[string]*Element) + s.min = &Element{} + + // Track k+1 so that less frequenet items contended for that spot, + // resulting in k being more accurate. + return s +} + +func (s *Stream) Insert(x string) { + s.insert(&Element{x, 1}) +} + +func (s *Stream) Merge(sm Samples) { + for _, e := range sm { + s.insert(e) + } +} + +func (s *Stream) insert(in *Element) { + e := s.mon[in.Value] + if e != nil { + e.Count++ + } else { + if len(s.mon) < s.k+1 { + e = &Element{in.Value, in.Count} + s.mon[in.Value] = e + } else { + e = s.min + delete(s.mon, e.Value) + e.Value = in.Value + e.Count += in.Count + s.min = e + } + } + if e.Count < s.min.Count { + s.min = e + } +} + +func (s *Stream) Query() Samples { + var sm Samples + for _, e := range s.mon { + sm = append(sm, e) + } + sort.Sort(sort.Reverse(sm)) + + if len(sm) < s.k { + return sm + } + + return sm[:s.k] +} diff --git a/vendor/github.com/beorn7/perks/topk/topk_test.go b/vendor/github.com/beorn7/perks/topk/topk_test.go new file mode 100644 index 00000000..c24f0f72 --- /dev/null +++ b/vendor/github.com/beorn7/perks/topk/topk_test.go @@ -0,0 +1,57 @@ +package topk + +import ( + "fmt" + "math/rand" + "sort" + "testing" +) + +func TestTopK(t *testing.T) { + stream := New(10) + ss := []*Stream{New(10), New(10), New(10)} + m := make(map[string]int) + for _, s := range ss { + for i := 0; i < 1e6; i++ { + v := fmt.Sprintf("%x", int8(rand.ExpFloat64())) + s.Insert(v) + m[v]++ + } + stream.Merge(s.Query()) + } + + var sm Samples + for x, s := range m { + sm = append(sm, &Element{x, s}) + } + sort.Sort(sort.Reverse(sm)) + + g := stream.Query() + if len(g) != 10 { + t.Fatalf("got %d, want 10", len(g)) + } + for i, e := range g { + if sm[i].Value != e.Value { + t.Errorf("at %d: want %q, got %q", i, sm[i].Value, e.Value) + } + } +} + +func TestQuery(t *testing.T) { + queryTests := []struct { + value string + expected int + }{ + {"a", 1}, + {"b", 2}, + {"c", 2}, + } + + stream := New(2) + for _, tt := range queryTests { + stream.Insert(tt.value) + if n := len(stream.Query()); n != tt.expected { + t.Errorf("want %d, got %d", tt.expected, n) + } + } +} diff --git a/vendor/github.com/codegangsta/negroni/logger_test.go b/vendor/github.com/codegangsta/negroni/logger_test.go new file mode 100644 index 00000000..880337d1 --- /dev/null +++ b/vendor/github.com/codegangsta/negroni/logger_test.go @@ -0,0 +1,33 @@ +package negroni + +import ( + "bytes" + "log" + "net/http" + "net/http/httptest" + "testing" +) + +func Test_Logger(t *testing.T) { + buff := bytes.NewBufferString("") + recorder := httptest.NewRecorder() + + l := NewLogger() + l.Logger = log.New(buff, "[negroni] ", 0) + + n := New() + // replace log for testing + n.Use(l) + n.UseHandler(http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { + rw.WriteHeader(http.StatusNotFound) + })) + + req, err := http.NewRequest("GET", "http://localhost:3000/foobar", nil) + if err != nil { + t.Error(err) + } + + n.ServeHTTP(recorder, req) + expect(t, recorder.Code, http.StatusNotFound) + refute(t, len(buff.String()), 0) +} diff --git a/vendor/github.com/codegangsta/negroni/negroni_test.go b/vendor/github.com/codegangsta/negroni/negroni_test.go new file mode 100644 index 00000000..0f6607a3 --- /dev/null +++ b/vendor/github.com/codegangsta/negroni/negroni_test.go @@ -0,0 +1,75 @@ +package negroni + +import ( + "net/http" + "net/http/httptest" + "reflect" + "testing" +) + +/* Test Helpers */ +func expect(t *testing.T, a interface{}, b interface{}) { + if a != b { + t.Errorf("Expected %v (type %v) - Got %v (type %v)", b, reflect.TypeOf(b), a, reflect.TypeOf(a)) + } +} + +func refute(t *testing.T, a interface{}, b interface{}) { + if a == b { + t.Errorf("Did not expect %v (type %v) - Got %v (type %v)", b, reflect.TypeOf(b), a, reflect.TypeOf(a)) + } +} + +func TestNegroniRun(t *testing.T) { + // just test that Run doesn't bomb + go New().Run(":3000") +} + +func TestNegroniServeHTTP(t *testing.T) { + result := "" + response := httptest.NewRecorder() + + n := New() + n.Use(HandlerFunc(func(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc) { + result += "foo" + next(rw, r) + result += "ban" + })) + n.Use(HandlerFunc(func(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc) { + result += "bar" + next(rw, r) + result += "baz" + })) + n.Use(HandlerFunc(func(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc) { + result += "bat" + rw.WriteHeader(http.StatusBadRequest) + })) + + n.ServeHTTP(response, (*http.Request)(nil)) + + expect(t, result, "foobarbatbazban") + expect(t, response.Code, http.StatusBadRequest) +} + +// Ensures that a Negroni middleware chain +// can correctly return all of its handlers. +func TestHandlers(t *testing.T) { + response := httptest.NewRecorder() + n := New() + handlers := n.Handlers() + expect(t, 0, len(handlers)) + + n.Use(HandlerFunc(func(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc) { + rw.WriteHeader(http.StatusOK) + })) + + // Expects the length of handlers to be exactly 1 + // after adding exactly one handler to the middleware chain + handlers = n.Handlers() + expect(t, 1, len(handlers)) + + // Ensures that the first handler that is in sequence behaves + // exactly the same as the one that was registered earlier + handlers[0].ServeHTTP(response, (*http.Request)(nil), nil) + expect(t, response.Code, http.StatusOK) +} \ No newline at end of file diff --git a/vendor/github.com/codegangsta/negroni/recovery_test.go b/vendor/github.com/codegangsta/negroni/recovery_test.go new file mode 100644 index 00000000..3fa264ac --- /dev/null +++ b/vendor/github.com/codegangsta/negroni/recovery_test.go @@ -0,0 +1,28 @@ +package negroni + +import ( + "bytes" + "log" + "net/http" + "net/http/httptest" + "testing" +) + +func TestRecovery(t *testing.T) { + buff := bytes.NewBufferString("") + recorder := httptest.NewRecorder() + + rec := NewRecovery() + rec.Logger = log.New(buff, "[negroni] ", 0) + + n := New() + // replace log for testing + n.Use(rec) + n.UseHandler(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { + panic("here is a panic!") + })) + n.ServeHTTP(recorder, (*http.Request)(nil)) + expect(t, recorder.Code, http.StatusInternalServerError) + refute(t, recorder.Body.Len(), 0) + refute(t, len(buff.String()), 0) +} diff --git a/vendor/github.com/codegangsta/negroni/response_writer_test.go b/vendor/github.com/codegangsta/negroni/response_writer_test.go new file mode 100644 index 00000000..ed1ee70a --- /dev/null +++ b/vendor/github.com/codegangsta/negroni/response_writer_test.go @@ -0,0 +1,150 @@ +package negroni + +import ( + "bufio" + "net" + "net/http" + "net/http/httptest" + "testing" + "time" +) + +type closeNotifyingRecorder struct { + *httptest.ResponseRecorder + closed chan bool +} + +func newCloseNotifyingRecorder() *closeNotifyingRecorder { + return &closeNotifyingRecorder{ + httptest.NewRecorder(), + make(chan bool, 1), + } +} + +func (c *closeNotifyingRecorder) close() { + c.closed <- true +} + +func (c *closeNotifyingRecorder) CloseNotify() <-chan bool { + return c.closed +} + +type hijackableResponse struct { + Hijacked bool +} + +func newHijackableResponse() *hijackableResponse { + return &hijackableResponse{} +} + +func (h *hijackableResponse) Header() http.Header { return nil } +func (h *hijackableResponse) Write(buf []byte) (int, error) { return 0, nil } +func (h *hijackableResponse) WriteHeader(code int) {} +func (h *hijackableResponse) Flush() {} +func (h *hijackableResponse) Hijack() (net.Conn, *bufio.ReadWriter, error) { + h.Hijacked = true + return nil, nil, nil +} + +func TestResponseWriterWritingString(t *testing.T) { + rec := httptest.NewRecorder() + rw := NewResponseWriter(rec) + + rw.Write([]byte("Hello world")) + + expect(t, rec.Code, rw.Status()) + expect(t, rec.Body.String(), "Hello world") + expect(t, rw.Status(), http.StatusOK) + expect(t, rw.Size(), 11) + expect(t, rw.Written(), true) +} + +func TestResponseWriterWritingStrings(t *testing.T) { + rec := httptest.NewRecorder() + rw := NewResponseWriter(rec) + + rw.Write([]byte("Hello world")) + rw.Write([]byte("foo bar bat baz")) + + expect(t, rec.Code, rw.Status()) + expect(t, rec.Body.String(), "Hello worldfoo bar bat baz") + expect(t, rw.Status(), http.StatusOK) + expect(t, rw.Size(), 26) +} + +func TestResponseWriterWritingHeader(t *testing.T) { + rec := httptest.NewRecorder() + rw := NewResponseWriter(rec) + + rw.WriteHeader(http.StatusNotFound) + + expect(t, rec.Code, rw.Status()) + expect(t, rec.Body.String(), "") + expect(t, rw.Status(), http.StatusNotFound) + expect(t, rw.Size(), 0) +} + +func TestResponseWriterBefore(t *testing.T) { + rec := httptest.NewRecorder() + rw := NewResponseWriter(rec) + result := "" + + rw.Before(func(ResponseWriter) { + result += "foo" + }) + rw.Before(func(ResponseWriter) { + result += "bar" + }) + + rw.WriteHeader(http.StatusNotFound) + + expect(t, rec.Code, rw.Status()) + expect(t, rec.Body.String(), "") + expect(t, rw.Status(), http.StatusNotFound) + expect(t, rw.Size(), 0) + expect(t, result, "barfoo") +} + +func TestResponseWriterHijack(t *testing.T) { + hijackable := newHijackableResponse() + rw := NewResponseWriter(hijackable) + hijacker, ok := rw.(http.Hijacker) + expect(t, ok, true) + _, _, err := hijacker.Hijack() + if err != nil { + t.Error(err) + } + expect(t, hijackable.Hijacked, true) +} + +func TestResponseWriteHijackNotOK(t *testing.T) { + hijackable := new(http.ResponseWriter) + rw := NewResponseWriter(*hijackable) + hijacker, ok := rw.(http.Hijacker) + expect(t, ok, true) + _, _, err := hijacker.Hijack() + + refute(t, err, nil) +} + +func TestResponseWriterCloseNotify(t *testing.T) { + rec := newCloseNotifyingRecorder() + rw := NewResponseWriter(rec) + closed := false + notifier := rw.(http.CloseNotifier).CloseNotify() + rec.close() + select { + case <-notifier: + closed = true + case <-time.After(time.Second): + } + expect(t, closed, true) +} + +func TestResponseWriterFlusher(t *testing.T) { + rec := httptest.NewRecorder() + rw := NewResponseWriter(rec) + + _, ok := rw.(http.Flusher) + expect(t, ok, true) +} diff --git a/vendor/github.com/codegangsta/negroni/static_test.go b/vendor/github.com/codegangsta/negroni/static_test.go new file mode 100644 index 00000000..637cfcd6 --- /dev/null +++ b/vendor/github.com/codegangsta/negroni/static_test.go @@ -0,0 +1,113 @@ +package negroni + +import ( + "bytes" + "net/http" + "net/http/httptest" + "testing" +) + +func TestStatic(t *testing.T) { + response := httptest.NewRecorder() + response.Body = new(bytes.Buffer) + + n := New() + n.Use(NewStatic(http.Dir("."))) + + req, err := http.NewRequest("GET", "http://localhost:3000/negroni.go", nil) + if err != nil { + t.Error(err) + } + n.ServeHTTP(response, req) + expect(t, response.Code, http.StatusOK) + expect(t, response.Header().Get("Expires"), "") + if response.Body.Len() == 0 { + t.Errorf("Got empty body for GET request") + } +} + +func TestStaticHead(t *testing.T) { + response := httptest.NewRecorder() + response.Body = new(bytes.Buffer) + + n := New() + n.Use(NewStatic(http.Dir("."))) + n.UseHandler(http.NotFoundHandler()) + + req, err := http.NewRequest("HEAD", "http://localhost:3000/negroni.go", nil) + if err != nil { + t.Error(err) + } + + n.ServeHTTP(response, req) + expect(t, response.Code, http.StatusOK) + if response.Body.Len() != 0 { + t.Errorf("Got non-empty body for HEAD request") + } +} + +func TestStaticAsPost(t *testing.T) { + response := httptest.NewRecorder() + + n := New() + n.Use(NewStatic(http.Dir("."))) + n.UseHandler(http.NotFoundHandler()) + + req, err := http.NewRequest("POST", "http://localhost:3000/negroni.go", nil) + if err != nil { + t.Error(err) + } + + n.ServeHTTP(response, req) + expect(t, response.Code, http.StatusNotFound) +} + +func TestStaticBadDir(t *testing.T) { + response := httptest.NewRecorder() + + n := Classic() + n.UseHandler(http.NotFoundHandler()) + + req, err := http.NewRequest("GET", "http://localhost:3000/negroni.go", nil) + if err != nil { + t.Error(err) + } + + n.ServeHTTP(response, req) + refute(t, response.Code, http.StatusOK) +} + +func TestStaticOptionsServeIndex(t *testing.T) { + response := httptest.NewRecorder() + + n := New() + s := NewStatic(http.Dir(".")) + s.IndexFile = "negroni.go" + n.Use(s) + + req, err := http.NewRequest("GET", "http://localhost:3000/", nil) + if err != nil { + t.Error(err) + } + + n.ServeHTTP(response, req) + expect(t, response.Code, http.StatusOK) +} + +func TestStaticOptionsPrefix(t *testing.T) { + response := httptest.NewRecorder() + + n := New() + s := NewStatic(http.Dir(".")) + s.Prefix = "/public" + n.Use(s) + + // Check file content behaviour + req, err := http.NewRequest("GET", "http://localhost:3000/public/negroni.go", nil) + if err != nil { + t.Error(err) + } + + n.ServeHTTP(response, req) + expect(t, response.Code, http.StatusOK) +} diff --git a/vendor/github.com/coreos/go-systemd/.travis.yml b/vendor/github.com/coreos/go-systemd/.travis.yml new file mode 100644 index 00000000..3c37292e --- /dev/null +++ b/vendor/github.com/coreos/go-systemd/.travis.yml @@ -0,0 +1,8 @@ +language: go +go: 1.4 + +install: + - go get github.com/godbus/dbus + +script: + - ./test diff --git a/vendor/github.com/coreos/go-systemd/CONTRIBUTING.md b/vendor/github.com/coreos/go-systemd/CONTRIBUTING.md new file mode 100644 index 00000000..0551ed53 --- /dev/null +++ b/vendor/github.com/coreos/go-systemd/CONTRIBUTING.md @@ -0,0 +1,77 @@ +# How to Contribute + +CoreOS projects are [Apache 2.0 licensed](LICENSE) and accept contributions via +GitHub pull requests. This document outlines some of the conventions on +development workflow, commit message formatting, contact points and other +resources to make it easier to get your contribution accepted. + +# Certificate of Origin + +By contributing to this project you agree to the Developer Certificate of +Origin (DCO). This document was created by the Linux Kernel community and is a +simple statement that you, as a contributor, have the legal right to make the +contribution. See the [DCO](DCO) file for details. + +# Email and Chat + +The project currently uses the general CoreOS email list and IRC channel: +- Email: [coreos-dev](https://groups.google.com/forum/#!forum/coreos-dev) +- IRC: #[coreos](irc://irc.freenode.org:6667/#coreos) IRC channel on freenode.org + +Please avoid emailing maintainers found in the MAINTAINERS file directly. They +are very busy and read the mailing lists. + +## Getting Started + +- Fork the repository on GitHub +- Read the [README](README.md) for build and test instructions +- Play with the project, submit bugs, submit patches! + +## Contribution Flow + +This is a rough outline of what a contributor's workflow looks like: + +- Create a topic branch from where you want to base your work (usually master). +- Make commits of logical units. +- Make sure your commit messages are in the proper format (see below). +- Push your changes to a topic branch in your fork of the repository. +- Make sure the tests pass, and add any new tests as appropriate. +- Submit a pull request to the original repository. + +Thanks for your contributions! + +### Coding Style + +CoreOS projects written in Go follow a set of style guidelines that we've documented +[here](https://github.com/coreos/docs/tree/master/golang). Please follow them when +working on your contributions. + +### Format of the Commit Message + +We follow a rough convention for commit messages that is designed to answer two +questions: what changed and why. The subject line should feature the what and +the body of the commit should describe the why. + +``` +scripts: add the test-cluster command + +this uses tmux to setup a test cluster that you can easily kill and +start for debugging. + +Fixes #38 +``` + +The format can be described more formally as follows: + +``` +: + + + +