├── .gitignore ├── CONTRIBUTING.md ├── Dockerfile ├── Gopkg.lock ├── Gopkg.toml ├── LICENSE ├── Makefile ├── OWNERS ├── README.md ├── SECURITY_CONTACTS ├── code-of-conduct.md ├── config.go ├── deploy ├── base │ ├── configmap.yaml │ ├── deployment.yaml │ ├── kustomization.yaml │ ├── mutatingwebhook.yaml │ └── service.yaml └── overlays │ └── example │ ├── kustomization.yaml │ └── trace-context-injector-config.yaml ├── hack ├── webhook-create-signed-cert.sh └── webhook-patch-ca-bundle.sh ├── main.go ├── traceutil.go ├── vendor ├── github.com │ ├── PuerkitoBio │ │ ├── purell │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ └── purell.go │ │ └── urlesc │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ └── urlesc.go │ ├── docker │ │ └── distribution │ │ │ ├── AUTHORS │ │ │ ├── LICENSE │ │ │ ├── digestset │ │ │ └── set.go │ │ │ └── reference │ │ │ ├── helpers.go │ │ │ ├── normalize.go │ │ │ ├── reference.go │ │ │ └── regexp.go │ ├── emicklei │ │ └── go-restful │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── CHANGES.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── Srcfile │ │ │ ├── bench_test.sh │ │ │ ├── compress.go │ │ │ ├── compressor_cache.go │ │ │ ├── compressor_pools.go │ │ │ ├── compressors.go │ │ │ ├── constants.go │ │ │ ├── container.go │ │ │ ├── cors_filter.go │ │ │ ├── coverage.sh │ │ │ ├── curly.go │ │ │ ├── curly_route.go │ │ │ ├── doc.go │ │ │ ├── entity_accessors.go │ │ │ ├── filter.go │ │ │ ├── jsr311.go │ │ │ ├── log │ │ │ └── log.go │ │ │ ├── logger.go │ │ │ ├── mime.go │ │ │ ├── options_filter.go │ │ │ ├── parameter.go │ │ │ ├── path_expression.go │ │ │ ├── path_processor.go │ │ │ ├── request.go │ │ │ ├── response.go │ │ │ ├── route.go │ │ │ ├── route_builder.go │ │ │ ├── router.go │ │ │ ├── service_error.go │ │ │ ├── web_service.go │ │ │ └── web_service_container.go │ ├── evanphx │ │ └── json-patch │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── merge.go │ │ │ └── patch.go │ ├── ghodss │ │ └── yaml │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── fields.go │ │ │ └── yaml.go │ ├── go-openapi │ │ ├── jsonpointer │ │ │ ├── .editorconfig │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── CODE_OF_CONDUCT.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ └── pointer.go │ │ ├── jsonreference │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── CODE_OF_CONDUCT.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ └── reference.go │ │ ├── spec │ │ │ ├── .editorconfig │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── CODE_OF_CONDUCT.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── bindata.go │ │ │ ├── contact_info.go │ │ │ ├── expander.go │ │ │ ├── external_docs.go │ │ │ ├── header.go │ │ │ ├── info.go │ │ │ ├── items.go │ │ │ ├── license.go │ │ │ ├── operation.go │ │ │ ├── parameter.go │ │ │ ├── path_item.go │ │ │ ├── paths.go │ │ │ ├── ref.go │ │ │ ├── response.go │ │ │ ├── responses.go │ │ │ ├── schema.go │ │ │ ├── security_scheme.go │ │ │ ├── spec.go │ │ │ ├── swagger.go │ │ │ ├── tag.go │ │ │ └── xml_object.go │ │ └── swag │ │ │ ├── .editorconfig │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── CODE_OF_CONDUCT.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── convert.go │ │ │ ├── convert_types.go │ │ │ ├── json.go │ │ │ ├── loading.go │ │ │ ├── net.go │ │ │ ├── path.go │ │ │ ├── post_go18.go │ │ │ ├── pre_go18.go │ │ │ ├── util.go │ │ │ └── yaml.go │ ├── gogo │ │ └── protobuf │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ ├── GOLANG_CONTRIBUTORS │ │ │ ├── LICENSE │ │ │ ├── proto │ │ │ ├── Makefile │ │ │ ├── clone.go │ │ │ ├── decode.go │ │ │ ├── decode_gogo.go │ │ │ ├── discard.go │ │ │ ├── duration.go │ │ │ ├── duration_gogo.go │ │ │ ├── encode.go │ │ │ ├── encode_gogo.go │ │ │ ├── equal.go │ │ │ ├── extensions.go │ │ │ ├── extensions_gogo.go │ │ │ ├── lib.go │ │ │ ├── lib_gogo.go │ │ │ ├── message_set.go │ │ │ ├── pointer_reflect.go │ │ │ ├── pointer_reflect_gogo.go │ │ │ ├── pointer_unsafe.go │ │ │ ├── pointer_unsafe_gogo.go │ │ │ ├── properties.go │ │ │ ├── properties_gogo.go │ │ │ ├── skip_gogo.go │ │ │ ├── text.go │ │ │ ├── text_gogo.go │ │ │ ├── text_parser.go │ │ │ ├── timestamp.go │ │ │ └── timestamp_gogo.go │ │ │ └── sortkeys │ │ │ └── sortkeys.go │ ├── golang │ │ └── glog │ │ │ ├── LICENSE │ │ │ ├── README │ │ │ ├── glog.go │ │ │ └── glog_file.go │ ├── google │ │ └── gofuzz │ │ │ ├── .travis.yml │ │ │ ├── CONTRIBUTING.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── doc.go │ │ │ └── fuzz.go │ ├── json-iterator │ │ └── go │ │ │ ├── .codecov.yml │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── Gopkg.lock │ │ │ ├── Gopkg.toml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── adapter.go │ │ │ ├── any.go │ │ │ ├── any_array.go │ │ │ ├── any_bool.go │ │ │ ├── any_float.go │ │ │ ├── any_int32.go │ │ │ ├── any_int64.go │ │ │ ├── any_invalid.go │ │ │ ├── any_nil.go │ │ │ ├── any_number.go │ │ │ ├── any_object.go │ │ │ ├── any_str.go │ │ │ ├── any_uint32.go │ │ │ ├── any_uint64.go │ │ │ ├── build.sh │ │ │ ├── config.go │ │ │ ├── fuzzy_mode_convert_table.md │ │ │ ├── iter.go │ │ │ ├── iter_array.go │ │ │ ├── iter_float.go │ │ │ ├── iter_int.go │ │ │ ├── iter_object.go │ │ │ ├── iter_skip.go │ │ │ ├── iter_skip_sloppy.go │ │ │ ├── iter_skip_strict.go │ │ │ ├── iter_str.go │ │ │ ├── jsoniter.go │ │ │ ├── pool.go │ │ │ ├── reflect.go │ │ │ ├── reflect_array.go │ │ │ ├── reflect_dynamic.go │ │ │ ├── reflect_extension.go │ │ │ ├── reflect_json_number.go │ │ │ ├── reflect_json_raw_message.go │ │ │ ├── reflect_map.go │ │ │ ├── reflect_marshaler.go │ │ │ ├── reflect_native.go │ │ │ ├── reflect_optional.go │ │ │ ├── reflect_slice.go │ │ │ ├── reflect_struct_decoder.go │ │ │ ├── reflect_struct_encoder.go │ │ │ ├── stream.go │ │ │ ├── stream_float.go │ │ │ ├── stream_int.go │ │ │ ├── stream_str.go │ │ │ └── test.sh │ ├── mailru │ │ └── easyjson │ │ │ ├── LICENSE │ │ │ ├── buffer │ │ │ └── pool.go │ │ │ ├── jlexer │ │ │ ├── bytestostr.go │ │ │ ├── bytestostr_nounsafe.go │ │ │ ├── error.go │ │ │ └── lexer.go │ │ │ └── jwriter │ │ │ └── writer.go │ ├── modern-go │ │ ├── concurrent │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── executor.go │ │ │ ├── go_above_19.go │ │ │ ├── go_below_19.go │ │ │ ├── log.go │ │ │ ├── test.sh │ │ │ └── unbounded_executor.go │ │ └── reflect2 │ │ │ ├── .gitignore │ │ │ ├── Gopkg.lock │ │ │ ├── Gopkg.toml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── go_above_17.go │ │ │ ├── go_above_19.go │ │ │ ├── go_below_17.go │ │ │ ├── go_below_19.go │ │ │ ├── reflect2.go │ │ │ ├── reflect2_amd64.s │ │ │ ├── reflect2_kind.go │ │ │ ├── relfect2_386.s │ │ │ ├── relfect2_amd64p32.s │ │ │ ├── relfect2_arm.s │ │ │ ├── relfect2_arm64.s │ │ │ ├── relfect2_mips64x.s │ │ │ ├── relfect2_mipsx.s │ │ │ ├── relfect2_ppc64x.s │ │ │ ├── relfect2_s390x.s │ │ │ ├── safe_field.go │ │ │ ├── safe_map.go │ │ │ ├── safe_slice.go │ │ │ ├── safe_struct.go │ │ │ ├── safe_type.go │ │ │ ├── type_map.go │ │ │ ├── unsafe_array.go │ │ │ ├── unsafe_eface.go │ │ │ ├── unsafe_field.go │ │ │ ├── unsafe_iface.go │ │ │ ├── unsafe_link.go │ │ │ ├── unsafe_map.go │ │ │ ├── unsafe_ptr.go │ │ │ ├── unsafe_slice.go │ │ │ ├── unsafe_struct.go │ │ │ └── unsafe_type.go │ ├── opencontainers │ │ └── go-digest │ │ │ ├── .mailmap │ │ │ ├── .pullapprove.yml │ │ │ ├── .travis.yml │ │ │ ├── CONTRIBUTING.md │ │ │ ├── LICENSE.code │ │ │ ├── LICENSE.docs │ │ │ ├── MAINTAINERS │ │ │ ├── README.md │ │ │ ├── algorithm.go │ │ │ ├── digest.go │ │ │ ├── digester.go │ │ │ ├── doc.go │ │ │ └── verifiers.go │ └── spf13 │ │ └── pflag │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── bool.go │ │ ├── bool_slice.go │ │ ├── count.go │ │ ├── duration.go │ │ ├── flag.go │ │ ├── float32.go │ │ ├── float64.go │ │ ├── golangflag.go │ │ ├── int.go │ │ ├── int32.go │ │ ├── int64.go │ │ ├── int8.go │ │ ├── int_slice.go │ │ ├── ip.go │ │ ├── ip_slice.go │ │ ├── ipmask.go │ │ ├── ipnet.go │ │ ├── string.go │ │ ├── string_array.go │ │ ├── string_slice.go │ │ ├── uint.go │ │ ├── uint16.go │ │ ├── uint32.go │ │ ├── uint64.go │ │ ├── uint8.go │ │ └── uint_slice.go ├── go.opencensus.io │ ├── .gitignore │ ├── .travis.yml │ ├── AUTHORS │ ├── CONTRIBUTING.md │ ├── Gopkg.lock │ ├── Gopkg.toml │ ├── LICENSE │ ├── README.md │ ├── appveyor.yml │ ├── exemplar │ │ └── exemplar.go │ ├── go.mod │ ├── go.sum │ ├── internal │ │ ├── internal.go │ │ ├── sanitize.go │ │ └── traceinternals.go │ ├── opencensus.go │ └── trace │ │ ├── basetypes.go │ │ ├── config.go │ │ ├── doc.go │ │ ├── exemplar.go │ │ ├── export.go │ │ ├── internal │ │ └── internal.go │ │ ├── propagation │ │ └── propagation.go │ │ ├── sampling.go │ │ ├── spanbucket.go │ │ ├── spanstore.go │ │ ├── status_codes.go │ │ ├── trace.go │ │ ├── trace_go11.go │ │ ├── trace_nongo11.go │ │ └── tracestate │ │ └── tracestate.go ├── golang.org │ └── x │ │ ├── net │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── http2 │ │ │ ├── .gitignore │ │ │ ├── Dockerfile │ │ │ ├── Makefile │ │ │ ├── README │ │ │ ├── ciphers.go │ │ │ ├── client_conn_pool.go │ │ │ ├── configure_transport.go │ │ │ ├── databuffer.go │ │ │ ├── errors.go │ │ │ ├── flow.go │ │ │ ├── frame.go │ │ │ ├── go16.go │ │ │ ├── go17.go │ │ │ ├── go17_not18.go │ │ │ ├── go18.go │ │ │ ├── go19.go │ │ │ ├── gotrack.go │ │ │ ├── headermap.go │ │ │ ├── hpack │ │ │ │ ├── encode.go │ │ │ │ ├── hpack.go │ │ │ │ ├── huffman.go │ │ │ │ └── tables.go │ │ │ ├── http2.go │ │ │ ├── not_go16.go │ │ │ ├── not_go17.go │ │ │ ├── not_go18.go │ │ │ ├── not_go19.go │ │ │ ├── pipe.go │ │ │ ├── server.go │ │ │ ├── transport.go │ │ │ ├── write.go │ │ │ ├── writesched.go │ │ │ ├── writesched_priority.go │ │ │ └── writesched_random.go │ │ ├── idna │ │ │ ├── idna.go │ │ │ ├── punycode.go │ │ │ ├── tables.go │ │ │ ├── trie.go │ │ │ └── trieval.go │ │ └── lex │ │ │ └── httplex │ │ │ └── httplex.go │ │ └── text │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── collate │ │ ├── build │ │ │ ├── builder.go │ │ │ ├── colelem.go │ │ │ ├── contract.go │ │ │ ├── order.go │ │ │ ├── table.go │ │ │ └── trie.go │ │ ├── collate.go │ │ ├── index.go │ │ ├── maketables.go │ │ ├── option.go │ │ ├── sort.go │ │ └── tables.go │ │ ├── internal │ │ ├── colltab │ │ │ ├── collelem.go │ │ │ ├── colltab.go │ │ │ ├── contract.go │ │ │ ├── iter.go │ │ │ ├── numeric.go │ │ │ ├── table.go │ │ │ ├── trie.go │ │ │ └── weighter.go │ │ ├── gen │ │ │ ├── code.go │ │ │ └── gen.go │ │ ├── tag │ │ │ └── tag.go │ │ ├── triegen │ │ │ ├── compact.go │ │ │ ├── print.go │ │ │ └── triegen.go │ │ └── ucd │ │ │ └── ucd.go │ │ ├── language │ │ ├── Makefile │ │ ├── common.go │ │ ├── coverage.go │ │ ├── doc.go │ │ ├── gen.go │ │ ├── gen_common.go │ │ ├── gen_index.go │ │ ├── go1_1.go │ │ ├── go1_2.go │ │ ├── index.go │ │ ├── language.go │ │ ├── lookup.go │ │ ├── match.go │ │ ├── parse.go │ │ ├── tables.go │ │ └── tags.go │ │ ├── secure │ │ └── bidirule │ │ │ ├── bidirule.go │ │ │ ├── bidirule10.0.0.go │ │ │ └── bidirule9.0.0.go │ │ ├── transform │ │ └── transform.go │ │ ├── unicode │ │ ├── bidi │ │ │ ├── bidi.go │ │ │ ├── bracket.go │ │ │ ├── core.go │ │ │ ├── gen.go │ │ │ ├── gen_ranges.go │ │ │ ├── gen_trieval.go │ │ │ ├── prop.go │ │ │ ├── tables10.0.0.go │ │ │ ├── tables9.0.0.go │ │ │ └── trieval.go │ │ ├── cldr │ │ │ ├── base.go │ │ │ ├── cldr.go │ │ │ ├── collate.go │ │ │ ├── decode.go │ │ │ ├── makexml.go │ │ │ ├── resolve.go │ │ │ ├── slice.go │ │ │ └── xml.go │ │ ├── norm │ │ │ ├── composition.go │ │ │ ├── forminfo.go │ │ │ ├── input.go │ │ │ ├── iter.go │ │ │ ├── maketables.go │ │ │ ├── normalize.go │ │ │ ├── readwriter.go │ │ │ ├── tables10.0.0.go │ │ │ ├── tables9.0.0.go │ │ │ ├── transform.go │ │ │ ├── trie.go │ │ │ └── triegen.go │ │ └── rangetable │ │ │ ├── gen.go │ │ │ ├── merge.go │ │ │ ├── rangetable.go │ │ │ ├── tables10.0.0.go │ │ │ └── tables9.0.0.go │ │ └── width │ │ ├── gen.go │ │ ├── gen_common.go │ │ ├── gen_trieval.go │ │ ├── kind_string.go │ │ ├── tables10.0.0.go │ │ ├── tables9.0.0.go │ │ ├── transform.go │ │ ├── trieval.go │ │ └── width.go ├── gopkg.in │ ├── inf.v0 │ │ ├── LICENSE │ │ ├── dec.go │ │ └── rounder.go │ └── yaml.v2 │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── LICENSE.libyaml │ │ ├── NOTICE │ │ ├── README.md │ │ ├── apic.go │ │ ├── decode.go │ │ ├── emitterc.go │ │ ├── encode.go │ │ ├── go.mod │ │ ├── parserc.go │ │ ├── readerc.go │ │ ├── resolve.go │ │ ├── scannerc.go │ │ ├── sorter.go │ │ ├── writerc.go │ │ ├── yaml.go │ │ ├── yamlh.go │ │ └── yamlprivateh.go └── k8s.io │ ├── api │ ├── LICENSE │ ├── admission │ │ └── v1beta1 │ │ │ ├── BUILD │ │ │ ├── doc.go │ │ │ ├── generated.pb.go │ │ │ ├── generated.proto │ │ │ ├── register.go │ │ │ ├── types.go │ │ │ ├── types_swagger_doc_generated.go │ │ │ └── zz_generated.deepcopy.go │ ├── admissionregistration │ │ └── v1beta1 │ │ │ ├── BUILD │ │ │ ├── doc.go │ │ │ ├── generated.pb.go │ │ │ ├── generated.proto │ │ │ ├── register.go │ │ │ ├── types.go │ │ │ ├── types_swagger_doc_generated.go │ │ │ └── zz_generated.deepcopy.go │ ├── authentication │ │ └── v1 │ │ │ ├── BUILD │ │ │ ├── doc.go │ │ │ ├── generated.pb.go │ │ │ ├── generated.proto │ │ │ ├── register.go │ │ │ ├── types.go │ │ │ ├── types_swagger_doc_generated.go │ │ │ └── zz_generated.deepcopy.go │ └── core │ │ └── v1 │ │ ├── BUILD │ │ ├── annotation_key_constants.go │ │ ├── doc.go │ │ ├── generated.pb.go │ │ ├── generated.proto │ │ ├── meta.go │ │ ├── objectreference.go │ │ ├── register.go │ │ ├── resource.go │ │ ├── taint.go │ │ ├── toleration.go │ │ ├── types.go │ │ ├── types_swagger_doc_generated.go │ │ └── zz_generated.deepcopy.go │ ├── apiextensions-apiserver │ ├── LICENSE │ └── pkg │ │ └── features │ │ ├── BUILD │ │ └── kube_features.go │ ├── apimachinery │ ├── LICENSE │ ├── pkg │ │ ├── api │ │ │ └── resource │ │ │ │ ├── BUILD │ │ │ │ ├── OWNERS │ │ │ │ ├── amount.go │ │ │ │ ├── generated.pb.go │ │ │ │ ├── generated.proto │ │ │ │ ├── math.go │ │ │ │ ├── quantity.go │ │ │ │ ├── quantity_proto.go │ │ │ │ ├── scale_int.go │ │ │ │ ├── suffix.go │ │ │ │ └── zz_generated.deepcopy.go │ │ ├── apis │ │ │ └── meta │ │ │ │ ├── internalversion │ │ │ │ ├── BUILD │ │ │ │ ├── conversion.go │ │ │ │ ├── doc.go │ │ │ │ ├── register.go │ │ │ │ ├── types.go │ │ │ │ ├── zz_generated.conversion.go │ │ │ │ └── zz_generated.deepcopy.go │ │ │ │ ├── v1 │ │ │ │ ├── BUILD │ │ │ │ ├── OWNERS │ │ │ │ ├── controller_ref.go │ │ │ │ ├── conversion.go │ │ │ │ ├── doc.go │ │ │ │ ├── duration.go │ │ │ │ ├── generated.pb.go │ │ │ │ ├── generated.proto │ │ │ │ ├── group_version.go │ │ │ │ ├── helpers.go │ │ │ │ ├── labels.go │ │ │ │ ├── meta.go │ │ │ │ ├── micro_time.go │ │ │ │ ├── micro_time_proto.go │ │ │ │ ├── register.go │ │ │ │ ├── time.go │ │ │ │ ├── time_proto.go │ │ │ │ ├── types.go │ │ │ │ ├── types_swagger_doc_generated.go │ │ │ │ ├── watch.go │ │ │ │ ├── zz_generated.deepcopy.go │ │ │ │ └── zz_generated.defaults.go │ │ │ │ └── v1alpha1 │ │ │ │ ├── BUILD │ │ │ │ ├── conversion.go │ │ │ │ ├── deepcopy.go │ │ │ │ ├── doc.go │ │ │ │ ├── generated.pb.go │ │ │ │ ├── generated.proto │ │ │ │ ├── register.go │ │ │ │ ├── types.go │ │ │ │ ├── types_swagger_doc_generated.go │ │ │ │ ├── zz_generated.deepcopy.go │ │ │ │ └── zz_generated.defaults.go │ │ ├── conversion │ │ │ ├── BUILD │ │ │ ├── converter.go │ │ │ ├── deep_equal.go │ │ │ ├── doc.go │ │ │ ├── helper.go │ │ │ └── queryparams │ │ │ │ ├── BUILD │ │ │ │ ├── convert.go │ │ │ │ └── doc.go │ │ ├── fields │ │ │ ├── BUILD │ │ │ ├── doc.go │ │ │ ├── fields.go │ │ │ ├── requirements.go │ │ │ └── selector.go │ │ ├── labels │ │ │ ├── BUILD │ │ │ ├── doc.go │ │ │ ├── labels.go │ │ │ ├── selector.go │ │ │ └── zz_generated.deepcopy.go │ │ ├── runtime │ │ │ ├── BUILD │ │ │ ├── codec.go │ │ │ ├── codec_check.go │ │ │ ├── conversion.go │ │ │ ├── converter.go │ │ │ ├── doc.go │ │ │ ├── embedded.go │ │ │ ├── error.go │ │ │ ├── extension.go │ │ │ ├── generated.pb.go │ │ │ ├── generated.proto │ │ │ ├── helper.go │ │ │ ├── interfaces.go │ │ │ ├── register.go │ │ │ ├── schema │ │ │ │ ├── BUILD │ │ │ │ ├── generated.pb.go │ │ │ │ ├── generated.proto │ │ │ │ ├── group_version.go │ │ │ │ └── interfaces.go │ │ │ ├── scheme.go │ │ │ ├── scheme_builder.go │ │ │ ├── serializer │ │ │ │ ├── BUILD │ │ │ │ ├── codec_factory.go │ │ │ │ ├── json │ │ │ │ │ ├── BUILD │ │ │ │ │ ├── json.go │ │ │ │ │ └── meta.go │ │ │ │ ├── negotiated_codec.go │ │ │ │ ├── protobuf │ │ │ │ │ ├── BUILD │ │ │ │ │ ├── doc.go │ │ │ │ │ └── protobuf.go │ │ │ │ ├── protobuf_extension.go │ │ │ │ ├── recognizer │ │ │ │ │ ├── BUILD │ │ │ │ │ └── recognizer.go │ │ │ │ └── versioning │ │ │ │ │ ├── BUILD │ │ │ │ │ └── versioning.go │ │ │ ├── swagger_doc_generator.go │ │ │ ├── types.go │ │ │ ├── types_proto.go │ │ │ └── zz_generated.deepcopy.go │ │ ├── selection │ │ │ ├── BUILD │ │ │ └── operator.go │ │ ├── types │ │ │ ├── BUILD │ │ │ ├── doc.go │ │ │ ├── namespacedname.go │ │ │ ├── nodename.go │ │ │ ├── patch.go │ │ │ └── uid.go │ │ ├── util │ │ │ ├── errors │ │ │ │ ├── BUILD │ │ │ │ ├── doc.go │ │ │ │ └── errors.go │ │ │ ├── framer │ │ │ │ ├── BUILD │ │ │ │ └── framer.go │ │ │ ├── intstr │ │ │ │ ├── BUILD │ │ │ │ ├── generated.pb.go │ │ │ │ ├── generated.proto │ │ │ │ └── intstr.go │ │ │ ├── json │ │ │ │ ├── BUILD │ │ │ │ └── json.go │ │ │ ├── net │ │ │ │ ├── BUILD │ │ │ │ ├── http.go │ │ │ │ ├── interface.go │ │ │ │ ├── port_range.go │ │ │ │ ├── port_split.go │ │ │ │ └── util.go │ │ │ ├── runtime │ │ │ │ ├── BUILD │ │ │ │ └── runtime.go │ │ │ ├── sets │ │ │ │ ├── BUILD │ │ │ │ ├── byte.go │ │ │ │ ├── doc.go │ │ │ │ ├── empty.go │ │ │ │ ├── int.go │ │ │ │ ├── int64.go │ │ │ │ └── string.go │ │ │ ├── validation │ │ │ │ ├── BUILD │ │ │ │ ├── field │ │ │ │ │ ├── BUILD │ │ │ │ │ ├── errors.go │ │ │ │ │ └── path.go │ │ │ │ └── validation.go │ │ │ ├── wait │ │ │ │ ├── BUILD │ │ │ │ ├── doc.go │ │ │ │ └── wait.go │ │ │ └── yaml │ │ │ │ ├── BUILD │ │ │ │ └── decoder.go │ │ └── watch │ │ │ ├── BUILD │ │ │ ├── doc.go │ │ │ ├── filter.go │ │ │ ├── mux.go │ │ │ ├── streamwatcher.go │ │ │ ├── until.go │ │ │ ├── watch.go │ │ │ └── zz_generated.deepcopy.go │ └── third_party │ │ └── forked │ │ └── golang │ │ └── reflect │ │ ├── BUILD │ │ └── deep_equal.go │ ├── apiserver │ ├── LICENSE │ └── pkg │ │ ├── features │ │ ├── BUILD │ │ └── kube_features.go │ │ └── util │ │ └── feature │ │ ├── BUILD │ │ └── feature_gate.go │ ├── kube-openapi │ ├── LICENSE │ └── pkg │ │ └── common │ │ ├── common.go │ │ └── doc.go │ └── kubernetes │ ├── .bazelrc │ ├── .kazelcfg.json │ ├── BUILD.bazel │ ├── Godeps │ └── LICENSES │ ├── LICENSE │ ├── Makefile │ ├── Makefile.generated_files │ ├── WORKSPACE │ ├── cluster │ ├── gce │ │ ├── cos │ │ ├── custom │ │ └── ubuntu │ └── juju │ │ └── layers │ │ ├── kubeapi-load-balancer │ │ └── copyright │ │ ├── kubernetes-master │ │ ├── actions │ │ │ ├── namespace-delete │ │ │ └── namespace-list │ │ └── copyright │ │ └── kubernetes-worker │ │ └── copyright │ ├── pkg │ ├── apis │ │ ├── autoscaling │ │ │ ├── BUILD │ │ │ ├── OWNERS │ │ │ ├── annotations.go │ │ │ ├── doc.go │ │ │ ├── register.go │ │ │ ├── types.go │ │ │ └── zz_generated.deepcopy.go │ │ ├── core │ │ │ ├── BUILD │ │ │ ├── OWNERS │ │ │ ├── annotation_key_constants.go │ │ │ ├── doc.go │ │ │ ├── field_constants.go │ │ │ ├── json.go │ │ │ ├── objectreference.go │ │ │ ├── register.go │ │ │ ├── resource.go │ │ │ ├── taint.go │ │ │ ├── toleration.go │ │ │ ├── types.go │ │ │ ├── v1 │ │ │ │ ├── BUILD │ │ │ │ ├── OWNERS │ │ │ │ ├── conversion.go │ │ │ │ ├── defaults.go │ │ │ │ ├── doc.go │ │ │ │ ├── register.go │ │ │ │ ├── zz_generated.conversion.go │ │ │ │ └── zz_generated.defaults.go │ │ │ └── zz_generated.deepcopy.go │ │ ├── extensions │ │ │ ├── BUILD │ │ │ ├── OWNERS │ │ │ ├── doc.go │ │ │ ├── helpers.go │ │ │ ├── register.go │ │ │ ├── types.go │ │ │ └── zz_generated.deepcopy.go │ │ └── networking │ │ │ ├── BUILD │ │ │ ├── OWNERS │ │ │ ├── doc.go │ │ │ ├── register.go │ │ │ ├── types.go │ │ │ └── zz_generated.deepcopy.go │ ├── features │ │ ├── BUILD │ │ └── kube_features.go │ └── util │ │ ├── parsers │ │ ├── BUILD │ │ └── parsers.go │ │ └── pointer │ │ ├── BUILD │ │ └── pointer.go │ ├── staging │ └── src │ │ └── k8s.io │ │ ├── api │ │ └── LICENSE │ │ ├── apiextensions-apiserver │ │ └── LICENSE │ │ ├── apimachinery │ │ └── LICENSE │ │ ├── apiserver │ │ └── LICENSE │ │ ├── client-go │ │ └── LICENSE │ │ ├── code-generator │ │ └── LICENSE │ │ ├── kube-aggregator │ │ └── LICENSE │ │ ├── metrics │ │ └── LICENSE │ │ ├── sample-apiserver │ │ └── LICENSE │ │ └── sample-controller │ │ └── LICENSE │ └── third_party │ ├── forked │ ├── golang │ │ ├── LICENSE │ │ └── PATENTS │ ├── gonum │ │ └── graph │ │ │ └── LICENSE │ └── shell2junit │ │ └── LICENSE │ ├── htpasswd │ └── COPYING │ ├── intemp │ └── LICENSE │ └── swagger-ui │ └── LICENSE ├── webhook.go └── webhook_test.go /.gitignore: -------------------------------------------------------------------------------- 1 | main 2 | deploy/base/mutatingwebhook-ca-bundle.yaml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM golang AS builder 2 | 3 | ADD https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 /usr/bin/dep 4 | RUN chmod +x /usr/bin/dep 5 | 6 | WORKDIR $GOPATH/src/github.com/Monkeyanator/mutating-trace-admission-controller 7 | COPY Gopkg.toml Gopkg.lock ./ 8 | RUN dep ensure --vendor-only 9 | COPY . ./ 10 | RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix nocgo -o /webhook . 11 | 12 | FROM alpine:latest 13 | COPY --from=builder /webhook ./ 14 | ENTRYPOINT ["./webhook"] -------------------------------------------------------------------------------- /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 | branch = "master" 30 | name = "github.com/golang/glog" 31 | 32 | [[constraint]] 33 | name = "k8s.io/api" 34 | branch = "release-1.9" 35 | 36 | [[constraint]] 37 | name = "k8s.io/apimachinery" 38 | branch = "release-1.9" 39 | 40 | [prune] 41 | go-tests = true 42 | unused-packages = true 43 | 44 | # Fix: vendor/k8s.io/kubernetes/pkg/util/parsers/parsers.go:36:16: undefined: reference.ParseNormalizedNamed 45 | [[override]] 46 | name = "github.com/docker/distribution" 47 | branch = "master" 48 | 49 | [[constraint]] 50 | name = "github.com/evanphx/json-patch" 51 | version = "4.1.0" 52 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | IMAGE=trace-context-injector 2 | 3 | clean: 4 | @echo 'Removing generated configurations and local image build...' 5 | rm deploy/base/mutatingwebhook-ca-bundle.yaml 6 | docker rmi -f $(IMAGE) 7 | 8 | # docker commands 9 | docker: 10 | @echo 'Building image $(IMAGE)...' 11 | docker build -t $(IMAGE) . 12 | 13 | # cluster commands 14 | cluster-up: deploy-certs deploy-config 15 | 16 | cluster-down: delete-config delete-certs 17 | 18 | deploy-certs: 19 | @echo 'Generating certs and deploying into active cluster...' 20 | hack/webhook-create-signed-cert.sh --service trace-context-injector-webhook-svc --secret trace-context-injector-webhook-certs --namespace default 21 | cat deploy/base/mutatingwebhook.yaml | hack/webhook-patch-ca-bundle.sh > deploy/base/mutatingwebhook-ca-bundle.yaml 22 | 23 | delete-certs: 24 | @echo 'Deleting mutating controller certs...' 25 | kubectl delete secret trace-context-injector-webhook-certs 26 | 27 | deploy-config: 28 | @echo 'Applying configuration to active cluster...' 29 | kustomize build deploy/base | kubectl apply -f - 30 | 31 | delete-config: 32 | @echo 'Tearing down mutating controller and associated resources...' 33 | kustomize build deploy/base | kubectl delete -f - -------------------------------------------------------------------------------- /OWNERS: -------------------------------------------------------------------------------- 1 | approvers: 2 | - piosz 3 | - brancz 4 | - dashpole 5 | -------------------------------------------------------------------------------- /SECURITY_CONTACTS: -------------------------------------------------------------------------------- 1 | # Defined below are the security contacts for this repo. 2 | # 3 | # They are the contact point for the Product Security Team 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://github.com/kubernetes/sig-release/blob/master/security-release-process-documentation/security-release-process.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 | piosz 14 | brancz 15 | dashpole 16 | -------------------------------------------------------------------------------- /code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Kubernetes Community Code of Conduct 2 | 3 | Please refer to our [Kubernetes Community Code of Conduct](https://github.com/kubernetes/community/blob/master/code-of-conduct.md) 4 | -------------------------------------------------------------------------------- /config.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "errors" 5 | "fmt" 6 | "io/ioutil" 7 | 8 | yaml "gopkg.in/yaml.v2" 9 | ) 10 | 11 | // DefaultConfigPath refers to location of configuration mount dir specified in deployment 12 | const DefaultConfigPath = "/etc/webhook/config/config.yaml" 13 | 14 | // Config represents all config we need to initialize the webhook server 15 | type Config struct { 16 | Trace Trace `yaml:"trace"` 17 | } 18 | 19 | // Trace is the configuration for the trace context added to pods 20 | type Trace struct { 21 | SampleRate float64 `yaml:"sampleRate"` 22 | } 23 | 24 | // ParseConfigFromPath reads YAML config into config struct 25 | func ParseConfigFromPath(c *Config, path string) (bool, error) { 26 | 27 | configYaml, err := ioutil.ReadFile(path) 28 | if err != nil { 29 | return false, fmt.Errorf("could not read YAML configuration file: %v", err) 30 | } 31 | 32 | err = yaml.Unmarshal(configYaml, &c) 33 | if err != nil { 34 | return false, fmt.Errorf("could not umarshal YAML configuration file: %v", err) 35 | } 36 | 37 | return true, nil 38 | } 39 | 40 | // Validate accepts a WebhookServerConfig and returns whether the config was valid and an error if needed 41 | func (cfg *Config) Validate() (bool, error) { 42 | if cfg.Trace.SampleRate < 0 || cfg.Trace.SampleRate > 1 { 43 | return false, errors.New("sampling rate must be between 0 and 1 inclusive") 44 | } 45 | 46 | return true, nil 47 | } 48 | -------------------------------------------------------------------------------- /deploy/base/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: trace-context-injector-webhook-config-map 5 | data: 6 | config.yaml: | 7 | trace: 8 | sampleRate: 1.0 -------------------------------------------------------------------------------- /deploy/base/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: trace-context-injector-webhook-deployment 5 | spec: 6 | replicas: 1 7 | template: 8 | metadata: 9 | labels: 10 | app: trace-context-injector 11 | spec: 12 | containers: 13 | - name: trace-context-injector 14 | image: k8s.gcr.io/trace-context-injector:latest 15 | imagePullPolicy: Always 16 | args: 17 | - -configPath=/etc/webhook/config/config.yaml 18 | volumeMounts: 19 | - name: webhook-certs 20 | mountPath: /etc/webhook/certs 21 | readOnly: true 22 | - name: webhook-config 23 | mountPath: /etc/webhook/config 24 | volumes: 25 | - name: webhook-certs 26 | secret: 27 | secretName: trace-context-injector-webhook-certs 28 | - name: webhook-config 29 | configMap: 30 | name: trace-context-injector-webhook-config-map -------------------------------------------------------------------------------- /deploy/base/kustomization.yaml: -------------------------------------------------------------------------------- 1 | commonLabels: 2 | app: trace-context-injector 3 | resources: 4 | - deployment.yaml 5 | - mutatingwebhook-ca-bundle.yaml 6 | - service.yaml 7 | - configmap.yaml -------------------------------------------------------------------------------- /deploy/base/mutatingwebhook.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: admissionregistration.k8s.io/v1beta1 2 | kind: MutatingWebhookConfiguration 3 | metadata: 4 | name: trace-context-injector-webhook-cfg 5 | webhooks: 6 | - name: trace-context-injector.k8s.io 7 | clientConfig: 8 | service: 9 | name: trace-context-injector-webhook-svc 10 | namespace: default 11 | path: "/mutate" 12 | caBundle: ${CA_BUNDLE} 13 | rules: 14 | - operations: [ "CREATE" ] 15 | apiGroups: [""] 16 | apiVersions: ["v1"] 17 | resources: ["pods"] -------------------------------------------------------------------------------- /deploy/base/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: trace-context-injector-webhook-svc 5 | spec: 6 | ports: 7 | - port: 443 8 | targetPort: 443 9 | selector: 10 | app: trace-context-injector 11 | -------------------------------------------------------------------------------- /deploy/overlays/example/kustomization.yaml: -------------------------------------------------------------------------------- 1 | 2 | bases: 3 | - ../../base 4 | patches: 5 | - trace-context-injector-config.yaml -------------------------------------------------------------------------------- /deploy/overlays/example/trace-context-injector-config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: trace-context-injector-webhook-config-map 5 | data: 6 | config.yaml: | 7 | trace: 8 | sampleRate: 0.1 -------------------------------------------------------------------------------- /hack/webhook-patch-ca-bundle.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Original script found at: https://github.com/morvencao/kube-mutating-webhook-tutorial/blob/master/deployment/webhook-patch-ca-bundle.sh 3 | 4 | ROOT=$(cd $(dirname $0)/../../; pwd) 5 | 6 | set -o errexit 7 | set -o nounset 8 | set -o pipefail 9 | 10 | export CA_BUNDLE=$(kubectl get configmap -n kube-system extension-apiserver-authentication -o=jsonpath='{.data.client-ca-file}' | base64 | tr -d '\n') 11 | 12 | if command -v envsubst >/dev/null 2>&1; then 13 | envsubst 14 | else 15 | sed -e "s|\${CA_BUNDLE}|${CA_BUNDLE}|g" 16 | fi 17 | -------------------------------------------------------------------------------- /traceutil.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "context" 5 | "encoding/base64" 6 | 7 | "go.opencensus.io/trace" 8 | "go.opencensus.io/trace/propagation" 9 | ) 10 | 11 | // GenerateEmbeddableSpanContext takes a SpanContext and returns a serialized string 12 | func GenerateEmbeddableSpanContext() string { 13 | // should not be exported, purpose of this span is to retrieve OC compliant SpanContext 14 | _, tempSpan := trace.StartSpan(context.Background(), "") 15 | tempSpanContext := tempSpan.SpanContext() 16 | 17 | rawContextBytes := propagation.Binary(tempSpanContext) 18 | encodedContext := base64.StdEncoding.EncodeToString(rawContextBytes) 19 | 20 | return encodedContext 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/PuerkitoBio/purell/.gitignore: -------------------------------------------------------------------------------- 1 | *.sublime-* 2 | .DS_Store 3 | *.swp 4 | *.swo 5 | tags 6 | -------------------------------------------------------------------------------- /vendor/github.com/PuerkitoBio/purell/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4 5 | - 1.5 6 | - 1.6 7 | - tip 8 | -------------------------------------------------------------------------------- /vendor/github.com/PuerkitoBio/purell/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012, Martin Angers 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 5 | 6 | * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 7 | 8 | * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 9 | 10 | * Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. 11 | 12 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 13 | -------------------------------------------------------------------------------- /vendor/github.com/PuerkitoBio/urlesc/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4.x 5 | - 1.5.x 6 | - 1.6.x 7 | - 1.7.x 8 | - 1.8.x 9 | - tip 10 | 11 | install: 12 | - go build . 13 | 14 | script: 15 | - go test -v 16 | -------------------------------------------------------------------------------- /vendor/github.com/PuerkitoBio/urlesc/README.md: -------------------------------------------------------------------------------- 1 | urlesc [![Build Status](https://travis-ci.org/PuerkitoBio/urlesc.svg?branch=master)](https://travis-ci.org/PuerkitoBio/urlesc) [![GoDoc](http://godoc.org/github.com/PuerkitoBio/urlesc?status.svg)](http://godoc.org/github.com/PuerkitoBio/urlesc) 2 | ====== 3 | 4 | Package urlesc implements query escaping as per RFC 3986. 5 | 6 | It contains some parts of the net/url package, modified so as to allow 7 | some reserved characters incorrectly escaped by net/url (see [issue 5684](https://github.com/golang/go/issues/5684)). 8 | 9 | ## Install 10 | 11 | go get github.com/PuerkitoBio/urlesc 12 | 13 | ## License 14 | 15 | Go license (BSD-3-Clause) 16 | 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/distribution/reference/helpers.go: -------------------------------------------------------------------------------- 1 | package reference 2 | 3 | import "path" 4 | 5 | // IsNameOnly returns true if reference only contains a repo name. 6 | func IsNameOnly(ref Named) bool { 7 | if _, ok := ref.(NamedTagged); ok { 8 | return false 9 | } 10 | if _, ok := ref.(Canonical); ok { 11 | return false 12 | } 13 | return true 14 | } 15 | 16 | // FamiliarName returns the familiar name string 17 | // for the given named, familiarizing if needed. 18 | func FamiliarName(ref Named) string { 19 | if nn, ok := ref.(normalizedNamed); ok { 20 | return nn.Familiar().Name() 21 | } 22 | return ref.Name() 23 | } 24 | 25 | // FamiliarString returns the familiar string representation 26 | // for the given reference, familiarizing if needed. 27 | func FamiliarString(ref Reference) string { 28 | if nn, ok := ref.(normalizedNamed); ok { 29 | return nn.Familiar().String() 30 | } 31 | return ref.String() 32 | } 33 | 34 | // FamiliarMatch reports whether ref matches the specified pattern. 35 | // See https://godoc.org/path#Match for supported patterns. 36 | func FamiliarMatch(pattern string, ref Reference) (bool, error) { 37 | matched, err := path.Match(pattern, FamiliarString(ref)) 38 | if namedRef, isNamed := ref.(Named); isNamed && !matched { 39 | matched, _ = path.Match(pattern, FamiliarName(namedRef)) 40 | } 41 | return matched, err 42 | } 43 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/.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 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | 24 | restful.html 25 | 26 | *.out 27 | 28 | tmp.prof 29 | 30 | go-restful.test 31 | 32 | examples/restful-basic-authentication 33 | 34 | examples/restful-encoding-filter 35 | 36 | examples/restful-filters 37 | 38 | examples/restful-hello-world 39 | 40 | examples/restful-resource-functions 41 | 42 | examples/restful-serve-static 43 | 44 | examples/restful-user-service 45 | 46 | *.DS_Store 47 | examples/restful-user-resource 48 | 49 | examples/restful-multi-containers 50 | 51 | examples/restful-form-handling 52 | 53 | examples/restful-CORS-filter 54 | 55 | examples/restful-options-filter 56 | 57 | examples/restful-curly-router 58 | 59 | examples/restful-cpuprofiler-service 60 | 61 | examples/restful-pre-post-filters 62 | 63 | curly.prof 64 | 65 | examples/restful-NCSA-logging 66 | 67 | examples/restful-html-template 68 | 69 | s.html 70 | restful-path-tail 71 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.x 5 | 6 | script: go test -v -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012,2013 Ernest Micklei 2 | 3 | MIT License 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/Makefile: -------------------------------------------------------------------------------- 1 | all: test 2 | 3 | test: 4 | go test -v . 5 | 6 | ex: 7 | cd examples && ls *.go | xargs go build -o /tmp/ignore -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/Srcfile: -------------------------------------------------------------------------------- 1 | {"SkipDirs": ["examples"]} 2 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/bench_test.sh: -------------------------------------------------------------------------------- 1 | #go test -run=none -file bench_test.go -test.bench . -cpuprofile=bench_test.out 2 | 3 | go test -c 4 | ./go-restful.test -test.run=none -test.cpuprofile=tmp.prof -test.bench=BenchmarkMany 5 | ./go-restful.test -test.run=none -test.cpuprofile=curly.prof -test.bench=BenchmarkManyCurly 6 | 7 | #go tool pprof go-restful.test tmp.prof 8 | go tool pprof go-restful.test curly.prof 9 | 10 | 11 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/coverage.sh: -------------------------------------------------------------------------------- 1 | go test -coverprofile=coverage.out 2 | go tool cover -html=coverage.out -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/curly_route.go: -------------------------------------------------------------------------------- 1 | package restful 2 | 3 | // Copyright 2013 Ernest Micklei. All rights reserved. 4 | // Use of this source code is governed by a license 5 | // that can be found in the LICENSE file. 6 | 7 | // curlyRoute exits for sorting Routes by the CurlyRouter based on number of parameters and number of static path elements. 8 | type curlyRoute struct { 9 | route Route 10 | paramCount int 11 | staticCount int 12 | } 13 | 14 | type sortableCurlyRoutes []curlyRoute 15 | 16 | func (s *sortableCurlyRoutes) add(route curlyRoute) { 17 | *s = append(*s, route) 18 | } 19 | 20 | func (s sortableCurlyRoutes) routes() (routes []Route) { 21 | for _, each := range s { 22 | routes = append(routes, each.route) // TODO change return type 23 | } 24 | return routes 25 | } 26 | 27 | func (s sortableCurlyRoutes) Len() int { 28 | return len(s) 29 | } 30 | func (s sortableCurlyRoutes) Swap(i, j int) { 31 | s[i], s[j] = s[j], s[i] 32 | } 33 | func (s sortableCurlyRoutes) Less(i, j int) bool { 34 | ci := s[i] 35 | cj := s[j] 36 | 37 | // primary key 38 | if ci.staticCount < cj.staticCount { 39 | return true 40 | } 41 | if ci.staticCount > cj.staticCount { 42 | return false 43 | } 44 | // secundary key 45 | if ci.paramCount < cj.paramCount { 46 | return true 47 | } 48 | if ci.paramCount > cj.paramCount { 49 | return false 50 | } 51 | return ci.route.Path < cj.route.Path 52 | } 53 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/log/log.go: -------------------------------------------------------------------------------- 1 | package log 2 | 3 | import ( 4 | stdlog "log" 5 | "os" 6 | ) 7 | 8 | // StdLogger corresponds to a minimal subset of the interface satisfied by stdlib log.Logger 9 | type StdLogger interface { 10 | Print(v ...interface{}) 11 | Printf(format string, v ...interface{}) 12 | } 13 | 14 | var Logger StdLogger 15 | 16 | func init() { 17 | // default Logger 18 | SetLogger(stdlog.New(os.Stderr, "[restful] ", stdlog.LstdFlags|stdlog.Lshortfile)) 19 | } 20 | 21 | // SetLogger sets the logger for this package 22 | func SetLogger(customLogger StdLogger) { 23 | Logger = customLogger 24 | } 25 | 26 | // Print delegates to the Logger 27 | func Print(v ...interface{}) { 28 | Logger.Print(v...) 29 | } 30 | 31 | // Printf delegates to the Logger 32 | func Printf(format string, v ...interface{}) { 33 | Logger.Printf(format, v...) 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/logger.go: -------------------------------------------------------------------------------- 1 | package restful 2 | 3 | // Copyright 2014 Ernest Micklei. All rights reserved. 4 | // Use of this source code is governed by a license 5 | // that can be found in the LICENSE file. 6 | import ( 7 | "github.com/emicklei/go-restful/log" 8 | ) 9 | 10 | var trace bool = false 11 | var traceLogger log.StdLogger 12 | 13 | func init() { 14 | traceLogger = log.Logger // use the package logger by default 15 | } 16 | 17 | // TraceLogger enables detailed logging of Http request matching and filter invocation. Default no logger is set. 18 | // You may call EnableTracing() directly to enable trace logging to the package-wide logger. 19 | func TraceLogger(logger log.StdLogger) { 20 | traceLogger = logger 21 | EnableTracing(logger != nil) 22 | } 23 | 24 | // SetLogger exposes the setter for the global logger on the top-level package 25 | func SetLogger(customLogger log.StdLogger) { 26 | log.SetLogger(customLogger) 27 | } 28 | 29 | // EnableTracing can be used to Trace logging on and off. 30 | func EnableTracing(enabled bool) { 31 | trace = enabled 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/mime.go: -------------------------------------------------------------------------------- 1 | package restful 2 | 3 | import ( 4 | "strconv" 5 | "strings" 6 | ) 7 | 8 | type mime struct { 9 | media string 10 | quality float64 11 | } 12 | 13 | // insertMime adds a mime to a list and keeps it sorted by quality. 14 | func insertMime(l []mime, e mime) []mime { 15 | for i, each := range l { 16 | // if current mime has lower quality then insert before 17 | if e.quality > each.quality { 18 | left := append([]mime{}, l[0:i]...) 19 | return append(append(left, e), l[i:]...) 20 | } 21 | } 22 | return append(l, e) 23 | } 24 | 25 | // sortedMimes returns a list of mime sorted (desc) by its specified quality. 26 | func sortedMimes(accept string) (sorted []mime) { 27 | for _, each := range strings.Split(accept, ",") { 28 | typeAndQuality := strings.Split(strings.Trim(each, " "), ";") 29 | if len(typeAndQuality) == 1 { 30 | sorted = insertMime(sorted, mime{typeAndQuality[0], 1.0}) 31 | } else { 32 | // take factor 33 | parts := strings.Split(typeAndQuality[1], "=") 34 | if len(parts) == 2 { 35 | f, err := strconv.ParseFloat(parts[1], 64) 36 | if err != nil { 37 | traceLogger.Printf("unable to parse quality in %s, %v", each, err) 38 | } else { 39 | sorted = insertMime(sorted, mime{typeAndQuality[0], f}) 40 | } 41 | } 42 | } 43 | } 44 | return 45 | } 46 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/router.go: -------------------------------------------------------------------------------- 1 | package restful 2 | 3 | // Copyright 2013 Ernest Micklei. All rights reserved. 4 | // Use of this source code is governed by a license 5 | // that can be found in the LICENSE file. 6 | 7 | import "net/http" 8 | 9 | // A RouteSelector finds the best matching Route given the input HTTP Request 10 | // RouteSelectors can optionally also implement the PathProcessor interface to also calculate the 11 | // path parameters after the route has been selected. 12 | type RouteSelector interface { 13 | 14 | // SelectRoute finds a Route given the input HTTP Request and a list of WebServices. 15 | // It returns a selected Route and its containing WebService or an error indicating 16 | // a problem. 17 | SelectRoute( 18 | webServices []*WebService, 19 | httpRequest *http.Request) (selectedService *WebService, selected *Route, err error) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/service_error.go: -------------------------------------------------------------------------------- 1 | package restful 2 | 3 | // Copyright 2013 Ernest Micklei. All rights reserved. 4 | // Use of this source code is governed by a license 5 | // that can be found in the LICENSE file. 6 | 7 | import "fmt" 8 | 9 | // ServiceError is a transport object to pass information about a non-Http error occurred in a WebService while processing a request. 10 | type ServiceError struct { 11 | Code int 12 | Message string 13 | } 14 | 15 | // NewError returns a ServiceError using the code and reason 16 | func NewError(code int, message string) ServiceError { 17 | return ServiceError{Code: code, Message: message} 18 | } 19 | 20 | // Error returns a text representation of the service error 21 | func (s ServiceError) Error() string { 22 | return fmt.Sprintf("[ServiceError:%v] %v", s.Code, s.Message) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/web_service_container.go: -------------------------------------------------------------------------------- 1 | package restful 2 | 3 | // Copyright 2013 Ernest Micklei. All rights reserved. 4 | // Use of this source code is governed by a license 5 | // that can be found in the LICENSE file. 6 | 7 | import ( 8 | "net/http" 9 | ) 10 | 11 | // DefaultContainer is a restful.Container that uses http.DefaultServeMux 12 | var DefaultContainer *Container 13 | 14 | func init() { 15 | DefaultContainer = NewContainer() 16 | DefaultContainer.ServeMux = http.DefaultServeMux 17 | } 18 | 19 | // If set the true then panics will not be caught to return HTTP 500. 20 | // In that case, Route functions are responsible for handling any error situation. 21 | // Default value is false = recover from panics. This has performance implications. 22 | // OBSOLETE ; use restful.DefaultContainer.DoNotRecover(true) 23 | var DoNotRecover = false 24 | 25 | // Add registers a new WebService add it to the DefaultContainer. 26 | func Add(service *WebService) { 27 | DefaultContainer.Add(service) 28 | } 29 | 30 | // Filter appends a container FilterFunction from the DefaultContainer. 31 | // These are called before dispatching a http.Request to a WebService. 32 | func Filter(filter FilterFunction) { 33 | DefaultContainer.Filter(filter) 34 | } 35 | 36 | // RegisteredWebServices returns the collections of WebServices from the DefaultContainer 37 | func RegisteredWebServices() []*WebService { 38 | return DefaultContainer.RegisteredWebServices() 39 | } 40 | -------------------------------------------------------------------------------- /vendor/github.com/evanphx/json-patch/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8 5 | - 1.7 6 | 7 | install: 8 | - if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi 9 | - go get github.com/jessevdk/go-flags 10 | 11 | script: 12 | - go get 13 | - go test -cover ./... 14 | 15 | notifications: 16 | email: false 17 | -------------------------------------------------------------------------------- /vendor/github.com/ghodss/yaml/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX leaves these everywhere on SMB shares 2 | ._* 3 | 4 | # Eclipse files 5 | .classpath 6 | .project 7 | .settings/** 8 | 9 | # Emacs save files 10 | *~ 11 | 12 | # Vim-related files 13 | [._]*.s[a-w][a-z] 14 | [._]s[a-w][a-z] 15 | *.un~ 16 | Session.vim 17 | .netrwhist 18 | 19 | # Go test binaries 20 | *.test 21 | -------------------------------------------------------------------------------- /vendor/github.com/ghodss/yaml/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.3 4 | - 1.4 5 | script: 6 | - go test 7 | - go build 8 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/jsonpointer/.editorconfig: -------------------------------------------------------------------------------- 1 | # top-most EditorConfig file 2 | root = true 3 | 4 | # Unix-style newlines with a newline ending every file 5 | [*] 6 | end_of_line = lf 7 | insert_final_newline = true 8 | indent_style = space 9 | indent_size = 2 10 | trim_trailing_whitespace = true 11 | 12 | # Set default charset 13 | [*.{js,py,go,scala,rb,java,html,css,less,sass,md}] 14 | charset = utf-8 15 | 16 | # Tab indentation (no size specified) 17 | [*.go] 18 | indent_style = tab 19 | 20 | [*.md] 21 | trim_trailing_whitespace = false 22 | 23 | # Matches the exact files either package.json or .travis.yml 24 | [{package.json,.travis.yml}] 25 | indent_style = space 26 | indent_size = 2 27 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/jsonpointer/.gitignore: -------------------------------------------------------------------------------- 1 | secrets.yml 2 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/jsonpointer/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.7 4 | install: 5 | - go get -u github.com/stretchr/testify/assert 6 | - go get -u github.com/go-openapi/swag 7 | script: 8 | - go test -v -race -cover -coverprofile=coverage.txt -covermode=atomic ./... 9 | after_success: 10 | - bash <(curl -s https://codecov.io/bash) 11 | notifications: 12 | slack: 13 | secure: a5VgoiwB1G/AZqzmephPZIhEB9avMlsWSlVnM1dSAtYAwdrQHGTQxAmpOxYIoSPDhWNN5bfZmjd29++UlTwLcHSR+e0kJhH6IfDlsHj/HplNCJ9tyI0zYc7XchtdKgeMxMzBKCzgwFXGSbQGydXTliDNBo0HOzmY3cou/daMFTP60K+offcjS+3LRAYb1EroSRXZqrk1nuF/xDL3792DZUdPMiFR/L/Df6y74D6/QP4sTkTDFQitz4Wy/7jbsfj8dG6qK2zivgV6/l+w4OVjFkxVpPXogDWY10vVXNVynqxfJ7to2d1I9lNCHE2ilBCkWMIPdyJF7hjF8pKW+82yP4EzRh0vu8Xn0HT5MZpQxdRY/YMxNrWaG7SxsoEaO4q5uhgdzAqLYY3TRa7MjIK+7Ur+aqOeTXn6OKwVi0CjvZ6mIU3WUKSwiwkFZMbjRAkSb5CYwMEfGFO/z964xz83qGt6WAtBXNotqCQpTIiKtDHQeLOMfksHImCg6JLhQcWBVxamVgu0G3Pdh8Y6DyPnxraXY95+QDavbjqv7TeYT9T/FNnrkXaTTK0s4iWE5H4ACU0Qvz0wUYgfQrZv0/Hp7V17+rabUwnzYySHCy9SWX/7OV9Cfh31iMp9ZIffr76xmmThtOEqs8TrTtU6BWI3rWwvA9cXQipZTVtL0oswrGw= 14 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/jsonpointer/README.md: -------------------------------------------------------------------------------- 1 | # gojsonpointer [![Build Status](https://travis-ci.org/go-openapi/jsonpointer.svg?branch=master)](https://travis-ci.org/go-openapi/jsonpointer) [![codecov](https://codecov.io/gh/go-openapi/jsonpointer/branch/master/graph/badge.svg)](https://codecov.io/gh/go-openapi/jsonpointer) [![Slack Status](https://slackin.goswagger.io/badge.svg)](https://slackin.goswagger.io) 2 | 3 | [![license](http://img.shields.io/badge/license-Apache%20v2-orange.svg)](https://raw.githubusercontent.com/go-openapi/jsonpointer/master/LICENSE) [![GoDoc](https://godoc.org/github.com/go-openapi/jsonpointer?status.svg)](http://godoc.org/github.com/go-openapi/jsonpointer) 4 | An implementation of JSON Pointer - Go language 5 | 6 | ## Status 7 | Completed YES 8 | 9 | Tested YES 10 | 11 | ## References 12 | http://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-07 13 | 14 | ### Note 15 | The 4.Evaluation part of the previous reference, starting with 'If the currently referenced value is a JSON array, the reference token MUST contain either...' is not implemented. 16 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/jsonreference/.gitignore: -------------------------------------------------------------------------------- 1 | secrets.yml 2 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/jsonreference/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.7 4 | install: 5 | - go get -u github.com/stretchr/testify/assert 6 | - go get -u github.com/PuerkitoBio/purell 7 | - go get -u github.com/go-openapi/jsonpointer 8 | script: 9 | - go test -v -race -cover -coverprofile=coverage.txt -covermode=atomic ./... 10 | after_success: 11 | - bash <(curl -s https://codecov.io/bash) 12 | notifications: 13 | slack: 14 | secure: OpQG/36F7DSF00HLm9WZMhyqFCYYyYTsVDObW226cWiR8PWYiNfLZiSEvIzT1Gx4dDjhigKTIqcLhG34CkL5iNXDjm9Yyo2RYhQPlK8NErNqUEXuBqn4RqYHW48VGhEhOyDd4Ei0E2FN5ZbgpvHgtpkdZ6XDi64r3Ac89isP9aPHXQTuv2Jog6b4/OKKiUTftLcTIst0p4Cp3gqOJWf1wnoj+IadWiECNVQT6zb47IYjtyw6+uV8iUjTzdKcRB6Zc6b4Dq7JAg1Zd7Jfxkql3hlKp4PNlRf9Cy7y5iA3G7MLyg3FcPX5z2kmcyPt2jOTRMBWUJ5zIQpOxizAcN8WsT3WWBL5KbuYK6k0PzujrIDLqdxGpNmjkkMfDBT9cKmZpm2FdW+oZgPFJP+oKmAo4u4KJz/vjiPTXgQlN5bmrLuRMCp+AwC5wkIohTqWZVPE2TK6ZSnMYcg/W39s+RP/9mJoyryAvPSpBOLTI+biCgaUCTOAZxNTWpMFc3tPYntc41WWkdKcooZ9JA5DwfcaVFyTGQ3YXz+HvX6G1z/gW0Q/A4dBi9mj2iE1xm7tRTT+4VQ2AXFvSEI1HJpfPgYnwAtwOD1v3Qm2EUHk9sCdtEDR4wVGEPIVn44GnwFMnGKx9JWppMPYwFu3SVDdHt+E+LOlhZUply11Aa+IVrT2KUQ= 15 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/jsonreference/README.md: -------------------------------------------------------------------------------- 1 | # gojsonreference [![Build Status](https://travis-ci.org/go-openapi/jsonreference.svg?branch=master)](https://travis-ci.org/go-openapi/jsonreference) [![codecov](https://codecov.io/gh/go-openapi/jsonreference/branch/master/graph/badge.svg)](https://codecov.io/gh/go-openapi/jsonreference) [![Slack Status](https://slackin.goswagger.io/badge.svg)](https://slackin.goswagger.io) 2 | 3 | [![license](http://img.shields.io/badge/license-Apache%20v2-orange.svg)](https://raw.githubusercontent.com/go-openapi/jsonreference/master/LICENSE) [![GoDoc](https://godoc.org/github.com/go-openapi/jsonreference?status.svg)](http://godoc.org/github.com/go-openapi/jsonreference) 4 | An implementation of JSON Reference - Go language 5 | 6 | ## Status 7 | Work in progress ( 90% done ) 8 | 9 | ## Dependencies 10 | https://github.com/go-openapi/jsonpointer 11 | 12 | ## References 13 | http://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-07 14 | 15 | http://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03 16 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/spec/.editorconfig: -------------------------------------------------------------------------------- 1 | # top-most EditorConfig file 2 | root = true 3 | 4 | # Unix-style newlines with a newline ending every file 5 | [*] 6 | end_of_line = lf 7 | insert_final_newline = true 8 | indent_style = space 9 | indent_size = 2 10 | trim_trailing_whitespace = true 11 | 12 | # Set default charset 13 | [*.{js,py,go,scala,rb,java,html,css,less,sass,md}] 14 | charset = utf-8 15 | 16 | # Tab indentation (no size specified) 17 | [*.go] 18 | indent_style = tab 19 | 20 | [*.md] 21 | trim_trailing_whitespace = false 22 | 23 | # Matches the exact files either package.json or .travis.yml 24 | [{package.json,.travis.yml}] 25 | indent_style = space 26 | indent_size = 2 27 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/spec/.gitignore: -------------------------------------------------------------------------------- 1 | secrets.yml 2 | coverage.out 3 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/spec/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.7 4 | install: 5 | - go get -u github.com/stretchr/testify 6 | - go get -u github.com/go-openapi/swag 7 | - go get -u gopkg.in/yaml.v2 8 | - go get -u github.com/go-openapi/jsonpointer 9 | - go get -u github.com/go-openapi/jsonreference 10 | script: 11 | - go test -v -race -cover -coverprofile=coverage.txt -covermode=atomic ./... 12 | after_success: 13 | - bash <(curl -s https://codecov.io/bash) 14 | notifications: 15 | slack: 16 | secure: QUWvCkBBK09GF7YtEvHHVt70JOkdlNBG0nIKu/5qc4/nW5HP8I2w0SEf/XR2je0eED1Qe3L/AfMCWwrEj+IUZc3l4v+ju8X8R3Lomhme0Eb0jd1MTMCuPcBT47YCj0M7RON7vXtbFfm1hFJ/jLe5+9FXz0hpXsR24PJc5ZIi/ogNwkaPqG4BmndzecpSh0vc2FJPZUD9LT0I09REY/vXR0oQAalLkW0asGD5taHZTUZq/kBpsNxaAFrLM23i4mUcf33M5fjLpvx5LRICrX/57XpBrDh2TooBU6Qj3CgoY0uPRYUmSNxbVx1czNzl2JtEpb5yjoxfVPQeg0BvQM00G8LJINISR+ohrjhkZmAqchDupAX+yFrxTtORa78CtnIL6z/aTNlgwwVD8kvL/1pFA/JWYmKDmz93mV/+6wubGzNSQCstzjkFA4/iZEKewKUoRIAi/fxyscP6L/rCpmY/4llZZvrnyTqVbt6URWpopUpH4rwYqreXAtJxJsfBJIeSmUIiDIOMGkCTvyTEW3fWGmGoqWtSHLoaWDyAIGb7azb+KvfpWtEcoPFWfSWU+LGee0A/YsUhBl7ADB9A0CJEuR8q4BPpKpfLwPKSiKSAXL7zDkyjExyhtgqbSl2jS+rKIHOZNL8JkCcTP2MKMVd563C5rC5FMKqu3S9m2b6380E= 17 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/spec/README.md: -------------------------------------------------------------------------------- 1 | # OAI object model [![Build Status](https://travis-ci.org/go-openapi/spec.svg?branch=master)](https://travis-ci.org/go-openapi/spec) [![codecov](https://codecov.io/gh/go-openapi/spec/branch/master/graph/badge.svg)](https://codecov.io/gh/go-openapi/spec) [![Slack Status](https://slackin.goswagger.io/badge.svg)](https://slackin.goswagger.io) 2 | 3 | [![license](http://img.shields.io/badge/license-Apache%20v2-orange.svg)](https://raw.githubusercontent.com/go-openapi/spec/master/LICENSE) [![GoDoc](https://godoc.org/github.com/go-openapi/spec?status.svg)](http://godoc.org/github.com/go-openapi/spec) 4 | 5 | The object model for OpenAPI specification documents 6 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/spec/contact_info.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 go-swagger maintainers 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 spec 16 | 17 | // ContactInfo contact information for the exposed API. 18 | // 19 | // For more information: http://goo.gl/8us55a#contactObject 20 | type ContactInfo struct { 21 | Name string `json:"name,omitempty"` 22 | URL string `json:"url,omitempty"` 23 | Email string `json:"email,omitempty"` 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/spec/external_docs.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 go-swagger maintainers 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 spec 16 | 17 | // ExternalDocumentation allows referencing an external resource for 18 | // extended documentation. 19 | // 20 | // For more information: http://goo.gl/8us55a#externalDocumentationObject 21 | type ExternalDocumentation struct { 22 | Description string `json:"description,omitempty"` 23 | URL string `json:"url,omitempty"` 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/spec/license.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 go-swagger maintainers 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 spec 16 | 17 | // License information for the exposed API. 18 | // 19 | // For more information: http://goo.gl/8us55a#licenseObject 20 | type License struct { 21 | Name string `json:"name,omitempty"` 22 | URL string `json:"url,omitempty"` 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/swag/.editorconfig: -------------------------------------------------------------------------------- 1 | # top-most EditorConfig file 2 | root = true 3 | 4 | # Unix-style newlines with a newline ending every file 5 | [*] 6 | end_of_line = lf 7 | insert_final_newline = true 8 | indent_style = space 9 | indent_size = 2 10 | trim_trailing_whitespace = true 11 | 12 | # Set default charset 13 | [*.{js,py,go,scala,rb,java,html,css,less,sass,md}] 14 | charset = utf-8 15 | 16 | # Tab indentation (no size specified) 17 | [*.go] 18 | indent_style = tab 19 | 20 | [*.md] 21 | trim_trailing_whitespace = false 22 | 23 | # Matches the exact files either package.json or .travis.yml 24 | [{package.json,.travis.yml}] 25 | indent_style = space 26 | indent_size = 2 27 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/swag/.gitignore: -------------------------------------------------------------------------------- 1 | secrets.yml 2 | vendor 3 | Godeps 4 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/swag/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.8 4 | install: 5 | - go get -u github.com/stretchr/testify 6 | - go get -u github.com/mailru/easyjson 7 | - go get -u gopkg.in/yaml.v2 8 | script: 9 | - go test -v -race -cover -coverprofile=coverage.txt -covermode=atomic ./... 10 | after_success: 11 | - bash <(curl -s https://codecov.io/bash) 12 | notifications: 13 | slack: 14 | secure: QUWvCkBBK09GF7YtEvHHVt70JOkdlNBG0nIKu/5qc4/nW5HP8I2w0SEf/XR2je0eED1Qe3L/AfMCWwrEj+IUZc3l4v+ju8X8R3Lomhme0Eb0jd1MTMCuPcBT47YCj0M7RON7vXtbFfm1hFJ/jLe5+9FXz0hpXsR24PJc5ZIi/ogNwkaPqG4BmndzecpSh0vc2FJPZUD9LT0I09REY/vXR0oQAalLkW0asGD5taHZTUZq/kBpsNxaAFrLM23i4mUcf33M5fjLpvx5LRICrX/57XpBrDh2TooBU6Qj3CgoY0uPRYUmSNxbVx1czNzl2JtEpb5yjoxfVPQeg0BvQM00G8LJINISR+ohrjhkZmAqchDupAX+yFrxTtORa78CtnIL6z/aTNlgwwVD8kvL/1pFA/JWYmKDmz93mV/+6wubGzNSQCstzjkFA4/iZEKewKUoRIAi/fxyscP6L/rCpmY/4llZZvrnyTqVbt6URWpopUpH4rwYqreXAtJxJsfBJIeSmUIiDIOMGkCTvyTEW3fWGmGoqWtSHLoaWDyAIGb7azb+KvfpWtEcoPFWfSWU+LGee0A/YsUhBl7ADB9A0CJEuR8q4BPpKpfLwPKSiKSAXL7zDkyjExyhtgqbSl2jS+rKIHOZNL8JkCcTP2MKMVd563C5rC5FMKqu3S9m2b6380E= 15 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/swag/README.md: -------------------------------------------------------------------------------- 1 | # Swag [![Build Status](https://travis-ci.org/go-openapi/swag.svg?branch=master)](https://travis-ci.org/go-openapi/swag) [![codecov](https://codecov.io/gh/go-openapi/swag/branch/master/graph/badge.svg)](https://codecov.io/gh/go-openapi/swag) [![Slack Status](https://slackin.goswagger.io/badge.svg)](https://slackin.goswagger.io) 2 | 3 | [![license](http://img.shields.io/badge/license-Apache%20v2-orange.svg)](https://raw.githubusercontent.com/go-openapi/swag/master/LICENSE) [![GoDoc](https://godoc.org/github.com/go-openapi/swag?status.svg)](http://godoc.org/github.com/go-openapi/swag) 4 | 5 | Contains a bunch of helper functions: 6 | 7 | * convert between value and pointers for builtins 8 | * convert from string to builtin 9 | * fast json concatenation 10 | * search in path 11 | * load from file or http 12 | * name manglin -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/swag/net.go: -------------------------------------------------------------------------------- 1 | package swag 2 | 3 | import ( 4 | "net" 5 | "strconv" 6 | ) 7 | 8 | // SplitHostPort splits a network address into a host and a port. 9 | // The port is -1 when there is no port to be found 10 | func SplitHostPort(addr string) (host string, port int, err error) { 11 | h, p, err := net.SplitHostPort(addr) 12 | if err != nil { 13 | return "", -1, err 14 | } 15 | if p == "" { 16 | return "", -1, &net.AddrError{Err: "missing port in address", Addr: addr} 17 | } 18 | 19 | pi, err := strconv.Atoi(p) 20 | if err != nil { 21 | return "", -1, err 22 | } 23 | return h, pi, nil 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/swag/post_go18.go: -------------------------------------------------------------------------------- 1 | // +build go1.8 2 | 3 | package swag 4 | 5 | import "net/url" 6 | 7 | func pathUnescape(path string) (string, error) { 8 | return url.PathUnescape(path) 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/swag/pre_go18.go: -------------------------------------------------------------------------------- 1 | // +build !go1.8 2 | 3 | package swag 4 | 5 | import "net/url" 6 | 7 | func pathUnescape(path string) (string, error) { 8 | return url.QueryUnescape(path) 9 | } 10 | -------------------------------------------------------------------------------- /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/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/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/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/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 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.codecov.yml: -------------------------------------------------------------------------------- 1 | ignore: 2 | - "output_tests/.*" 3 | 4 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /bug_test.go 3 | /coverage.txt 4 | /.idea 5 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [[projects]] 5 | name = "github.com/modern-go/concurrent" 6 | packages = ["."] 7 | revision = "e0a39a4cb4216ea8db28e22a69f4ec25610d513a" 8 | version = "1.0.0" 9 | 10 | [[projects]] 11 | name = "github.com/modern-go/reflect2" 12 | packages = ["."] 13 | revision = "1df9eeb2bb81f327b96228865c5687bc2194af3f" 14 | version = "1.0.0" 15 | 16 | [solve-meta] 17 | analyzer-name = "dep" 18 | analyzer-version = 1 19 | inputs-digest = "ac7003b5a981716353a43055ab7d4c5357403cb30a60de2dbdeb446c1544beaa" 20 | solver-name = "gps-cdcl" 21 | solver-version = 1 22 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/Gopkg.toml: -------------------------------------------------------------------------------- 1 | # Gopkg.toml example 2 | # 3 | # Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md 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 | ignored = ["github.com/davecgh/go-spew*","github.com/google/gofuzz*","github.com/stretchr/testify*"] 23 | 24 | [[constraint]] 25 | name = "github.com/modern-go/reflect2" 26 | version = "1.0.0" 27 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 json-iterator 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 all 13 | 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 THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/any_int32.go: -------------------------------------------------------------------------------- 1 | package jsoniter 2 | 3 | import ( 4 | "strconv" 5 | ) 6 | 7 | type int32Any struct { 8 | baseAny 9 | val int32 10 | } 11 | 12 | func (any *int32Any) LastError() error { 13 | return nil 14 | } 15 | 16 | func (any *int32Any) ValueType() ValueType { 17 | return NumberValue 18 | } 19 | 20 | func (any *int32Any) MustBeValid() Any { 21 | return any 22 | } 23 | 24 | func (any *int32Any) ToBool() bool { 25 | return any.val != 0 26 | } 27 | 28 | func (any *int32Any) ToInt() int { 29 | return int(any.val) 30 | } 31 | 32 | func (any *int32Any) ToInt32() int32 { 33 | return any.val 34 | } 35 | 36 | func (any *int32Any) ToInt64() int64 { 37 | return int64(any.val) 38 | } 39 | 40 | func (any *int32Any) ToUint() uint { 41 | return uint(any.val) 42 | } 43 | 44 | func (any *int32Any) ToUint32() uint32 { 45 | return uint32(any.val) 46 | } 47 | 48 | func (any *int32Any) ToUint64() uint64 { 49 | return uint64(any.val) 50 | } 51 | 52 | func (any *int32Any) ToFloat32() float32 { 53 | return float32(any.val) 54 | } 55 | 56 | func (any *int32Any) ToFloat64() float64 { 57 | return float64(any.val) 58 | } 59 | 60 | func (any *int32Any) ToString() string { 61 | return strconv.FormatInt(int64(any.val), 10) 62 | } 63 | 64 | func (any *int32Any) WriteTo(stream *Stream) { 65 | stream.WriteInt32(any.val) 66 | } 67 | 68 | func (any *int32Any) Parse() *Iterator { 69 | return nil 70 | } 71 | 72 | func (any *int32Any) GetInterface() interface{} { 73 | return any.val 74 | } 75 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/any_int64.go: -------------------------------------------------------------------------------- 1 | package jsoniter 2 | 3 | import ( 4 | "strconv" 5 | ) 6 | 7 | type int64Any struct { 8 | baseAny 9 | val int64 10 | } 11 | 12 | func (any *int64Any) LastError() error { 13 | return nil 14 | } 15 | 16 | func (any *int64Any) ValueType() ValueType { 17 | return NumberValue 18 | } 19 | 20 | func (any *int64Any) MustBeValid() Any { 21 | return any 22 | } 23 | 24 | func (any *int64Any) ToBool() bool { 25 | return any.val != 0 26 | } 27 | 28 | func (any *int64Any) ToInt() int { 29 | return int(any.val) 30 | } 31 | 32 | func (any *int64Any) ToInt32() int32 { 33 | return int32(any.val) 34 | } 35 | 36 | func (any *int64Any) ToInt64() int64 { 37 | return any.val 38 | } 39 | 40 | func (any *int64Any) ToUint() uint { 41 | return uint(any.val) 42 | } 43 | 44 | func (any *int64Any) ToUint32() uint32 { 45 | return uint32(any.val) 46 | } 47 | 48 | func (any *int64Any) ToUint64() uint64 { 49 | return uint64(any.val) 50 | } 51 | 52 | func (any *int64Any) ToFloat32() float32 { 53 | return float32(any.val) 54 | } 55 | 56 | func (any *int64Any) ToFloat64() float64 { 57 | return float64(any.val) 58 | } 59 | 60 | func (any *int64Any) ToString() string { 61 | return strconv.FormatInt(any.val, 10) 62 | } 63 | 64 | func (any *int64Any) WriteTo(stream *Stream) { 65 | stream.WriteInt64(any.val) 66 | } 67 | 68 | func (any *int64Any) Parse() *Iterator { 69 | return nil 70 | } 71 | 72 | func (any *int64Any) GetInterface() interface{} { 73 | return any.val 74 | } 75 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/any_nil.go: -------------------------------------------------------------------------------- 1 | package jsoniter 2 | 3 | type nilAny struct { 4 | baseAny 5 | } 6 | 7 | func (any *nilAny) LastError() error { 8 | return nil 9 | } 10 | 11 | func (any *nilAny) ValueType() ValueType { 12 | return NilValue 13 | } 14 | 15 | func (any *nilAny) MustBeValid() Any { 16 | return any 17 | } 18 | 19 | func (any *nilAny) ToBool() bool { 20 | return false 21 | } 22 | 23 | func (any *nilAny) ToInt() int { 24 | return 0 25 | } 26 | 27 | func (any *nilAny) ToInt32() int32 { 28 | return 0 29 | } 30 | 31 | func (any *nilAny) ToInt64() int64 { 32 | return 0 33 | } 34 | 35 | func (any *nilAny) ToUint() uint { 36 | return 0 37 | } 38 | 39 | func (any *nilAny) ToUint32() uint32 { 40 | return 0 41 | } 42 | 43 | func (any *nilAny) ToUint64() uint64 { 44 | return 0 45 | } 46 | 47 | func (any *nilAny) ToFloat32() float32 { 48 | return 0 49 | } 50 | 51 | func (any *nilAny) ToFloat64() float64 { 52 | return 0 53 | } 54 | 55 | func (any *nilAny) ToString() string { 56 | return "" 57 | } 58 | 59 | func (any *nilAny) WriteTo(stream *Stream) { 60 | stream.WriteNil() 61 | } 62 | 63 | func (any *nilAny) Parse() *Iterator { 64 | return nil 65 | } 66 | 67 | func (any *nilAny) GetInterface() interface{} { 68 | return nil 69 | } 70 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/any_uint64.go: -------------------------------------------------------------------------------- 1 | package jsoniter 2 | 3 | import ( 4 | "strconv" 5 | ) 6 | 7 | type uint64Any struct { 8 | baseAny 9 | val uint64 10 | } 11 | 12 | func (any *uint64Any) LastError() error { 13 | return nil 14 | } 15 | 16 | func (any *uint64Any) ValueType() ValueType { 17 | return NumberValue 18 | } 19 | 20 | func (any *uint64Any) MustBeValid() Any { 21 | return any 22 | } 23 | 24 | func (any *uint64Any) ToBool() bool { 25 | return any.val != 0 26 | } 27 | 28 | func (any *uint64Any) ToInt() int { 29 | return int(any.val) 30 | } 31 | 32 | func (any *uint64Any) ToInt32() int32 { 33 | return int32(any.val) 34 | } 35 | 36 | func (any *uint64Any) ToInt64() int64 { 37 | return int64(any.val) 38 | } 39 | 40 | func (any *uint64Any) ToUint() uint { 41 | return uint(any.val) 42 | } 43 | 44 | func (any *uint64Any) ToUint32() uint32 { 45 | return uint32(any.val) 46 | } 47 | 48 | func (any *uint64Any) ToUint64() uint64 { 49 | return any.val 50 | } 51 | 52 | func (any *uint64Any) ToFloat32() float32 { 53 | return float32(any.val) 54 | } 55 | 56 | func (any *uint64Any) ToFloat64() float64 { 57 | return float64(any.val) 58 | } 59 | 60 | func (any *uint64Any) ToString() string { 61 | return strconv.FormatUint(any.val, 10) 62 | } 63 | 64 | func (any *uint64Any) WriteTo(stream *Stream) { 65 | stream.WriteUint64(any.val) 66 | } 67 | 68 | func (any *uint64Any) Parse() *Iterator { 69 | return nil 70 | } 71 | 72 | func (any *uint64Any) GetInterface() interface{} { 73 | return any.val 74 | } 75 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | set -x 4 | 5 | if [ ! -d /tmp/build-golang/src/github.com/json-iterator ]; then 6 | mkdir -p /tmp/build-golang/src/github.com/json-iterator 7 | ln -s $PWD /tmp/build-golang/src/github.com/json-iterator/go 8 | fi 9 | export GOPATH=/tmp/build-golang 10 | go get -u github.com/golang/dep/cmd/dep 11 | cd /tmp/build-golang/src/github.com/json-iterator/go 12 | exec $GOPATH/bin/dep ensure -update 13 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md: -------------------------------------------------------------------------------- 1 | | json type \ dest type | bool | int | uint | float |string| 2 | | --- | --- | --- | --- |--|--| 3 | | number | positive => true
negative => true
zero => false| 23.2 => 23
-32.1 => -32| 12.1 => 12
-12.1 => 0|as normal|same as origin| 4 | | string | empty string => false
string "0" => false
other strings => true | "123.32" => 123
"-123.4" => -123
"123.23xxxw" => 123
"abcde12" => 0
"-32.1" => -32| 13.2 => 13
-1.1 => 0 |12.1 => 12.1
-12.3 => -12.3
12.4xxa => 12.4
+1.1e2 =>110 |same as origin| 5 | | bool | true => true
false => false| true => 1
false => 0 | true => 1
false => 0 |true => 1
false => 0|true => "true"
false => "false"| 6 | | object | true | 0 | 0 |0|originnal json| 7 | | array | empty array => false
nonempty array => true| [] => 0
[1,2] => 1 | [] => 0
[1,2] => 1 |[] => 0
[1,2] => 1|original json| -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/jsoniter.go: -------------------------------------------------------------------------------- 1 | // Package jsoniter implements encoding and decoding of JSON as defined in 2 | // RFC 4627 and provides interfaces with identical syntax of standard lib encoding/json. 3 | // Converting from encoding/json to jsoniter is no more than replacing the package with jsoniter 4 | // and variable type declarations (if any). 5 | // jsoniter interfaces gives 100% compatibility with code using standard lib. 6 | // 7 | // "JSON and Go" 8 | // (https://golang.org/doc/articles/json_and_go.html) 9 | // gives a description of how Marshal/Unmarshal operate 10 | // between arbitrary or predefined json objects and bytes, 11 | // and it applies to jsoniter.Marshal/Unmarshal as well. 12 | // 13 | // Besides, jsoniter.Iterator provides a different set of interfaces 14 | // iterating given bytes/string/reader 15 | // and yielding parsed elements one by one. 16 | // This set of interfaces reads input as required and gives 17 | // better performance. 18 | package jsoniter 19 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/pool.go: -------------------------------------------------------------------------------- 1 | package jsoniter 2 | 3 | import ( 4 | "io" 5 | ) 6 | 7 | // IteratorPool a thread safe pool of iterators with same configuration 8 | type IteratorPool interface { 9 | BorrowIterator(data []byte) *Iterator 10 | ReturnIterator(iter *Iterator) 11 | } 12 | 13 | // StreamPool a thread safe pool of streams with same configuration 14 | type StreamPool interface { 15 | BorrowStream(writer io.Writer) *Stream 16 | ReturnStream(stream *Stream) 17 | } 18 | 19 | func (cfg *frozenConfig) BorrowStream(writer io.Writer) *Stream { 20 | stream := cfg.streamPool.Get().(*Stream) 21 | stream.Reset(writer) 22 | return stream 23 | } 24 | 25 | func (cfg *frozenConfig) ReturnStream(stream *Stream) { 26 | stream.Error = nil 27 | stream.Attachment = nil 28 | cfg.streamPool.Put(stream) 29 | } 30 | 31 | func (cfg *frozenConfig) BorrowIterator(data []byte) *Iterator { 32 | iter := cfg.iteratorPool.Get().(*Iterator) 33 | iter.ResetBytes(data) 34 | return iter 35 | } 36 | 37 | func (cfg *frozenConfig) ReturnIterator(iter *Iterator) { 38 | iter.Error = nil 39 | iter.Attachment = nil 40 | cfg.iteratorPool.Put(iter) 41 | } 42 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/json-iterator/go $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Mail.Ru Group 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/jlexer/bytestostr.go: -------------------------------------------------------------------------------- 1 | // This file will only be included to the build if neither 2 | // easyjson_nounsafe nor appengine build tag is set. See README notes 3 | // for more details. 4 | 5 | //+build !easyjson_nounsafe 6 | //+build !appengine 7 | 8 | package jlexer 9 | 10 | import ( 11 | "reflect" 12 | "unsafe" 13 | ) 14 | 15 | // bytesToStr creates a string pointing at the slice to avoid copying. 16 | // 17 | // Warning: the string returned by the function should be used with care, as the whole input data 18 | // chunk may be either blocked from being freed by GC because of a single string or the buffer.Data 19 | // may be garbage-collected even when the string exists. 20 | func bytesToStr(data []byte) string { 21 | h := (*reflect.SliceHeader)(unsafe.Pointer(&data)) 22 | shdr := reflect.StringHeader{Data: h.Data, Len: h.Len} 23 | return *(*string)(unsafe.Pointer(&shdr)) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/jlexer/bytestostr_nounsafe.go: -------------------------------------------------------------------------------- 1 | // This file is included to the build if any of the buildtags below 2 | // are defined. Refer to README notes for more details. 3 | 4 | //+build easyjson_nounsafe appengine 5 | 6 | package jlexer 7 | 8 | // bytesToStr creates a string normally from []byte 9 | // 10 | // Note that this method is roughly 1.5x slower than using the 'unsafe' method. 11 | func bytesToStr(data []byte) string { 12 | return string(data) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/jlexer/error.go: -------------------------------------------------------------------------------- 1 | package jlexer 2 | 3 | import "fmt" 4 | 5 | // LexerError implements the error interface and represents all possible errors that can be 6 | // generated during parsing the JSON data. 7 | type LexerError struct { 8 | Reason string 9 | Offset int 10 | Data string 11 | } 12 | 13 | func (l *LexerError) Error() string { 14 | return fmt.Sprintf("parse error: %s near offset %d of '%s'", l.Reason, l.Offset, l.Data) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/.gitignore: -------------------------------------------------------------------------------- 1 | /coverage.txt 2 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/executor.go: -------------------------------------------------------------------------------- 1 | package concurrent 2 | 3 | import "context" 4 | 5 | // Executor replace go keyword to start a new goroutine 6 | // the goroutine should cancel itself if the context passed in has been cancelled 7 | // the goroutine started by the executor, is owned by the executor 8 | // we can cancel all executors owned by the executor just by stop the executor itself 9 | // however Executor interface does not Stop method, the one starting and owning executor 10 | // should use the concrete type of executor, instead of this interface. 11 | type Executor interface { 12 | // Go starts a new goroutine controlled by the context 13 | Go(handler func(ctx context.Context)) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/go_above_19.go: -------------------------------------------------------------------------------- 1 | //+build go1.9 2 | 3 | package concurrent 4 | 5 | import "sync" 6 | 7 | // Map is a wrapper for sync.Map introduced in go1.9 8 | type Map struct { 9 | sync.Map 10 | } 11 | 12 | // NewMap creates a thread safe Map 13 | func NewMap() *Map { 14 | return &Map{} 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/go_below_19.go: -------------------------------------------------------------------------------- 1 | //+build !go1.9 2 | 3 | package concurrent 4 | 5 | import "sync" 6 | 7 | // Map implements a thread safe map for go version below 1.9 using mutex 8 | type Map struct { 9 | lock sync.RWMutex 10 | data map[interface{}]interface{} 11 | } 12 | 13 | // NewMap creates a thread safe map 14 | func NewMap() *Map { 15 | return &Map{ 16 | data: make(map[interface{}]interface{}, 32), 17 | } 18 | } 19 | 20 | // Load is same as sync.Map Load 21 | func (m *Map) Load(key interface{}) (elem interface{}, found bool) { 22 | m.lock.RLock() 23 | elem, found = m.data[key] 24 | m.lock.RUnlock() 25 | return 26 | } 27 | 28 | // Load is same as sync.Map Store 29 | func (m *Map) Store(key interface{}, elem interface{}) { 30 | m.lock.Lock() 31 | m.data[key] = elem 32 | m.lock.Unlock() 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/log.go: -------------------------------------------------------------------------------- 1 | package concurrent 2 | 3 | import ( 4 | "os" 5 | "log" 6 | "io/ioutil" 7 | ) 8 | 9 | // ErrorLogger is used to print out error, can be set to writer other than stderr 10 | var ErrorLogger = log.New(os.Stderr, "", 0) 11 | 12 | // InfoLogger is used to print informational message, default to off 13 | var InfoLogger = log.New(ioutil.Discard, "", 0) -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/modern-go/concurrent $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [[projects]] 5 | name = "github.com/modern-go/concurrent" 6 | packages = ["."] 7 | revision = "e0a39a4cb4216ea8db28e22a69f4ec25610d513a" 8 | version = "1.0.0" 9 | 10 | [solve-meta] 11 | analyzer-name = "dep" 12 | analyzer-version = 1 13 | inputs-digest = "daee8a88b3498b61c5640056665b8b9eea062006f5e596bbb6a3ed9119a11ec7" 14 | solver-name = "gps-cdcl" 15 | solver-version = 1 16 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/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 | ignored = ["github.com/modern-go/test","github.com/modern-go/test/must","github.com/modern-go/test/should"] 28 | 29 | [[constraint]] 30 | name = "github.com/modern-go/concurrent" 31 | version = "1.0.0" 32 | 33 | [prune] 34 | go-tests = true 35 | unused-packages = true 36 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/README.md: -------------------------------------------------------------------------------- 1 | # reflect2 2 | reflect api that avoids runtime reflect.Value cost 3 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_above_17.go: -------------------------------------------------------------------------------- 1 | //+build go1.7 2 | 3 | package reflect2 4 | 5 | import "unsafe" 6 | 7 | //go:linkname resolveTypeOff reflect.resolveTypeOff 8 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer 9 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_above_19.go: -------------------------------------------------------------------------------- 1 | //+build go1.9 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | //go:linkname makemap reflect.makemap 10 | func makemap(rtype unsafe.Pointer, cap int) (m unsafe.Pointer) 11 | 12 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { 13 | return makemap(rtype, cap) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_below_17.go: -------------------------------------------------------------------------------- 1 | //+build !go1.7 2 | 3 | package reflect2 4 | 5 | import "unsafe" 6 | 7 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer { 8 | return nil 9 | } -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_below_19.go: -------------------------------------------------------------------------------- 1 | //+build !go1.9 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | //go:linkname makemap reflect.makemap 10 | func makemap(rtype unsafe.Pointer) (m unsafe.Pointer) 11 | 12 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { 13 | return makemap(rtype) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/reflect2_amd64.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubernetes-retired/mutating-trace-admission-controller/8800f77acd67b2e30a34a284b393f018a154e2ea/vendor/github.com/modern-go/reflect2/reflect2_amd64.s -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/reflect2_kind.go: -------------------------------------------------------------------------------- 1 | package reflect2 2 | 3 | import ( 4 | "reflect" 5 | "unsafe" 6 | ) 7 | 8 | // DefaultTypeOfKind return the non aliased default type for the kind 9 | func DefaultTypeOfKind(kind reflect.Kind) Type { 10 | return kindTypes[kind] 11 | } 12 | 13 | var kindTypes = map[reflect.Kind]Type{ 14 | reflect.Bool: TypeOf(true), 15 | reflect.Uint8: TypeOf(uint8(0)), 16 | reflect.Int8: TypeOf(int8(0)), 17 | reflect.Uint16: TypeOf(uint16(0)), 18 | reflect.Int16: TypeOf(int16(0)), 19 | reflect.Uint32: TypeOf(uint32(0)), 20 | reflect.Int32: TypeOf(int32(0)), 21 | reflect.Uint64: TypeOf(uint64(0)), 22 | reflect.Int64: TypeOf(int64(0)), 23 | reflect.Uint: TypeOf(uint(0)), 24 | reflect.Int: TypeOf(int(0)), 25 | reflect.Float32: TypeOf(float32(0)), 26 | reflect.Float64: TypeOf(float64(0)), 27 | reflect.Uintptr: TypeOf(uintptr(0)), 28 | reflect.String: TypeOf(""), 29 | reflect.UnsafePointer: TypeOf(unsafe.Pointer(nil)), 30 | } -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_386.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubernetes-retired/mutating-trace-admission-controller/8800f77acd67b2e30a34a284b393f018a154e2ea/vendor/github.com/modern-go/reflect2/relfect2_386.s -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubernetes-retired/mutating-trace-admission-controller/8800f77acd67b2e30a34a284b393f018a154e2ea/vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubernetes-retired/mutating-trace-admission-controller/8800f77acd67b2e30a34a284b393f018a154e2ea/vendor/github.com/modern-go/reflect2/relfect2_arm.s -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm64.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubernetes-retired/mutating-trace-admission-controller/8800f77acd67b2e30a34a284b393f018a154e2ea/vendor/github.com/modern-go/reflect2/relfect2_arm64.s -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mips64x.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubernetes-retired/mutating-trace-admission-controller/8800f77acd67b2e30a34a284b393f018a154e2ea/vendor/github.com/modern-go/reflect2/relfect2_mips64x.s -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mipsx.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubernetes-retired/mutating-trace-admission-controller/8800f77acd67b2e30a34a284b393f018a154e2ea/vendor/github.com/modern-go/reflect2/relfect2_mipsx.s -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubernetes-retired/mutating-trace-admission-controller/8800f77acd67b2e30a34a284b393f018a154e2ea/vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_s390x.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kubernetes-retired/mutating-trace-admission-controller/8800f77acd67b2e30a34a284b393f018a154e2ea/vendor/github.com/modern-go/reflect2/relfect2_s390x.s -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/safe_struct.go: -------------------------------------------------------------------------------- 1 | package reflect2 2 | 3 | type safeStructType struct { 4 | safeType 5 | } 6 | 7 | func (type2 *safeStructType) FieldByName(name string) StructField { 8 | field, found := type2.Type.FieldByName(name) 9 | if !found { 10 | panic("field " + name + " not found") 11 | } 12 | return &safeField{StructField: field} 13 | } -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/unsafe_ptr.go: -------------------------------------------------------------------------------- 1 | package reflect2 2 | 3 | import ( 4 | "unsafe" 5 | "reflect" 6 | ) 7 | 8 | type UnsafePtrType struct { 9 | unsafeType 10 | } 11 | 12 | func newUnsafePtrType(cfg *frozenConfig, type1 reflect.Type) *UnsafePtrType { 13 | return &UnsafePtrType{ 14 | unsafeType: *newUnsafeType(cfg, type1), 15 | } 16 | } 17 | 18 | func (type2 *UnsafePtrType) IsNil(obj interface{}) bool { 19 | if obj == nil { 20 | return true 21 | } 22 | objEFace := unpackEFace(obj) 23 | assertType("Type.IsNil argument 1", type2.ptrRType, objEFace.rtype) 24 | return type2.UnsafeIsNil(objEFace.data) 25 | } 26 | 27 | func (type2 *UnsafePtrType) UnsafeIsNil(ptr unsafe.Pointer) bool { 28 | if ptr == nil { 29 | return true 30 | } 31 | return *(*unsafe.Pointer)(ptr) == nil 32 | } 33 | 34 | func (type2 *UnsafePtrType) LikePtr() bool { 35 | return true 36 | } 37 | 38 | func (type2 *UnsafePtrType) Indirect(obj interface{}) interface{} { 39 | objEFace := unpackEFace(obj) 40 | assertType("Type.Indirect argument 1", type2.ptrRType, objEFace.rtype) 41 | return type2.UnsafeIndirect(objEFace.data) 42 | } 43 | 44 | func (type2 *UnsafePtrType) UnsafeIndirect(ptr unsafe.Pointer) interface{} { 45 | return packEFace(type2.rtype, *(*unsafe.Pointer)(ptr)) 46 | } 47 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/.mailmap: -------------------------------------------------------------------------------- 1 | Stephen J Day 2 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/.pullapprove.yml: -------------------------------------------------------------------------------- 1 | approve_by_comment: true 2 | approve_regex: '^(Approved|lgtm|LGTM|:shipit:|:star:|:\+1:|:ship:)' 3 | reject_regex: ^Rejected 4 | reset_on_push: true 5 | author_approval: ignored 6 | signed_off_by: 7 | required: true 8 | reviewers: 9 | teams: 10 | - go-digest-maintainers 11 | name: default 12 | required: 2 13 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.7 4 | - master 5 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/MAINTAINERS: -------------------------------------------------------------------------------- 1 | Aaron Lehmann (@aaronlehmann) 2 | Brandon Philips (@philips) 3 | Brendan Burns (@brendandburns) 4 | Derek McGowan (@dmcgowan) 5 | Jason Bouzane (@jbouzane) 6 | John Starks (@jstarks) 7 | Jonathan Boulle (@jonboulle) 8 | Stephen Day (@stevvooe) 9 | Vincent Batts (@vbatts) 10 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/digester.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Docker, Inc. 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 | // https://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 digest 16 | 17 | import "hash" 18 | 19 | // Digester calculates the digest of written data. Writes should go directly 20 | // to the return value of Hash, while calling Digest will return the current 21 | // value of the digest. 22 | type Digester interface { 23 | Hash() hash.Hash // provides direct access to underlying hash instance. 24 | Digest() Digest 25 | } 26 | 27 | // digester provides a simple digester definition that embeds a hasher. 28 | type digester struct { 29 | alg Algorithm 30 | hash hash.Hash 31 | } 32 | 33 | func (d *digester) Hash() hash.Hash { 34 | return d.hash 35 | } 36 | 37 | func (d *digester) Digest() Digest { 38 | return NewDigest(d.alg, d.hash) 39 | } 40 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/* 2 | 3 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: go 4 | 5 | go: 6 | - 1.7.3 7 | - 1.8.1 8 | - tip 9 | 10 | matrix: 11 | allow_failures: 12 | - go: tip 13 | 14 | install: 15 | - go get github.com/golang/lint/golint 16 | - export PATH=$GOPATH/bin:$PATH 17 | - go install ./... 18 | 19 | script: 20 | - verify/all.sh -v 21 | - go test ./... 22 | -------------------------------------------------------------------------------- /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/go.opencensus.io/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | # 1.8 is tested by AppVeyor 5 | - 1.11.x 6 | 7 | go_import_path: go.opencensus.io 8 | 9 | # Don't email me the results of the test runs. 10 | notifications: 11 | email: false 12 | 13 | before_script: 14 | - GO_FILES=$(find . -iname '*.go' | grep -v /vendor/) # All the .go files, excluding vendor/ if any 15 | - PKGS=$(go list ./... | grep -v /vendor/) # All the import paths, excluding vendor/ if any 16 | - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh # Install latest dep release 17 | - go get github.com/rakyll/embedmd 18 | 19 | script: 20 | - embedmd -d README.md # Ensure embedded code is up-to-date 21 | - go build ./... # Ensure dependency updates don't break build 22 | - if [ -n "$(gofmt -s -l $GO_FILES)" ]; then echo "gofmt the following files:"; gofmt -s -l $GO_FILES; exit 1; fi 23 | - go vet ./... 24 | - go test -v -race $PKGS # Run all the tests with the race detector enabled 25 | - GOARCH=386 go test -v $PKGS # Run all tests against a 386 architecture 26 | - 'if [[ $TRAVIS_GO_VERSION = 1.8* ]]; then ! golint ./... | grep -vE "(_mock|_string|\.pb)\.go:"; fi' 27 | - go run internal/check/version.go 28 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/AUTHORS: -------------------------------------------------------------------------------- 1 | Google Inc. 2 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/Gopkg.toml: -------------------------------------------------------------------------------- 1 | # For v0.x.y dependencies, prefer adding a constraints of the form: version=">= 0.x.y" 2 | # to avoid locking to a particular minor version which can cause dep to not be 3 | # able to find a satisfying dependency graph. 4 | 5 | [[constraint]] 6 | branch = "master" 7 | name = "git.apache.org/thrift.git" 8 | source = "github.com/apache/thrift" 9 | 10 | [[constraint]] 11 | name = "github.com/golang/protobuf" 12 | version = "1.0.0" 13 | 14 | [[constraint]] 15 | name = "github.com/openzipkin/zipkin-go" 16 | version = ">=0.1.0" 17 | 18 | [[constraint]] 19 | name = "github.com/prometheus/client_golang" 20 | version = ">=0.8.0" 21 | 22 | [[constraint]] 23 | branch = "master" 24 | name = "golang.org/x/net" 25 | 26 | [[constraint]] 27 | branch = "master" 28 | name = "google.golang.org/api" 29 | 30 | [[constraint]] 31 | name = "google.golang.org/grpc" 32 | version = "1.11.3" 33 | 34 | [prune] 35 | go-tests = true 36 | unused-packages = true 37 | -------------------------------------------------------------------------------- /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 | GOVERSION: '1.11' 10 | GO111MODULE: 'on' 11 | CGO_ENABLED: '0' # See: https://github.com/appveyor/ci/issues/2613 12 | 13 | install: 14 | - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% 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/go.opencensus.io/go.mod: -------------------------------------------------------------------------------- 1 | module go.opencensus.io 2 | 3 | require ( 4 | git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999 5 | github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 6 | github.com/ghodss/yaml v1.0.0 // indirect 7 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect 8 | github.com/golang/protobuf v1.2.0 9 | github.com/google/go-cmp v0.2.0 10 | github.com/grpc-ecosystem/grpc-gateway v1.5.0 // indirect 11 | github.com/matttproud/golang_protobuf_extensions v1.0.1 12 | github.com/openzipkin/zipkin-go v0.1.1 13 | github.com/prometheus/client_golang v0.8.0 14 | github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910 15 | github.com/prometheus/common v0.0.0-20180801064454-c7de2306084e 16 | github.com/prometheus/procfs v0.0.0-20180725123919-05ee40e3a273 17 | golang.org/x/net v0.0.0-20180906233101-161cd47e91fd 18 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f 19 | golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e 20 | golang.org/x/text v0.3.0 21 | google.golang.org/api v0.0.0-20180910000450-7ca32eb868bf 22 | google.golang.org/genproto v0.0.0-20180831171423-11092d34479b 23 | google.golang.org/grpc v1.14.0 24 | gopkg.in/yaml.v2 v2.2.1 // indirect 25 | ) 26 | -------------------------------------------------------------------------------- /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 | "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.Now().Sub(start)) 37 | } 38 | -------------------------------------------------------------------------------- /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.18.0" 21 | } 22 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/trace/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 trace 16 | 17 | import ( 18 | "context" 19 | "encoding/hex" 20 | 21 | "go.opencensus.io/exemplar" 22 | ) 23 | 24 | func init() { 25 | exemplar.RegisterAttachmentExtractor(attachSpanContext) 26 | } 27 | 28 | func attachSpanContext(ctx context.Context, a exemplar.Attachments) exemplar.Attachments { 29 | span := FromContext(ctx) 30 | if span == nil { 31 | return a 32 | } 33 | sc := span.SpanContext() 34 | if !sc.IsSampled() { 35 | return a 36 | } 37 | if a == nil { 38 | a = make(exemplar.Attachments) 39 | } 40 | a[exemplar.KeyTraceID] = hex.EncodeToString(sc.TraceID[:]) 41 | a[exemplar.KeySpanID] = hex.EncodeToString(sc.SpanID[:]) 42 | return a 43 | } 44 | -------------------------------------------------------------------------------- /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 | type IDGenerator interface { 19 | NewTraceID() [16]byte 20 | NewSpanID() [8]byte 21 | } 22 | -------------------------------------------------------------------------------- /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.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/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/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/net/http2/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | h2i/h2i 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/Makefile: -------------------------------------------------------------------------------- 1 | curlimage: 2 | docker build -t gohttp2/curl . 3 | 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | remain := (1<<31 - 1) - f.n 45 | if n > remain { 46 | return false 47 | } 48 | f.n += n 49 | return true 50 | } 51 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/go16.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.6 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http" 11 | "time" 12 | ) 13 | 14 | func transportExpectContinueTimeout(t1 *http.Transport) time.Duration { 15 | return t1.ExpectContinueTimeout 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/go19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 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.9 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http" 11 | ) 12 | 13 | func configureServer19(s *http.Server, conf *Server) error { 14 | s.RegisterOnShutdown(conf.state.startGracefulShutdown) 15 | return nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/not_go16.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 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.6 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http" 11 | "time" 12 | ) 13 | 14 | func configureTransport(t1 *http.Transport) (*Transport, error) { 15 | return nil, errTransportVersion 16 | } 17 | 18 | func transportExpectContinueTimeout(t1 *http.Transport) time.Duration { 19 | return 0 20 | 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/not_go18.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.8 6 | 7 | package http2 8 | 9 | import ( 10 | "io" 11 | "net/http" 12 | ) 13 | 14 | func configureServer18(h1 *http.Server, h2 *Server) error { 15 | // No IdleTimeout to sync prior to Go 1.8. 16 | return nil 17 | } 18 | 19 | func shouldLogPanic(panicValue interface{}) bool { 20 | return panicValue != nil 21 | } 22 | 23 | func reqGetBody(req *http.Request) func() (io.ReadCloser, error) { 24 | return nil 25 | } 26 | 27 | func reqBodyIsNoBody(io.ReadCloser) bool { return false } 28 | 29 | func go18httpNoBody() io.ReadCloser { return nil } // for tests only 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/not_go19.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.9 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http" 11 | ) 12 | 13 | func configureServer19(s *http.Server, conf *Server) error { 14 | // not supported prior to go1.9 15 | return nil 16 | } 17 | -------------------------------------------------------------------------------- /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/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/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/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/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/golang.org/x/text/language/Makefile: -------------------------------------------------------------------------------- 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 | CLEANFILES+=maketables 6 | 7 | maketables: maketables.go 8 | go build $^ 9 | 10 | tables: maketables 11 | ./maketables > tables.go 12 | gofmt -w -s tables.go 13 | 14 | # Build (but do not run) maketables during testing, 15 | # just to make sure it still compiles. 16 | testshort: maketables 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/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 | // langAliasType is the type of an alias in langAliasMap. 8 | type langAliasType int8 9 | 10 | const ( 11 | langDeprecated langAliasType = iota 12 | langMacro 13 | langLegacy 14 | 15 | langAliasTypeUnknown langAliasType = -1 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/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 | // langAliasType is the type of an alias in langAliasMap. 12 | type langAliasType int8 13 | 14 | const ( 15 | langDeprecated langAliasType = iota 16 | langMacro 17 | langLegacy 18 | 19 | langAliasTypeUnknown langAliasType = -1 20 | ) 21 | -------------------------------------------------------------------------------- /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/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/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/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/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/golang.org/x/text/width/gen_trieval.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 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 | // elem is an entry of the width trie. The high byte is used to encode the type 10 | // of the rune. The low byte is used to store the index to a mapping entry in 11 | // the inverseData array. 12 | type elem uint16 13 | 14 | const ( 15 | tagNeutral elem = iota << typeShift 16 | tagAmbiguous 17 | tagWide 18 | tagNarrow 19 | tagFullwidth 20 | tagHalfwidth 21 | ) 22 | 23 | const ( 24 | numTypeBits = 3 25 | typeShift = 16 - numTypeBits 26 | 27 | // tagNeedsFold is true for all fullwidth and halfwidth runes except for 28 | // the Won sign U+20A9. 29 | tagNeedsFold = 0x1000 30 | 31 | // The Korean Won sign is halfwidth, but SHOULD NOT be mapped to a wide 32 | // variant. 33 | wonSign rune = 0x20A9 34 | ) 35 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/width/kind_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=Kind"; DO NOT EDIT. 2 | 3 | package width 4 | 5 | import "fmt" 6 | 7 | const _Kind_name = "NeutralEastAsianAmbiguousEastAsianWideEastAsianNarrowEastAsianFullwidthEastAsianHalfwidth" 8 | 9 | var _Kind_index = [...]uint8{0, 7, 25, 38, 53, 71, 89} 10 | 11 | func (i Kind) String() string { 12 | if i < 0 || i >= Kind(len(_Kind_index)-1) { 13 | return fmt.Sprintf("Kind(%d)", i) 14 | } 15 | return _Kind_name[_Kind_index[i]:_Kind_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/width/trieval.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | package width 4 | 5 | // elem is an entry of the width trie. The high byte is used to encode the type 6 | // of the rune. The low byte is used to store the index to a mapping entry in 7 | // the inverseData array. 8 | type elem uint16 9 | 10 | const ( 11 | tagNeutral elem = iota << typeShift 12 | tagAmbiguous 13 | tagWide 14 | tagNarrow 15 | tagFullwidth 16 | tagHalfwidth 17 | ) 18 | 19 | const ( 20 | numTypeBits = 3 21 | typeShift = 16 - numTypeBits 22 | 23 | // tagNeedsFold is true for all fullwidth and halfwidth runes except for 24 | // the Won sign U+20A9. 25 | tagNeedsFold = 0x1000 26 | 27 | // The Korean Won sign is halfwidth, but SHOULD NOT be mapped to a wide 28 | // variant. 29 | wonSign rune = 0x20A9 30 | ) 31 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4 5 | - 1.5 6 | - 1.6 7 | - 1.7 8 | - 1.8 9 | - 1.9 10 | - tip 11 | 12 | go_import_path: gopkg.in/yaml.v2 13 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/LICENSE.libyaml: -------------------------------------------------------------------------------- 1 | The following files were ported to Go from C files of libyaml, and thus 2 | are still covered by their original copyright and license: 3 | 4 | apic.go 5 | emitterc.go 6 | parserc.go 7 | readerc.go 8 | scannerc.go 9 | writerc.go 10 | yamlh.go 11 | yamlprivateh.go 12 | 13 | Copyright (c) 2006 Kirill Simonov 14 | 15 | Permission is hereby granted, free of charge, to any person obtaining a copy of 16 | this software and associated documentation files (the "Software"), to deal in 17 | the Software without restriction, including without limitation the rights to 18 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 19 | of the Software, and to permit persons to whom the Software is furnished to do 20 | so, subject to the following conditions: 21 | 22 | The above copyright notice and this permission notice shall be included in all 23 | copies or substantial portions of the Software. 24 | 25 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 26 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 27 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 28 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 29 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 30 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 31 | SOFTWARE. 32 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 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 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/go.mod: -------------------------------------------------------------------------------- 1 | module "gopkg.in/yaml.v2" 2 | 3 | require ( 4 | "gopkg.in/check.v1" v0.0.0-20161208181325-20d25e280405 5 | ) 6 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/writerc.go: -------------------------------------------------------------------------------- 1 | package yaml 2 | 3 | // Set the writer error and return false. 4 | func yaml_emitter_set_writer_error(emitter *yaml_emitter_t, problem string) bool { 5 | emitter.error = yaml_WRITER_ERROR 6 | emitter.problem = problem 7 | return false 8 | } 9 | 10 | // Flush the output buffer. 11 | func yaml_emitter_flush(emitter *yaml_emitter_t) bool { 12 | if emitter.write_handler == nil { 13 | panic("write handler not set") 14 | } 15 | 16 | // Check if the buffer is empty. 17 | if emitter.buffer_pos == 0 { 18 | return true 19 | } 20 | 21 | if err := emitter.write_handler(emitter, emitter.buffer[:emitter.buffer_pos]); err != nil { 22 | return yaml_emitter_set_writer_error(emitter, "write error: "+err.Error()) 23 | } 24 | emitter.buffer_pos = 0 25 | return true 26 | } 27 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/admission/v1beta1/BUILD: -------------------------------------------------------------------------------- 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library") 2 | 3 | go_library( 4 | name = "go_default_library", 5 | srcs = [ 6 | "doc.go", 7 | "generated.pb.go", 8 | "register.go", 9 | "types.go", 10 | "types_swagger_doc_generated.go", 11 | "zz_generated.deepcopy.go", 12 | ], 13 | importpath = "k8s.io/api/admission/v1beta1", 14 | visibility = ["//visibility:public"], 15 | deps = [ 16 | "//vendor/github.com/gogo/protobuf/proto:go_default_library", 17 | "//vendor/k8s.io/api/authentication/v1:go_default_library", 18 | "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", 19 | "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", 20 | "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", 21 | "//vendor/k8s.io/apimachinery/pkg/types:go_default_library", 22 | ], 23 | ) 24 | 25 | filegroup( 26 | name = "go_default_library_protos", 27 | srcs = ["generated.proto"], 28 | visibility = ["//visibility:public"], 29 | ) 30 | 31 | filegroup( 32 | name = "package-srcs", 33 | srcs = glob(["**"]), 34 | tags = ["automanaged"], 35 | visibility = ["//visibility:private"], 36 | ) 37 | 38 | filegroup( 39 | name = "all-srcs", 40 | srcs = [":package-srcs"], 41 | tags = ["automanaged"], 42 | visibility = ["//visibility:public"], 43 | ) 44 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/admission/v1beta1/doc.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 | // +k8s:deepcopy-gen=package 18 | // +k8s:openapi-gen=false 19 | 20 | // +groupName=admission.k8s.io 21 | package v1beta1 // import "k8s.io/api/admission/v1beta1" 22 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/admissionregistration/v1beta1/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | ) 7 | 8 | go_library( 9 | name = "go_default_library", 10 | srcs = [ 11 | "doc.go", 12 | "generated.pb.go", 13 | "register.go", 14 | "types.go", 15 | "types_swagger_doc_generated.go", 16 | "zz_generated.deepcopy.go", 17 | ], 18 | importpath = "k8s.io/api/admissionregistration/v1beta1", 19 | deps = [ 20 | "//vendor/github.com/gogo/protobuf/proto:go_default_library", 21 | "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", 22 | "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", 23 | "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", 24 | ], 25 | ) 26 | 27 | filegroup( 28 | name = "package-srcs", 29 | srcs = glob(["**"]), 30 | tags = ["automanaged"], 31 | visibility = ["//visibility:private"], 32 | ) 33 | 34 | filegroup( 35 | name = "all-srcs", 36 | srcs = [":package-srcs"], 37 | tags = ["automanaged"], 38 | ) 39 | 40 | filegroup( 41 | name = "go_default_library_protos", 42 | srcs = ["generated.proto"], 43 | visibility = ["//visibility:public"], 44 | ) 45 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/admissionregistration/v1beta1/doc.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 | // +k8s:deepcopy-gen=package 18 | // +k8s:openapi-gen=true 19 | 20 | // Package v1beta1 is the v1beta1 version of the API. 21 | // AdmissionConfiguration and AdmissionPluginConfiguration are legacy static admission plugin configuration 22 | // InitializerConfiguration and validatingWebhookConfiguration is for the 23 | // new dynamic admission controller configuration. 24 | // +groupName=admissionregistration.k8s.io 25 | package v1beta1 // import "k8s.io/api/admissionregistration/v1beta1" 26 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/authentication/v1/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | ) 7 | 8 | go_library( 9 | name = "go_default_library", 10 | srcs = [ 11 | "doc.go", 12 | "generated.pb.go", 13 | "register.go", 14 | "types.go", 15 | "types_swagger_doc_generated.go", 16 | "zz_generated.deepcopy.go", 17 | ], 18 | importpath = "k8s.io/api/authentication/v1", 19 | deps = [ 20 | "//vendor/github.com/gogo/protobuf/proto:go_default_library", 21 | "//vendor/github.com/gogo/protobuf/sortkeys:go_default_library", 22 | "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", 23 | "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", 24 | "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", 25 | ], 26 | ) 27 | 28 | filegroup( 29 | name = "package-srcs", 30 | srcs = glob(["**"]), 31 | tags = ["automanaged"], 32 | visibility = ["//visibility:private"], 33 | ) 34 | 35 | filegroup( 36 | name = "all-srcs", 37 | srcs = [":package-srcs"], 38 | tags = ["automanaged"], 39 | ) 40 | 41 | filegroup( 42 | name = "go_default_library_protos", 43 | srcs = ["generated.proto"], 44 | visibility = ["//visibility:public"], 45 | ) 46 | -------------------------------------------------------------------------------- /vendor/k8s.io/api/authentication/v1/doc.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 | // +k8s:deepcopy-gen=package 18 | // +groupName=authentication.k8s.io 19 | // +k8s:openapi-gen=true 20 | package v1 // import "k8s.io/api/authentication/v1" 21 | -------------------------------------------------------------------------------- /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 | 20 | // Package v1 is the v1 version of the core API. 21 | package v1 // import "k8s.io/api/core/v1" 22 | -------------------------------------------------------------------------------- /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/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 key=value:effect or key:effect. 28 | func (t *Taint) ToString() string { 29 | if len(t.Value) == 0 { 30 | return fmt.Sprintf("%v:%v", t.Key, t.Effect) 31 | } 32 | return fmt.Sprintf("%v=%v:%v", t.Key, t.Value, t.Effect) 33 | } 34 | -------------------------------------------------------------------------------- /vendor/k8s.io/apiextensions-apiserver/pkg/features/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | ) 7 | 8 | go_library( 9 | name = "go_default_library", 10 | srcs = ["kube_features.go"], 11 | importpath = "k8s.io/apiextensions-apiserver/pkg/features", 12 | deps = ["//vendor/k8s.io/apiserver/pkg/util/feature:go_default_library"], 13 | ) 14 | 15 | filegroup( 16 | name = "package-srcs", 17 | srcs = glob(["**"]), 18 | tags = ["automanaged"], 19 | visibility = ["//visibility:private"], 20 | ) 21 | 22 | filegroup( 23 | name = "all-srcs", 24 | srcs = [":package-srcs"], 25 | tags = ["automanaged"], 26 | ) 27 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/api/resource/OWNERS: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - thockin 3 | - lavalamp 4 | - smarterclayton 5 | - wojtek-t 6 | - derekwaynecarr 7 | - mikedanese 8 | - saad-ali 9 | - janetkuo 10 | - tallclair 11 | - eparis 12 | - timothysc 13 | - jbeda 14 | - xiang90 15 | - mbohlool 16 | - david-mcmahon 17 | - goltermann 18 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/api/resource/zz_generated.deepcopy.go: -------------------------------------------------------------------------------- 1 | // +build !ignore_autogenerated 2 | 3 | /* 4 | Copyright 2018 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 | // This file was autogenerated by deepcopy-gen. Do not edit it manually! 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/k8s.io/apimachinery/pkg/apis/meta/internalversion/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:deepcopy-gen=package 18 | 19 | package internalversion 20 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/apis/meta/v1/OWNERS: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - thockin 3 | - smarterclayton 4 | - wojtek-t 5 | - deads2k 6 | - brendandburns 7 | - caesarxuchao 8 | - liggitt 9 | - nikhiljindal 10 | - gmarek 11 | - erictune 12 | - davidopp 13 | - sttts 14 | - quinton-hoole 15 | - luxas 16 | - janetkuo 17 | - justinsb 18 | - ncdc 19 | - timothysc 20 | - soltysh 21 | - dims 22 | - madhusudancs 23 | - hongchaodeng 24 | - krousey 25 | - mml 26 | - mbohlool 27 | - david-mcmahon 28 | - therc 29 | - mqliang 30 | - kevin-wangzefeng 31 | - jianhuiz 32 | - feihujiang 33 | -------------------------------------------------------------------------------- /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:deepcopy-gen=package 18 | // +k8s:openapi-gen=true 19 | // +k8s:defaulter-gen=TypeMeta 20 | 21 | // +groupName=meta.k8s.io 22 | package v1 // import "k8s.io/apimachinery/pkg/apis/meta/v1" 23 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.defaults.go: -------------------------------------------------------------------------------- 1 | // +build !ignore_autogenerated 2 | 3 | /* 4 | Copyright 2018 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 | // This file was autogenerated by defaulter-gen. Do not edit it manually! 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/k8s.io/apimachinery/pkg/apis/meta/v1alpha1/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | ) 7 | 8 | go_library( 9 | name = "go_default_library", 10 | srcs = [ 11 | "conversion.go", 12 | "deepcopy.go", 13 | "doc.go", 14 | "generated.pb.go", 15 | "register.go", 16 | "types.go", 17 | "types_swagger_doc_generated.go", 18 | "zz_generated.deepcopy.go", 19 | "zz_generated.defaults.go", 20 | ], 21 | importpath = "k8s.io/apimachinery/pkg/apis/meta/v1alpha1", 22 | deps = [ 23 | "//vendor/github.com/gogo/protobuf/proto:go_default_library", 24 | "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", 25 | "//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library", 26 | "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", 27 | "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", 28 | ], 29 | ) 30 | 31 | filegroup( 32 | name = "package-srcs", 33 | srcs = glob(["**"]), 34 | tags = ["automanaged"], 35 | visibility = ["//visibility:private"], 36 | ) 37 | 38 | filegroup( 39 | name = "all-srcs", 40 | srcs = [":package-srcs"], 41 | tags = ["automanaged"], 42 | ) 43 | 44 | filegroup( 45 | name = "go_default_library_protos", 46 | srcs = ["generated.proto"], 47 | visibility = ["//visibility:public"], 48 | ) 49 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/apis/meta/v1alpha1/conversion.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 v1alpha1 18 | 19 | import "k8s.io/apimachinery/pkg/conversion" 20 | 21 | // Convert_Slice_string_To_v1alpha1_IncludeObjectPolicy allows converting a URL query parameter value 22 | func Convert_Slice_string_To_v1alpha1_IncludeObjectPolicy(input *[]string, out *IncludeObjectPolicy, s conversion.Scope) error { 23 | if len(*input) > 0 { 24 | *out = IncludeObjectPolicy((*input)[0]) 25 | } 26 | return nil 27 | } 28 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/apis/meta/v1alpha1/doc.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 | // +k8s:deepcopy-gen=package 18 | // +k8s:openapi-gen=true 19 | // +k8s:defaulter-gen=TypeMeta 20 | 21 | // +groupName=meta.k8s.io 22 | package v1alpha1 23 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/apis/meta/v1alpha1/zz_generated.defaults.go: -------------------------------------------------------------------------------- 1 | // +build !ignore_autogenerated 2 | 3 | /* 4 | Copyright 2018 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 | // This file was autogenerated by defaulter-gen. Do not edit it manually! 20 | 21 | package v1alpha1 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/k8s.io/apimachinery/pkg/conversion/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_test( 10 | name = "go_default_test", 11 | srcs = [ 12 | "converter_test.go", 13 | "helper_test.go", 14 | ], 15 | importpath = "k8s.io/apimachinery/pkg/conversion", 16 | library = ":go_default_library", 17 | deps = [ 18 | "//vendor/github.com/google/gofuzz:go_default_library", 19 | "//vendor/github.com/spf13/pflag:go_default_library", 20 | "//vendor/k8s.io/apimachinery/pkg/util/diff:go_default_library", 21 | ], 22 | ) 23 | 24 | go_library( 25 | name = "go_default_library", 26 | srcs = [ 27 | "converter.go", 28 | "deep_equal.go", 29 | "doc.go", 30 | "helper.go", 31 | ], 32 | importpath = "k8s.io/apimachinery/pkg/conversion", 33 | deps = ["//vendor/k8s.io/apimachinery/third_party/forked/golang/reflect:go_default_library"], 34 | ) 35 | 36 | filegroup( 37 | name = "package-srcs", 38 | srcs = glob(["**"]), 39 | tags = ["automanaged"], 40 | visibility = ["//visibility:private"], 41 | ) 42 | 43 | filegroup( 44 | name = "all-srcs", 45 | srcs = [ 46 | ":package-srcs", 47 | "//staging/src/k8s.io/apimachinery/pkg/conversion/queryparams:all-srcs", 48 | ], 49 | tags = ["automanaged"], 50 | ) 51 | -------------------------------------------------------------------------------- /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/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/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/k8s.io/apimachinery/pkg/conversion/queryparams/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_library( 10 | name = "go_default_library", 11 | srcs = [ 12 | "convert.go", 13 | "doc.go", 14 | ], 15 | importpath = "k8s.io/apimachinery/pkg/conversion/queryparams", 16 | ) 17 | 18 | go_test( 19 | name = "go_default_xtest", 20 | srcs = ["convert_test.go"], 21 | importpath = "k8s.io/apimachinery/pkg/conversion/queryparams_test", 22 | deps = [ 23 | "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", 24 | "//vendor/k8s.io/apimachinery/pkg/conversion/queryparams:go_default_library", 25 | "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", 26 | ], 27 | ) 28 | 29 | filegroup( 30 | name = "package-srcs", 31 | srcs = glob(["**"]), 32 | tags = ["automanaged"], 33 | visibility = ["//visibility:private"], 34 | ) 35 | 36 | filegroup( 37 | name = "all-srcs", 38 | srcs = [":package-srcs"], 39 | tags = ["automanaged"], 40 | ) 41 | -------------------------------------------------------------------------------- /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/k8s.io/apimachinery/pkg/fields/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_test( 10 | name = "go_default_test", 11 | srcs = [ 12 | "fields_test.go", 13 | "selector_test.go", 14 | ], 15 | importpath = "k8s.io/apimachinery/pkg/fields", 16 | library = ":go_default_library", 17 | ) 18 | 19 | go_library( 20 | name = "go_default_library", 21 | srcs = [ 22 | "doc.go", 23 | "fields.go", 24 | "requirements.go", 25 | "selector.go", 26 | ], 27 | importpath = "k8s.io/apimachinery/pkg/fields", 28 | deps = ["//vendor/k8s.io/apimachinery/pkg/selection:go_default_library"], 29 | ) 30 | 31 | filegroup( 32 | name = "package-srcs", 33 | srcs = glob(["**"]), 34 | tags = ["automanaged"], 35 | visibility = ["//visibility:private"], 36 | ) 37 | 38 | filegroup( 39 | name = "all-srcs", 40 | srcs = [":package-srcs"], 41 | tags = ["automanaged"], 42 | ) 43 | -------------------------------------------------------------------------------- /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/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/k8s.io/apimachinery/pkg/labels/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_test( 10 | name = "go_default_test", 11 | srcs = [ 12 | "labels_test.go", 13 | "selector_test.go", 14 | ], 15 | importpath = "k8s.io/apimachinery/pkg/labels", 16 | library = ":go_default_library", 17 | deps = [ 18 | "//vendor/k8s.io/apimachinery/pkg/selection:go_default_library", 19 | "//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library", 20 | ], 21 | ) 22 | 23 | go_library( 24 | name = "go_default_library", 25 | srcs = [ 26 | "doc.go", 27 | "labels.go", 28 | "selector.go", 29 | "zz_generated.deepcopy.go", 30 | ], 31 | importpath = "k8s.io/apimachinery/pkg/labels", 32 | deps = [ 33 | "//vendor/github.com/golang/glog:go_default_library", 34 | "//vendor/k8s.io/apimachinery/pkg/selection:go_default_library", 35 | "//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library", 36 | "//vendor/k8s.io/apimachinery/pkg/util/validation:go_default_library", 37 | ], 38 | ) 39 | 40 | filegroup( 41 | name = "package-srcs", 42 | srcs = glob(["**"]), 43 | tags = ["automanaged"], 44 | visibility = ["//visibility:private"], 45 | ) 46 | 47 | filegroup( 48 | name = "all-srcs", 49 | srcs = [":package-srcs"], 50 | tags = ["automanaged"], 51 | ) 52 | -------------------------------------------------------------------------------- /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/k8s.io/apimachinery/pkg/labels/zz_generated.deepcopy.go: -------------------------------------------------------------------------------- 1 | // +build !ignore_autogenerated 2 | 3 | /* 4 | Copyright 2018 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 | // This file was autogenerated by deepcopy-gen. Do not edit it manually! 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/k8s.io/apimachinery/pkg/runtime/schema/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_test( 10 | name = "go_default_test", 11 | srcs = ["group_version_test.go"], 12 | importpath = "k8s.io/apimachinery/pkg/runtime/schema", 13 | library = ":go_default_library", 14 | ) 15 | 16 | go_library( 17 | name = "go_default_library", 18 | srcs = [ 19 | "generated.pb.go", 20 | "group_version.go", 21 | "interfaces.go", 22 | ], 23 | importpath = "k8s.io/apimachinery/pkg/runtime/schema", 24 | deps = ["//vendor/github.com/gogo/protobuf/proto:go_default_library"], 25 | ) 26 | 27 | filegroup( 28 | name = "package-srcs", 29 | srcs = glob(["**"]), 30 | tags = ["automanaged"], 31 | visibility = ["//visibility:private"], 32 | ) 33 | 34 | filegroup( 35 | name = "all-srcs", 36 | srcs = [":package-srcs"], 37 | tags = ["automanaged"], 38 | ) 39 | 40 | filegroup( 41 | name = "go_default_library_protos", 42 | srcs = ["generated.proto"], 43 | visibility = ["//visibility:public"], 44 | ) 45 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/runtime/schema/generated.proto: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2018 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 | import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; 25 | 26 | // Package-wide variables from generator "generated". 27 | option go_package = "schema"; 28 | 29 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | ) 7 | 8 | go_library( 9 | name = "go_default_library", 10 | srcs = [ 11 | "doc.go", 12 | "protobuf.go", 13 | ], 14 | importpath = "k8s.io/apimachinery/pkg/runtime/serializer/protobuf", 15 | deps = [ 16 | "//vendor/github.com/gogo/protobuf/proto:go_default_library", 17 | "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", 18 | "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", 19 | "//vendor/k8s.io/apimachinery/pkg/runtime/serializer/recognizer:go_default_library", 20 | "//vendor/k8s.io/apimachinery/pkg/util/framer:go_default_library", 21 | ], 22 | ) 23 | 24 | filegroup( 25 | name = "package-srcs", 26 | srcs = glob(["**"]), 27 | tags = ["automanaged"], 28 | visibility = ["//visibility:private"], 29 | ) 30 | 31 | filegroup( 32 | name = "all-srcs", 33 | srcs = [":package-srcs"], 34 | tags = ["automanaged"], 35 | ) 36 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/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 protobuf provides a Kubernetes serializer for the protobuf format. 18 | package protobuf // import "k8s.io/apimachinery/pkg/runtime/serializer/protobuf" 19 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/runtime/serializer/recognizer/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | ) 7 | 8 | go_library( 9 | name = "go_default_library", 10 | srcs = ["recognizer.go"], 11 | importpath = "k8s.io/apimachinery/pkg/runtime/serializer/recognizer", 12 | deps = [ 13 | "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", 14 | "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", 15 | ], 16 | ) 17 | 18 | filegroup( 19 | name = "package-srcs", 20 | srcs = glob(["**"]), 21 | tags = ["automanaged"], 22 | visibility = ["//visibility:private"], 23 | ) 24 | 25 | filegroup( 26 | name = "all-srcs", 27 | srcs = [ 28 | ":package-srcs", 29 | "//staging/src/k8s.io/apimachinery/pkg/runtime/serializer/recognizer/testing:all-srcs", 30 | ], 31 | tags = ["automanaged"], 32 | ) 33 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/runtime/serializer/versioning/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_test( 10 | name = "go_default_test", 11 | srcs = ["versioning_test.go"], 12 | importpath = "k8s.io/apimachinery/pkg/runtime/serializer/versioning", 13 | library = ":go_default_library", 14 | deps = [ 15 | "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", 16 | "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", 17 | "//vendor/k8s.io/apimachinery/pkg/util/diff:go_default_library", 18 | ], 19 | ) 20 | 21 | go_library( 22 | name = "go_default_library", 23 | srcs = ["versioning.go"], 24 | importpath = "k8s.io/apimachinery/pkg/runtime/serializer/versioning", 25 | deps = [ 26 | "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", 27 | "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", 28 | ], 29 | ) 30 | 31 | filegroup( 32 | name = "package-srcs", 33 | srcs = glob(["**"]), 34 | tags = ["automanaged"], 35 | visibility = ["//visibility:private"], 36 | ) 37 | 38 | filegroup( 39 | name = "all-srcs", 40 | srcs = [":package-srcs"], 41 | tags = ["automanaged"], 42 | ) 43 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/selection/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | ) 7 | 8 | go_library( 9 | name = "go_default_library", 10 | srcs = ["operator.go"], 11 | importpath = "k8s.io/apimachinery/pkg/selection", 12 | ) 13 | 14 | filegroup( 15 | name = "package-srcs", 16 | srcs = glob(["**"]), 17 | tags = ["automanaged"], 18 | visibility = ["//visibility:private"], 19 | ) 20 | 21 | filegroup( 22 | name = "all-srcs", 23 | srcs = [":package-srcs"], 24 | tags = ["automanaged"], 25 | ) 26 | -------------------------------------------------------------------------------- /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/k8s.io/apimachinery/pkg/types/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | ) 7 | 8 | go_library( 9 | name = "go_default_library", 10 | srcs = [ 11 | "doc.go", 12 | "namespacedname.go", 13 | "nodename.go", 14 | "patch.go", 15 | "uid.go", 16 | ], 17 | importpath = "k8s.io/apimachinery/pkg/types", 18 | ) 19 | 20 | filegroup( 21 | name = "package-srcs", 22 | srcs = glob(["**"]), 23 | tags = ["automanaged"], 24 | visibility = ["//visibility:private"], 25 | ) 26 | 27 | filegroup( 28 | name = "all-srcs", 29 | srcs = [":package-srcs"], 30 | tags = ["automanaged"], 31 | ) 32 | -------------------------------------------------------------------------------- /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/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 | ) 29 | -------------------------------------------------------------------------------- /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/util/errors/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_test( 10 | name = "go_default_test", 11 | srcs = ["errors_test.go"], 12 | importpath = "k8s.io/apimachinery/pkg/util/errors", 13 | library = ":go_default_library", 14 | ) 15 | 16 | go_library( 17 | name = "go_default_library", 18 | srcs = [ 19 | "doc.go", 20 | "errors.go", 21 | ], 22 | importpath = "k8s.io/apimachinery/pkg/util/errors", 23 | ) 24 | 25 | filegroup( 26 | name = "package-srcs", 27 | srcs = glob(["**"]), 28 | tags = ["automanaged"], 29 | visibility = ["//visibility:private"], 30 | ) 31 | 32 | filegroup( 33 | name = "all-srcs", 34 | srcs = [":package-srcs"], 35 | tags = ["automanaged"], 36 | ) 37 | -------------------------------------------------------------------------------- /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/k8s.io/apimachinery/pkg/util/framer/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_test( 10 | name = "go_default_test", 11 | srcs = ["framer_test.go"], 12 | importpath = "k8s.io/apimachinery/pkg/util/framer", 13 | library = ":go_default_library", 14 | ) 15 | 16 | go_library( 17 | name = "go_default_library", 18 | srcs = ["framer.go"], 19 | importpath = "k8s.io/apimachinery/pkg/util/framer", 20 | ) 21 | 22 | filegroup( 23 | name = "package-srcs", 24 | srcs = glob(["**"]), 25 | tags = ["automanaged"], 26 | visibility = ["//visibility:private"], 27 | ) 28 | 29 | filegroup( 30 | name = "all-srcs", 31 | srcs = [":package-srcs"], 32 | tags = ["automanaged"], 33 | ) 34 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/intstr/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_test( 10 | name = "go_default_test", 11 | srcs = ["intstr_test.go"], 12 | importpath = "k8s.io/apimachinery/pkg/util/intstr", 13 | library = ":go_default_library", 14 | deps = ["//vendor/github.com/ghodss/yaml:go_default_library"], 15 | ) 16 | 17 | go_library( 18 | name = "go_default_library", 19 | srcs = [ 20 | "generated.pb.go", 21 | "intstr.go", 22 | ], 23 | importpath = "k8s.io/apimachinery/pkg/util/intstr", 24 | deps = [ 25 | "//vendor/github.com/go-openapi/spec:go_default_library", 26 | "//vendor/github.com/gogo/protobuf/proto:go_default_library", 27 | "//vendor/github.com/golang/glog:go_default_library", 28 | "//vendor/github.com/google/gofuzz:go_default_library", 29 | "//vendor/k8s.io/kube-openapi/pkg/common:go_default_library", 30 | ], 31 | ) 32 | 33 | filegroup( 34 | name = "package-srcs", 35 | srcs = glob(["**"]), 36 | tags = ["automanaged"], 37 | visibility = ["//visibility:private"], 38 | ) 39 | 40 | filegroup( 41 | name = "all-srcs", 42 | srcs = [":package-srcs"], 43 | tags = ["automanaged"], 44 | ) 45 | 46 | filegroup( 47 | name = "go_default_library_protos", 48 | srcs = ["generated.proto"], 49 | visibility = ["//visibility:public"], 50 | ) 51 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/json/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_library( 10 | name = "go_default_library", 11 | srcs = ["json.go"], 12 | importpath = "k8s.io/apimachinery/pkg/util/json", 13 | ) 14 | 15 | go_test( 16 | name = "go_default_test", 17 | srcs = ["json_test.go"], 18 | importpath = "k8s.io/apimachinery/pkg/util/json", 19 | library = ":go_default_library", 20 | ) 21 | 22 | filegroup( 23 | name = "package-srcs", 24 | srcs = glob(["**"]), 25 | tags = ["automanaged"], 26 | visibility = ["//visibility:private"], 27 | ) 28 | 29 | filegroup( 30 | name = "all-srcs", 31 | srcs = [":package-srcs"], 32 | tags = ["automanaged"], 33 | ) 34 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/net/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_test( 10 | name = "go_default_test", 11 | srcs = [ 12 | "http_test.go", 13 | "interface_test.go", 14 | "port_range_test.go", 15 | "port_split_test.go", 16 | "util_test.go", 17 | ], 18 | importpath = "k8s.io/apimachinery/pkg/util/net", 19 | library = ":go_default_library", 20 | deps = ["//vendor/github.com/spf13/pflag:go_default_library"], 21 | ) 22 | 23 | go_library( 24 | name = "go_default_library", 25 | srcs = [ 26 | "http.go", 27 | "interface.go", 28 | "port_range.go", 29 | "port_split.go", 30 | "util.go", 31 | ], 32 | importpath = "k8s.io/apimachinery/pkg/util/net", 33 | deps = [ 34 | "//vendor/github.com/golang/glog:go_default_library", 35 | "//vendor/golang.org/x/net/http2:go_default_library", 36 | "//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library", 37 | ], 38 | ) 39 | 40 | filegroup( 41 | name = "package-srcs", 42 | srcs = glob(["**"]), 43 | tags = ["automanaged"], 44 | visibility = ["//visibility:private"], 45 | ) 46 | 47 | filegroup( 48 | name = "all-srcs", 49 | srcs = [":package-srcs"], 50 | tags = ["automanaged"], 51 | ) 52 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/runtime/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_test( 10 | name = "go_default_test", 11 | srcs = ["runtime_test.go"], 12 | importpath = "k8s.io/apimachinery/pkg/util/runtime", 13 | library = ":go_default_library", 14 | ) 15 | 16 | go_library( 17 | name = "go_default_library", 18 | srcs = ["runtime.go"], 19 | importpath = "k8s.io/apimachinery/pkg/util/runtime", 20 | deps = ["//vendor/github.com/golang/glog:go_default_library"], 21 | ) 22 | 23 | filegroup( 24 | name = "package-srcs", 25 | srcs = glob(["**"]), 26 | tags = ["automanaged"], 27 | visibility = ["//visibility:private"], 28 | ) 29 | 30 | filegroup( 31 | name = "all-srcs", 32 | srcs = [":package-srcs"], 33 | tags = ["automanaged"], 34 | ) 35 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/sets/doc.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 | // This file was autogenerated by set-gen. Do not edit it manually! 18 | 19 | // Package sets has auto-generated set types. 20 | package sets 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/sets/empty.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 | // This file was autogenerated by set-gen. Do not edit it manually! 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 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/validation/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_test( 10 | name = "go_default_test", 11 | srcs = ["validation_test.go"], 12 | importpath = "k8s.io/apimachinery/pkg/util/validation", 13 | library = ":go_default_library", 14 | deps = ["//vendor/k8s.io/apimachinery/pkg/util/validation/field:go_default_library"], 15 | ) 16 | 17 | go_library( 18 | name = "go_default_library", 19 | srcs = ["validation.go"], 20 | importpath = "k8s.io/apimachinery/pkg/util/validation", 21 | deps = ["//vendor/k8s.io/apimachinery/pkg/util/validation/field:go_default_library"], 22 | ) 23 | 24 | filegroup( 25 | name = "package-srcs", 26 | srcs = glob(["**"]), 27 | tags = ["automanaged"], 28 | visibility = ["//visibility:private"], 29 | ) 30 | 31 | filegroup( 32 | name = "all-srcs", 33 | srcs = [ 34 | ":package-srcs", 35 | "//staging/src/k8s.io/apimachinery/pkg/util/validation/field:all-srcs", 36 | ], 37 | tags = ["automanaged"], 38 | ) 39 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/validation/field/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_test( 10 | name = "go_default_test", 11 | srcs = [ 12 | "errors_test.go", 13 | "path_test.go", 14 | ], 15 | importpath = "k8s.io/apimachinery/pkg/util/validation/field", 16 | library = ":go_default_library", 17 | ) 18 | 19 | go_library( 20 | name = "go_default_library", 21 | srcs = [ 22 | "errors.go", 23 | "path.go", 24 | ], 25 | importpath = "k8s.io/apimachinery/pkg/util/validation/field", 26 | deps = [ 27 | "//vendor/k8s.io/apimachinery/pkg/util/errors:go_default_library", 28 | "//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library", 29 | ], 30 | ) 31 | 32 | filegroup( 33 | name = "package-srcs", 34 | srcs = glob(["**"]), 35 | tags = ["automanaged"], 36 | visibility = ["//visibility:private"], 37 | ) 38 | 39 | filegroup( 40 | name = "all-srcs", 41 | srcs = [":package-srcs"], 42 | tags = ["automanaged"], 43 | ) 44 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/wait/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_test( 10 | name = "go_default_test", 11 | srcs = ["wait_test.go"], 12 | importpath = "k8s.io/apimachinery/pkg/util/wait", 13 | library = ":go_default_library", 14 | deps = ["//vendor/k8s.io/apimachinery/pkg/util/runtime:go_default_library"], 15 | ) 16 | 17 | go_library( 18 | name = "go_default_library", 19 | srcs = [ 20 | "doc.go", 21 | "wait.go", 22 | ], 23 | importpath = "k8s.io/apimachinery/pkg/util/wait", 24 | deps = ["//vendor/k8s.io/apimachinery/pkg/util/runtime:go_default_library"], 25 | ) 26 | 27 | filegroup( 28 | name = "package-srcs", 29 | srcs = glob(["**"]), 30 | tags = ["automanaged"], 31 | visibility = ["//visibility:private"], 32 | ) 33 | 34 | filegroup( 35 | name = "all-srcs", 36 | srcs = [":package-srcs"], 37 | tags = ["automanaged"], 38 | ) 39 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/wait/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 wait provides tools for polling or listening for changes 18 | // to a condition. 19 | package wait // import "k8s.io/apimachinery/pkg/util/wait" 20 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/yaml/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_test( 10 | name = "go_default_test", 11 | srcs = ["decoder_test.go"], 12 | importpath = "k8s.io/apimachinery/pkg/util/yaml", 13 | library = ":go_default_library", 14 | ) 15 | 16 | go_library( 17 | name = "go_default_library", 18 | srcs = ["decoder.go"], 19 | importpath = "k8s.io/apimachinery/pkg/util/yaml", 20 | deps = [ 21 | "//vendor/github.com/ghodss/yaml:go_default_library", 22 | "//vendor/github.com/golang/glog:go_default_library", 23 | ], 24 | ) 25 | 26 | filegroup( 27 | name = "package-srcs", 28 | srcs = glob(["**"]), 29 | tags = ["automanaged"], 30 | visibility = ["//visibility:private"], 31 | ) 32 | 33 | filegroup( 34 | name = "all-srcs", 35 | srcs = [":package-srcs"], 36 | tags = ["automanaged"], 37 | ) 38 | -------------------------------------------------------------------------------- /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/apimachinery/pkg/watch/zz_generated.deepcopy.go: -------------------------------------------------------------------------------- 1 | // +build !ignore_autogenerated 2 | 3 | /* 4 | Copyright 2018 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 | // This file was autogenerated by deepcopy-gen. Do not edit it manually! 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 = nil 28 | } else { 29 | out.Object = in.Object.DeepCopyObject() 30 | } 31 | return 32 | } 33 | 34 | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Event. 35 | func (in *Event) DeepCopy() *Event { 36 | if in == nil { 37 | return nil 38 | } 39 | out := new(Event) 40 | in.DeepCopyInto(out) 41 | return out 42 | } 43 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/third_party/forked/golang/reflect/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_test( 10 | name = "go_default_test", 11 | srcs = ["deep_equal_test.go"], 12 | importpath = "k8s.io/apimachinery/third_party/forked/golang/reflect", 13 | library = ":go_default_library", 14 | ) 15 | 16 | go_library( 17 | name = "go_default_library", 18 | srcs = ["deep_equal.go"], 19 | importpath = "k8s.io/apimachinery/third_party/forked/golang/reflect", 20 | ) 21 | 22 | filegroup( 23 | name = "package-srcs", 24 | srcs = glob(["**"]), 25 | tags = ["automanaged"], 26 | visibility = ["//visibility:private"], 27 | ) 28 | 29 | filegroup( 30 | name = "all-srcs", 31 | srcs = [":package-srcs"], 32 | tags = ["automanaged"], 33 | ) 34 | -------------------------------------------------------------------------------- /vendor/k8s.io/apiserver/pkg/features/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | ) 7 | 8 | go_library( 9 | name = "go_default_library", 10 | srcs = ["kube_features.go"], 11 | importpath = "k8s.io/apiserver/pkg/features", 12 | deps = ["//vendor/k8s.io/apiserver/pkg/util/feature:go_default_library"], 13 | ) 14 | 15 | filegroup( 16 | name = "package-srcs", 17 | srcs = glob(["**"]), 18 | tags = ["automanaged"], 19 | visibility = ["//visibility:private"], 20 | ) 21 | 22 | filegroup( 23 | name = "all-srcs", 24 | srcs = [":package-srcs"], 25 | tags = ["automanaged"], 26 | ) 27 | -------------------------------------------------------------------------------- /vendor/k8s.io/apiserver/pkg/util/feature/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_test( 10 | name = "go_default_test", 11 | srcs = ["feature_gate_test.go"], 12 | embed = [":go_default_library"], 13 | deps = ["//vendor/github.com/spf13/pflag:go_default_library"], 14 | ) 15 | 16 | go_library( 17 | name = "go_default_library", 18 | srcs = ["feature_gate.go"], 19 | importpath = "k8s.io/apiserver/pkg/util/feature", 20 | deps = [ 21 | "//vendor/github.com/golang/glog:go_default_library", 22 | "//vendor/github.com/spf13/pflag:go_default_library", 23 | ], 24 | ) 25 | 26 | filegroup( 27 | name = "package-srcs", 28 | srcs = glob(["**"]), 29 | tags = ["automanaged"], 30 | visibility = ["//visibility:private"], 31 | ) 32 | 33 | filegroup( 34 | name = "all-srcs", 35 | srcs = [ 36 | ":package-srcs", 37 | "//staging/src/k8s.io/apiserver/pkg/util/feature/testing:all-srcs", 38 | ], 39 | tags = ["automanaged"], 40 | ) 41 | -------------------------------------------------------------------------------- /vendor/k8s.io/kube-openapi/pkg/common/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 | // package common holds shared code and types between open API code 18 | // generator and spec generator. 19 | package common 20 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/.bazelrc: -------------------------------------------------------------------------------- 1 | build/root/.bazelrc -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/.kazelcfg.json: -------------------------------------------------------------------------------- 1 | build/root/.kazelcfg.json -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/BUILD.bazel: -------------------------------------------------------------------------------- 1 | build/root/BUILD.root -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/Makefile: -------------------------------------------------------------------------------- 1 | build/root/Makefile -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/Makefile.generated_files: -------------------------------------------------------------------------------- 1 | build/root/Makefile.generated_files -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/WORKSPACE: -------------------------------------------------------------------------------- 1 | build/root/WORKSPACE -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/cluster/gce/cos: -------------------------------------------------------------------------------- 1 | gci -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/cluster/gce/custom: -------------------------------------------------------------------------------- 1 | gci -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/cluster/gce/ubuntu: -------------------------------------------------------------------------------- 1 | gci -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/cluster/juju/layers/kubeapi-load-balancer/copyright: -------------------------------------------------------------------------------- 1 | Copyright 2016 The Kubernetes 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 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/cluster/juju/layers/kubernetes-master/actions/namespace-delete: -------------------------------------------------------------------------------- 1 | namespace-create -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/cluster/juju/layers/kubernetes-master/actions/namespace-list: -------------------------------------------------------------------------------- 1 | namespace-create -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/cluster/juju/layers/kubernetes-master/copyright: -------------------------------------------------------------------------------- 1 | Copyright 2016 The Kubernetes 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 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/cluster/juju/layers/kubernetes-worker/copyright: -------------------------------------------------------------------------------- 1 | Copyright 2016 The Kubernetes 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 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/apis/autoscaling/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | ) 7 | 8 | go_library( 9 | name = "go_default_library", 10 | srcs = [ 11 | "annotations.go", 12 | "doc.go", 13 | "register.go", 14 | "types.go", 15 | "zz_generated.deepcopy.go", 16 | ], 17 | importpath = "k8s.io/kubernetes/pkg/apis/autoscaling", 18 | deps = [ 19 | "//pkg/apis/core:go_default_library", 20 | "//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library", 21 | "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", 22 | "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", 23 | "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", 24 | ], 25 | ) 26 | 27 | filegroup( 28 | name = "package-srcs", 29 | srcs = glob(["**"]), 30 | tags = ["automanaged"], 31 | visibility = ["//visibility:private"], 32 | ) 33 | 34 | filegroup( 35 | name = "all-srcs", 36 | srcs = [ 37 | ":package-srcs", 38 | "//pkg/apis/autoscaling/fuzzer:all-srcs", 39 | "//pkg/apis/autoscaling/install:all-srcs", 40 | "//pkg/apis/autoscaling/v1:all-srcs", 41 | "//pkg/apis/autoscaling/v2beta1:all-srcs", 42 | "//pkg/apis/autoscaling/validation:all-srcs", 43 | ], 44 | tags = ["automanaged"], 45 | ) 46 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/apis/autoscaling/OWNERS: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - thockin 3 | - lavalamp 4 | - smarterclayton 5 | - wojtek-t 6 | - deads2k 7 | - caesarxuchao 8 | - erictune 9 | - sttts 10 | - ncdc 11 | - timothysc 12 | - piosz 13 | - dims 14 | - errordeveloper 15 | - madhusudancs 16 | - mml 17 | - mbohlool 18 | - david-mcmahon 19 | - jianhuiz 20 | - directxman12 21 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/apis/autoscaling/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:deepcopy-gen=package 18 | 19 | package autoscaling // import "k8s.io/kubernetes/pkg/apis/autoscaling" 20 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/apis/core/OWNERS: -------------------------------------------------------------------------------- 1 | approvers: 2 | - erictune 3 | - lavalamp 4 | - smarterclayton 5 | - thockin 6 | - liggitt 7 | # - bgrant0607 # manual escalations only 8 | reviewers: 9 | - thockin 10 | - lavalamp 11 | - smarterclayton 12 | - wojtek-t 13 | - deads2k 14 | - yujuhong 15 | - brendandburns 16 | - derekwaynecarr 17 | - caesarxuchao 18 | - vishh 19 | - mikedanese 20 | - liggitt 21 | - nikhiljindal 22 | - gmarek 23 | - erictune 24 | - davidopp 25 | - pmorie 26 | - sttts 27 | - dchen1107 28 | - saad-ali 29 | - zmerlynn 30 | - luxas 31 | - janetkuo 32 | - justinsb 33 | - pwittrock 34 | - roberthbailey 35 | - ncdc 36 | - tallclair 37 | - yifan-gu 38 | - eparis 39 | - mwielgus 40 | - timothysc 41 | - soltysh 42 | - piosz 43 | - jsafrane 44 | - jbeda 45 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/apis/core/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 | // +k8s:deepcopy-gen=package 18 | 19 | // Package api contains the latest (or "internal") version of the 20 | // Kubernetes API objects. This is the API objects as represented in memory. 21 | // The contract presented to clients is located in the versioned packages, 22 | // which are sub-directories. The first one is "v1". Those packages 23 | // describe how a particular version is serialized to storage/network. 24 | package core // import "k8s.io/kubernetes/pkg/apis/core" 25 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/apis/core/json.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 core 18 | 19 | import "encoding/json" 20 | 21 | // This file implements json marshaling/unmarshaling interfaces on objects that are currently marshaled into annotations 22 | // to prevent anyone from marshaling these internal structs. 23 | 24 | var _ = json.Marshaler(&AvoidPods{}) 25 | var _ = json.Unmarshaler(&AvoidPods{}) 26 | 27 | func (AvoidPods) MarshalJSON() ([]byte, error) { panic("do not marshal internal struct") } 28 | func (*AvoidPods) UnmarshalJSON([]byte) error { panic("do not unmarshal to internal struct") } 29 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/apis/core/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 | //TODO: consider making these methods functions, because we don't want helper 18 | //functions in the k8s.io/api repo. 19 | 20 | package core 21 | 22 | import ( 23 | "k8s.io/apimachinery/pkg/runtime/schema" 24 | ) 25 | 26 | func (obj *ObjectReference) SetGroupVersionKind(gvk schema.GroupVersionKind) { 27 | obj.APIVersion, obj.Kind = gvk.ToAPIVersionAndKind() 28 | } 29 | 30 | func (obj *ObjectReference) GroupVersionKind() schema.GroupVersionKind { 31 | return schema.FromAPIVersionAndKind(obj.APIVersion, obj.Kind) 32 | } 33 | 34 | func (obj *ObjectReference) GetObjectKind() schema.ObjectKind { return obj } 35 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/apis/core/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 | //TODO: consider making these methods functions, because we don't want helper 18 | //functions in the k8s.io/api repo. 19 | 20 | package core 21 | 22 | import "fmt" 23 | 24 | // MatchTaint checks if the taint matches taintToMatch. Taints are unique by key:effect, 25 | // if the two taints have same key:effect, regard as they match. 26 | func (t *Taint) MatchTaint(taintToMatch Taint) bool { 27 | return t.Key == taintToMatch.Key && t.Effect == taintToMatch.Effect 28 | } 29 | 30 | // taint.ToString() converts taint struct to string in format key=value:effect or key:effect. 31 | func (t *Taint) ToString() string { 32 | if len(t.Value) == 0 { 33 | return fmt.Sprintf("%v:%v", t.Key, t.Effect) 34 | } 35 | return fmt.Sprintf("%v=%v:%v", t.Key, t.Value, t.Effect) 36 | } 37 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/apis/core/toleration.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 | //TODO: consider making these methods functions, because we don't want helper 18 | //functions in the k8s.io/api repo. 19 | 20 | package core 21 | 22 | // MatchToleration checks if the toleration matches tolerationToMatch. Tolerations are unique by , 23 | // if the two tolerations have same combination, regard as they match. 24 | // TODO: uniqueness check for tolerations in api validations. 25 | func (t *Toleration) MatchToleration(tolerationToMatch *Toleration) bool { 26 | return t.Key == tolerationToMatch.Key && 27 | t.Effect == tolerationToMatch.Effect && 28 | t.Operator == tolerationToMatch.Operator && 29 | t.Value == tolerationToMatch.Value 30 | } 31 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/apis/core/v1/OWNERS: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - thockin 3 | - lavalamp 4 | - smarterclayton 5 | - wojtek-t 6 | - deads2k 7 | - yujuhong 8 | - brendandburns 9 | - derekwaynecarr 10 | - caesarxuchao 11 | - vishh 12 | - mikedanese 13 | - liggitt 14 | - nikhiljindal 15 | - gmarek 16 | - erictune 17 | - davidopp 18 | - pmorie 19 | - sttts 20 | - dchen1107 21 | - saad-ali 22 | - zmerlynn 23 | - luxas 24 | - janetkuo 25 | - justinsb 26 | - roberthbailey 27 | - ncdc 28 | - tallclair 29 | - eparis 30 | - timothysc 31 | - piosz 32 | - jsafrane 33 | - dims 34 | - errordeveloper 35 | - madhusudancs 36 | - krousey 37 | - jayunit100 38 | - rootfs 39 | - markturansky 40 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/apis/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:conversion-gen=k8s.io/kubernetes/pkg/apis/core 18 | // +k8s:conversion-gen-external-types=k8s.io/api/core/v1 19 | // +k8s:defaulter-gen=TypeMeta 20 | // +k8s:defaulter-gen-input=../../../../vendor/k8s.io/api/core/v1 21 | 22 | // Package v1 is the v1 version of the API. 23 | package v1 // import "k8s.io/kubernetes/pkg/apis/core/v1" 24 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/apis/extensions/OWNERS: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - thockin 3 | - lavalamp 4 | - smarterclayton 5 | - wojtek-t 6 | - deads2k 7 | - brendandburns 8 | - derekwaynecarr 9 | - caesarxuchao 10 | - mikedanese 11 | - liggitt 12 | - nikhiljindal 13 | - erictune 14 | - pmorie 15 | - sttts 16 | - saad-ali 17 | - janetkuo 18 | - justinsb 19 | - ncdc 20 | - tallclair 21 | - mwielgus 22 | - timothysc 23 | - soltysh 24 | - piosz 25 | - dims 26 | - errordeveloper 27 | - madhusudancs 28 | - rootfs 29 | - jszczepkowski 30 | - mml 31 | - resouer 32 | - mbohlool 33 | - david-mcmahon 34 | - therc 35 | - pweil- 36 | - tmrts 37 | - mqliang 38 | - lukaszo 39 | - jianhuiz 40 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/apis/extensions/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:deepcopy-gen=package 18 | 19 | package extensions // import "k8s.io/kubernetes/pkg/apis/extensions" 20 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/apis/extensions/helpers.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 extensions 18 | 19 | import ( 20 | "strings" 21 | ) 22 | 23 | // SysctlsFromPodSecurityPolicyAnnotation parses an annotation value of the key 24 | // SysctlsSecurityPolocyAnnotationKey into a slice of sysctls. An empty slice 25 | // is returned if annotation is the empty string. 26 | func SysctlsFromPodSecurityPolicyAnnotation(annotation string) ([]string, error) { 27 | if len(annotation) == 0 { 28 | return []string{}, nil 29 | } 30 | 31 | return strings.Split(annotation, ","), nil 32 | } 33 | 34 | // PodAnnotationsFromSysctls creates an annotation value for a slice of Sysctls. 35 | func PodAnnotationsFromSysctls(sysctls []string) string { 36 | return strings.Join(sysctls, ",") 37 | } 38 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/apis/networking/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | ) 7 | 8 | go_library( 9 | name = "go_default_library", 10 | srcs = [ 11 | "doc.go", 12 | "register.go", 13 | "types.go", 14 | "zz_generated.deepcopy.go", 15 | ], 16 | importpath = "k8s.io/kubernetes/pkg/apis/networking", 17 | deps = [ 18 | "//pkg/apis/core:go_default_library", 19 | "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", 20 | "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", 21 | "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", 22 | "//vendor/k8s.io/apimachinery/pkg/util/intstr:go_default_library", 23 | ], 24 | ) 25 | 26 | filegroup( 27 | name = "package-srcs", 28 | srcs = glob(["**"]), 29 | tags = ["automanaged"], 30 | visibility = ["//visibility:private"], 31 | ) 32 | 33 | filegroup( 34 | name = "all-srcs", 35 | srcs = [ 36 | ":package-srcs", 37 | "//pkg/apis/networking/fuzzer:all-srcs", 38 | "//pkg/apis/networking/install:all-srcs", 39 | "//pkg/apis/networking/v1:all-srcs", 40 | "//pkg/apis/networking/validation:all-srcs", 41 | ], 42 | tags = ["automanaged"], 43 | ) 44 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/apis/networking/OWNERS: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - caseydavenport 3 | - cmluciano 4 | - danwinship 5 | - thockin 6 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/apis/networking/doc.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 | // +k8s:deepcopy-gen=package 18 | // +groupName=networking.k8s.io 19 | package networking // import "k8s.io/kubernetes/pkg/apis/networking" 20 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/features/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | ) 7 | 8 | go_library( 9 | name = "go_default_library", 10 | srcs = ["kube_features.go"], 11 | importpath = "k8s.io/kubernetes/pkg/features", 12 | deps = [ 13 | "//vendor/k8s.io/apiextensions-apiserver/pkg/features:go_default_library", 14 | "//vendor/k8s.io/apiserver/pkg/features:go_default_library", 15 | "//vendor/k8s.io/apiserver/pkg/util/feature:go_default_library", 16 | ], 17 | ) 18 | 19 | filegroup( 20 | name = "package-srcs", 21 | srcs = glob(["**"]), 22 | tags = ["automanaged"], 23 | visibility = ["//visibility:private"], 24 | ) 25 | 26 | filegroup( 27 | name = "all-srcs", 28 | srcs = [":package-srcs"], 29 | tags = ["automanaged"], 30 | ) 31 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/util/parsers/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_library( 10 | name = "go_default_library", 11 | srcs = ["parsers.go"], 12 | importpath = "k8s.io/kubernetes/pkg/util/parsers", 13 | deps = ["//vendor/github.com/docker/distribution/reference:go_default_library"], 14 | ) 15 | 16 | go_test( 17 | name = "go_default_test", 18 | srcs = ["parsers_test.go"], 19 | importpath = "k8s.io/kubernetes/pkg/util/parsers", 20 | library = ":go_default_library", 21 | ) 22 | 23 | filegroup( 24 | name = "package-srcs", 25 | srcs = glob(["**"]), 26 | tags = ["automanaged"], 27 | visibility = ["//visibility:private"], 28 | ) 29 | 30 | filegroup( 31 | name = "all-srcs", 32 | srcs = [":package-srcs"], 33 | tags = ["automanaged"], 34 | ) 35 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/pkg/util/pointer/BUILD: -------------------------------------------------------------------------------- 1 | package(default_visibility = ["//visibility:public"]) 2 | 3 | load( 4 | "@io_bazel_rules_go//go:def.bzl", 5 | "go_library", 6 | "go_test", 7 | ) 8 | 9 | go_test( 10 | name = "go_default_test", 11 | srcs = ["pointer_test.go"], 12 | importpath = "k8s.io/kubernetes/pkg/util/pointer", 13 | library = ":go_default_library", 14 | ) 15 | 16 | go_library( 17 | name = "go_default_library", 18 | srcs = ["pointer.go"], 19 | importpath = "k8s.io/kubernetes/pkg/util/pointer", 20 | ) 21 | 22 | filegroup( 23 | name = "package-srcs", 24 | srcs = glob(["**"]), 25 | tags = ["automanaged"], 26 | visibility = ["//visibility:private"], 27 | ) 28 | 29 | filegroup( 30 | name = "all-srcs", 31 | srcs = [":package-srcs"], 32 | tags = ["automanaged"], 33 | ) 34 | -------------------------------------------------------------------------------- /vendor/k8s.io/kubernetes/third_party/forked/golang/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/k8s.io/kubernetes/third_party/swagger-ui/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2014 Reverb Technologies, Inc. 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 [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) 6 | 7 | Unless required by applicable law or agreed to in writing, software 8 | distributed under the License is distributed on an "AS IS" BASIS, 9 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | See the License for the specific language governing permissions and 11 | limitations under the License. 12 | --------------------------------------------------------------------------------