├── vendor ├── go.opencensus.io │ ├── AUTHORS │ ├── .gitignore │ ├── .travis.yml │ ├── appveyor.yml │ ├── go.mod │ ├── metric │ │ ├── metricdata │ │ │ ├── type_string.go │ │ │ ├── doc.go │ │ │ ├── unit.go │ │ │ ├── label.go │ │ │ └── exemplar.go │ │ └── metricproducer │ │ │ └── producer.go │ ├── tag │ │ ├── profile_not19.go │ │ ├── profile_19.go │ │ ├── doc.go │ │ ├── key.go │ │ └── context.go │ ├── trace │ │ ├── trace_nongo11.go │ │ ├── internal │ │ │ └── internal.go │ │ ├── trace_go11.go │ │ ├── evictedqueue.go │ │ └── status_codes.go │ ├── opencensus.go │ ├── stats │ │ ├── internal │ │ │ └── record.go │ │ └── units.go │ └── internal │ │ ├── internal.go │ │ └── sanitize.go ├── golang.org │ └── x │ │ ├── net │ │ ├── http2 │ │ │ ├── .gitignore │ │ │ ├── Makefile │ │ │ ├── not_go111.go │ │ │ ├── README │ │ │ ├── go111.go │ │ │ └── flow.go │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── PATENTS │ │ └── LICENSE │ │ ├── lint │ │ ├── go.mod │ │ ├── .travis.yml │ │ ├── CONTRIBUTING.md │ │ ├── golint │ │ │ └── importcomment.go │ │ ├── go.sum │ │ └── LICENSE │ │ ├── text │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── language │ │ │ ├── go1_2.go │ │ │ └── go1_1.go │ │ ├── secure │ │ │ └── bidirule │ │ │ │ ├── bidirule10.0.0.go │ │ │ │ └── bidirule9.0.0.go │ │ ├── internal │ │ │ ├── language │ │ │ │ ├── common.go │ │ │ │ ├── gen_common.go │ │ │ │ ├── coverage.go │ │ │ │ ├── compact.go │ │ │ │ ├── tags.go │ │ │ │ └── compact │ │ │ │ │ ├── gen_parents.go │ │ │ │ │ └── gen.go │ │ │ └── colltab │ │ │ │ └── weighter.go │ │ ├── collate │ │ │ └── index.go │ │ ├── PATENTS │ │ ├── unicode │ │ │ └── norm │ │ │ │ └── trie.go │ │ └── LICENSE │ │ └── tools │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── go │ │ ├── ast │ │ │ └── astutil │ │ │ │ └── util.go │ │ ├── internal │ │ │ └── gcimporter │ │ │ │ ├── newInterface11.go │ │ │ │ └── newInterface10.go │ │ ├── types │ │ │ └── typeutil │ │ │ │ ├── imports.go │ │ │ │ └── callee.go │ │ └── packages │ │ │ └── loadmode_string.go │ │ ├── internal │ │ └── fastwalk │ │ │ ├── fastwalk_dirent_fileno.go │ │ │ ├── fastwalk_dirent_ino.go │ │ │ ├── fastwalk_dirent_namlen_bsd.go │ │ │ ├── fastwalk_dirent_namlen_linux.go │ │ │ └── fastwalk_portable.go │ │ ├── PATENTS │ │ └── LICENSE ├── knative.dev │ └── eventing │ │ ├── cmd │ │ ├── pong │ │ │ └── kodata │ │ │ │ ├── HEAD │ │ │ │ ├── LICENSE │ │ │ │ ├── refs │ │ │ │ └── VENDOR-LICENSE │ │ ├── controller │ │ │ └── kodata │ │ │ │ ├── HEAD │ │ │ │ ├── LICENSE │ │ │ │ ├── refs │ │ │ │ └── VENDOR-LICENSE │ │ ├── sendevent │ │ │ └── kodata │ │ │ │ ├── HEAD │ │ │ │ ├── LICENSE │ │ │ │ ├── refs │ │ │ │ └── VENDOR-LICENSE │ │ ├── webhook │ │ │ └── kodata │ │ │ │ ├── HEAD │ │ │ │ ├── LICENSE │ │ │ │ ├── refs │ │ │ │ └── VENDOR-LICENSE │ │ ├── broker │ │ │ ├── filter │ │ │ │ └── kodata │ │ │ │ │ ├── HEAD │ │ │ │ │ ├── refs │ │ │ │ │ ├── LICENSE │ │ │ │ │ └── VENDOR-LICENSE │ │ │ └── ingress │ │ │ │ └── kodata │ │ │ │ ├── HEAD │ │ │ │ ├── LICENSE │ │ │ │ ├── refs │ │ │ │ └── VENDOR-LICENSE │ │ ├── sources_controller │ │ │ └── kodata │ │ │ │ ├── HEAD │ │ │ │ ├── LICENSE │ │ │ │ ├── refs │ │ │ │ └── VENDOR-LICENSE │ │ ├── apiserver_receive_adapter │ │ │ └── kodata │ │ │ │ ├── HEAD │ │ │ │ ├── LICENSE │ │ │ │ ├── refs │ │ │ │ └── VENDOR-LICENSE │ │ ├── cronjob_receive_adapter │ │ │ └── kodata │ │ │ │ ├── HEAD │ │ │ │ ├── LICENSE │ │ │ │ ├── refs │ │ │ │ └── VENDOR-LICENSE │ │ └── in_memory │ │ │ ├── channel_controller │ │ │ └── kodata │ │ │ │ ├── HEAD │ │ │ │ ├── refs │ │ │ │ ├── LICENSE │ │ │ │ └── VENDOR-LICENSE │ │ │ └── channel_dispatcher │ │ │ └── kodata │ │ │ ├── HEAD │ │ │ ├── refs │ │ │ ├── LICENSE │ │ │ └── VENDOR-LICENSE │ │ ├── test │ │ └── test_images │ │ │ ├── logevents │ │ │ └── kodata │ │ │ │ └── LICENSE │ │ │ └── performance │ │ │ └── kodata │ │ │ ├── HEAD │ │ │ ├── prod.config │ │ │ └── refs │ │ └── AUTHORS ├── github.com │ ├── google │ │ ├── uuid │ │ │ ├── go.mod │ │ │ ├── .travis.yml │ │ │ ├── CONTRIBUTORS │ │ │ ├── CONTRIBUTING.md │ │ │ ├── doc.go │ │ │ ├── node_js.go │ │ │ ├── README.md │ │ │ ├── marshal.go │ │ │ ├── node_net.go │ │ │ ├── version4.go │ │ │ └── version1.go │ │ └── gofuzz │ │ │ ├── go.mod │ │ │ ├── .travis.yml │ │ │ └── doc.go │ ├── BurntSushi │ │ └── toml │ │ │ ├── session.vim │ │ │ ├── .gitignore │ │ │ ├── COMPATIBLE │ │ │ ├── .travis.yml │ │ │ ├── Makefile │ │ │ ├── encoding_types_1.1.go │ │ │ ├── encoding_types.go │ │ │ ├── COPYING │ │ │ ├── cmd │ │ │ ├── tomlv │ │ │ │ └── COPYING │ │ │ ├── toml-test-decoder │ │ │ │ └── COPYING │ │ │ └── toml-test-encoder │ │ │ │ └── COPYING │ │ │ └── doc.go │ ├── cloudevents │ │ └── sdk-go │ │ │ ├── pkg │ │ │ └── cloudevents │ │ │ │ ├── datacodec │ │ │ │ ├── xml │ │ │ │ │ └── doc.go │ │ │ │ ├── json │ │ │ │ │ └── doc.go │ │ │ │ ├── doc.go │ │ │ │ └── text │ │ │ │ │ └── text.go │ │ │ │ ├── transport │ │ │ │ ├── http │ │ │ │ │ ├── doc.go │ │ │ │ │ └── codec_structured.go │ │ │ │ ├── message.go │ │ │ │ ├── doc.go │ │ │ │ ├── codec.go │ │ │ │ └── error.go │ │ │ │ ├── observability │ │ │ │ ├── doc.go │ │ │ │ └── keys.go │ │ │ │ ├── doc.go │ │ │ │ ├── context │ │ │ │ ├── doc.go │ │ │ │ └── logger.go │ │ │ │ ├── data_content_encoding.go │ │ │ │ ├── client │ │ │ │ ├── doc.go │ │ │ │ └── defaulters.go │ │ │ │ ├── extensions.go │ │ │ │ ├── types │ │ │ │ └── allocate.go │ │ │ │ ├── content_type.go │ │ │ │ └── event_response.go │ │ │ ├── .gitignore │ │ │ └── go.mod │ └── gogo │ │ └── protobuf │ │ ├── GOLANG_CONTRIBUTORS │ │ ├── AUTHORS │ │ └── CONTRIBUTORS ├── go.uber.org │ ├── tools │ │ ├── update-license │ │ │ ├── .gitignore │ │ │ └── README.md │ │ └── LICENSE │ ├── multierr │ │ ├── .gitignore │ │ ├── glide.yaml │ │ ├── go.mod │ │ ├── .travis.yml │ │ ├── .codecov.yml │ │ ├── README.md │ │ ├── CHANGELOG.md │ │ ├── Makefile │ │ ├── LICENSE.txt │ │ └── tools.go │ ├── atomic │ │ ├── .gitignore │ │ ├── go.mod │ │ ├── .travis.yml │ │ ├── .codecov.yml │ │ ├── Makefile │ │ ├── LICENSE.txt │ │ └── tools.go │ └── zap │ │ ├── go.mod │ │ ├── checklicense.sh │ │ ├── .travis.yml │ │ ├── .gitignore │ │ ├── .codecov.yml │ │ ├── glide.yaml │ │ ├── LICENSE.txt │ │ ├── global_go112.go │ │ ├── global_prego112.go │ │ ├── tools.go │ │ ├── time.go │ │ └── zapcore │ │ └── doc.go ├── k8s.io │ ├── klog │ │ ├── go.mod │ │ ├── code-of-conduct.md │ │ ├── go.sum │ │ ├── OWNERS │ │ ├── .travis.yml │ │ ├── RELEASE.md │ │ └── SECURITY_CONTACTS │ ├── apimachinery │ │ └── pkg │ │ │ ├── api │ │ │ └── resource │ │ │ │ ├── OWNERS │ │ │ │ └── zz_generated.deepcopy.go │ │ │ ├── apis │ │ │ └── meta │ │ │ │ └── v1 │ │ │ │ ├── OWNERS │ │ │ │ ├── doc.go │ │ │ │ ├── zz_generated.defaults.go │ │ │ │ └── deepcopy.go │ │ │ ├── util │ │ │ ├── sets │ │ │ │ ├── doc.go │ │ │ │ └── empty.go │ │ │ ├── errors │ │ │ │ └── doc.go │ │ │ └── intstr │ │ │ │ └── generated.proto │ │ │ ├── types │ │ │ ├── doc.go │ │ │ ├── uid.go │ │ │ ├── patch.go │ │ │ └── namespacedname.go │ │ │ ├── fields │ │ │ ├── doc.go │ │ │ └── requirements.go │ │ │ ├── labels │ │ │ ├── doc.go │ │ │ └── zz_generated.deepcopy.go │ │ │ ├── watch │ │ │ ├── doc.go │ │ │ └── zz_generated.deepcopy.go │ │ │ ├── conversion │ │ │ ├── queryparams │ │ │ │ └── doc.go │ │ │ ├── doc.go │ │ │ ├── deep_equal.go │ │ │ └── helper.go │ │ │ ├── runtime │ │ │ ├── schema │ │ │ │ └── generated.proto │ │ │ └── register.go │ │ │ └── selection │ │ │ └── operator.go │ └── api │ │ └── core │ │ └── v1 │ │ ├── doc.go │ │ ├── objectreference.go │ │ └── taint.go └── honnef.co │ └── go │ └── tools │ ├── ssa │ ├── write.go │ ├── identical_17.go │ ├── identical.go │ └── staticcheck.conf │ ├── version │ ├── buildinfo111.go │ ├── version.go │ └── buildinfo.go │ ├── lint │ ├── lintutil │ │ ├── stats.go │ │ ├── stats_posix.go │ │ └── stats_bsd.go │ └── stats.go │ ├── printf │ └── fuzz.go │ ├── config │ └── example.conf │ ├── cmd │ └── staticcheck │ │ ├── README.md │ │ └── staticcheck.go │ ├── simple │ └── CONTRIBUTING.md │ ├── staticcheck │ ├── CONTRIBUTING.md │ ├── buildtag.go │ └── knowledge.go │ ├── facts │ └── token.go │ ├── functions │ ├── terminates.go │ ├── loops.go │ └── pure.go │ ├── go │ └── types │ │ └── typeutil │ │ ├── imports.go │ │ └── callee.go │ ├── LICENSE │ ├── unused │ └── edge.go │ └── ssautil │ └── ssautil.go ├── images └── diagram.png ├── bin ├── install ├── clear ├── up └── apply ├── manifests ├── knative-brokers.yaml └── sendevent.yaml └── Gopkg.toml /vendor/go.opencensus.io/AUTHORS: -------------------------------------------------------------------------------- 1 | Google Inc. 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | h2i/h2i 3 | -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/pong/kodata/HEAD: -------------------------------------------------------------------------------- 1 | ../../../.git/HEAD -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/pong/kodata/LICENSE: -------------------------------------------------------------------------------- 1 | ../../../LICENSE -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/pong/kodata/refs: -------------------------------------------------------------------------------- 1 | ../../../.git/refs -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/google/uuid 2 | -------------------------------------------------------------------------------- /vendor/go.uber.org/tools/update-license/.gitignore: -------------------------------------------------------------------------------- 1 | update-license 2 | -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/controller/kodata/HEAD: -------------------------------------------------------------------------------- 1 | ../../../.git/HEAD -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/controller/kodata/LICENSE: -------------------------------------------------------------------------------- 1 | ../../../LICENSE -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/controller/kodata/refs: -------------------------------------------------------------------------------- 1 | ../../../.git/refs -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/sendevent/kodata/HEAD: -------------------------------------------------------------------------------- 1 | ../../../.git/HEAD -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/sendevent/kodata/LICENSE: -------------------------------------------------------------------------------- 1 | ../../../LICENSE -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/sendevent/kodata/refs: -------------------------------------------------------------------------------- 1 | ../../../.git/refs -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/webhook/kodata/HEAD: -------------------------------------------------------------------------------- 1 | ../../../.git/HEAD -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/webhook/kodata/LICENSE: -------------------------------------------------------------------------------- 1 | ../../../LICENSE -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/webhook/kodata/refs: -------------------------------------------------------------------------------- 1 | ../../../.git/refs -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/broker/filter/kodata/HEAD: -------------------------------------------------------------------------------- 1 | ../../../../.git/HEAD -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/broker/filter/kodata/refs: -------------------------------------------------------------------------------- 1 | ../../../../.git/refs -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/broker/filter/kodata/LICENSE: -------------------------------------------------------------------------------- 1 | ../../../../LICENSE -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/broker/ingress/kodata/HEAD: -------------------------------------------------------------------------------- 1 | ../../../../.git/HEAD -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/broker/ingress/kodata/LICENSE: -------------------------------------------------------------------------------- 1 | ../../../../LICENSE -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/broker/ingress/kodata/refs: -------------------------------------------------------------------------------- 1 | ../../../../.git/refs -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/sources_controller/kodata/HEAD: -------------------------------------------------------------------------------- 1 | ../../../.git/HEAD -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/sources_controller/kodata/LICENSE: -------------------------------------------------------------------------------- 1 | ../../../LICENSE -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/sources_controller/kodata/refs: -------------------------------------------------------------------------------- 1 | ../../../.git/refs -------------------------------------------------------------------------------- /vendor/go.uber.org/multierr/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | cover.html 3 | cover.out 4 | /bin 5 | -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/apiserver_receive_adapter/kodata/HEAD: -------------------------------------------------------------------------------- 1 | ../../../.git/HEAD -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/apiserver_receive_adapter/kodata/LICENSE: -------------------------------------------------------------------------------- 1 | ../../../LICENSE -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/apiserver_receive_adapter/kodata/refs: -------------------------------------------------------------------------------- 1 | ../../../.git/refs -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/cronjob_receive_adapter/kodata/HEAD: -------------------------------------------------------------------------------- 1 | ../../../.git/HEAD -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/cronjob_receive_adapter/kodata/LICENSE: -------------------------------------------------------------------------------- 1 | ../../../LICENSE -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/cronjob_receive_adapter/kodata/refs: -------------------------------------------------------------------------------- 1 | ../../../.git/refs -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/test/test_images/logevents/kodata/LICENSE: -------------------------------------------------------------------------------- 1 | ../../../../LICENSE -------------------------------------------------------------------------------- /vendor/github.com/google/gofuzz/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/google/gofuzz 2 | 3 | go 1.12 4 | -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/in_memory/channel_controller/kodata/HEAD: -------------------------------------------------------------------------------- 1 | ../../../../.git/HEAD -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/in_memory/channel_controller/kodata/refs: -------------------------------------------------------------------------------- 1 | ../../../../.git/refs -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/in_memory/channel_dispatcher/kodata/HEAD: -------------------------------------------------------------------------------- 1 | ../../../../.git/HEAD -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/in_memory/channel_dispatcher/kodata/refs: -------------------------------------------------------------------------------- 1 | ../../../../.git/refs -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/pong/kodata/VENDOR-LICENSE: -------------------------------------------------------------------------------- 1 | ../../../third_party/VENDOR-LICENSE -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/test/test_images/performance/kodata/HEAD: -------------------------------------------------------------------------------- 1 | ../../../../.git/HEAD -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/test/test_images/performance/kodata/prod.config: -------------------------------------------------------------------------------- 1 | ../prod.config -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/test/test_images/performance/kodata/refs: -------------------------------------------------------------------------------- 1 | ../../../../.git/refs -------------------------------------------------------------------------------- /images/diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iancoffey/brokers-tekton/HEAD/images/diagram.png -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/Makefile: -------------------------------------------------------------------------------- 1 | curlimage: 2 | docker build -t gohttp2/curl . 3 | 4 | -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/in_memory/channel_controller/kodata/LICENSE: -------------------------------------------------------------------------------- 1 | ../../../../LICENSE -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/in_memory/channel_dispatcher/kodata/LICENSE: -------------------------------------------------------------------------------- 1 | ../../../../LICENSE -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/sendevent/kodata/VENDOR-LICENSE: -------------------------------------------------------------------------------- 1 | ../../../third_party/VENDOR-LICENSE -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/webhook/kodata/VENDOR-LICENSE: -------------------------------------------------------------------------------- 1 | ../../../third_party/VENDOR-LICENSE -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/controller/kodata/VENDOR-LICENSE: -------------------------------------------------------------------------------- 1 | ../../../third_party/VENDOR-LICENSE -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/session.vim: -------------------------------------------------------------------------------- 1 | au BufWritePost *.go silent!make tags > /dev/null 2>&1 2 | -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/broker/filter/kodata/VENDOR-LICENSE: -------------------------------------------------------------------------------- 1 | ../../../../third_party/VENDOR-LICENSE -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/broker/ingress/kodata/VENDOR-LICENSE: -------------------------------------------------------------------------------- 1 | ../../../../third_party/VENDOR-LICENSE -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/sources_controller/kodata/VENDOR-LICENSE: -------------------------------------------------------------------------------- 1 | ../../../third_party/VENDOR-LICENSE -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/.gitignore: -------------------------------------------------------------------------------- 1 | TAGS 2 | tags 3 | .*.swp 4 | tomlcheck/tomlcheck 5 | toml.test 6 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/go.mod: -------------------------------------------------------------------------------- 1 | module k8s.io/klog 2 | 3 | go 1.12 4 | 5 | require github.com/go-logr/logr v0.1.0 6 | -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/cronjob_receive_adapter/kodata/VENDOR-LICENSE: -------------------------------------------------------------------------------- 1 | ../../../third_party/VENDOR-LICENSE -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/apiserver_receive_adapter/kodata/VENDOR-LICENSE: -------------------------------------------------------------------------------- 1 | ../../../third_party/VENDOR-LICENSE -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/in_memory/channel_controller/kodata/VENDOR-LICENSE: -------------------------------------------------------------------------------- 1 | ../../../../third_party/VENDOR-LICENSE -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/cmd/in_memory/channel_dispatcher/kodata/VENDOR-LICENSE: -------------------------------------------------------------------------------- 1 | ../../../../third_party/VENDOR-LICENSE -------------------------------------------------------------------------------- /bin/install: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | curl -sL https://run.solo.io/gloo/install | sh 4 | 5 | export PATH=$HOME/.gloo/bin:$PATH 6 | -------------------------------------------------------------------------------- /vendor/golang.org/x/lint/go.mod: -------------------------------------------------------------------------------- 1 | module golang.org/x/lint 2 | 3 | go 1.11 4 | 5 | require golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f 6 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/ssa/write.go: -------------------------------------------------------------------------------- 1 | package ssa 2 | 3 | func NewJump(parent *BasicBlock) *Jump { 4 | return &Jump{anInstruction{parent}} 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4.3 5 | - 1.5.3 6 | - tip 7 | 8 | script: 9 | - go test -v ./... 10 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/ssa/identical_17.go: -------------------------------------------------------------------------------- 1 | // +build !go1.8 2 | 3 | package ssa 4 | 5 | import "go/types" 6 | 7 | var structTypesIdentical = types.Identical 8 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/COMPATIBLE: -------------------------------------------------------------------------------- 1 | Compatible with TOML version 2 | [v0.4.0](https://github.com/toml-lang/toml/blob/v0.4.0/versions/en/toml-v0.4.0.md) 3 | 4 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/ssa/identical.go: -------------------------------------------------------------------------------- 1 | // +build go1.8 2 | 3 | package ssa 4 | 5 | import "go/types" 6 | 7 | var structTypesIdentical = types.IdenticalIgnoreTags 8 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/datacodec/xml/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package xml holds the encoder/decoder implementation for `application/xml`. 3 | */ 4 | package xml 5 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/datacodec/json/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package json holds the encoder/decoder implementation for `application/json`. 3 | */ 4 | package json 5 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/transport/http/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package http implements the CloudEvent transport implementation using HTTP. 3 | */ 4 | package http 5 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/observability/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package observability holds metrics and tracing recording implementations. 3 | */ 4 | package observability 5 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Paul Borman 2 | bmatsuo 3 | shawnps 4 | theory 5 | jboverfelt 6 | dsymonds 7 | cd1 8 | wallclockbuilder 9 | dansouza 10 | -------------------------------------------------------------------------------- /vendor/go.uber.org/atomic/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | .DS_Store 3 | /vendor 4 | cover.html 5 | cover.out 6 | lint.log 7 | 8 | # Binaries 9 | *.test 10 | 11 | # Profiling output 12 | *.prof 13 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Kubernetes Community Code of Conduct 2 | 3 | Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md) 4 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/go.sum: -------------------------------------------------------------------------------- 1 | github.com/go-logr/logr v0.1.0 h1:M1Tv3VzNlEHg6uyACnRdtrploV2P7wZqH8BoQMtz0cg= 2 | github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= 3 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/ssa/staticcheck.conf: -------------------------------------------------------------------------------- 1 | # ssa/... is mostly imported from upstream and we don't want to 2 | # deviate from it too much, hence disabling SA1019 3 | checks = ["inherit", "-SA1019"] 4 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/version/buildinfo111.go: -------------------------------------------------------------------------------- 1 | // +build !go1.12 2 | 3 | package version 4 | 5 | func printBuildInfo() {} 6 | func buildInfoVersion() (string, bool) { return "", false } 7 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package cloudevents provides primitives to work with CloudEvents specification: https://github.com/cloudevents/spec. 3 | */ 4 | package cloudevents 5 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/lint/lintutil/stats.go: -------------------------------------------------------------------------------- 1 | // +build !aix,!android,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris 2 | 3 | package lintutil 4 | 5 | import "os" 6 | 7 | var infoSignals = []os.Signal{} 8 | -------------------------------------------------------------------------------- /vendor/go.uber.org/multierr/glide.yaml: -------------------------------------------------------------------------------- 1 | package: go.uber.org/multierr 2 | import: 3 | - package: go.uber.org/atomic 4 | version: ^1 5 | testImport: 6 | - package: github.com/stretchr/testify 7 | subpackages: 8 | - assert 9 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/printf/fuzz.go: -------------------------------------------------------------------------------- 1 | // +build gofuzz 2 | 3 | package printf 4 | 5 | func Fuzz(data []byte) int { 6 | _, err := Parse(string(data)) 7 | if err == nil { 8 | return 1 9 | } 10 | return 0 11 | } 12 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/lint/lintutil/stats_posix.go: -------------------------------------------------------------------------------- 1 | // +build aix android linux solaris 2 | 3 | package lintutil 4 | 5 | import ( 6 | "os" 7 | "syscall" 8 | ) 9 | 10 | var infoSignals = []os.Signal{syscall.SIGUSR1} 11 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/lint/lintutil/stats_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin dragonfly freebsd netbsd openbsd 2 | 3 | package lintutil 4 | 5 | import ( 6 | "os" 7 | "syscall" 8 | ) 9 | 10 | var infoSignals = []os.Signal{syscall.SIGINFO} 11 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/context/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package context holds the last resort overrides and fyi objects that can be passed to clients and transports added to 3 | context.Context objects. 4 | */ 5 | package context 6 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/.gitignore: -------------------------------------------------------------------------------- 1 | /.idea/ 2 | 3 | # go.opencensus.io/exporter/aws 4 | /exporter/aws/ 5 | 6 | # Exclude vendor, use dep ensure after checkout: 7 | /vendor/github.com/ 8 | /vendor/golang.org/ 9 | /vendor/google.golang.org/ 10 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/datacodec/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package datacodec holds the data codec registry and adds known encoders and decoders supporting media types such as 3 | `application/json` and `application/xml`. 4 | */ 5 | package datacodec 6 | -------------------------------------------------------------------------------- /bin/clear: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Just delete everything so we can start anew! 4 | 5 | kubectl delete pipelineruns --all -n tekton-dream 6 | 7 | kubectl delete pipelineresources --all -n tekton-dream 8 | 9 | kubectl delete containersources --all -n tekton-dream 10 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/GOLANG_CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | The contributors to the Go protobuf repository: 2 | 3 | # This source code was written by the Go contributors. 4 | # The master list of contributors is in the main Go distribution, 5 | # visible at http://tip.golang.org/CONTRIBUTORS. -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/data_content_encoding.go: -------------------------------------------------------------------------------- 1 | package cloudevents 2 | 3 | const ( 4 | Base64 = "base64" 5 | ) 6 | 7 | // StringOfBase64 returns a string pointer to "Base64" 8 | func StringOfBase64() *string { 9 | a := Base64 10 | return &a 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/google/gofuzz/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4 5 | - 1.3 6 | - 1.2 7 | - tip 8 | 9 | install: 10 | - if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi 11 | 12 | script: 13 | - go test -cover 14 | -------------------------------------------------------------------------------- /vendor/go.uber.org/zap/go.mod: -------------------------------------------------------------------------------- 1 | module go.uber.org/zap 2 | 3 | go 1.13 4 | 5 | require ( 6 | github.com/pkg/errors v0.8.1 7 | github.com/stretchr/testify v1.4.0 8 | go.uber.org/atomic v1.5.0 9 | go.uber.org/multierr v1.3.0 10 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de 11 | ) 12 | -------------------------------------------------------------------------------- /bin/up: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | PATH=$HOME/.gloo/bin:$PATH 4 | 5 | CLUSTER_NAME=tekton-dream 6 | 7 | # create kind cluster 8 | kind create cluster --name="$CLUSTER_NAME" 9 | 10 | # Set kubeconfig 11 | export KUBECONFIG="$(kind get kubeconfig-path --name="$CLUSTER_NAME")" 12 | 13 | echo "Done! Time to run ./bin/apply" 14 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.1 4 | - 1.2 5 | - 1.3 6 | - 1.4 7 | - 1.5 8 | - 1.6 9 | - tip 10 | install: 11 | - go install ./... 12 | - go get github.com/BurntSushi/toml-test 13 | script: 14 | - export PATH="$PATH:$HOME/gopath/bin" 15 | - make test 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/ast/astutil/util.go: -------------------------------------------------------------------------------- 1 | package astutil 2 | 3 | import "go/ast" 4 | 5 | // Unparen returns e with any enclosing parentheses stripped. 6 | func Unparen(e ast.Expr) ast.Expr { 7 | for { 8 | p, ok := e.(*ast.ParenExpr) 9 | if !ok { 10 | return e 11 | } 12 | e = p.X 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /vendor/go.uber.org/atomic/go.mod: -------------------------------------------------------------------------------- 1 | module go.uber.org/atomic 2 | 3 | require ( 4 | github.com/davecgh/go-spew v1.1.1 // indirect 5 | github.com/stretchr/testify v1.3.0 6 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de 7 | golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c // indirect 8 | ) 9 | 10 | go 1.13 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/language/go1_2.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.2 6 | 7 | package language 8 | 9 | import "sort" 10 | 11 | var sortStable = sort.Stable 12 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/transport/message.go: -------------------------------------------------------------------------------- 1 | package transport 2 | 3 | // Message is the abstract transport message wrapper. 4 | type Message interface { 5 | // CloudEventsVersion returns the version of the CloudEvent. 6 | CloudEventsVersion() string 7 | 8 | // TODO maybe get encoding 9 | } 10 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go_import_path: go.opencensus.io 4 | 5 | go: 6 | - 1.11.x 7 | 8 | env: 9 | global: 10 | GO111MODULE=on 11 | 12 | before_script: 13 | - make install-tools 14 | 15 | script: 16 | - make travis-ci 17 | - go run internal/check/version.go # TODO move this to makefile 18 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/api/resource/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - lavalamp 6 | - smarterclayton 7 | - wojtek-t 8 | - derekwaynecarr 9 | - mikedanese 10 | - saad-ali 11 | - janetkuo 12 | - tallclair 13 | - eparis 14 | - xiang90 15 | - mbohlool 16 | - david-mcmahon 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/lint/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - 1.10.x 5 | - 1.11.x 6 | - master 7 | 8 | go_import_path: golang.org/x/lint 9 | 10 | install: 11 | - go get -t -v ./... 12 | 13 | script: 14 | - go test -v -race ./... 15 | 16 | matrix: 17 | allow_failures: 18 | - go: master 19 | fast_finish: true 20 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | reviewers: 3 | - jayunit100 4 | - hoegaarden 5 | - andyxning 6 | - neolit123 7 | - pohly 8 | - yagonobre 9 | - vincepri 10 | - detiber 11 | approvers: 12 | - dims 13 | - thockin 14 | - justinsb 15 | - tallclair 16 | - piosz 17 | - brancz 18 | - DirectXMan12 19 | - lavalamp 20 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # How to contribute 2 | 3 | We definitely welcome patches and contribution to this project! 4 | 5 | ### Legal requirements 6 | 7 | In order to protect both you and ourselves, you will need to sign the 8 | [Contributor License Agreement](https://cla.developers.google.com/clas). 9 | 10 | You may have already signed it for other Google projects. 11 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/client/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package client holds the recommended entry points for interacting with the CloudEvents Golang SDK. The client wraps 3 | a selected transport. The client adds validation and defaulting for sending events, and flexible receiver method 4 | registration. For full details, read the `client.Client` documentation. 5 | */ 6 | package client 7 | -------------------------------------------------------------------------------- /vendor/go.uber.org/zap/checklicense.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | ERROR_COUNT=0 4 | while read -r file 5 | do 6 | case "$(head -1 "${file}")" in 7 | *"Copyright (c) "*" Uber Technologies, Inc.") 8 | # everything's cool 9 | ;; 10 | *) 11 | echo "$file is missing license header." 12 | (( ERROR_COUNT++ )) 13 | ;; 14 | esac 15 | done < <(git ls-files "*\.go") 16 | 17 | exit $ERROR_COUNT 18 | -------------------------------------------------------------------------------- /vendor/go.uber.org/multierr/go.mod: -------------------------------------------------------------------------------- 1 | module go.uber.org/multierr 2 | 3 | go 1.12 4 | 5 | require ( 6 | github.com/stretchr/testify v1.3.0 7 | go.uber.org/atomic v1.5.0 8 | go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee 9 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de 10 | golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5 // indirect 11 | honnef.co/go/tools v0.0.1-2019.2.3 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/knative.dev/eventing/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the list of Knative authors for copyright purposes. 2 | # 3 | # This does not necessarily list everyone who has contributed code, since in 4 | # some cases, their employer may be the copyright holder. To see the full list 5 | # of contributors, see the revision history in source control. 6 | Google LLC 7 | Pivotal Software, Inc. 8 | Red Hat, Inc. 9 | IBM Corp 10 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/Makefile: -------------------------------------------------------------------------------- 1 | install: 2 | go install ./... 3 | 4 | test: install 5 | go test -v 6 | toml-test toml-test-decoder 7 | toml-test -encoder toml-test-encoder 8 | 9 | fmt: 10 | gofmt -w *.go */*.go 11 | colcheck *.go */*.go 12 | 13 | tags: 14 | find ./ -name '*.go' -print0 | xargs -0 gotags > TAGS 15 | 16 | push: 17 | git push origin master 18 | git push github master 19 | 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.10 6 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 11 | } 12 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: k8s.io/klog 3 | dist: xenial 4 | go: 5 | - 1.9.x 6 | - 1.10.x 7 | - 1.11.x 8 | - 1.12.x 9 | script: 10 | - go get -t -v ./... 11 | - diff -u <(echo -n) <(gofmt -d .) 12 | - diff -u <(echo -n) <(golint $(go list -e ./...)) 13 | - go tool vet . || go vet . 14 | - go test -v -race ./... 15 | install: 16 | - go get golang.org/x/lint/golint 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_fileno.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build freebsd openbsd netbsd 6 | 7 | package fastwalk 8 | 9 | import "syscall" 10 | 11 | func direntInode(dirent *syscall.Dirent) uint64 { 12 | return uint64(dirent.Fileno) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_ino.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux darwin 6 | // +build !appengine 7 | 8 | package fastwalk 9 | 10 | import "syscall" 11 | 12 | func direntInode(dirent *syscall.Dirent) uint64 { 13 | return uint64(dirent.Ino) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_namlen_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin freebsd openbsd netbsd 6 | 7 | package fastwalk 8 | 9 | import "syscall" 10 | 11 | func direntNamlen(dirent *syscall.Dirent) uint64 { 12 | return uint64(dirent.Namlen) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/language/common.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | package language 4 | 5 | // This file contains code common to the maketables.go and the package code. 6 | 7 | // AliasType is the type of an alias in AliasMap. 8 | type AliasType int8 9 | 10 | const ( 11 | Deprecated AliasType = iota 12 | Macro 13 | Legacy 14 | 15 | AliasTypeUnknown AliasType = -1 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/go.uber.org/zap/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | 4 | go_import_path: go.uber.org/zap 5 | env: 6 | global: 7 | - TEST_TIMEOUT_SCALE=10 8 | - GO111MODULE=on 9 | 10 | matrix: 11 | include: 12 | - go: 1.12.x 13 | - go: 1.13.x 14 | env: LINT=1 15 | 16 | script: 17 | - test -z "$LINT" || make lint 18 | - make test 19 | - make bench 20 | 21 | after_success: 22 | - make cover 23 | - bash <(curl -s https://codecov.io/bash) 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.10 6 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | if !t.isRTL() { 11 | return true 12 | } 13 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gcimporter/newInterface11.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.11 6 | 7 | package gcimporter 8 | 9 | import "go/types" 10 | 11 | func newInterface(methods []*types.Func, embeddeds []types.Type) *types.Interface { 12 | return types.NewInterfaceType(methods, embeddeds) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/.gitignore: -------------------------------------------------------------------------------- 1 | # Operating system temporary files 2 | .DS_Store 3 | 4 | # Editor/IDE specific settings 5 | .idea 6 | .vscode/ 7 | 8 | # Temporary output of build tools 9 | bazel-* 10 | 11 | # Binaries for programs and plugins 12 | *.exe 13 | *.exe~ 14 | *.dll 15 | *.so 16 | *.dylib 17 | 18 | # Test binary, build with `go test -c` 19 | *.test 20 | 21 | # Output of the go coverage tool 22 | *.out 23 | 24 | # Others 25 | ## IDE-specific 26 | *.iml 27 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/transport/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Package transport defines interfaces to decouple the client package 4 | from transport implementations. 5 | 6 | Most event sender and receiver applications should not use this 7 | package, they should use the client package. This package is for 8 | infrastructure developers implementing new transports, or intermediary 9 | components like importers, channels or brokers. 10 | 11 | */ 12 | package transport 13 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package uuid generates and inspects UUIDs. 6 | // 7 | // UUIDs are based on RFC 4122 and DCE 1.1: Authentication and Security 8 | // Services. 9 | // 10 | // A UUID is a 16 byte (128 bit) array. UUIDs may be used as keys to 11 | // maps or compared directly. 12 | package uuid 13 | -------------------------------------------------------------------------------- /vendor/go.uber.org/zap/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | vendor 10 | 11 | # Architecture specific extensions/prefixes 12 | *.[568vq] 13 | [568vq].out 14 | 15 | *.cgo1.go 16 | *.cgo2.c 17 | _cgo_defun.c 18 | _cgo_gotypes.go 19 | _cgo_export.* 20 | 21 | _testmain.go 22 | 23 | *.exe 24 | *.test 25 | *.prof 26 | *.pprof 27 | *.out 28 | *.log 29 | 30 | /bin 31 | cover.out 32 | cover.html 33 | -------------------------------------------------------------------------------- /vendor/go.uber.org/atomic/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go_import_path: go.uber.org/atomic 4 | 5 | env: 6 | global: 7 | - GO111MODULE=on 8 | 9 | matrix: 10 | include: 11 | - go: 1.12.x 12 | - go: 1.13.x 13 | env: LINT=1 14 | 15 | cache: 16 | directories: 17 | - vendor 18 | 19 | before_install: 20 | - go version 21 | 22 | script: 23 | - test -z "$LINT" || make lint 24 | - make cover 25 | 26 | after_success: 27 | - bash <(curl -s https://codecov.io/bash) 28 | -------------------------------------------------------------------------------- /vendor/go.uber.org/multierr/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go_import_path: go.uber.org/multierr 4 | 5 | env: 6 | global: 7 | - GO15VENDOREXPERIMENT=1 8 | - GO111MODULE=on 9 | 10 | go: 11 | - 1.11.x 12 | - 1.12.x 13 | - 1.13.x 14 | 15 | cache: 16 | directories: 17 | - vendor 18 | 19 | before_install: 20 | - go version 21 | 22 | script: 23 | - | 24 | set -e 25 | make lint 26 | make cover 27 | 28 | after_success: 29 | - bash <(curl -s https://codecov.io/bash) 30 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/config/example.conf: -------------------------------------------------------------------------------- 1 | checks = ["all", "-ST1003", "-ST1014"] 2 | initialisms = ["ACL", "API", "ASCII", "CPU", "CSS", "DNS", 3 | "EOF", "GUID", "HTML", "HTTP", "HTTPS", "ID", 4 | "IP", "JSON", "QPS", "RAM", "RPC", "SLA", 5 | "SMTP", "SQL", "SSH", "TCP", "TLS", "TTL", 6 | "UDP", "UI", "GID", "UID", "UUID", "URI", 7 | "URL", "UTF8", "VM", "XML", "XMPP", "XSRF", 8 | "XSS", "SIP", "RTP"] 9 | dot_import_whitelist = [] 10 | http_status_code_whitelist = ["200", "400", "404", "500"] 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/lint/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Golint 2 | 3 | ## Before filing an issue: 4 | 5 | ### Are you having trouble building golint? 6 | 7 | Check you have the latest version of its dependencies. Run 8 | ``` 9 | go get -u golang.org/x/lint/golint 10 | ``` 11 | If you still have problems, consider searching for existing issues before filing a new issue. 12 | 13 | ## Before sending a pull request: 14 | 15 | Have you understood the purpose of golint? Make sure to carefully read `README`. 16 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/lint/stats.go: -------------------------------------------------------------------------------- 1 | package lint 2 | 3 | const ( 4 | StateInitializing = 0 5 | StateGraph = 1 6 | StateProcessing = 2 7 | StateCumulative = 3 8 | ) 9 | 10 | type Stats struct { 11 | State uint32 12 | 13 | InitialPackages uint32 14 | TotalPackages uint32 15 | ProcessedPackages uint32 16 | ProcessedInitialPackages uint32 17 | Problems uint32 18 | ActiveWorkers uint32 19 | TotalWorkers uint32 20 | } 21 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/cmd/staticcheck/README.md: -------------------------------------------------------------------------------- 1 | # staticcheck 2 | 3 | _staticcheck_ offers extensive analysis of Go code, covering a myriad 4 | of categories. It will detect bugs, suggest code simplifications, 5 | point out dead code, and more. 6 | 7 | ## Installation 8 | 9 | See [the main README](https://github.com/dominikh/go-tools#installation) for installation instructions. 10 | 11 | ## Documentation 12 | 13 | Detailed documentation can be found on 14 | [staticcheck.io](https://staticcheck.io/docs/). 15 | 16 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/simple/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to gosimple 2 | 3 | ## Before filing an issue: 4 | 5 | ### Are you having trouble building gosimple? 6 | 7 | Check you have the latest version of its dependencies. Run 8 | ``` 9 | go get -u honnef.co/go/tools/simple 10 | ``` 11 | If you still have problems, consider searching for existing issues before filing a new issue. 12 | 13 | ## Before sending a pull request: 14 | 15 | Have you understood the purpose of gosimple? Make sure to carefully read `README`. 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/lint/golint/importcomment.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2018 The Go Authors. All rights reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file or at 5 | // https://developers.google.com/open-source/licenses/bsd. 6 | 7 | // +build go1.12 8 | 9 | // Require use of the correct import path only for Go 1.12+ users, so 10 | // any breakages coincide with people updating their CI configs or 11 | // whatnot. 12 | 13 | package main // import "golang.org/x/lint/golint" 14 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/staticcheck/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to staticcheck 2 | 3 | ## Before filing an issue: 4 | 5 | ### Are you having trouble building staticcheck? 6 | 7 | Check you have the latest version of its dependencies. Run 8 | ``` 9 | go get -u honnef.co/go/tools/staticcheck 10 | ``` 11 | If you still have problems, consider searching for existing issues before filing a new issue. 12 | 13 | ## Before sending a pull request: 14 | 15 | Have you understood the purpose of staticcheck? Make sure to carefully read `README`. 16 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/staticcheck/buildtag.go: -------------------------------------------------------------------------------- 1 | package staticcheck 2 | 3 | import ( 4 | "go/ast" 5 | "strings" 6 | 7 | . "honnef.co/go/tools/lint/lintdsl" 8 | ) 9 | 10 | func buildTags(f *ast.File) [][]string { 11 | var out [][]string 12 | for _, line := range strings.Split(Preamble(f), "\n") { 13 | if !strings.HasPrefix(line, "+build ") { 14 | continue 15 | } 16 | line = strings.TrimSpace(strings.TrimPrefix(line, "+build ")) 17 | fields := strings.Fields(line) 18 | out = append(out, fields) 19 | } 20 | return out 21 | } 22 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "{build}" 2 | 3 | platform: x64 4 | 5 | clone_folder: c:\gopath\src\go.opencensus.io 6 | 7 | environment: 8 | GOPATH: 'c:\gopath' 9 | GO111MODULE: 'on' 10 | CGO_ENABLED: '0' # See: https://github.com/appveyor/ci/issues/2613 11 | 12 | stack: go 1.11 13 | 14 | before_test: 15 | - go version 16 | - go env 17 | 18 | build: false 19 | deploy: false 20 | 21 | test_script: 22 | - cd %APPVEYOR_BUILD_FOLDER% 23 | - go build -v .\... 24 | - go test -v .\... # No -race because cgo is disabled 25 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/RELEASE.md: -------------------------------------------------------------------------------- 1 | # Release Process 2 | 3 | The `klog` is released on an as-needed basis. The process is as follows: 4 | 5 | 1. An issue is proposing a new release with a changelog since the last release 6 | 1. All [OWNERS](OWNERS) must LGTM this release 7 | 1. An OWNER runs `git tag -s $VERSION` and inserts the changelog and pushes the tag with `git push $VERSION` 8 | 1. The release issue is closed 9 | 1. An announcement email is sent to `kubernetes-dev@googlegroups.com` with the subject `[ANNOUNCE] kubernetes-template-project $VERSION is released` 10 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/go.mod: -------------------------------------------------------------------------------- 1 | module go.opencensus.io 2 | 3 | require ( 4 | github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 5 | github.com/golang/protobuf v1.3.1 6 | github.com/google/go-cmp v0.3.0 7 | github.com/stretchr/testify v1.4.0 8 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859 9 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd // indirect 10 | golang.org/x/text v0.3.2 // indirect 11 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb // indirect 12 | google.golang.org/grpc v1.20.1 13 | ) 14 | 15 | go 1.13 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/language/gen_common.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build ignore 6 | 7 | package main 8 | 9 | // This file contains code common to the maketables.go and the package code. 10 | 11 | // AliasType is the type of an alias in AliasMap. 12 | type AliasType int8 13 | 14 | const ( 15 | Deprecated AliasType = iota 16 | Macro 17 | Legacy 18 | 19 | AliasTypeUnknown AliasType = -1 20 | ) 21 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/observability/keys.go: -------------------------------------------------------------------------------- 1 | package observability 2 | 3 | import ( 4 | "go.opencensus.io/tag" 5 | ) 6 | 7 | var ( 8 | // KeyMethod is the tag used for marking method on a metric. 9 | KeyMethod, _ = tag.NewKey("method") 10 | // KeyResult is the tag used for marking result on a metric. 11 | KeyResult, _ = tag.NewKey("result") 12 | ) 13 | 14 | const ( 15 | // ResultError is a shared result tag value for error. 16 | ResultError = "error" 17 | // ResultOK is a shared result tag value for success. 18 | ResultOK = "success" 19 | ) 20 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/node_js.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build js 6 | 7 | package uuid 8 | 9 | // getHardwareInterface returns nil values for the JS version of the code. 10 | // This remvoves the "net" dependency, because it is not used in the browser. 11 | // Using the "net" library inflates the size of the transpiled JS code by 673k bytes. 12 | func getHardwareInterface(name string) (string, []byte) { return "", nil } 13 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/apis/meta/v1/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - smarterclayton 6 | - wojtek-t 7 | - deads2k 8 | - brendandburns 9 | - caesarxuchao 10 | - liggitt 11 | - nikhiljindal 12 | - gmarek 13 | - erictune 14 | - davidopp 15 | - sttts 16 | - quinton-hoole 17 | - luxas 18 | - janetkuo 19 | - justinsb 20 | - ncdc 21 | - soltysh 22 | - dims 23 | - madhusudancs 24 | - hongchaodeng 25 | - krousey 26 | - mml 27 | - mbohlool 28 | - david-mcmahon 29 | - therc 30 | - mqliang 31 | - kevin-wangzefeng 32 | - jianhuiz 33 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/metric/metricdata/type_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type Type"; DO NOT EDIT. 2 | 3 | package metricdata 4 | 5 | import "strconv" 6 | 7 | const _Type_name = "TypeGaugeInt64TypeGaugeFloat64TypeGaugeDistributionTypeCumulativeInt64TypeCumulativeFloat64TypeCumulativeDistributionTypeSummary" 8 | 9 | var _Type_index = [...]uint8{0, 14, 30, 51, 70, 91, 117, 128} 10 | 11 | func (i Type) String() string { 12 | if i < 0 || i >= Type(len(_Type_index)-1) { 13 | return "Type(" + strconv.FormatInt(int64(i), 10) + ")" 14 | } 15 | return _Type_name[_Type_index[i]:_Type_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/encoding_types_1.1.go: -------------------------------------------------------------------------------- 1 | // +build !go1.2 2 | 3 | package toml 4 | 5 | // These interfaces were introduced in Go 1.2, so we add them manually when 6 | // compiling for Go 1.1. 7 | 8 | // TextMarshaler is a synonym for encoding.TextMarshaler. It is defined here 9 | // so that Go 1.1 can be supported. 10 | type TextMarshaler interface { 11 | MarshalText() (text []byte, err error) 12 | } 13 | 14 | // TextUnmarshaler is a synonym for encoding.TextUnmarshaler. It is defined 15 | // here so that Go 1.1 can be supported. 16 | type TextUnmarshaler interface { 17 | UnmarshalText(text []byte) error 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/not_go111.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.11 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http/httptrace" 11 | "net/textproto" 12 | ) 13 | 14 | func traceHasWroteHeaderField(trace *httptrace.ClientTrace) bool { return false } 15 | 16 | func traceWroteHeaderField(trace *httptrace.ClientTrace, k, v string) {} 17 | 18 | func traceGot1xxResponseFunc(trace *httptrace.ClientTrace) func(int, textproto.MIMEHeader) error { 19 | return nil 20 | } 21 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/facts/token.go: -------------------------------------------------------------------------------- 1 | package facts 2 | 3 | import ( 4 | "go/ast" 5 | "go/token" 6 | "reflect" 7 | 8 | "golang.org/x/tools/go/analysis" 9 | ) 10 | 11 | var TokenFile = &analysis.Analyzer{ 12 | Name: "tokenfileanalyzer", 13 | Doc: "creates a mapping of *token.File to *ast.File", 14 | Run: func(pass *analysis.Pass) (interface{}, error) { 15 | m := map[*token.File]*ast.File{} 16 | for _, af := range pass.Files { 17 | tf := pass.Fset.File(af.Pos()) 18 | m[tf] = af 19 | } 20 | return m, nil 21 | }, 22 | RunDespiteErrors: true, 23 | ResultType: reflect.TypeOf(map[*token.File]*ast.File{}), 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of GoGo authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS file, which 3 | # lists people. For example, employees are listed in CONTRIBUTORS, 4 | # but not in AUTHORS, because the employer holds the copyright. 5 | 6 | # Names should be added to this file as one of 7 | # Organization's name 8 | # Individual's name 9 | # Individual's name 10 | 11 | # Please keep the list sorted. 12 | 13 | Sendgrid, Inc 14 | Vastech SA (PTY) LTD 15 | Walter Schulze 16 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/encoding_types.go: -------------------------------------------------------------------------------- 1 | // +build go1.2 2 | 3 | package toml 4 | 5 | // In order to support Go 1.1, we define our own TextMarshaler and 6 | // TextUnmarshaler types. For Go 1.2+, we just alias them with the 7 | // standard library interfaces. 8 | 9 | import ( 10 | "encoding" 11 | ) 12 | 13 | // TextMarshaler is a synonym for encoding.TextMarshaler. It is defined here 14 | // so that Go 1.1 can be supported. 15 | type TextMarshaler encoding.TextMarshaler 16 | 17 | // TextUnmarshaler is a synonym for encoding.TextUnmarshaler. It is defined 18 | // here so that Go 1.1 can be supported. 19 | type TextUnmarshaler encoding.TextUnmarshaler 20 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/SECURITY_CONTACTS: -------------------------------------------------------------------------------- 1 | # Defined below are the security contacts for this repo. 2 | # 3 | # They are the contact point for the Product Security Committee to reach out 4 | # to for triaging and handling of incoming issues. 5 | # 6 | # The below names agree to abide by the 7 | # [Embargo Policy](https://git.k8s.io/security/private-distributors-list.md#embargo-policy) 8 | # and will be removed and replaced if they violate that agreement. 9 | # 10 | # DO NOT REPORT SECURITY VULNERABILITIES DIRECTLY TO THESE NAMES, FOLLOW THE 11 | # INSTRUCTIONS AT https://kubernetes.io/security/ 12 | 13 | dims 14 | thockin 15 | justinsb 16 | tallclair 17 | piosz 18 | brancz 19 | DirectXMan12 20 | lavalamp 21 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/functions/terminates.go: -------------------------------------------------------------------------------- 1 | package functions 2 | 3 | import "honnef.co/go/tools/ssa" 4 | 5 | // Terminates reports whether fn is supposed to return, that is if it 6 | // has at least one theoretic path that returns from the function. 7 | // Explicit panics do not count as terminating. 8 | func Terminates(fn *ssa.Function) bool { 9 | if fn.Blocks == nil { 10 | // assuming that a function terminates is the conservative 11 | // choice 12 | return true 13 | } 14 | 15 | for _, block := range fn.Blocks { 16 | if len(block.Instrs) == 0 { 17 | continue 18 | } 19 | if _, ok := block.Instrs[len(block.Instrs)-1].(*ssa.Return); ok { 20 | return true 21 | } 22 | } 23 | return false 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gcimporter/newInterface10.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.11 6 | 7 | package gcimporter 8 | 9 | import "go/types" 10 | 11 | func newInterface(methods []*types.Func, embeddeds []types.Type) *types.Interface { 12 | named := make([]*types.Named, len(embeddeds)) 13 | for i, e := range embeddeds { 14 | var ok bool 15 | named[i], ok = e.(*types.Named) 16 | if !ok { 17 | panic("embedding of non-defined interfaces in interfaces is not supported before Go 1.11") 18 | } 19 | } 20 | return types.NewInterface(methods, named) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/README: -------------------------------------------------------------------------------- 1 | This is a work-in-progress HTTP/2 implementation for Go. 2 | 3 | It will eventually live in the Go standard library and won't require 4 | any changes to your code to use. It will just be automatic. 5 | 6 | Status: 7 | 8 | * The server support is pretty good. A few things are missing 9 | but are being worked on. 10 | * The client work has just started but shares a lot of code 11 | is coming along much quicker. 12 | 13 | Docs are at https://godoc.org/golang.org/x/net/http2 14 | 15 | Demo test server at https://http2.golang.org/ 16 | 17 | Help & bug reports welcome! 18 | 19 | Contributing: https://golang.org/doc/contribute.html 20 | Bugs: https://golang.org/issue/new?title=x/net/http2:+ 21 | -------------------------------------------------------------------------------- /manifests/knative-brokers.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: eventing.knative.dev/v1alpha1 3 | kind: Broker 4 | metadata: 5 | name: ci-builds 6 | namespace: tekton-dream 7 | spec: 8 | channelTemplateSpec: 9 | apiVersion: messaging.knative.dev/v1alpha1 10 | kind: InMemoryChannel 11 | --- 12 | apiVersion: eventing.knative.dev/v1alpha1 13 | kind: Trigger 14 | metadata: 15 | name: ulmaceae-event-listener 16 | namespace: tekton-dream 17 | spec: 18 | broker: ci-builds 19 | filter: 20 | attributes: 21 | type: com.github.push 22 | # source: iancoffey/ulmaceae 23 | subscriber: 24 | ref: 25 | apiVersion: tekton.dev/v1alpha1 26 | kind: EventListener 27 | name: tekton-dream-listener 28 | namespace: tekton-dream 29 | -------------------------------------------------------------------------------- /vendor/github.com/google/gofuzz/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2014 Google Inc. All rights reserved. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Package fuzz is a library for populating go objects with random values. 18 | package fuzz 19 | -------------------------------------------------------------------------------- /manifests/sendevent.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: sources.eventing.knative.dev/v1alpha1 2 | kind: ContainerSource 3 | metadata: 4 | namespace: tekton-dream 5 | name: demo-event-source 6 | spec: 7 | template: 8 | spec: 9 | containers: 10 | - image: "github.com/iancoffey/brokers-tekton/cmd/sendevent" 11 | name: demo-event 12 | args: 13 | - "--event-type" 14 | - "com.github.push" 15 | - "--source" 16 | - "iancoffey/ulmaceae" 17 | - "--data" 18 | - "{\"repo\": \"iancoffey/ulmaceae\", \"sha\": \"6c81db31fcebb28cd60af3c715f83ad6d5a81d50\"}" 19 | sink: 20 | apiVersion: eventing.knative.dev/v1alpha1 21 | kind: Broker 22 | name: ci-builds 23 | namespace: tekton-dream 24 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/sets/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by set-gen. DO NOT EDIT. 18 | 19 | // Package sets has auto-generated set types. 20 | package sets 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/types/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Package types implements various generic types used throughout kubernetes. 18 | package types // import "k8s.io/apimachinery/pkg/types" 19 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/staticcheck/knowledge.go: -------------------------------------------------------------------------------- 1 | package staticcheck 2 | 3 | import ( 4 | "reflect" 5 | 6 | "golang.org/x/tools/go/analysis" 7 | "honnef.co/go/tools/internal/passes/buildssa" 8 | "honnef.co/go/tools/ssa" 9 | "honnef.co/go/tools/staticcheck/vrp" 10 | ) 11 | 12 | var valueRangesAnalyzer = &analysis.Analyzer{ 13 | Name: "vrp", 14 | Doc: "calculate value ranges of functions", 15 | Run: func(pass *analysis.Pass) (interface{}, error) { 16 | m := map[*ssa.Function]vrp.Ranges{} 17 | for _, ssafn := range pass.ResultOf[buildssa.Analyzer].(*buildssa.SSA).SrcFuncs { 18 | vr := vrp.BuildGraph(ssafn).Solve() 19 | m[ssafn] = vr 20 | } 21 | return m, nil 22 | }, 23 | Requires: []*analysis.Analyzer{buildssa.Analyzer}, 24 | ResultType: reflect.TypeOf(map[*ssa.Function]vrp.Ranges{}), 25 | } 26 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/errors/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Package errors implements various utility functions and types around errors. 18 | package errors // import "k8s.io/apimachinery/pkg/util/errors" 19 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/tag/profile_not19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | // +build !go1.9 16 | 17 | package tag 18 | 19 | import "context" 20 | 21 | func do(ctx context.Context, f func(ctx context.Context)) { 22 | f(ctx) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/go.uber.org/atomic/.codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: 80..100 3 | round: down 4 | precision: 2 5 | 6 | status: 7 | project: # measuring the overall project coverage 8 | default: # context, you can create multiple ones with custom titles 9 | enabled: yes # must be yes|true to enable this status 10 | target: 100 # specify the target coverage for each commit status 11 | # option: "auto" (must increase from parent commit or pull request base) 12 | # option: "X%" a static target percentage to hit 13 | if_not_found: success # if parent is not found report status as success, error, or failure 14 | if_ci_failed: error # if ci fails report status as success, error, or failure 15 | 16 | -------------------------------------------------------------------------------- /vendor/go.uber.org/atomic/Makefile: -------------------------------------------------------------------------------- 1 | # Directory to place `go install`ed binaries into. 2 | export GOBIN ?= $(shell pwd)/bin 3 | 4 | GOLINT = $(GOBIN)/golint 5 | 6 | GO_FILES ?= *.go 7 | 8 | .PHONY: build 9 | build: 10 | go build ./... 11 | 12 | .PHONY: test 13 | test: 14 | go test -race ./... 15 | 16 | .PHONY: gofmt 17 | gofmt: 18 | $(eval FMT_LOG := $(shell mktemp -t gofmt.XXXXX)) 19 | gofmt -e -s -l $(GO_FILES) > $(FMT_LOG) || true 20 | @[ ! -s "$(FMT_LOG)" ] || (echo "gofmt failed:" && cat $(FMT_LOG) && false) 21 | 22 | $(GOLINT): 23 | go install golang.org/x/lint/golint 24 | 25 | .PHONY: golint 26 | golint: $(GOLINT) 27 | $(GOLINT) ./... 28 | 29 | .PHONY: lint 30 | lint: gofmt golint 31 | 32 | .PHONY: cover 33 | cover: 34 | go test -coverprofile=cover.out -coverpkg ./... -v ./... 35 | go tool cover -html=cover.out -o cover.html 36 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/fields/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Package fields implements a simple field system, parsing and matching 18 | // selectors with sets of fields. 19 | package fields // import "k8s.io/apimachinery/pkg/fields" 20 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/labels/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2014 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Package labels implements a simple label system, parsing and matching 18 | // selectors with sets of labels. 19 | package labels // import "k8s.io/apimachinery/pkg/labels" 20 | -------------------------------------------------------------------------------- /vendor/go.uber.org/multierr/.codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: 80..100 3 | round: down 4 | precision: 2 5 | 6 | status: 7 | project: # measuring the overall project coverage 8 | default: # context, you can create multiple ones with custom titles 9 | enabled: yes # must be yes|true to enable this status 10 | target: 100 # specify the target coverage for each commit status 11 | # option: "auto" (must increase from parent commit or pull request base) 12 | # option: "X%" a static target percentage to hit 13 | if_not_found: success # if parent is not found report status as success, error, or failure 14 | if_ci_failed: error # if ci fails report status as success, error, or failure 15 | 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/go111.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.11 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http/httptrace" 11 | "net/textproto" 12 | ) 13 | 14 | func traceHasWroteHeaderField(trace *httptrace.ClientTrace) bool { 15 | return trace != nil && trace.WroteHeaderField != nil 16 | } 17 | 18 | func traceWroteHeaderField(trace *httptrace.ClientTrace, k, v string) { 19 | if trace != nil && trace.WroteHeaderField != nil { 20 | trace.WroteHeaderField(k, []string{v}) 21 | } 22 | } 23 | 24 | func traceGot1xxResponseFunc(trace *httptrace.ClientTrace) func(int, textproto.MIMEHeader) error { 25 | if trace != nil { 26 | return trace.Got1xxResponse 27 | } 28 | return nil 29 | } 30 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/watch/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2014 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Package watch contains a generic watchable interface, and a fake for 18 | // testing code that uses the watch interface. 19 | package watch // import "k8s.io/apimachinery/pkg/watch" 20 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/core/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:openapi-gen=true 18 | // +k8s:deepcopy-gen=package 19 | // +k8s:protobuf-gen=package 20 | 21 | // Package v1 is the v1 version of the core API. 22 | package v1 // import "k8s.io/api/core/v1" 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/lint/go.sum: -------------------------------------------------------------------------------- 1 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 2 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 3 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 4 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 5 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 6 | golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f h1:kDxGY2VmgABOe55qheT/TFqUMtcTHnomIPS1iv3G4Ms= 7 | golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 8 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 9 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/conversion/queryparams/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2014 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Package queryparams provides conversion from versioned 18 | // runtime objects to URL query values 19 | package queryparams // import "k8s.io/apimachinery/pkg/conversion/queryparams" 20 | -------------------------------------------------------------------------------- /vendor/go.uber.org/tools/update-license/README.md: -------------------------------------------------------------------------------- 1 | # update-license 2 | 3 | This is a small tool that updates the license header for Uber's open source Golang files. 4 | 5 | ## Installation 6 | 7 | ``` 8 | go get go.uber.org/tools/update-license 9 | ``` 10 | 11 | ## Usage 12 | 13 | ``` 14 | update-license go_files... 15 | ``` 16 | 17 | ## Further Work 18 | 19 | * Support more licenses by name (MIT, Apache 2.0, etc), file path, url (http GET) 20 | * Support custom owner (not just "Uber Technologies, Inc.") 21 | * Support more languages than go (cover go, java, js, py to start, along with LICENSE, LICENSE.txt) 22 | * Talk about removing custom logic for header comments (ie `@generated`, `Code generated by`), it probably makes more sense just to put the license at the top 23 | * Better detection support for existing licenses so they can be removed 24 | * Verbose, dry run support 25 | -------------------------------------------------------------------------------- /vendor/go.uber.org/zap/.codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: 80..100 3 | round: down 4 | precision: 2 5 | 6 | status: 7 | project: # measuring the overall project coverage 8 | default: # context, you can create multiple ones with custom titles 9 | enabled: yes # must be yes|true to enable this status 10 | target: 95% # specify the target coverage for each commit status 11 | # option: "auto" (must increase from parent commit or pull request base) 12 | # option: "X%" a static target percentage to hit 13 | if_not_found: success # if parent is not found report status as success, error, or failure 14 | if_ci_failed: error # if ci fails report status as success, error, or failure 15 | ignore: 16 | - internal/readme/readme.go 17 | 18 | -------------------------------------------------------------------------------- /vendor/go.uber.org/multierr/README.md: -------------------------------------------------------------------------------- 1 | # multierr [![GoDoc][doc-img]][doc] [![Build Status][ci-img]][ci] [![Coverage Status][cov-img]][cov] 2 | 3 | `multierr` allows combining one or more Go `error`s together. 4 | 5 | ## Installation 6 | 7 | go get -u go.uber.org/multierr 8 | 9 | ## Status 10 | 11 | Stable: No breaking changes will be made before 2.0. 12 | 13 | ------------------------------------------------------------------------------- 14 | 15 | Released under the [MIT License]. 16 | 17 | [MIT License]: LICENSE.txt 18 | [doc-img]: https://godoc.org/go.uber.org/multierr?status.svg 19 | [doc]: https://godoc.org/go.uber.org/multierr 20 | [ci-img]: https://travis-ci.com/uber-go/multierr.svg?branch=master 21 | [cov-img]: https://codecov.io/gh/uber-go/multierr/branch/master/graph/badge.svg 22 | [ci]: https://travis-ci.com/uber-go/multierr 23 | [cov]: https://codecov.io/gh/uber-go/multierr 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/language/coverage.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package language 6 | 7 | // BaseLanguages returns the list of all supported base languages. It generates 8 | // the list by traversing the internal structures. 9 | func BaseLanguages() []Language { 10 | base := make([]Language, 0, NumLanguages) 11 | for i := 0; i < langNoIndexOffset; i++ { 12 | // We included "und" already for the value 0. 13 | if i != nonCanonicalUnd { 14 | base = append(base, Language(i)) 15 | } 16 | } 17 | i := langNoIndexOffset 18 | for _, v := range langNoIndex { 19 | for k := 0; k < 8; k++ { 20 | if v&1 == 1 { 21 | base = append(base, Language(i)) 22 | } 23 | v >>= 1 24 | i++ 25 | } 26 | } 27 | return base 28 | } 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/language/go1_1.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.2 6 | 7 | package language 8 | 9 | import "sort" 10 | 11 | func sortStable(s sort.Interface) { 12 | ss := stableSort{ 13 | s: s, 14 | pos: make([]int, s.Len()), 15 | } 16 | for i := range ss.pos { 17 | ss.pos[i] = i 18 | } 19 | sort.Sort(&ss) 20 | } 21 | 22 | type stableSort struct { 23 | s sort.Interface 24 | pos []int 25 | } 26 | 27 | func (s *stableSort) Len() int { 28 | return len(s.pos) 29 | } 30 | 31 | func (s *stableSort) Less(i, j int) bool { 32 | return s.s.Less(i, j) || !s.s.Less(j, i) && s.pos[i] < s.pos[j] 33 | } 34 | 35 | func (s *stableSort) Swap(i, j int) { 36 | s.s.Swap(i, j) 37 | s.pos[i], s.pos[j] = s.pos[j], s.pos[i] 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/datacodec/text/text.go: -------------------------------------------------------------------------------- 1 | // Text codec converts []byte or string to string and vice-versa. 2 | package text 3 | 4 | import ( 5 | "context" 6 | "fmt" 7 | ) 8 | 9 | func Decode(_ context.Context, in, out interface{}) error { 10 | p, _ := out.(*string) 11 | if p == nil { 12 | return fmt.Errorf("text.Decode out: want *string, got %T", out) 13 | } 14 | switch s := in.(type) { 15 | case string: 16 | *p = s 17 | case []byte: 18 | *p = string(s) 19 | case nil: // treat nil like []byte{} 20 | *p = "" 21 | default: 22 | return fmt.Errorf("text.Decode in: want []byte or string, got %T", in) 23 | } 24 | return nil 25 | } 26 | 27 | func Encode(_ context.Context, in interface{}) ([]byte, error) { 28 | s, ok := in.(string) 29 | if !ok { 30 | return nil, fmt.Errorf("text.Encode in: want string, got %T", in) 31 | } 32 | return []byte(s), nil 33 | } 34 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/trace/trace_nongo11.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | // +build !go1.11 16 | 17 | package trace 18 | 19 | import ( 20 | "context" 21 | ) 22 | 23 | func startExecutionTracerTask(ctx context.Context, name string) (context.Context, func()) { 24 | return ctx, func() {} 25 | } 26 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/apis/meta/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2016 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // +k8s:conversion-gen=false 18 | // +k8s:deepcopy-gen=package 19 | // +k8s:openapi-gen=true 20 | // +k8s:defaulter-gen=TypeMeta 21 | 22 | // +groupName=meta.k8s.io 23 | 24 | package v1 // import "k8s.io/apimachinery/pkg/apis/meta/v1" 25 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/metric/metricdata/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | // Package metricdata contains the metrics data model. 16 | // 17 | // This is an EXPERIMENTAL package, and may change in arbitrary ways without 18 | // notice. 19 | package metricdata // import "go.opencensus.io/metric/metricdata" 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_namlen_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux 6 | // +build !appengine 7 | 8 | package fastwalk 9 | 10 | import ( 11 | "bytes" 12 | "syscall" 13 | "unsafe" 14 | ) 15 | 16 | func direntNamlen(dirent *syscall.Dirent) uint64 { 17 | const fixedHdr = uint16(unsafe.Offsetof(syscall.Dirent{}.Name)) 18 | nameBuf := (*[unsafe.Sizeof(dirent.Name)]byte)(unsafe.Pointer(&dirent.Name[0])) 19 | const nameBufLen = uint16(len(nameBuf)) 20 | limit := dirent.Reclen - fixedHdr 21 | if limit > nameBufLen { 22 | limit = nameBufLen 23 | } 24 | nameLen := bytes.IndexByte(nameBuf[:limit], 0) 25 | if nameLen < 0 { 26 | panic("failed to find terminating 0 byte in dirent") 27 | } 28 | return uint64(nameLen) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/opencensus.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | // Package opencensus contains Go support for OpenCensus. 16 | package opencensus // import "go.opencensus.io" 17 | 18 | // Version is the current release version of OpenCensus in use. 19 | func Version() string { 20 | return "0.23.0" 21 | } 22 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/trace/internal/internal.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | // Package internal provides trace internals. 16 | package internal 17 | 18 | // IDGenerator allows custom generators for TraceId and SpanId. 19 | type IDGenerator interface { 20 | NewTraceID() [16]byte 21 | NewSpanID() [8]byte 22 | } 23 | -------------------------------------------------------------------------------- /vendor/go.uber.org/zap/glide.yaml: -------------------------------------------------------------------------------- 1 | package: go.uber.org/zap 2 | license: MIT 3 | import: 4 | - package: go.uber.org/atomic 5 | version: ^1 6 | - package: go.uber.org/multierr 7 | version: ^1 8 | testImport: 9 | - package: github.com/satori/go.uuid 10 | - package: github.com/sirupsen/logrus 11 | - package: github.com/apex/log 12 | subpackages: 13 | - handlers/json 14 | - package: github.com/go-kit/kit 15 | subpackages: 16 | - log 17 | - package: github.com/stretchr/testify 18 | subpackages: 19 | - assert 20 | - require 21 | - package: gopkg.in/inconshreveable/log15.v2 22 | - package: github.com/mattn/goveralls 23 | - package: github.com/pborman/uuid 24 | - package: github.com/pkg/errors 25 | - package: github.com/rs/zerolog 26 | - package: golang.org/x/tools 27 | subpackages: 28 | - cover 29 | - package: golang.org/x/lint 30 | subpackages: 31 | - golint 32 | - package: github.com/axw/gocov 33 | subpackages: 34 | - gocov 35 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/types/uid.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package types 18 | 19 | // UID is a type that holds unique ID values, including UUIDs. Because we 20 | // don't ONLY use UUIDs, this is an alias to string. Being a type captures 21 | // intent and helps make sure that UIDs and names do not get conflated. 22 | type UID string 23 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/runtime/schema/generated.proto: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | 18 | // This file was autogenerated by go-to-protobuf. Do not edit it manually! 19 | 20 | syntax = 'proto2'; 21 | 22 | package k8s.io.apimachinery.pkg.runtime.schema; 23 | 24 | // Package-wide variables from generator "generated". 25 | option go_package = "schema"; 26 | 27 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/sets/empty.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Code generated by set-gen. DO NOT EDIT. 18 | 19 | package sets 20 | 21 | // Empty is public since it is used by some internal API objects for conversions between external 22 | // string arrays and internal sets, and conversion logic requires public types today. 23 | type Empty struct{} 24 | -------------------------------------------------------------------------------- /Gopkg.toml: -------------------------------------------------------------------------------- 1 | # Gopkg.toml example 2 | # 3 | # Refer to https://golang.github.io/dep/docs/Gopkg.toml.html 4 | # for detailed Gopkg.toml documentation. 5 | # 6 | # required = ["github.com/user/thing/cmd/thing"] 7 | # ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] 8 | # 9 | # [[constraint]] 10 | # name = "github.com/user/project" 11 | # version = "1.0.0" 12 | # 13 | # [[constraint]] 14 | # name = "github.com/user/project2" 15 | # branch = "dev" 16 | # source = "github.com/myfork/project2" 17 | # 18 | # [[override]] 19 | # name = "github.com/x/y" 20 | # version = "2.4.0" 21 | # 22 | # [prune] 23 | # non-go = false 24 | # go-tests = true 25 | # unused-packages = true 26 | 27 | 28 | [[constraint]] 29 | name = "github.com/cloudevents/sdk-go" 30 | version = "0.10.1" 31 | 32 | [[constraint]] 33 | name = "knative.dev/eventing" 34 | version = "0.10.2" 35 | 36 | [prune] 37 | go-tests = true 38 | unused-packages = true 39 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Anton Povarov 2 | Brian Goff 3 | Clayton Coleman 4 | Denis Smirnov 5 | DongYun Kang 6 | Dwayne Schultz 7 | Georg Apitz 8 | Gustav Paul 9 | Johan Brandhorst 10 | John Shahid 11 | John Tuley 12 | Laurent 13 | Patrick Lee 14 | Peter Edge 15 | Roger Johansson 16 | Sam Nguyen 17 | Sergio Arbeo 18 | Stephen J Day 19 | Tamir Duberstein 20 | Todd Eisenberger 21 | Tormod Erevik Lea 22 | Vyacheslav Kim 23 | Walter Schulze 24 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/version/version.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | "path/filepath" 7 | "runtime" 8 | ) 9 | 10 | const Version = "2019.2.3" 11 | 12 | // version returns a version descriptor and reports whether the 13 | // version is a known release. 14 | func version() (string, bool) { 15 | if Version != "devel" { 16 | return Version, true 17 | } 18 | v, ok := buildInfoVersion() 19 | if ok { 20 | return v, false 21 | } 22 | return "devel", false 23 | } 24 | 25 | func Print() { 26 | v, release := version() 27 | 28 | if release { 29 | fmt.Printf("%s %s\n", filepath.Base(os.Args[0]), v) 30 | } else if v == "devel" { 31 | fmt.Printf("%s (no version)\n", filepath.Base(os.Args[0])) 32 | } else { 33 | fmt.Printf("%s (devel, %s)\n", filepath.Base(os.Args[0]), v) 34 | } 35 | } 36 | 37 | func Verbose() { 38 | Print() 39 | fmt.Println() 40 | fmt.Println("Compiled with Go version:", runtime.Version()) 41 | printBuildInfo() 42 | } 43 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/README.md: -------------------------------------------------------------------------------- 1 | # uuid ![build status](https://travis-ci.org/google/uuid.svg?branch=master) 2 | The uuid package generates and inspects UUIDs based on 3 | [RFC 4122](http://tools.ietf.org/html/rfc4122) 4 | and DCE 1.1: Authentication and Security Services. 5 | 6 | This package is based on the github.com/pborman/uuid package (previously named 7 | code.google.com/p/go-uuid). It differs from these earlier packages in that 8 | a UUID is a 16 byte array rather than a byte slice. One loss due to this 9 | change is the ability to represent an invalid UUID (vs a NIL UUID). 10 | 11 | ###### Install 12 | `go get github.com/google/uuid` 13 | 14 | ###### Documentation 15 | [![GoDoc](https://godoc.org/github.com/google/uuid?status.svg)](http://godoc.org/github.com/google/uuid) 16 | 17 | Full `go doc` style documentation for the package can be viewed online without 18 | installing this package by using the GoDoc site here: 19 | http://godoc.org/github.com/google/uuid 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/language/compact.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package language 6 | 7 | // CompactCoreInfo is a compact integer with the three core tags encoded. 8 | type CompactCoreInfo uint32 9 | 10 | // GetCompactCore generates a uint32 value that is guaranteed to be unique for 11 | // different language, region, and script values. 12 | func GetCompactCore(t Tag) (cci CompactCoreInfo, ok bool) { 13 | if t.LangID > langNoIndexOffset { 14 | return 0, false 15 | } 16 | cci |= CompactCoreInfo(t.LangID) << (8 + 12) 17 | cci |= CompactCoreInfo(t.ScriptID) << 12 18 | cci |= CompactCoreInfo(t.RegionID) 19 | return cci, true 20 | } 21 | 22 | // Tag generates a tag from c. 23 | func (c CompactCoreInfo) Tag() Tag { 24 | return Tag{ 25 | LangID: Language(c >> 20), 26 | RegionID: Region(c & 0x3ff), 27 | ScriptID: Script(c>>12) & 0xff, 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/api/resource/zz_generated.deepcopy.go: -------------------------------------------------------------------------------- 1 | // +build !ignore_autogenerated 2 | 3 | /* 4 | Copyright The Kubernetes Authors. 5 | 6 | Licensed under the Apache License, Version 2.0 (the "License"); 7 | you may not use this file except in compliance with the License. 8 | You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, software 13 | distributed under the License is distributed on an "AS IS" BASIS, 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | */ 18 | 19 | // Code generated by deepcopy-gen. DO NOT EDIT. 20 | 21 | package resource 22 | 23 | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 24 | func (in *Quantity) DeepCopyInto(out *Quantity) { 25 | *out = in.DeepCopy() 26 | return 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/extensions.go: -------------------------------------------------------------------------------- 1 | package cloudevents 2 | 3 | import ( 4 | "regexp" 5 | "strings" 6 | ) 7 | 8 | const ( 9 | // DataContentEncodingKey is the key to DeprecatedDataContentEncoding for versions that do not support data content encoding 10 | // directly. 11 | DataContentEncodingKey = "datacontentencoding" 12 | 13 | // EventTypeVersionKey is the key to EventTypeVersion for versions that do not support event type version directly. 14 | EventTypeVersionKey = "eventtypeversion" 15 | 16 | // SubjectKey is the key to Subject for versions that do not support subject directly. 17 | SubjectKey = "subject" 18 | ) 19 | 20 | func caseInsensitiveSearch(key string, space map[string]interface{}) (interface{}, bool) { 21 | lkey := strings.ToLower(key) 22 | for k, v := range space { 23 | if strings.EqualFold(lkey, strings.ToLower(k)) { 24 | return v, true 25 | } 26 | } 27 | return nil, false 28 | } 29 | 30 | var IsAlphaNumericLowercaseLetters = regexp.MustCompile(`^[a-z0-9]+$`).MatchString 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/collate/index.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package collate 6 | 7 | import "golang.org/x/text/internal/colltab" 8 | 9 | const blockSize = 64 10 | 11 | func getTable(t tableIndex) *colltab.Table { 12 | return &colltab.Table{ 13 | Index: colltab.Trie{ 14 | Index0: mainLookup[:][blockSize*t.lookupOffset:], 15 | Values0: mainValues[:][blockSize*t.valuesOffset:], 16 | Index: mainLookup[:], 17 | Values: mainValues[:], 18 | }, 19 | ExpandElem: mainExpandElem[:], 20 | ContractTries: colltab.ContractTrieSet(mainCTEntries[:]), 21 | ContractElem: mainContractElem[:], 22 | MaxContractLen: 18, 23 | VariableTop: varTop, 24 | } 25 | } 26 | 27 | // tableIndex holds information for constructing a table 28 | // for a certain locale based on the main table. 29 | type tableIndex struct { 30 | lookupOffset uint32 31 | valuesOffset uint32 32 | } 33 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/version/buildinfo.go: -------------------------------------------------------------------------------- 1 | // +build go1.12 2 | 3 | package version 4 | 5 | import ( 6 | "fmt" 7 | "runtime/debug" 8 | ) 9 | 10 | func printBuildInfo() { 11 | if info, ok := debug.ReadBuildInfo(); ok { 12 | fmt.Println("Main module:") 13 | printModule(&info.Main) 14 | fmt.Println("Dependencies:") 15 | for _, dep := range info.Deps { 16 | printModule(dep) 17 | } 18 | } else { 19 | fmt.Println("Built without Go modules") 20 | } 21 | } 22 | 23 | func buildInfoVersion() (string, bool) { 24 | info, ok := debug.ReadBuildInfo() 25 | if !ok { 26 | return "", false 27 | } 28 | if info.Main.Version == "(devel)" { 29 | return "", false 30 | } 31 | return info.Main.Version, true 32 | } 33 | 34 | func printModule(m *debug.Module) { 35 | fmt.Printf("\t%s", m.Path) 36 | if m.Version != "(devel)" { 37 | fmt.Printf("@%s", m.Version) 38 | } 39 | if m.Sum != "" { 40 | fmt.Printf(" (sum: %s)", m.Sum) 41 | } 42 | if m.Replace != nil { 43 | fmt.Printf(" (replace: %s)", m.Replace.Path) 44 | } 45 | fmt.Println() 46 | } 47 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/types/typeutil/imports.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package typeutil 6 | 7 | import "go/types" 8 | 9 | // Dependencies returns all dependencies of the specified packages. 10 | // 11 | // Dependent packages appear in topological order: if package P imports 12 | // package Q, Q appears earlier than P in the result. 13 | // The algorithm follows import statements in the order they 14 | // appear in the source code, so the result is a total order. 15 | // 16 | func Dependencies(pkgs ...*types.Package) []*types.Package { 17 | var result []*types.Package 18 | seen := make(map[*types.Package]bool) 19 | var visit func(pkgs []*types.Package) 20 | visit = func(pkgs []*types.Package) { 21 | for _, p := range pkgs { 22 | if !seen[p] { 23 | seen[p] = true 24 | visit(p.Imports()) 25 | result = append(result, p) 26 | } 27 | } 28 | } 29 | visit(pkgs) 30 | return result 31 | } 32 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/go/types/typeutil/imports.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package typeutil 6 | 7 | import "go/types" 8 | 9 | // Dependencies returns all dependencies of the specified packages. 10 | // 11 | // Dependent packages appear in topological order: if package P imports 12 | // package Q, Q appears earlier than P in the result. 13 | // The algorithm follows import statements in the order they 14 | // appear in the source code, so the result is a total order. 15 | // 16 | func Dependencies(pkgs ...*types.Package) []*types.Package { 17 | var result []*types.Package 18 | seen := make(map[*types.Package]bool) 19 | var visit func(pkgs []*types.Package) 20 | visit = func(pkgs []*types.Package) { 21 | for _, p := range pkgs { 22 | if !seen[p] { 23 | seen[p] = true 24 | visit(p.Imports()) 25 | result = append(result, p) 26 | } 27 | } 28 | } 29 | visit(pkgs) 30 | return result 31 | } 32 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/stats/internal/record.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | package internal 16 | 17 | import ( 18 | "go.opencensus.io/tag" 19 | ) 20 | 21 | // DefaultRecorder will be called for each Record call. 22 | var DefaultRecorder func(tags *tag.Map, measurement interface{}, attachments map[string]interface{}) 23 | 24 | // SubscriptionReporter reports when a view subscribed with a measure. 25 | var SubscriptionReporter func(measure string) 26 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/stats/units.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | // 15 | 16 | package stats 17 | 18 | // Units are encoded according to the case-sensitive abbreviations from the 19 | // Unified Code for Units of Measure: http://unitsofmeasure.org/ucum.html 20 | const ( 21 | UnitNone = "1" // Deprecated: Use UnitDimensionless. 22 | UnitDimensionless = "1" 23 | UnitBytes = "By" 24 | UnitMilliseconds = "ms" 25 | UnitSeconds = "s" 26 | ) 27 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/tag/profile_19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | // +build go1.9 16 | 17 | package tag 18 | 19 | import ( 20 | "context" 21 | "runtime/pprof" 22 | ) 23 | 24 | func do(ctx context.Context, f func(ctx context.Context)) { 25 | m := FromContext(ctx) 26 | keyvals := make([]string, 0, 2*len(m.m)) 27 | for k, v := range m.m { 28 | keyvals = append(keyvals, k.Name(), v.value) 29 | } 30 | pprof.Do(ctx, pprof.Labels(keyvals...), f) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/marshal.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package uuid 6 | 7 | import "fmt" 8 | 9 | // MarshalText implements encoding.TextMarshaler. 10 | func (uuid UUID) MarshalText() ([]byte, error) { 11 | var js [36]byte 12 | encodeHex(js[:], uuid) 13 | return js[:], nil 14 | } 15 | 16 | // UnmarshalText implements encoding.TextUnmarshaler. 17 | func (uuid *UUID) UnmarshalText(data []byte) error { 18 | id, err := ParseBytes(data) 19 | if err == nil { 20 | *uuid = id 21 | } 22 | return err 23 | } 24 | 25 | // MarshalBinary implements encoding.BinaryMarshaler. 26 | func (uuid UUID) MarshalBinary() ([]byte, error) { 27 | return uuid[:], nil 28 | } 29 | 30 | // UnmarshalBinary implements encoding.BinaryUnmarshaler. 31 | func (uuid *UUID) UnmarshalBinary(data []byte) error { 32 | if len(data) != 16 { 33 | return fmt.Errorf("invalid UUID (got %d bytes)", len(data)) 34 | } 35 | copy(uuid[:], data) 36 | return nil 37 | } 38 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/tag/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | // 15 | 16 | /* 17 | Package tag contains OpenCensus tags. 18 | 19 | Tags are key-value pairs. Tags provide additional cardinality to 20 | the OpenCensus instrumentation data. 21 | 22 | Tags can be propagated on the wire and in the same 23 | process via context.Context. Encode and Decode should be 24 | used to represent tags into their binary propagation form. 25 | */ 26 | package tag // import "go.opencensus.io/tag" 27 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/metric/metricproducer/producer.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | package metricproducer 16 | 17 | import ( 18 | "go.opencensus.io/metric/metricdata" 19 | ) 20 | 21 | // Producer is a source of metrics. 22 | type Producer interface { 23 | // Read should return the current values of all metrics supported by this 24 | // metric provider. 25 | // The returned metrics should be unique for each combination of name and 26 | // resource. 27 | Read() []*metricdata.Metric 28 | } 29 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/trace/trace_go11.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | // +build go1.11 16 | 17 | package trace 18 | 19 | import ( 20 | "context" 21 | t "runtime/trace" 22 | ) 23 | 24 | func startExecutionTracerTask(ctx context.Context, name string) (context.Context, func()) { 25 | if !t.IsEnabled() { 26 | // Avoid additional overhead if 27 | // runtime/trace is not enabled. 28 | return ctx, func() {} 29 | } 30 | nctx, task := t.NewTask(ctx, name) 31 | return nctx, task.End 32 | } 33 | -------------------------------------------------------------------------------- /vendor/go.uber.org/multierr/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | Releases 2 | ======== 3 | 4 | v1.4.0 (2019-11-04) 5 | =================== 6 | 7 | - Add `AppendInto` function to more ergonomically build errors inside a 8 | loop. 9 | 10 | 11 | v1.3.0 (2019-10-29) 12 | =================== 13 | 14 | - Switch to Go modules. 15 | 16 | 17 | v1.2.0 (2019-09-26) 18 | =================== 19 | 20 | - Support extracting and matching against wrapped errors with `errors.As` 21 | and `errors.Is`. 22 | 23 | 24 | v1.1.0 (2017-06-30) 25 | =================== 26 | 27 | - Added an `Errors(error) []error` function to extract the underlying list of 28 | errors for a multierr error. 29 | 30 | 31 | v1.0.0 (2017-05-31) 32 | =================== 33 | 34 | No changes since v0.2.0. This release is committing to making no breaking 35 | changes to the current API in the 1.X series. 36 | 37 | 38 | v0.2.0 (2017-04-11) 39 | =================== 40 | 41 | - Repeatedly appending to the same error is now faster due to fewer 42 | allocations. 43 | 44 | 45 | v0.1.0 (2017-31-03) 46 | =================== 47 | 48 | - Initial release 49 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/node_net.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !js 6 | 7 | package uuid 8 | 9 | import "net" 10 | 11 | var interfaces []net.Interface // cached list of interfaces 12 | 13 | // getHardwareInterface returns the name and hardware address of interface name. 14 | // If name is "" then the name and hardware address of one of the system's 15 | // interfaces is returned. If no interfaces are found (name does not exist or 16 | // there are no interfaces) then "", nil is returned. 17 | // 18 | // Only addresses of at least 6 bytes are returned. 19 | func getHardwareInterface(name string) (string, []byte) { 20 | if interfaces == nil { 21 | var err error 22 | interfaces, err = net.Interfaces() 23 | if err != nil { 24 | return "", nil 25 | } 26 | } 27 | for _, ifs := range interfaces { 28 | if len(ifs.HardwareAddr) >= 6 && (name == "" || name == ifs.Name) { 29 | return ifs.Name, ifs.HardwareAddr 30 | } 31 | } 32 | return "", nil 33 | } 34 | -------------------------------------------------------------------------------- /bin/apply: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | PATH=$HOME/.gloo/bin:$PATH 4 | 5 | CLUSTER_NAME=tekton-dream 6 | 7 | export KUBECONFIG="$(kind get kubeconfig-path --name="$CLUSTER_NAME")" 8 | 9 | # Install knative 10 | glooctl install knative --install-knative-version=0.10.0 --install-eventing-version=0.10.0 -e -k 11 | 12 | # Update knative to latest release 13 | kubectl apply --filename https://github.com/knative/serving/releases/download/v0.10.0/serving.yaml \ 14 | --filename https://github.com/knative/eventing/releases/download/v0.10.0/release.yaml \ 15 | --filename https://github.com/knative/serving/releases/download/v0.10.0/monitoring.yaml 16 | 17 | # Install Tekton Pipelines 18 | kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml 19 | 20 | # Install Tekton Triggers 21 | kubectl apply --filename https://storage.googleapis.com/tekton-releases/triggers/latest/release.yaml 22 | 23 | # Create our NS right up front 24 | kubectl create ns "$CLUSTER_NAME" 25 | 26 | # apply manifests 27 | kubectl apply -f manifests/ 28 | 29 | # ready for actors? 30 | echo "Done! Time to create some events" 31 | 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/fastwalk/fastwalk_portable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build appengine !linux,!darwin,!freebsd,!openbsd,!netbsd 6 | 7 | package fastwalk 8 | 9 | import ( 10 | "io/ioutil" 11 | "os" 12 | ) 13 | 14 | // readDir calls fn for each directory entry in dirName. 15 | // It does not descend into directories or follow symlinks. 16 | // If fn returns a non-nil error, readDir returns with that error 17 | // immediately. 18 | func readDir(dirName string, fn func(dirName, entName string, typ os.FileMode) error) error { 19 | fis, err := ioutil.ReadDir(dirName) 20 | if err != nil { 21 | return err 22 | } 23 | skipFiles := false 24 | for _, fi := range fis { 25 | if fi.Mode().IsRegular() && skipFiles { 26 | continue 27 | } 28 | if err := fn(dirName, fi.Name(), fi.Mode()&os.ModeType); err != nil { 29 | if err == SkipFiles { 30 | skipFiles = true 31 | continue 32 | } 33 | return err 34 | } 35 | } 36 | return nil 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/cloudevents/sdk-go 2 | 3 | require ( 4 | cloud.google.com/go v0.40.0 5 | contrib.go.opencensus.io/exporter/prometheus v0.1.0 6 | github.com/Azure/azure-sdk-for-go v30.1.0+incompatible // indirect 7 | github.com/Azure/go-autorest/autorest v0.2.0 // indirect 8 | github.com/Azure/go-autorest/autorest/to v0.2.0 // indirect 9 | github.com/Azure/go-autorest/autorest/validation v0.1.0 // indirect 10 | github.com/fortytw2/leaktest v1.3.0 // indirect 11 | github.com/google/go-cmp v0.3.0 12 | github.com/google/uuid v1.1.1 13 | github.com/kelseyhightower/envconfig v1.4.0 14 | github.com/nats-io/nats-server/v2 v2.0.0 // indirect 15 | github.com/nats-io/nats.go v1.8.1 16 | github.com/pkg/errors v0.8.1 // indirect 17 | github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829 // indirect 18 | github.com/stretchr/testify v1.3.0 19 | go.opencensus.io v0.22.0 20 | go.uber.org/atomic v1.4.0 // indirect 21 | go.uber.org/multierr v1.1.0 // indirect 22 | go.uber.org/zap v1.10.0 23 | golang.org/x/sync v0.0.0-20190423024810-112230192c58 24 | pack.ag/amqp v0.11.0 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/fields/requirements.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2016 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package fields 18 | 19 | import "k8s.io/apimachinery/pkg/selection" 20 | 21 | // Requirements is AND of all requirements. 22 | type Requirements []Requirement 23 | 24 | // Requirement contains a field, a value, and an operator that relates the field and value. 25 | // This is currently for reading internal selection information of field selector. 26 | type Requirement struct { 27 | Operator selection.Operator 28 | Field string 29 | Value string 30 | } 31 | -------------------------------------------------------------------------------- /vendor/go.uber.org/multierr/Makefile: -------------------------------------------------------------------------------- 1 | # Directory to put `go install`ed binaries in. 2 | export GOBIN ?= $(shell pwd)/bin 3 | 4 | GO_FILES := $(shell \ 5 | find . '(' -path '*/.*' -o -path './vendor' ')' -prune \ 6 | -o -name '*.go' -print | cut -b3-) 7 | 8 | .PHONY: build 9 | build: 10 | go build ./... 11 | 12 | .PHONY: test 13 | test: 14 | go test -race ./... 15 | 16 | .PHONY: gofmt 17 | gofmt: 18 | $(eval FMT_LOG := $(shell mktemp -t gofmt.XXXXX)) 19 | @gofmt -e -s -l $(GO_FILES) > $(FMT_LOG) || true 20 | @[ ! -s "$(FMT_LOG)" ] || (echo "gofmt failed:" | cat - $(FMT_LOG) && false) 21 | 22 | .PHONY: golint 23 | golint: 24 | @go install golang.org/x/lint/golint 25 | @$(GOBIN)/golint ./... 26 | 27 | .PHONY: staticcheck 28 | staticcheck: 29 | @go install honnef.co/go/tools/cmd/staticcheck 30 | @$(GOBIN)/staticcheck ./... 31 | 32 | .PHONY: lint 33 | lint: gofmt golint staticcheck 34 | 35 | .PHONY: cover 36 | cover: 37 | go test -coverprofile=cover.out -coverpkg=./... -v ./... 38 | go tool cover -html=cover.out -o cover.html 39 | 40 | update-license: 41 | @go install go.uber.org/tools/update-license 42 | @$(GOBIN)/update-license $(GO_FILES) 43 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Dominik Honnef 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /vendor/go.uber.org/tools/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 Uber Technologies, Inc. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/metric/metricdata/unit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | package metricdata 16 | 17 | // Unit is a string encoded according to the case-sensitive abbreviations from the 18 | // Unified Code for Units of Measure: http://unitsofmeasure.org/ucum.html 19 | type Unit string 20 | 21 | // Predefined units. To record against a unit not represented here, create your 22 | // own Unit type constant from a string. 23 | const ( 24 | UnitDimensionless Unit = "1" 25 | UnitBytes Unit = "By" 26 | UnitMilliseconds Unit = "ms" 27 | ) 28 | -------------------------------------------------------------------------------- /vendor/go.uber.org/atomic/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Uber Technologies, Inc. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/go.uber.org/multierr/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 Uber Technologies, Inc. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/go.uber.org/zap/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016-2017 Uber Technologies, Inc. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.defaults.go: -------------------------------------------------------------------------------- 1 | // +build !ignore_autogenerated 2 | 3 | /* 4 | Copyright The Kubernetes Authors. 5 | 6 | Licensed under the Apache License, Version 2.0 (the "License"); 7 | you may not use this file except in compliance with the License. 8 | You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, software 13 | distributed under the License is distributed on an "AS IS" BASIS, 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | */ 18 | 19 | // Code generated by defaulter-gen. DO NOT EDIT. 20 | 21 | package v1 22 | 23 | import ( 24 | runtime "k8s.io/apimachinery/pkg/runtime" 25 | ) 26 | 27 | // RegisterDefaults adds defaulters functions to the given scheme. 28 | // Public to allow building arbitrary schemes. 29 | // All generated defaulters are covering - they call all nested defaulters. 30 | func RegisterDefaults(scheme *runtime.Scheme) error { 31 | return nil 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/types/allocate.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import "reflect" 4 | 5 | // Allocate allocates a new instance of type t and returns: 6 | // asPtr is of type t if t is a pointer type and of type &t otherwise 7 | // asValue is a Value of type t pointing to the same data as asPtr 8 | func Allocate(obj interface{}) (asPtr interface{}, asValue reflect.Value) { 9 | if obj == nil { 10 | return nil, reflect.Value{} 11 | } 12 | 13 | switch t := reflect.TypeOf(obj); t.Kind() { 14 | case reflect.Ptr: 15 | reflectPtr := reflect.New(t.Elem()) 16 | asPtr = reflectPtr.Interface() 17 | asValue = reflectPtr 18 | case reflect.Map: 19 | reflectPtr := reflect.MakeMap(t) 20 | asPtr = reflectPtr.Interface() 21 | asValue = reflectPtr 22 | case reflect.String: 23 | reflectPtr := reflect.New(t) 24 | asPtr = "" 25 | asValue = reflectPtr.Elem() 26 | case reflect.Slice: 27 | reflectPtr := reflect.MakeSlice(t, 0, 0) 28 | asPtr = reflectPtr.Interface() 29 | asValue = reflectPtr 30 | default: 31 | reflectPtr := reflect.New(t) 32 | asPtr = reflectPtr.Interface() 33 | asValue = reflectPtr.Elem() 34 | } 35 | return 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/COPYING: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 TOML authors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/cmd/tomlv/COPYING: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 TOML authors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/cmd/toml-test-decoder/COPYING: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 TOML authors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/cmd/toml-test-encoder/COPYING: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 TOML authors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/transport/codec.go: -------------------------------------------------------------------------------- 1 | package transport 2 | 3 | import ( 4 | "context" 5 | "fmt" 6 | 7 | "github.com/cloudevents/sdk-go/pkg/cloudevents" 8 | ) 9 | 10 | // Codec is the interface for transport codecs to convert between transport 11 | // specific payloads and the Message interface. 12 | type Codec interface { 13 | Encode(context.Context, cloudevents.Event) (Message, error) 14 | Decode(context.Context, Message) (*cloudevents.Event, error) 15 | } 16 | 17 | // ErrMessageEncodingUnknown is an error produced when the encoding for an incoming 18 | // message can not be understood. 19 | type ErrMessageEncodingUnknown struct { 20 | codec string 21 | transport string 22 | } 23 | 24 | // NewErrMessageEncodingUnknown makes a new ErrMessageEncodingUnknown. 25 | func NewErrMessageEncodingUnknown(codec, transport string) *ErrMessageEncodingUnknown { 26 | return &ErrMessageEncodingUnknown{ 27 | codec: codec, 28 | transport: transport, 29 | } 30 | } 31 | 32 | // Error implements error.Error 33 | func (e *ErrMessageEncodingUnknown) Error() string { 34 | return fmt.Sprintf("message encoding unknown for %s codec on %s transport", e.codec, e.transport) 35 | } 36 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/conversion/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2014 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | // Package conversion provides go object versioning. 18 | // 19 | // Specifically, conversion provides a way for you to define multiple versions 20 | // of the same object. You may write functions which implement conversion logic, 21 | // but for the fields which did not change, copying is automated. This makes it 22 | // easy to modify the structures you use in memory without affecting the format 23 | // you store on disk or respond to in your external API calls. 24 | package conversion // import "k8s.io/apimachinery/pkg/conversion" 25 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/selection/operator.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2016 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package selection 18 | 19 | // Operator represents a key/field's relationship to value(s). 20 | // See labels.Requirement and fields.Requirement for more details. 21 | type Operator string 22 | 23 | const ( 24 | DoesNotExist Operator = "!" 25 | Equals Operator = "=" 26 | DoubleEquals Operator = "==" 27 | In Operator = "in" 28 | NotEquals Operator = "!=" 29 | NotIn Operator = "notin" 30 | Exists Operator = "exists" 31 | GreaterThan Operator = "gt" 32 | LessThan Operator = "lt" 33 | ) 34 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/trace/evictedqueue.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | package trace 16 | 17 | type evictedQueue struct { 18 | queue []interface{} 19 | capacity int 20 | droppedCount int 21 | } 22 | 23 | func newEvictedQueue(capacity int) *evictedQueue { 24 | eq := &evictedQueue{ 25 | capacity: capacity, 26 | queue: make([]interface{}, 0), 27 | } 28 | 29 | return eq 30 | } 31 | 32 | func (eq *evictedQueue) add(value interface{}) { 33 | if len(eq.queue) == eq.capacity { 34 | eq.queue = eq.queue[1:] 35 | eq.droppedCount++ 36 | } 37 | eq.queue = append(eq.queue, value) 38 | } 39 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/types/patch.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package types 18 | 19 | // Similarly to above, these are constants to support HTTP PATCH utilized by 20 | // both the client and server that didn't make sense for a whole package to be 21 | // dedicated to. 22 | type PatchType string 23 | 24 | const ( 25 | JSONPatchType PatchType = "application/json-patch+json" 26 | MergePatchType PatchType = "application/merge-patch+json" 27 | StrategicMergePatchType PatchType = "application/strategic-merge-patch+json" 28 | ApplyPatchType PatchType = "application/apply-patch+yaml" 29 | ) 30 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package toml provides facilities for decoding and encoding TOML configuration 3 | files via reflection. There is also support for delaying decoding with 4 | the Primitive type, and querying the set of keys in a TOML document with the 5 | MetaData type. 6 | 7 | The specification implemented: https://github.com/toml-lang/toml 8 | 9 | The sub-command github.com/BurntSushi/toml/cmd/tomlv can be used to verify 10 | whether a file is a valid TOML document. It can also be used to print the 11 | type of each key in a TOML document. 12 | 13 | Testing 14 | 15 | There are two important types of tests used for this package. The first is 16 | contained inside '*_test.go' files and uses the standard Go unit testing 17 | framework. These tests are primarily devoted to holistically testing the 18 | decoder and encoder. 19 | 20 | The second type of testing is used to verify the implementation's adherence 21 | to the TOML specification. These tests have been factored into their own 22 | project: https://github.com/BurntSushi/toml-test 23 | 24 | The reason the tests are in a separate project is so that they can be used by 25 | any implementation of TOML. Namely, it is language agnostic. 26 | */ 27 | package toml 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/packages/loadmode_string.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package packages 6 | 7 | import ( 8 | "fmt" 9 | "strings" 10 | ) 11 | 12 | var allModes = []LoadMode{ 13 | NeedName, 14 | NeedFiles, 15 | NeedCompiledGoFiles, 16 | NeedImports, 17 | NeedDeps, 18 | NeedExportsFile, 19 | NeedTypes, 20 | NeedSyntax, 21 | NeedTypesInfo, 22 | NeedTypesSizes, 23 | } 24 | 25 | var modeStrings = []string{ 26 | "NeedName", 27 | "NeedFiles", 28 | "NeedCompiledGoFiles", 29 | "NeedImports", 30 | "NeedDeps", 31 | "NeedExportsFile", 32 | "NeedTypes", 33 | "NeedSyntax", 34 | "NeedTypesInfo", 35 | "NeedTypesSizes", 36 | } 37 | 38 | func (mod LoadMode) String() string { 39 | m := mod 40 | if m == 0 { 41 | return fmt.Sprintf("LoadMode(0)") 42 | } 43 | var out []string 44 | for i, x := range allModes { 45 | if x > m { 46 | break 47 | } 48 | if (m & x) != 0 { 49 | out = append(out, modeStrings[i]) 50 | m = m ^ x 51 | } 52 | } 53 | if m != 0 { 54 | out = append(out, "Unknown") 55 | } 56 | return fmt.Sprintf("LoadMode(%s)", strings.Join(out, "|")) 57 | } 58 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/unused/edge.go: -------------------------------------------------------------------------------- 1 | package unused 2 | 3 | //go:generate stringer -type edgeKind 4 | type edgeKind uint64 5 | 6 | func (e edgeKind) is(o edgeKind) bool { 7 | return e&o != 0 8 | } 9 | 10 | const ( 11 | edgeAlias edgeKind = 1 << iota 12 | edgeBlankField 13 | edgeAnonymousStruct 14 | edgeCgoExported 15 | edgeConstGroup 16 | edgeElementType 17 | edgeEmbeddedInterface 18 | edgeExportedConstant 19 | edgeExportedField 20 | edgeExportedFunction 21 | edgeExportedMethod 22 | edgeExportedType 23 | edgeExportedVariable 24 | edgeExtendsExportedFields 25 | edgeExtendsExportedMethodSet 26 | edgeFieldAccess 27 | edgeFunctionArgument 28 | edgeFunctionResult 29 | edgeFunctionSignature 30 | edgeImplements 31 | edgeInstructionOperand 32 | edgeInterfaceCall 33 | edgeInterfaceMethod 34 | edgeKeyType 35 | edgeLinkname 36 | edgeMainFunction 37 | edgeNamedType 38 | edgeNetRPCRegister 39 | edgeNoCopySentinel 40 | edgeProvidesMethod 41 | edgeReceiver 42 | edgeRuntimeFunction 43 | edgeSignature 44 | edgeStructConversion 45 | edgeTestSink 46 | edgeTupleElement 47 | edgeType 48 | edgeTypeName 49 | edgeUnderlyingType 50 | edgePointerType 51 | edgeUnsafeConversion 52 | edgeUsedConstant 53 | edgeVarDecl 54 | ) 55 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/content_type.go: -------------------------------------------------------------------------------- 1 | package cloudevents 2 | 3 | const ( 4 | TextJSON = "text/json" 5 | ApplicationJSON = "application/json" 6 | ApplicationXML = "application/xml" 7 | ApplicationCloudEventsJSON = "application/cloudevents+json" 8 | ApplicationCloudEventsBatchJSON = "application/cloudevents-batch+json" 9 | ) 10 | 11 | // StringOfApplicationJSON returns a string pointer to "application/json" 12 | func StringOfApplicationJSON() *string { 13 | a := ApplicationJSON 14 | return &a 15 | } 16 | 17 | // StringOfApplicationXML returns a string pointer to "application/xml" 18 | func StringOfApplicationXML() *string { 19 | a := ApplicationXML 20 | return &a 21 | } 22 | 23 | // StringOfApplicationCloudEventsJSON returns a string pointer to 24 | // "application/cloudevents+json" 25 | func StringOfApplicationCloudEventsJSON() *string { 26 | a := ApplicationCloudEventsJSON 27 | return &a 28 | } 29 | 30 | // StringOfApplicationCloudEventsBatchJSON returns a string pointer to 31 | // "application/cloudevents-batch+json" 32 | func StringOfApplicationCloudEventsBatchJSON() *string { 33 | a := ApplicationCloudEventsBatchJSON 34 | return &a 35 | } 36 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/conversion/deep_equal.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package conversion 18 | 19 | import ( 20 | "k8s.io/apimachinery/third_party/forked/golang/reflect" 21 | ) 22 | 23 | // The code for this type must be located in third_party, since it forks from 24 | // go std lib. But for convenience, we expose the type here, too. 25 | type Equalities struct { 26 | reflect.Equalities 27 | } 28 | 29 | // For convenience, panics on errors 30 | func EqualitiesOrDie(funcs ...interface{}) Equalities { 31 | e := Equalities{reflect.Equalities{}} 32 | if err := e.AddFuncs(funcs...); err != nil { 33 | panic(err) 34 | } 35 | return e 36 | } 37 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/functions/loops.go: -------------------------------------------------------------------------------- 1 | package functions 2 | 3 | import "honnef.co/go/tools/ssa" 4 | 5 | type Loop struct{ ssa.BlockSet } 6 | 7 | func FindLoops(fn *ssa.Function) []Loop { 8 | if fn.Blocks == nil { 9 | return nil 10 | } 11 | tree := fn.DomPreorder() 12 | var sets []Loop 13 | for _, h := range tree { 14 | for _, n := range h.Preds { 15 | if !h.Dominates(n) { 16 | continue 17 | } 18 | // n is a back-edge to h 19 | // h is the loop header 20 | if n == h { 21 | set := Loop{} 22 | set.Add(n) 23 | sets = append(sets, set) 24 | continue 25 | } 26 | set := Loop{} 27 | set.Add(h) 28 | set.Add(n) 29 | for _, b := range allPredsBut(n, h, nil) { 30 | set.Add(b) 31 | } 32 | sets = append(sets, set) 33 | } 34 | } 35 | return sets 36 | } 37 | 38 | func allPredsBut(b, but *ssa.BasicBlock, list []*ssa.BasicBlock) []*ssa.BasicBlock { 39 | outer: 40 | for _, pred := range b.Preds { 41 | if pred == but { 42 | continue 43 | } 44 | for _, p := range list { 45 | // TODO improve big-o complexity of this function 46 | if pred == p { 47 | continue outer 48 | } 49 | } 50 | list = append(list, pred) 51 | list = allPredsBut(pred, but, list) 52 | } 53 | return list 54 | } 55 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/event_response.go: -------------------------------------------------------------------------------- 1 | package cloudevents 2 | 3 | // EventResponse represents the canonical representation of a Response to a 4 | // CloudEvent from a receiver. Response implementation is Transport dependent. 5 | type EventResponse struct { 6 | Status int 7 | Event *Event 8 | Reason string 9 | // Context is transport specific struct to allow for controlling transport 10 | // response details. 11 | // For example, see http.TransportResponseContext. 12 | Context interface{} 13 | } 14 | 15 | // RespondWith sets up the instance of EventResponse to be set with status and 16 | // an event. Response implementation is Transport dependent. 17 | func (e *EventResponse) RespondWith(status int, event *Event) { 18 | if e == nil { 19 | // if nil, response not supported 20 | return 21 | } 22 | e.Status = status 23 | if event != nil { 24 | e.Event = event 25 | } 26 | } 27 | 28 | // Error sets the instance of EventResponse to be set with an error code and 29 | // reason string. Response implementation is Transport dependent. 30 | func (e *EventResponse) Error(status int, reason string) { 31 | if e == nil { 32 | // if nil, response not supported 33 | return 34 | } 35 | e.Status = status 36 | e.Reason = reason 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/transport/error.go: -------------------------------------------------------------------------------- 1 | package transport 2 | 3 | import "fmt" 4 | 5 | // ErrTransportMessageConversion is an error produced when the transport 6 | // message can not be converted. 7 | type ErrTransportMessageConversion struct { 8 | fatal bool 9 | handled bool 10 | transport string 11 | message string 12 | } 13 | 14 | // NewErrMessageEncodingUnknown makes a new ErrMessageEncodingUnknown. 15 | func NewErrTransportMessageConversion(transport, message string, handled, fatal bool) *ErrTransportMessageConversion { 16 | return &ErrTransportMessageConversion{ 17 | transport: transport, 18 | message: message, 19 | handled: handled, 20 | fatal: fatal, 21 | } 22 | } 23 | 24 | // IsFatal reports if this error should be considered fatal. 25 | func (e *ErrTransportMessageConversion) IsFatal() bool { 26 | return e.fatal 27 | } 28 | 29 | // Handled reports if this error should be considered accepted and no further action. 30 | func (e *ErrTransportMessageConversion) Handled() bool { 31 | return e.handled 32 | } 33 | 34 | // Error implements error.Error 35 | func (e *ErrTransportMessageConversion) Error() string { 36 | return fmt.Sprintf("transport %s failed to convert message: %s", e.transport, e.message) 37 | } 38 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/ssautil/ssautil.go: -------------------------------------------------------------------------------- 1 | package ssautil 2 | 3 | import ( 4 | "honnef.co/go/tools/ssa" 5 | ) 6 | 7 | func Reachable(from, to *ssa.BasicBlock) bool { 8 | if from == to { 9 | return true 10 | } 11 | if from.Dominates(to) { 12 | return true 13 | } 14 | 15 | found := false 16 | Walk(from, func(b *ssa.BasicBlock) bool { 17 | if b == to { 18 | found = true 19 | return false 20 | } 21 | return true 22 | }) 23 | return found 24 | } 25 | 26 | func Walk(b *ssa.BasicBlock, fn func(*ssa.BasicBlock) bool) { 27 | seen := map[*ssa.BasicBlock]bool{} 28 | wl := []*ssa.BasicBlock{b} 29 | for len(wl) > 0 { 30 | b := wl[len(wl)-1] 31 | wl = wl[:len(wl)-1] 32 | if seen[b] { 33 | continue 34 | } 35 | seen[b] = true 36 | if !fn(b) { 37 | continue 38 | } 39 | wl = append(wl, b.Succs...) 40 | } 41 | } 42 | 43 | func Vararg(x *ssa.Slice) ([]ssa.Value, bool) { 44 | var out []ssa.Value 45 | slice, ok := x.X.(*ssa.Alloc) 46 | if !ok || slice.Comment != "varargs" { 47 | return nil, false 48 | } 49 | for _, ref := range *slice.Referrers() { 50 | idx, ok := ref.(*ssa.IndexAddr) 51 | if !ok { 52 | continue 53 | } 54 | v := (*idx.Referrers())[0].(*ssa.Store).Val 55 | out = append(out, v) 56 | } 57 | return out, true 58 | } 59 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/client/defaulters.go: -------------------------------------------------------------------------------- 1 | package client 2 | 3 | import ( 4 | "context" 5 | "time" 6 | 7 | "github.com/cloudevents/sdk-go/pkg/cloudevents" 8 | "github.com/google/uuid" 9 | ) 10 | 11 | // EventDefaulter is the function signature for extensions that are able 12 | // to perform event defaulting. 13 | type EventDefaulter func(ctx context.Context, event cloudevents.Event) cloudevents.Event 14 | 15 | // DefaultIDToUUIDIfNotSet will inspect the provided event and assign a UUID to 16 | // context.ID if it is found to be empty. 17 | func DefaultIDToUUIDIfNotSet(ctx context.Context, event cloudevents.Event) cloudevents.Event { 18 | if event.Context != nil { 19 | if event.ID() == "" { 20 | event.Context = event.Context.Clone() 21 | event.SetID(uuid.New().String()) 22 | } 23 | } 24 | return event 25 | } 26 | 27 | // DefaultTimeToNowIfNotSet will inspect the provided event and assign a new 28 | // Timestamp to context.Time if it is found to be nil or zero. 29 | func DefaultTimeToNowIfNotSet(ctx context.Context, event cloudevents.Event) cloudevents.Event { 30 | if event.Context != nil { 31 | if event.Time().IsZero() { 32 | event.Context = event.Context.Clone() 33 | event.SetTime(time.Now()) 34 | } 35 | } 36 | return event 37 | } 38 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/functions/pure.go: -------------------------------------------------------------------------------- 1 | package functions 2 | 3 | import ( 4 | "honnef.co/go/tools/ssa" 5 | ) 6 | 7 | func filterDebug(instr []ssa.Instruction) []ssa.Instruction { 8 | var out []ssa.Instruction 9 | for _, ins := range instr { 10 | if _, ok := ins.(*ssa.DebugRef); !ok { 11 | out = append(out, ins) 12 | } 13 | } 14 | return out 15 | } 16 | 17 | // IsStub reports whether a function is a stub. A function is 18 | // considered a stub if it has no instructions or exactly one 19 | // instruction, which must be either returning only constant values or 20 | // a panic. 21 | func IsStub(fn *ssa.Function) bool { 22 | if len(fn.Blocks) == 0 { 23 | return true 24 | } 25 | if len(fn.Blocks) > 1 { 26 | return false 27 | } 28 | instrs := filterDebug(fn.Blocks[0].Instrs) 29 | if len(instrs) != 1 { 30 | return false 31 | } 32 | 33 | switch instrs[0].(type) { 34 | case *ssa.Return: 35 | // Since this is the only instruction, the return value must 36 | // be a constant. We consider all constants as stubs, not just 37 | // the zero value. This does not, unfortunately, cover zero 38 | // initialised structs, as these cause additional 39 | // instructions. 40 | return true 41 | case *ssa.Panic: 42 | return true 43 | default: 44 | return false 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/context/logger.go: -------------------------------------------------------------------------------- 1 | package context 2 | 3 | import ( 4 | "context" 5 | 6 | "go.uber.org/zap" 7 | ) 8 | 9 | // Opaque key type used to store logger 10 | type loggerKeyType struct{} 11 | 12 | var loggerKey = loggerKeyType{} 13 | 14 | // fallbackLogger is the logger is used when there is no logger attached to the context. 15 | var fallbackLogger *zap.SugaredLogger 16 | 17 | func init() { 18 | if logger, err := zap.NewProduction(); err != nil { 19 | // We failed to create a fallback logger. 20 | fallbackLogger = zap.NewNop().Sugar() 21 | } else { 22 | fallbackLogger = logger.Named("fallback").Sugar() 23 | } 24 | } 25 | 26 | // WithLogger returns a new context with the logger injected into the given context. 27 | func WithLogger(ctx context.Context, logger *zap.SugaredLogger) context.Context { 28 | if logger == nil { 29 | return context.WithValue(ctx, loggerKey, fallbackLogger) 30 | } 31 | return context.WithValue(ctx, loggerKey, logger) 32 | } 33 | 34 | // LoggerFrom returns the logger stored in context. 35 | func LoggerFrom(ctx context.Context) *zap.SugaredLogger { 36 | l := ctx.Value(loggerKey) 37 | if l != nil { 38 | if logger, ok := l.(*zap.SugaredLogger); ok { 39 | return logger 40 | } 41 | } 42 | return fallbackLogger 43 | } 44 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/runtime/register.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package runtime 18 | 19 | import "k8s.io/apimachinery/pkg/runtime/schema" 20 | 21 | // SetGroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta 22 | func (obj *TypeMeta) SetGroupVersionKind(gvk schema.GroupVersionKind) { 23 | obj.APIVersion, obj.Kind = gvk.ToAPIVersionAndKind() 24 | } 25 | 26 | // GroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta 27 | func (obj *TypeMeta) GroupVersionKind() schema.GroupVersionKind { 28 | return schema.FromAPIVersionAndKind(obj.APIVersion, obj.Kind) 29 | } 30 | 31 | func (obj *TypeMeta) GetObjectKind() schema.ObjectKind { return obj } 32 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/version4.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package uuid 6 | 7 | import "io" 8 | 9 | // New creates a new random UUID or panics. New is equivalent to 10 | // the expression 11 | // 12 | // uuid.Must(uuid.NewRandom()) 13 | func New() UUID { 14 | return Must(NewRandom()) 15 | } 16 | 17 | // NewRandom returns a Random (Version 4) UUID. 18 | // 19 | // The strength of the UUIDs is based on the strength of the crypto/rand 20 | // package. 21 | // 22 | // A note about uniqueness derived from the UUID Wikipedia entry: 23 | // 24 | // Randomly generated UUIDs have 122 random bits. One's annual risk of being 25 | // hit by a meteorite is estimated to be one chance in 17 billion, that 26 | // means the probability is about 0.00000000006 (6 × 10−11), 27 | // equivalent to the odds of creating a few tens of trillions of UUIDs in a 28 | // year and having one duplicate. 29 | func NewRandom() (UUID, error) { 30 | var uuid UUID 31 | _, err := io.ReadFull(rander, uuid[:]) 32 | if err != nil { 33 | return Nil, err 34 | } 35 | uuid[6] = (uuid[6] & 0x0f) | 0x40 // Version 4 36 | uuid[8] = (uuid[8] & 0x3f) | 0x80 // Variant is 10 37 | return uuid, nil 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/cloudevents/sdk-go/pkg/cloudevents/transport/http/codec_structured.go: -------------------------------------------------------------------------------- 1 | package http 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | "fmt" 7 | "net/http" 8 | 9 | "github.com/cloudevents/sdk-go/pkg/cloudevents" 10 | "github.com/cloudevents/sdk-go/pkg/cloudevents/transport" 11 | ) 12 | 13 | // CodecStructured represents an structured http transport codec for all versions. 14 | // Intended to be used as a base class. 15 | type CodecStructured struct { 16 | DefaultEncoding Encoding 17 | } 18 | 19 | func (v CodecStructured) encodeStructured(ctx context.Context, e cloudevents.Event) (transport.Message, error) { 20 | header := http.Header{} 21 | header.Set("Content-Type", cloudevents.ApplicationCloudEventsJSON) 22 | 23 | body, err := json.Marshal(e) 24 | if err != nil { 25 | return nil, err 26 | } 27 | 28 | msg := &Message{ 29 | Header: header, 30 | Body: body, 31 | } 32 | 33 | return msg, nil 34 | } 35 | 36 | func (v CodecStructured) decodeStructured(ctx context.Context, version string, msg transport.Message) (*cloudevents.Event, error) { 37 | m, ok := msg.(*Message) 38 | if !ok { 39 | return nil, fmt.Errorf("failed to convert transport.Message to http.Message") 40 | } 41 | event := cloudevents.New(version) 42 | err := json.Unmarshal(m.Body, &event) 43 | return &event, err 44 | } 45 | -------------------------------------------------------------------------------- /vendor/go.uber.org/zap/global_go112.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2019 Uber Technologies, Inc. 2 | // 3 | // Permission is hereby granted, free of charge, to any person obtaining a copy 4 | // of this software and associated documentation files (the "Software"), to deal 5 | // in the Software without restriction, including without limitation the rights 6 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | // copies of the Software, and to permit persons to whom the Software is 8 | // furnished to do so, subject to the following conditions: 9 | // 10 | // The above copyright notice and this permission notice shall be included in 11 | // all copies or substantial portions of the Software. 12 | // 13 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | // THE SOFTWARE. 20 | 21 | // See #682 for more information. 22 | // +build go1.12 23 | 24 | package zap 25 | 26 | const _stdLogDefaultDepth = 1 27 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/cmd/staticcheck/staticcheck.go: -------------------------------------------------------------------------------- 1 | // staticcheck analyses Go code and makes it better. 2 | package main // import "honnef.co/go/tools/cmd/staticcheck" 3 | 4 | import ( 5 | "log" 6 | "os" 7 | 8 | "golang.org/x/tools/go/analysis" 9 | "honnef.co/go/tools/lint" 10 | "honnef.co/go/tools/lint/lintutil" 11 | "honnef.co/go/tools/simple" 12 | "honnef.co/go/tools/staticcheck" 13 | "honnef.co/go/tools/stylecheck" 14 | "honnef.co/go/tools/unused" 15 | ) 16 | 17 | func main() { 18 | fs := lintutil.FlagSet("staticcheck") 19 | wholeProgram := fs.Bool("unused.whole-program", false, "Run unused in whole program mode") 20 | debug := fs.String("debug.unused-graph", "", "Write unused's object graph to `file`") 21 | fs.Parse(os.Args[1:]) 22 | 23 | var cs []*analysis.Analyzer 24 | for _, v := range simple.Analyzers { 25 | cs = append(cs, v) 26 | } 27 | for _, v := range staticcheck.Analyzers { 28 | cs = append(cs, v) 29 | } 30 | for _, v := range stylecheck.Analyzers { 31 | cs = append(cs, v) 32 | } 33 | 34 | u := unused.NewChecker(*wholeProgram) 35 | if *debug != "" { 36 | f, err := os.OpenFile(*debug, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0666) 37 | if err != nil { 38 | log.Fatal(err) 39 | } 40 | u.Debug = f 41 | } 42 | cums := []lint.CumulativeChecker{u} 43 | lintutil.ProcessFlagSet(cs, cums, fs) 44 | } 45 | -------------------------------------------------------------------------------- /vendor/go.uber.org/zap/global_prego112.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2019 Uber Technologies, Inc. 2 | // 3 | // Permission is hereby granted, free of charge, to any person obtaining a copy 4 | // of this software and associated documentation files (the "Software"), to deal 5 | // in the Software without restriction, including without limitation the rights 6 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | // copies of the Software, and to permit persons to whom the Software is 8 | // furnished to do so, subject to the following conditions: 9 | // 10 | // The above copyright notice and this permission notice shall be included in 11 | // all copies or substantial portions of the Software. 12 | // 13 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | // THE SOFTWARE. 20 | 21 | // See #682 for more information. 22 | // +build !go1.12 23 | 24 | package zap 25 | 26 | const _stdLogDefaultDepth = 2 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/flow.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Flow control 6 | 7 | package http2 8 | 9 | // flow is the flow control window's size. 10 | type flow struct { 11 | // n is the number of DATA bytes we're allowed to send. 12 | // A flow is kept both on a conn and a per-stream. 13 | n int32 14 | 15 | // conn points to the shared connection-level flow that is 16 | // shared by all streams on that conn. It is nil for the flow 17 | // that's on the conn directly. 18 | conn *flow 19 | } 20 | 21 | func (f *flow) setConnFlow(cf *flow) { f.conn = cf } 22 | 23 | func (f *flow) available() int32 { 24 | n := f.n 25 | if f.conn != nil && f.conn.n < n { 26 | n = f.conn.n 27 | } 28 | return n 29 | } 30 | 31 | func (f *flow) take(n int32) { 32 | if n > f.available() { 33 | panic("internal error: took too much") 34 | } 35 | f.n -= n 36 | if f.conn != nil { 37 | f.conn.n -= n 38 | } 39 | } 40 | 41 | // add adds n bytes (positive or negative) to the flow control window. 42 | // It returns false if the sum would exceed 2^31-1. 43 | func (f *flow) add(n int32) bool { 44 | sum := f.n + n 45 | if (sum > n) == (f.n > 0) { 46 | f.n = sum 47 | return true 48 | } 49 | return false 50 | } 51 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/watch/zz_generated.deepcopy.go: -------------------------------------------------------------------------------- 1 | // +build !ignore_autogenerated 2 | 3 | /* 4 | Copyright The Kubernetes Authors. 5 | 6 | Licensed under the Apache License, Version 2.0 (the "License"); 7 | you may not use this file except in compliance with the License. 8 | You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, software 13 | distributed under the License is distributed on an "AS IS" BASIS, 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | */ 18 | 19 | // Code generated by deepcopy-gen. DO NOT EDIT. 20 | 21 | package watch 22 | 23 | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 24 | func (in *Event) DeepCopyInto(out *Event) { 25 | *out = *in 26 | if in.Object != nil { 27 | out.Object = in.Object.DeepCopyObject() 28 | } 29 | return 30 | } 31 | 32 | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Event. 33 | func (in *Event) DeepCopy() *Event { 34 | if in == nil { 35 | return nil 36 | } 37 | out := new(Event) 38 | in.DeepCopyInto(out) 39 | return out 40 | } 41 | -------------------------------------------------------------------------------- /vendor/go.uber.org/zap/tools.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2019 Uber Technologies, Inc. 2 | // 3 | // Permission is hereby granted, free of charge, to any person obtaining a copy 4 | // of this software and associated documentation files (the "Software"), to deal 5 | // in the Software without restriction, including without limitation the rights 6 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | // copies of the Software, and to permit persons to whom the Software is 8 | // furnished to do so, subject to the following conditions: 9 | // 10 | // The above copyright notice and this permission notice shall be included in 11 | // all copies or substantial portions of the Software. 12 | // 13 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | // THE SOFTWARE. 20 | 21 | // +build tools 22 | 23 | package zap 24 | 25 | import ( 26 | // Tools we use during development. 27 | _ "golang.org/x/lint/golint" 28 | ) 29 | -------------------------------------------------------------------------------- /vendor/go.uber.org/atomic/tools.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2019 Uber Technologies, Inc. 2 | // 3 | // Permission is hereby granted, free of charge, to any person obtaining a copy 4 | // of this software and associated documentation files (the "Software"), to deal 5 | // in the Software without restriction, including without limitation the rights 6 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | // copies of the Software, and to permit persons to whom the Software is 8 | // furnished to do so, subject to the following conditions: 9 | // 10 | // The above copyright notice and this permission notice shall be included in 11 | // all copies or substantial portions of the Software. 12 | // 13 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | // THE SOFTWARE. 20 | 21 | // +build tools 22 | 23 | package atomic 24 | 25 | import ( 26 | // Tools used during development. 27 | _ "golang.org/x/lint/golint" 28 | ) 29 | -------------------------------------------------------------------------------- /vendor/go.uber.org/zap/time.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Uber Technologies, Inc. 2 | // 3 | // Permission is hereby granted, free of charge, to any person obtaining a copy 4 | // of this software and associated documentation files (the "Software"), to deal 5 | // in the Software without restriction, including without limitation the rights 6 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | // copies of the Software, and to permit persons to whom the Software is 8 | // furnished to do so, subject to the following conditions: 9 | // 10 | // The above copyright notice and this permission notice shall be included in 11 | // all copies or substantial portions of the Software. 12 | // 13 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | // THE SOFTWARE. 20 | 21 | package zap 22 | 23 | import "time" 24 | 25 | func timeToMillis(t time.Time) int64 { 26 | return t.UnixNano() / int64(time.Millisecond) 27 | } 28 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/core/v1/objectreference.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package v1 18 | 19 | import ( 20 | "k8s.io/apimachinery/pkg/runtime/schema" 21 | ) 22 | 23 | // IsAnAPIObject allows clients to preemptively get a reference to an API object and pass it to places that 24 | // intend only to get a reference to that object. This simplifies the event recording interface. 25 | func (obj *ObjectReference) SetGroupVersionKind(gvk schema.GroupVersionKind) { 26 | obj.APIVersion, obj.Kind = gvk.ToAPIVersionAndKind() 27 | } 28 | 29 | func (obj *ObjectReference) GroupVersionKind() schema.GroupVersionKind { 30 | return schema.FromAPIVersionAndKind(obj.APIVersion, obj.Kind) 31 | } 32 | 33 | func (obj *ObjectReference) GetObjectKind() schema.ObjectKind { return obj } 34 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/apis/meta/v1/deepcopy.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2019 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package v1 18 | 19 | import ( 20 | "k8s.io/apimachinery/pkg/runtime" 21 | ) 22 | 23 | func (in *TableRow) DeepCopy() *TableRow { 24 | if in == nil { 25 | return nil 26 | } 27 | 28 | out := new(TableRow) 29 | 30 | if in.Cells != nil { 31 | out.Cells = make([]interface{}, len(in.Cells)) 32 | for i := range in.Cells { 33 | out.Cells[i] = runtime.DeepCopyJSONValue(in.Cells[i]) 34 | } 35 | } 36 | 37 | if in.Conditions != nil { 38 | out.Conditions = make([]TableRowCondition, len(in.Conditions)) 39 | for i := range in.Conditions { 40 | in.Conditions[i].DeepCopyInto(&out.Conditions[i]) 41 | } 42 | } 43 | 44 | in.Object.DeepCopyInto(&out.Object) 45 | return out 46 | } 47 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/PATENTS: -------------------------------------------------------------------------------- 1 | Additional IP Rights Grant (Patents) 2 | 3 | "This implementation" means the copyrightable works distributed by 4 | Google as part of the Go project. 5 | 6 | Google hereby grants to You a perpetual, worldwide, non-exclusive, 7 | no-charge, royalty-free, irrevocable (except as stated in this section) 8 | patent license to make, have made, use, offer to sell, sell, import, 9 | transfer and otherwise run, modify and propagate the contents of this 10 | implementation of Go, where such license applies only to those patent 11 | claims, both currently owned or controlled by Google and acquired in 12 | the future, licensable by Google that are necessarily infringed by this 13 | implementation of Go. This grant does not include claims that would be 14 | infringed only as a consequence of further modification of this 15 | implementation. If you or your agent or exclusive licensee institute or 16 | order or agree to the institution of patent litigation against any 17 | entity (including a cross-claim or counterclaim in a lawsuit) alleging 18 | that this implementation of Go or any code incorporated within this 19 | implementation of Go constitutes direct or contributory patent 20 | infringement, or inducement of patent infringement, then any patent 21 | rights granted to you under this License for this implementation of Go 22 | shall terminate as of the date such litigation is filed. 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/PATENTS: -------------------------------------------------------------------------------- 1 | Additional IP Rights Grant (Patents) 2 | 3 | "This implementation" means the copyrightable works distributed by 4 | Google as part of the Go project. 5 | 6 | Google hereby grants to You a perpetual, worldwide, non-exclusive, 7 | no-charge, royalty-free, irrevocable (except as stated in this section) 8 | patent license to make, have made, use, offer to sell, sell, import, 9 | transfer and otherwise run, modify and propagate the contents of this 10 | implementation of Go, where such license applies only to those patent 11 | claims, both currently owned or controlled by Google and acquired in 12 | the future, licensable by Google that are necessarily infringed by this 13 | implementation of Go. This grant does not include claims that would be 14 | infringed only as a consequence of further modification of this 15 | implementation. If you or your agent or exclusive licensee institute or 16 | order or agree to the institution of patent litigation against any 17 | entity (including a cross-claim or counterclaim in a lawsuit) alleging 18 | that this implementation of Go or any code incorporated within this 19 | implementation of Go constitutes direct or contributory patent 20 | infringement, or inducement of patent infringement, then any patent 21 | rights granted to you under this License for this implementation of Go 22 | shall terminate as of the date such litigation is filed. 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/PATENTS: -------------------------------------------------------------------------------- 1 | Additional IP Rights Grant (Patents) 2 | 3 | "This implementation" means the copyrightable works distributed by 4 | Google as part of the Go project. 5 | 6 | Google hereby grants to You a perpetual, worldwide, non-exclusive, 7 | no-charge, royalty-free, irrevocable (except as stated in this section) 8 | patent license to make, have made, use, offer to sell, sell, import, 9 | transfer and otherwise run, modify and propagate the contents of this 10 | implementation of Go, where such license applies only to those patent 11 | claims, both currently owned or controlled by Google and acquired in 12 | the future, licensable by Google that are necessarily infringed by this 13 | implementation of Go. This grant does not include claims that would be 14 | infringed only as a consequence of further modification of this 15 | implementation. If you or your agent or exclusive licensee institute or 16 | order or agree to the institution of patent litigation against any 17 | entity (including a cross-claim or counterclaim in a lawsuit) alleging 18 | that this implementation of Go or any code incorporated within this 19 | implementation of Go constitutes direct or contributory patent 20 | infringement, or inducement of patent infringement, then any patent 21 | rights granted to you under this License for this implementation of Go 22 | shall terminate as of the date such litigation is filed. 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/colltab/weighter.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package colltab // import "golang.org/x/text/internal/colltab" 6 | 7 | // A Weighter can be used as a source for Collator and Searcher. 8 | type Weighter interface { 9 | // Start finds the start of the segment that includes position p. 10 | Start(p int, b []byte) int 11 | 12 | // StartString finds the start of the segment that includes position p. 13 | StartString(p int, s string) int 14 | 15 | // AppendNext appends Elems to buf corresponding to the longest match 16 | // of a single character or contraction from the start of s. 17 | // It returns the new buf and the number of bytes consumed. 18 | AppendNext(buf []Elem, s []byte) (ce []Elem, n int) 19 | 20 | // AppendNextString appends Elems to buf corresponding to the longest match 21 | // of a single character or contraction from the start of s. 22 | // It returns the new buf and the number of bytes consumed. 23 | AppendNextString(buf []Elem, s string) (ce []Elem, n int) 24 | 25 | // Domain returns a slice of all single characters and contractions for which 26 | // collation elements are defined in this table. 27 | Domain() []string 28 | 29 | // Top returns the highest variable primary value. 30 | Top() uint32 31 | } 32 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/internal/internal.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | package internal // import "go.opencensus.io/internal" 16 | 17 | import ( 18 | "fmt" 19 | "time" 20 | 21 | opencensus "go.opencensus.io" 22 | ) 23 | 24 | // UserAgent is the user agent to be added to the outgoing 25 | // requests from the exporters. 26 | var UserAgent = fmt.Sprintf("opencensus-go/%s", opencensus.Version()) 27 | 28 | // MonotonicEndTime returns the end time at present 29 | // but offset from start, monotonically. 30 | // 31 | // The monotonic clock is used in subtractions hence 32 | // the duration since start added back to start gives 33 | // end as a monotonic time. 34 | // See https://golang.org/pkg/time/#hdr-Monotonic_Clocks 35 | func MonotonicEndTime(start time.Time) time.Time { 36 | return start.Add(time.Since(start)) 37 | } 38 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/tag/key.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | // 15 | 16 | package tag 17 | 18 | // Key represents a tag key. 19 | type Key struct { 20 | name string 21 | } 22 | 23 | // NewKey creates or retrieves a string key identified by name. 24 | // Calling NewKey more than once with the same name returns the same key. 25 | func NewKey(name string) (Key, error) { 26 | if !checkKeyName(name) { 27 | return Key{}, errInvalidKeyName 28 | } 29 | return Key{name: name}, nil 30 | } 31 | 32 | // MustNewKey returns a key with the given name, and panics if name is an invalid key name. 33 | func MustNewKey(name string) Key { 34 | k, err := NewKey(name) 35 | if err != nil { 36 | panic(err) 37 | } 38 | return k 39 | } 40 | 41 | // Name returns the name of the key. 42 | func (k Key) Name() string { 43 | return k.name 44 | } 45 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/metric/metricdata/label.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | package metricdata 16 | 17 | // LabelKey represents key of a label. It has optional 18 | // description attribute. 19 | type LabelKey struct { 20 | Key string 21 | Description string 22 | } 23 | 24 | // LabelValue represents the value of a label. 25 | // The zero value represents a missing label value, which may be treated 26 | // differently to an empty string value by some back ends. 27 | type LabelValue struct { 28 | Value string // string value of the label 29 | Present bool // flag that indicated whether a value is present or not 30 | } 31 | 32 | // NewLabelValue creates a new non-nil LabelValue that represents the given string. 33 | func NewLabelValue(val string) LabelValue { 34 | return LabelValue{Value: val, Present: true} 35 | } 36 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/labels/zz_generated.deepcopy.go: -------------------------------------------------------------------------------- 1 | // +build !ignore_autogenerated 2 | 3 | /* 4 | Copyright The Kubernetes Authors. 5 | 6 | Licensed under the Apache License, Version 2.0 (the "License"); 7 | you may not use this file except in compliance with the License. 8 | You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, software 13 | distributed under the License is distributed on an "AS IS" BASIS, 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | See the License for the specific language governing permissions and 16 | limitations under the License. 17 | */ 18 | 19 | // Code generated by deepcopy-gen. DO NOT EDIT. 20 | 21 | package labels 22 | 23 | // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 24 | func (in *Requirement) DeepCopyInto(out *Requirement) { 25 | *out = *in 26 | if in.strValues != nil { 27 | in, out := &in.strValues, &out.strValues 28 | *out = make([]string, len(*in)) 29 | copy(*out, *in) 30 | } 31 | return 32 | } 33 | 34 | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Requirement. 35 | func (in *Requirement) DeepCopy() *Requirement { 36 | if in == nil { 37 | return nil 38 | } 39 | out := new(Requirement) 40 | in.DeepCopyInto(out) 41 | return out 42 | } 43 | -------------------------------------------------------------------------------- /vendor/go.uber.org/multierr/tools.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2019 Uber Technologies, Inc. 2 | // 3 | // Permission is hereby granted, free of charge, to any person obtaining a copy 4 | // of this software and associated documentation files (the "Software"), to deal 5 | // in the Software without restriction, including without limitation the rights 6 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | // copies of the Software, and to permit persons to whom the Software is 8 | // furnished to do so, subject to the following conditions: 9 | // 10 | // The above copyright notice and this permission notice shall be included in 11 | // all copies or substantial portions of the Software. 12 | // 13 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | // THE SOFTWARE. 20 | 21 | // +build tools 22 | 23 | package multierr 24 | 25 | import ( 26 | // Tools we use during development. 27 | _ "go.uber.org/tools/update-license" 28 | _ "golang.org/x/lint/golint" 29 | _ "honnef.co/go/tools/cmd/staticcheck" 30 | ) 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/language/tags.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package language 6 | 7 | // MustParse is like Parse, but panics if the given BCP 47 tag cannot be parsed. 8 | // It simplifies safe initialization of Tag values. 9 | func MustParse(s string) Tag { 10 | t, err := Parse(s) 11 | if err != nil { 12 | panic(err) 13 | } 14 | return t 15 | } 16 | 17 | // MustParseBase is like ParseBase, but panics if the given base cannot be parsed. 18 | // It simplifies safe initialization of Base values. 19 | func MustParseBase(s string) Language { 20 | b, err := ParseBase(s) 21 | if err != nil { 22 | panic(err) 23 | } 24 | return b 25 | } 26 | 27 | // MustParseScript is like ParseScript, but panics if the given script cannot be 28 | // parsed. It simplifies safe initialization of Script values. 29 | func MustParseScript(s string) Script { 30 | scr, err := ParseScript(s) 31 | if err != nil { 32 | panic(err) 33 | } 34 | return scr 35 | } 36 | 37 | // MustParseRegion is like ParseRegion, but panics if the given region cannot be 38 | // parsed. It simplifies safe initialization of Region values. 39 | func MustParseRegion(s string) Region { 40 | r, err := ParseRegion(s) 41 | if err != nil { 42 | panic(err) 43 | } 44 | return r 45 | } 46 | 47 | // Und is the root language. 48 | var Und Tag 49 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/conversion/helper.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2014 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package conversion 18 | 19 | import ( 20 | "fmt" 21 | "reflect" 22 | ) 23 | 24 | // EnforcePtr ensures that obj is a pointer of some sort. Returns a reflect.Value 25 | // of the dereferenced pointer, ensuring that it is settable/addressable. 26 | // Returns an error if this is not possible. 27 | func EnforcePtr(obj interface{}) (reflect.Value, error) { 28 | v := reflect.ValueOf(obj) 29 | if v.Kind() != reflect.Ptr { 30 | if v.Kind() == reflect.Invalid { 31 | return reflect.Value{}, fmt.Errorf("expected pointer, but got invalid kind") 32 | } 33 | return reflect.Value{}, fmt.Errorf("expected pointer, but got %v type", v.Type()) 34 | } 35 | if v.IsNil() { 36 | return reflect.Value{}, fmt.Errorf("expected pointer, but got nil") 37 | } 38 | return v.Elem(), nil 39 | } 40 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/metric/metricdata/exemplar.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | package metricdata 16 | 17 | import ( 18 | "time" 19 | ) 20 | 21 | // Exemplars keys. 22 | const ( 23 | AttachmentKeySpanContext = "SpanContext" 24 | ) 25 | 26 | // Exemplar is an example data point associated with each bucket of a 27 | // distribution type aggregation. 28 | // 29 | // Their purpose is to provide an example of the kind of thing 30 | // (request, RPC, trace span, etc.) that resulted in that measurement. 31 | type Exemplar struct { 32 | Value float64 // the value that was recorded 33 | Timestamp time.Time // the time the value was recorded 34 | Attachments Attachments // attachments (if any) 35 | } 36 | 37 | // Attachments is a map of extra values associated with a recorded data point. 38 | type Attachments map[string]interface{} 39 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/version1.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package uuid 6 | 7 | import ( 8 | "encoding/binary" 9 | ) 10 | 11 | // NewUUID returns a Version 1 UUID based on the current NodeID and clock 12 | // sequence, and the current time. If the NodeID has not been set by SetNodeID 13 | // or SetNodeInterface then it will be set automatically. If the NodeID cannot 14 | // be set NewUUID returns nil. If clock sequence has not been set by 15 | // SetClockSequence then it will be set automatically. If GetTime fails to 16 | // return the current NewUUID returns nil and an error. 17 | // 18 | // In most cases, New should be used. 19 | func NewUUID() (UUID, error) { 20 | nodeMu.Lock() 21 | if nodeID == zeroID { 22 | setNodeInterface("") 23 | } 24 | nodeMu.Unlock() 25 | 26 | var uuid UUID 27 | now, seq, err := GetTime() 28 | if err != nil { 29 | return uuid, err 30 | } 31 | 32 | timeLow := uint32(now & 0xffffffff) 33 | timeMid := uint16((now >> 32) & 0xffff) 34 | timeHi := uint16((now >> 48) & 0x0fff) 35 | timeHi |= 0x1000 // Version 1 36 | 37 | binary.BigEndian.PutUint32(uuid[0:], timeLow) 38 | binary.BigEndian.PutUint16(uuid[4:], timeMid) 39 | binary.BigEndian.PutUint16(uuid[6:], timeHi) 40 | binary.BigEndian.PutUint16(uuid[8:], seq) 41 | copy(uuid[10:], nodeID[:]) 42 | 43 | return uuid, nil 44 | } 45 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/language/compact/gen_parents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build ignore 6 | 7 | package main 8 | 9 | import ( 10 | "log" 11 | 12 | "golang.org/x/text/internal/gen" 13 | "golang.org/x/text/internal/language" 14 | "golang.org/x/text/internal/language/compact" 15 | "golang.org/x/text/unicode/cldr" 16 | ) 17 | 18 | func main() { 19 | r := gen.OpenCLDRCoreZip() 20 | defer r.Close() 21 | 22 | d := &cldr.Decoder{} 23 | data, err := d.DecodeZip(r) 24 | if err != nil { 25 | log.Fatalf("DecodeZip: %v", err) 26 | } 27 | 28 | w := gen.NewCodeWriter() 29 | defer w.WriteGoFile("parents.go", "compact") 30 | 31 | // Create parents table. 32 | type ID uint16 33 | parents := make([]ID, compact.NumCompactTags) 34 | for _, loc := range data.Locales() { 35 | tag := language.MustParse(loc) 36 | index, ok := compact.FromTag(tag) 37 | if !ok { 38 | continue 39 | } 40 | parentIndex := compact.ID(0) // und 41 | for p := tag.Parent(); p != language.Und; p = p.Parent() { 42 | if x, ok := compact.FromTag(p); ok { 43 | parentIndex = x 44 | break 45 | } 46 | } 47 | parents[index] = ID(parentIndex) 48 | } 49 | 50 | w.WriteComment(` 51 | parents maps a compact index of a tag to the compact index of the parent of 52 | this tag.`) 53 | w.WriteVar("parents", parents) 54 | } 55 | -------------------------------------------------------------------------------- /vendor/go.uber.org/zap/zapcore/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 Uber Technologies, Inc. 2 | // 3 | // Permission is hereby granted, free of charge, to any person obtaining a copy 4 | // of this software and associated documentation files (the "Software"), to deal 5 | // in the Software without restriction, including without limitation the rights 6 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | // copies of the Software, and to permit persons to whom the Software is 8 | // furnished to do so, subject to the following conditions: 9 | // 10 | // The above copyright notice and this permission notice shall be included in 11 | // all copies or substantial portions of the Software. 12 | // 13 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | // THE SOFTWARE. 20 | 21 | // Package zapcore defines and implements the low-level interfaces upon which 22 | // zap is built. By providing alternate implementations of these interfaces, 23 | // external packages can extend zap's capabilities. 24 | package zapcore // import "go.uber.org/zap/zapcore" 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/language/compact/gen.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build ignore 6 | 7 | // Language tag table generator. 8 | // Data read from the web. 9 | 10 | package main 11 | 12 | import ( 13 | "flag" 14 | "fmt" 15 | "log" 16 | 17 | "golang.org/x/text/internal/gen" 18 | "golang.org/x/text/unicode/cldr" 19 | ) 20 | 21 | var ( 22 | test = flag.Bool("test", 23 | false, 24 | "test existing tables; can be used to compare web data with package data.") 25 | outputFile = flag.String("output", 26 | "tables.go", 27 | "output file for generated tables") 28 | ) 29 | 30 | func main() { 31 | gen.Init() 32 | 33 | w := gen.NewCodeWriter() 34 | defer w.WriteGoFile("tables.go", "compact") 35 | 36 | fmt.Fprintln(w, `import "golang.org/x/text/internal/language"`) 37 | 38 | b := newBuilder(w) 39 | gen.WriteCLDRVersion(w) 40 | 41 | b.writeCompactIndex() 42 | } 43 | 44 | type builder struct { 45 | w *gen.CodeWriter 46 | data *cldr.CLDR 47 | supp *cldr.SupplementalData 48 | } 49 | 50 | func newBuilder(w *gen.CodeWriter) *builder { 51 | r := gen.OpenCLDRCoreZip() 52 | defer r.Close() 53 | d := &cldr.Decoder{} 54 | data, err := d.DecodeZip(r) 55 | if err != nil { 56 | log.Fatal(err) 57 | } 58 | b := builder{ 59 | w: w, 60 | data: data, 61 | supp: data.Supplemental(), 62 | } 63 | return &b 64 | } 65 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/core/v1/taint.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2017 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package v1 18 | 19 | import "fmt" 20 | 21 | // MatchTaint checks if the taint matches taintToMatch. Taints are unique by key:effect, 22 | // if the two taints have same key:effect, regard as they match. 23 | func (t *Taint) MatchTaint(taintToMatch *Taint) bool { 24 | return t.Key == taintToMatch.Key && t.Effect == taintToMatch.Effect 25 | } 26 | 27 | // taint.ToString() converts taint struct to string in format '=:', '=:', ':', or ''. 28 | func (t *Taint) ToString() string { 29 | if len(t.Effect) == 0 { 30 | if len(t.Value) == 0 { 31 | return fmt.Sprintf("%v", t.Key) 32 | } 33 | return fmt.Sprintf("%v=%v:", t.Key, t.Value) 34 | } 35 | if len(t.Value) == 0 { 36 | return fmt.Sprintf("%v:%v", t.Key, t.Effect) 37 | } 38 | return fmt.Sprintf("%v=%v:%v", t.Key, t.Value, t.Effect) 39 | } 40 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/unicode/norm/trie.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package norm 6 | 7 | type valueRange struct { 8 | value uint16 // header: value:stride 9 | lo, hi byte // header: lo:n 10 | } 11 | 12 | type sparseBlocks struct { 13 | values []valueRange 14 | offset []uint16 15 | } 16 | 17 | var nfcSparse = sparseBlocks{ 18 | values: nfcSparseValues[:], 19 | offset: nfcSparseOffset[:], 20 | } 21 | 22 | var nfkcSparse = sparseBlocks{ 23 | values: nfkcSparseValues[:], 24 | offset: nfkcSparseOffset[:], 25 | } 26 | 27 | var ( 28 | nfcData = newNfcTrie(0) 29 | nfkcData = newNfkcTrie(0) 30 | ) 31 | 32 | // lookupValue determines the type of block n and looks up the value for b. 33 | // For n < t.cutoff, the block is a simple lookup table. Otherwise, the block 34 | // is a list of ranges with an accompanying value. Given a matching range r, 35 | // the value for b is by r.value + (b - r.lo) * stride. 36 | func (t *sparseBlocks) lookup(n uint32, b byte) uint16 { 37 | offset := t.offset[n] 38 | header := t.values[offset] 39 | lo := offset + 1 40 | hi := lo + uint16(header.lo) 41 | for lo < hi { 42 | m := lo + (hi-lo)/2 43 | r := t.values[m] 44 | if r.lo <= b && b <= r.hi { 45 | return r.value + uint16(b-r.lo)*header.value 46 | } 47 | if b < r.lo { 48 | hi = m 49 | } else { 50 | lo = m + 1 51 | } 52 | } 53 | return 0 54 | } 55 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/intstr/generated.proto: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | 18 | // This file was autogenerated by go-to-protobuf. Do not edit it manually! 19 | 20 | syntax = 'proto2'; 21 | 22 | package k8s.io.apimachinery.pkg.util.intstr; 23 | 24 | // Package-wide variables from generator "generated". 25 | option go_package = "intstr"; 26 | 27 | // IntOrString is a type that can hold an int32 or a string. When used in 28 | // JSON or YAML marshalling and unmarshalling, it produces or consumes the 29 | // inner type. This allows you to have, for example, a JSON field that can 30 | // accept a name or number. 31 | // TODO: Rename to Int32OrString 32 | // 33 | // +protobuf=true 34 | // +protobuf.options.(gogoproto.goproto_stringer)=false 35 | // +k8s:openapi-gen=true 36 | message IntOrString { 37 | optional int64 type = 1; 38 | 39 | optional int32 intVal = 2; 40 | 41 | optional string strVal = 3; 42 | } 43 | 44 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/types/typeutil/callee.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package typeutil 6 | 7 | import ( 8 | "go/ast" 9 | "go/types" 10 | 11 | "golang.org/x/tools/go/ast/astutil" 12 | ) 13 | 14 | // Callee returns the named target of a function call, if any: 15 | // a function, method, builtin, or variable. 16 | func Callee(info *types.Info, call *ast.CallExpr) types.Object { 17 | var obj types.Object 18 | switch fun := astutil.Unparen(call.Fun).(type) { 19 | case *ast.Ident: 20 | obj = info.Uses[fun] // type, var, builtin, or declared func 21 | case *ast.SelectorExpr: 22 | if sel, ok := info.Selections[fun]; ok { 23 | obj = sel.Obj() // method or field 24 | } else { 25 | obj = info.Uses[fun.Sel] // qualified identifier? 26 | } 27 | } 28 | if _, ok := obj.(*types.TypeName); ok { 29 | return nil // T(x) is a conversion, not a call 30 | } 31 | return obj 32 | } 33 | 34 | // StaticCallee returns the target (function or method) of a static 35 | // function call, if any. It returns nil for calls to builtins. 36 | func StaticCallee(info *types.Info, call *ast.CallExpr) *types.Func { 37 | if f, ok := Callee(info, call).(*types.Func); ok && !interfaceMethod(f) { 38 | return f 39 | } 40 | return nil 41 | } 42 | 43 | func interfaceMethod(f *types.Func) bool { 44 | recv := f.Type().(*types.Signature).Recv() 45 | return recv != nil && types.IsInterface(recv.Type()) 46 | } 47 | -------------------------------------------------------------------------------- /vendor/honnef.co/go/tools/go/types/typeutil/callee.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package typeutil 6 | 7 | import ( 8 | "go/ast" 9 | "go/types" 10 | 11 | "golang.org/x/tools/go/ast/astutil" 12 | ) 13 | 14 | // Callee returns the named target of a function call, if any: 15 | // a function, method, builtin, or variable. 16 | func Callee(info *types.Info, call *ast.CallExpr) types.Object { 17 | var obj types.Object 18 | switch fun := astutil.Unparen(call.Fun).(type) { 19 | case *ast.Ident: 20 | obj = info.Uses[fun] // type, var, builtin, or declared func 21 | case *ast.SelectorExpr: 22 | if sel, ok := info.Selections[fun]; ok { 23 | obj = sel.Obj() // method or field 24 | } else { 25 | obj = info.Uses[fun.Sel] // qualified identifier? 26 | } 27 | } 28 | if _, ok := obj.(*types.TypeName); ok { 29 | return nil // T(x) is a conversion, not a call 30 | } 31 | return obj 32 | } 33 | 34 | // StaticCallee returns the target (function or method) of a static 35 | // function call, if any. It returns nil for calls to builtins. 36 | func StaticCallee(info *types.Info, call *ast.CallExpr) *types.Func { 37 | if f, ok := Callee(info, call).(*types.Func); ok && !interfaceMethod(f) { 38 | return f 39 | } 40 | return nil 41 | } 42 | 43 | func interfaceMethod(f *types.Func) bool { 44 | recv := f.Type().(*types.Signature).Recv() 45 | return recv != nil && types.IsInterface(recv.Type()) 46 | } 47 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/internal/sanitize.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | package internal 16 | 17 | import ( 18 | "strings" 19 | "unicode" 20 | ) 21 | 22 | const labelKeySizeLimit = 100 23 | 24 | // Sanitize returns a string that is trunacated to 100 characters if it's too 25 | // long, and replaces non-alphanumeric characters to underscores. 26 | func Sanitize(s string) string { 27 | if len(s) == 0 { 28 | return s 29 | } 30 | if len(s) > labelKeySizeLimit { 31 | s = s[:labelKeySizeLimit] 32 | } 33 | s = strings.Map(sanitizeRune, s) 34 | if unicode.IsDigit(rune(s[0])) { 35 | s = "key_" + s 36 | } 37 | if s[0] == '_' { 38 | s = "key" + s 39 | } 40 | return s 41 | } 42 | 43 | // converts anything that is not a letter or digit to an underscore 44 | func sanitizeRune(r rune) rune { 45 | if unicode.IsLetter(r) || unicode.IsDigit(r) { 46 | return r 47 | } 48 | // Everything else turns into an underscore 49 | return '_' 50 | } 51 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/trace/status_codes.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | package trace 16 | 17 | // Status codes for use with Span.SetStatus. These correspond to the status 18 | // codes used by gRPC defined here: https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto 19 | const ( 20 | StatusCodeOK = 0 21 | StatusCodeCancelled = 1 22 | StatusCodeUnknown = 2 23 | StatusCodeInvalidArgument = 3 24 | StatusCodeDeadlineExceeded = 4 25 | StatusCodeNotFound = 5 26 | StatusCodeAlreadyExists = 6 27 | StatusCodePermissionDenied = 7 28 | StatusCodeResourceExhausted = 8 29 | StatusCodeFailedPrecondition = 9 30 | StatusCodeAborted = 10 31 | StatusCodeOutOfRange = 11 32 | StatusCodeUnimplemented = 12 33 | StatusCodeInternal = 13 34 | StatusCodeUnavailable = 14 35 | StatusCodeDataLoss = 15 36 | StatusCodeUnauthenticated = 16 37 | ) 38 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/tag/context.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017, OpenCensus Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | // 15 | 16 | package tag 17 | 18 | import ( 19 | "context" 20 | ) 21 | 22 | // FromContext returns the tag map stored in the context. 23 | func FromContext(ctx context.Context) *Map { 24 | // The returned tag map shouldn't be mutated. 25 | ts := ctx.Value(mapCtxKey) 26 | if ts == nil { 27 | return nil 28 | } 29 | return ts.(*Map) 30 | } 31 | 32 | // NewContext creates a new context with the given tag map. 33 | // To propagate a tag map to downstream methods and downstream RPCs, add a tag map 34 | // to the current context. NewContext will return a copy of the current context, 35 | // and put the tag map into the returned one. 36 | // If there is already a tag map in the current context, it will be replaced with m. 37 | func NewContext(ctx context.Context, m *Map) context.Context { 38 | return context.WithValue(ctx, mapCtxKey, m) 39 | } 40 | 41 | type ctxKey struct{} 42 | 43 | var mapCtxKey = ctxKey{} 44 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/types/namespacedname.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2015 The Kubernetes Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package types 18 | 19 | import ( 20 | "fmt" 21 | ) 22 | 23 | // NamespacedName comprises a resource name, with a mandatory namespace, 24 | // rendered as "/". Being a type captures intent and 25 | // helps make sure that UIDs, namespaced names and non-namespaced names 26 | // do not get conflated in code. For most use cases, namespace and name 27 | // will already have been format validated at the API entry point, so we 28 | // don't do that here. Where that's not the case (e.g. in testing), 29 | // consider using NamespacedNameOrDie() in testing.go in this package. 30 | 31 | type NamespacedName struct { 32 | Namespace string 33 | Name string 34 | } 35 | 36 | const ( 37 | Separator = '/' 38 | ) 39 | 40 | // String returns the general purpose string representation 41 | func (n NamespacedName) String() string { 42 | return fmt.Sprintf("%s%c%s", n.Namespace, Separator, n.Name) 43 | } 44 | -------------------------------------------------------------------------------- /vendor/golang.org/x/lint/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 The Go Authors. All rights reserved. 2 | 3 | Redistribution and use in source and binary forms, with or without 4 | modification, are permitted provided that the following conditions are 5 | met: 6 | 7 | * Redistributions of source code must retain the above copyright 8 | notice, this list of conditions and the following disclaimer. 9 | * Redistributions in binary form must reproduce the above 10 | copyright notice, this list of conditions and the following disclaimer 11 | in the documentation and/or other materials provided with the 12 | distribution. 13 | * Neither the name of Google Inc. nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009 The Go Authors. All rights reserved. 2 | 3 | Redistribution and use in source and binary forms, with or without 4 | modification, are permitted provided that the following conditions are 5 | met: 6 | 7 | * Redistributions of source code must retain the above copyright 8 | notice, this list of conditions and the following disclaimer. 9 | * Redistributions in binary form must reproduce the above 10 | copyright notice, this list of conditions and the following disclaimer 11 | in the documentation and/or other materials provided with the 12 | distribution. 13 | * Neither the name of Google Inc. nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009 The Go Authors. All rights reserved. 2 | 3 | Redistribution and use in source and binary forms, with or without 4 | modification, are permitted provided that the following conditions are 5 | met: 6 | 7 | * Redistributions of source code must retain the above copyright 8 | notice, this list of conditions and the following disclaimer. 9 | * Redistributions in binary form must reproduce the above 10 | copyright notice, this list of conditions and the following disclaimer 11 | in the documentation and/or other materials provided with the 12 | distribution. 13 | * Neither the name of Google Inc. nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009 The Go Authors. All rights reserved. 2 | 3 | Redistribution and use in source and binary forms, with or without 4 | modification, are permitted provided that the following conditions are 5 | met: 6 | 7 | * Redistributions of source code must retain the above copyright 8 | notice, this list of conditions and the following disclaimer. 9 | * Redistributions in binary form must reproduce the above 10 | copyright notice, this list of conditions and the following disclaimer 11 | in the documentation and/or other materials provided with the 12 | distribution. 13 | * Neither the name of Google Inc. nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | --------------------------------------------------------------------------------