From 0c37ce85acfdbc23576a076b964156ad8c4ac182 Mon Sep 17 00:00:00 2001 From: Scott Nichols <32305648+n3wscott@users.noreply.github.com> Date: Wed, 18 Mar 2020 07:47:05 -0700 Subject: [PATCH] Use preview4 of CloudEvents SDK, adds support for go mod for v2 and renames legacy to v1 (#2772) --- Gopkg.lock | 94 +++++++++---------- Gopkg.toml | 2 +- cmd/broker/ingress/main.go | 2 +- cmd/ping/adapter/kodata/vendor | 1 - cmd/pong/main.go | 2 +- cmd/sendevent/main.go | 2 +- pkg/adapter/apiserver/adapter.go | 2 +- pkg/adapter/apiserver/events/events.go | 2 +- pkg/adapter/apiserver/events/events_test.go | 2 +- pkg/adapter/apiserver/ref.go | 2 +- pkg/adapter/apiserver/resource.go | 2 +- pkg/adapter/main.go | 2 +- pkg/adapter/main_test.go | 2 +- pkg/adapter/ping/adapter.go | 2 +- pkg/broker/filter/filter_handler.go | 2 +- pkg/broker/filter/filter_handler_test.go | 6 +- pkg/broker/ingress/ingress_handler.go | 4 +- pkg/broker/ingress/ingress_handler_test.go | 4 +- pkg/broker/ttl.go | 6 +- pkg/broker/ttl_test.go | 2 +- pkg/channel/event_dispatcher.go | 4 +- pkg/channel/event_dispatcher_test.go | 4 +- pkg/channel/event_receiver.go | 2 +- pkg/channel/event_receiver_test.go | 4 +- pkg/channel/fanout/fanout_handler.go | 2 +- pkg/channel/fanout/fanout_handler_binding.go | 4 +- .../fanout/fanout_handler_binding_test.go | 6 +- pkg/channel/fanout/fanout_handler_test.go | 8 +- pkg/channel/history.go | 2 +- pkg/channel/history_test.go | 2 +- pkg/channel/history_transformer.go | 6 +- pkg/channel/history_transformer_test.go | 2 +- pkg/channel/message_dispatcher.go | 6 +- pkg/channel/message_dispatcher_test.go | 6 +- pkg/channel/message_receiver.go | 8 +- pkg/channel/message_receiver_test.go | 6 +- .../multi_channel_fanout_handler.go | 2 +- ...lti_channel_fanout_handler_binding_test.go | 6 +- .../multi_channel_fanout_handler_test.go | 4 +- pkg/channel/swappable/swappable.go | 2 +- .../swappable/swappable_binding_test.go | 6 +- pkg/channel/swappable/swappable_test.go | 4 +- pkg/inmemorychannel/dispatcher.go | 2 +- pkg/kncloudevents/good_client.go | 6 +- pkg/kncloudevents/testing/test_client.go | 2 +- pkg/kncloudevents/utils.go | 4 +- pkg/reconciler/pingsource/jobrunner/runner.go | 2 +- pkg/tracing/traceparent.go | 2 +- pkg/tracing/traceparent_test.go | 2 +- pkg/tracing/traceparent_transformer.go | 4 +- pkg/tracing/traceparent_transformer_test.go | 2 +- pkg/utils/context.go | 4 +- .../helpers/broker_tracing_test_helper.go | 2 +- .../helpers/channel_tracing_test_helper.go | 2 +- test/e2e/channel_single_event_test.go | 2 +- test/lib/checkevents.go | 2 +- test/lib/checkevents_test.go | 2 +- test/lib/cloudevents/cloud_events.go | 4 +- test/lib/requests.go | 2 +- .../infra/receiver/id_extractor.go | 2 +- test/performance/infra/receiver/receiver.go | 2 +- .../infra/receiver/type_extractor.go | 2 +- .../infra/sender/http_load_generator.go | 4 +- test/test_images/eventdetails/main.go | 2 +- test/test_images/filterevents/main.go | 2 +- test/test_images/heartbeats/main.go | 2 +- test/test_images/logevents/main.go | 2 +- test/test_images/recordevents/eventstore.go | 2 +- .../recordevents/eventstore_test.go | 2 +- test/test_images/recordevents/main.go | 2 +- test/test_images/sendevents/main.go | 4 +- test/test_images/sequencestepper/main.go | 2 +- test/test_images/transformevents/main.go | 2 +- .../sdk-go/{legacy => v1}/alias.go | 14 +-- .../pkg => v1}/cloudevents/client/client.go | 10 +- .../cloudevents/client/defaulters.go | 2 +- .../pkg => v1}/cloudevents/client/doc.go | 0 .../cloudevents/client/observability.go | 4 +- .../pkg => v1}/cloudevents/client/options.go | 0 .../pkg => v1}/cloudevents/client/receiver.go | 4 +- .../pkg => v1}/cloudevents/content_type.go | 0 .../pkg => v1}/cloudevents/context/context.go | 0 .../pkg => v1}/cloudevents/context/doc.go | 0 .../pkg => v1}/cloudevents/context/logger.go | 0 .../cloudevents/data_content_encoding.go | 0 .../pkg => v1}/cloudevents/datacodec/codec.go | 8 +- .../pkg => v1}/cloudevents/datacodec/doc.go | 0 .../cloudevents/datacodec/json/data.go | 2 +- .../cloudevents/datacodec/json/doc.go | 0 .../datacodec/json/observability.go | 2 +- .../cloudevents/datacodec/observability.go | 2 +- .../cloudevents/datacodec/text/text.go | 0 .../cloudevents/datacodec/xml/data.go | 2 +- .../cloudevents/datacodec/xml/doc.go | 0 .../datacodec/xml/observability.go | 2 +- .../{legacy/pkg => v1}/cloudevents/doc.go | 0 .../{legacy/pkg => v1}/cloudevents/event.go | 0 .../pkg => v1}/cloudevents/event_data.go | 2 +- .../pkg => v1}/cloudevents/event_interface.go | 0 .../pkg => v1}/cloudevents/event_marshal.go | 2 +- .../cloudevents/event_observability.go | 2 +- .../pkg => v1}/cloudevents/event_reader.go | 0 .../pkg => v1}/cloudevents/event_response.go | 0 .../pkg => v1}/cloudevents/event_writer.go | 0 .../pkg => v1}/cloudevents/eventcontext.go | 0 .../cloudevents/eventcontext_v01.go | 2 +- .../cloudevents/eventcontext_v01_reader.go | 0 .../cloudevents/eventcontext_v01_writer.go | 2 +- .../cloudevents/eventcontext_v02.go | 2 +- .../cloudevents/eventcontext_v02_reader.go | 0 .../cloudevents/eventcontext_v02_writer.go | 2 +- .../cloudevents/eventcontext_v03.go | 2 +- .../cloudevents/eventcontext_v03_reader.go | 0 .../cloudevents/eventcontext_v03_writer.go | 2 +- .../pkg => v1}/cloudevents/eventcontext_v1.go | 2 +- .../cloudevents/eventcontext_v1_reader.go | 0 .../cloudevents/eventcontext_v1_writer.go | 2 +- .../pkg => v1}/cloudevents/extensions.go | 0 .../distributed_tracing_extension.go | 4 +- .../cloudevents/observability/doc.go | 0 .../cloudevents/observability/keys.go | 0 .../cloudevents/observability/observer.go | 0 .../pkg => v1}/cloudevents/transport/codec.go | 2 +- .../pkg => v1}/cloudevents/transport/doc.go | 0 .../pkg => v1}/cloudevents/transport/error.go | 0 .../cloudevents/transport/http/codec.go | 6 +- .../transport/http/codec_structured.go | 4 +- .../cloudevents/transport/http/codec_v01.go | 10 +- .../cloudevents/transport/http/codec_v02.go | 10 +- .../cloudevents/transport/http/codec_v03.go | 10 +- .../cloudevents/transport/http/codec_v1.go | 10 +- .../cloudevents/transport/http/context.go | 0 .../cloudevents/transport/http/doc.go | 0 .../cloudevents/transport/http/encoding.go | 4 +- .../cloudevents/transport/http/message.go | 2 +- .../transport/http/observability.go | 2 +- .../cloudevents/transport/http/options.go | 0 .../cloudevents/transport/http/transport.go | 8 +- .../cloudevents/transport/message.go | 0 .../cloudevents/transport/transport.go | 2 +- .../pkg => v1}/cloudevents/types/allocate.go | 0 .../pkg => v1}/cloudevents/types/doc.go | 0 .../pkg => v1}/cloudevents/types/timestamp.go | 0 .../pkg => v1}/cloudevents/types/uri.go | 0 .../pkg => v1}/cloudevents/types/uriref.go | 0 .../pkg => v1}/cloudevents/types/urlref.go | 0 .../pkg => v1}/cloudevents/types/value.go | 0 .../cloudevents/sdk-go/{ => v2}/alias.go | 18 ++-- .../{pkg => v2}/binding/binary_writer.go | 2 +- .../buffering/acks_before_finish_message.go | 2 +- .../buffering/binary_buffer_message.go | 4 +- .../binding/buffering/copy_message.go | 2 +- .../buffering/struct_buffer_message.go | 4 +- .../sdk-go/{pkg => v2}/binding/chan.go | 0 .../sdk-go/{pkg => v2}/binding/doc.go | 0 .../sdk-go/{pkg => v2}/binding/encoding.go | 0 .../{pkg => v2}/binding/event_message.go | 6 +- .../{pkg => v2}/binding/finish_message.go | 0 .../sdk-go/{pkg => v2}/binding/format/doc.go | 0 .../{pkg => v2}/binding/format/format.go | 2 +- .../sdk-go/{pkg => v2}/binding/message.go | 0 .../{pkg => v2}/binding/spec/attributes.go | 4 +- .../sdk-go/{pkg => v2}/binding/spec/doc.go | 0 .../sdk-go/{pkg => v2}/binding/spec/spec.go | 4 +- .../{pkg => v2}/binding/structured_writer.go | 2 +- .../sdk-go/{pkg => v2}/binding/test/doc.go | 0 .../sdk-go/{pkg => v2}/binding/test/events.go | 6 +- .../binding/test/mock_binary_message.go | 6 +- .../binding/test/mock_structured_message.go | 6 +- .../sdk-go/{pkg => v2}/binding/test/test.go | 10 +- .../{pkg => v2}/binding/test/transformer.go | 4 +- .../sdk-go/{pkg => v2}/binding/to_event.go | 8 +- .../sdk-go/{pkg => v2}/binding/transformer.go | 2 +- .../binding/transformer/add_metadata.go | 6 +- .../binding/transformer/default_metadata.go | 8 +- .../binding/transformer/delete_metadata.go | 6 +- .../binding/transformer/set_metadata.go | 4 +- .../binding/transformer/update_metadata.go | 6 +- .../binding/transformer/version.go | 6 +- .../sdk-go/{pkg => v2}/binding/write.go | 2 +- .../sdk-go/{pkg => v2}/client/client.go | 8 +- .../{pkg => v2}/client/client_default.go | 2 +- .../{pkg => v2}/client/client_observed.go | 6 +- .../sdk-go/{pkg => v2}/client/defaulters.go | 2 +- .../sdk-go/{pkg => v2}/client/doc.go | 0 .../{pkg => v2}/client/http_receiver.go | 2 +- .../sdk-go/{pkg => v2}/client/invoker.go | 4 +- .../{pkg => v2}/client/observability.go | 6 +- .../sdk-go/{pkg => v2}/client/options.go | 2 +- .../sdk-go/{pkg => v2}/client/receiver.go | 4 +- .../sdk-go/{pkg => v2}/context/context.go | 0 .../sdk-go/{pkg => v2}/context/doc.go | 0 .../sdk-go/{pkg => v2}/context/logger.go | 0 .../sdk-go/{pkg => v2}/event/content_type.go | 0 .../event/data_content_encoding.go | 0 .../{pkg => v2}/event/datacodec/codec.go | 8 +- .../sdk-go/{pkg => v2}/event/datacodec/doc.go | 0 .../{pkg => v2}/event/datacodec/json/data.go | 2 +- .../{pkg => v2}/event/datacodec/json/doc.go | 0 .../event/datacodec/json/observability.go | 2 +- .../event/datacodec/observability.go | 2 +- .../{pkg => v2}/event/datacodec/text/text.go | 0 .../{pkg => v2}/event/datacodec/xml/data.go | 2 +- .../{pkg => v2}/event/datacodec/xml/doc.go | 0 .../event/datacodec/xml/observability.go | 2 +- .../sdk-go/{pkg => v2}/event/doc.go | 0 .../sdk-go/{pkg => v2}/event/event.go | 0 .../sdk-go/{pkg => v2}/event/event_data.go | 2 +- .../{pkg => v2}/event/event_interface.go | 0 .../sdk-go/{pkg => v2}/event/event_marshal.go | 2 +- .../{pkg => v2}/event/event_observability.go | 2 +- .../sdk-go/{pkg => v2}/event/event_reader.go | 0 .../sdk-go/{pkg => v2}/event/event_writer.go | 0 .../sdk-go/{pkg => v2}/event/eventcontext.go | 0 .../{pkg => v2}/event/eventcontext_v03.go | 2 +- .../event/eventcontext_v03_reader.go | 0 .../event/eventcontext_v03_writer.go | 2 +- .../{pkg => v2}/event/eventcontext_v1.go | 2 +- .../event/eventcontext_v1_reader.go | 0 .../event/eventcontext_v1_writer.go | 2 +- .../sdk-go/{pkg => v2}/event/extensions.go | 0 .../distributed_tracing_extension.go | 4 +- .../sdk-go/{pkg => v2}/observability/doc.go | 0 .../sdk-go/{pkg => v2}/observability/keys.go | 0 .../{pkg => v2}/observability/observer.go | 0 .../sdk-go/{pkg => v2}/protocol/doc.go | 0 .../sdk-go/{pkg => v2}/protocol/error.go | 0 .../sdk-go/{pkg => v2}/protocol/http/doc.go | 0 .../{pkg => v2}/protocol/http/engine.go | 2 +- .../{pkg => v2}/protocol/http/message.go | 6 +- .../{pkg => v2}/protocol/http/options.go | 0 .../{pkg => v2}/protocol/http/protocol.go | 6 +- .../{pkg => v2}/protocol/http/response.go | 2 +- .../protocol/http/write_request.go | 8 +- .../protocol/http/write_responsewriter.go | 8 +- .../sdk-go/{pkg => v2}/protocol/inbound.go | 2 +- .../sdk-go/{pkg => v2}/protocol/lifecycle.go | 0 .../sdk-go/{pkg => v2}/protocol/outbound.go | 2 +- .../sdk-go/{pkg => v2}/protocol/result.go | 0 .../sdk-go/{pkg => v2}/types/allocate.go | 0 .../sdk-go/{pkg => v2}/types/doc.go | 0 .../sdk-go/{pkg => v2}/types/timestamp.go | 0 .../sdk-go/{pkg => v2}/types/uri.go | 0 .../sdk-go/{pkg => v2}/types/uriref.go | 0 .../sdk-go/{pkg => v2}/types/value.go | 0 245 files changed, 351 insertions(+), 352 deletions(-) delete mode 120000 cmd/ping/adapter/kodata/vendor rename vendor/github.com/cloudevents/sdk-go/{legacy => v1}/alias.go (93%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/client/client.go (95%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/client/defaulters.go (96%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/client/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/client/observability.go (93%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/client/options.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/client/receiver.go (98%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/content_type.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/context/context.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/context/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/context/logger.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/data_content_encoding.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/datacodec/codec.go (91%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/datacodec/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/datacodec/json/data.go (97%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/datacodec/json/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/datacodec/json/observability.go (94%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/datacodec/observability.go (94%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/datacodec/text/text.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/datacodec/xml/data.go (97%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/datacodec/xml/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/datacodec/xml/observability.go (94%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/event.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/event_data.go (97%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/event_interface.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/event_marshal.go (99%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/event_observability.go (96%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/event_reader.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/event_response.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/event_writer.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/eventcontext.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/eventcontext_v01.go (99%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/eventcontext_v01_reader.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/eventcontext_v01_writer.go (97%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/eventcontext_v02.go (99%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/eventcontext_v02_reader.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/eventcontext_v02_writer.go (97%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/eventcontext_v03.go (99%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/eventcontext_v03_reader.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/eventcontext_v03_writer.go (97%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/eventcontext_v1.go (99%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/eventcontext_v1_reader.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/eventcontext_v1_writer.go (97%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/extensions.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/extensions/distributed_tracing_extension.go (96%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/observability/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/observability/keys.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/observability/observer.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/transport/codec.go (94%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/transport/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/transport/error.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/transport/http/codec.go (94%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/transport/http/codec_structured.go (88%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/transport/http/codec_v01.go (94%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/transport/http/codec_v02.go (94%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/transport/http/codec_v03.go (95%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/transport/http/codec_v1.go (94%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/transport/http/context.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/transport/http/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/transport/http/encoding.go (97%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/transport/http/message.go (98%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/transport/http/observability.go (96%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/transport/http/options.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/transport/http/transport.go (98%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/transport/message.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/transport/transport.go (96%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/types/allocate.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/types/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/types/timestamp.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/types/uri.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/types/uriref.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/types/urlref.go (100%) rename vendor/github.com/cloudevents/sdk-go/{legacy/pkg => v1}/cloudevents/types/value.go (100%) rename vendor/github.com/cloudevents/sdk-go/{ => v2}/alias.go (89%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/binary_writer.go (96%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/buffering/acks_before_finish_message.go (94%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/buffering/binary_buffer_message.go (96%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/buffering/copy_message.go (97%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/buffering/struct_buffer_message.go (94%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/chan.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/encoding.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/event_message.go (93%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/finish_message.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/format/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/format/format.go (98%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/message.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/spec/attributes.go (97%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/spec/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/spec/spec.go (98%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/structured_writer.go (90%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/test/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/test/events.go (94%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/test/mock_binary_message.go (94%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/test/mock_structured_message.go (90%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/test/test.go (92%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/test/transformer.go (94%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/to_event.go (94%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/transformer.go (97%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/transformer/add_metadata.go (95%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/transformer/default_metadata.go (92%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/transformer/delete_metadata.go (94%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/transformer/set_metadata.go (88%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/transformer/update_metadata.go (96%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/transformer/version.go (90%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/binding/write.go (99%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/client/client.go (96%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/client/client_default.go (93%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/client/client_observed.go (94%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/client/defaulters.go (97%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/client/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/client/http_receiver.go (92%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/client/invoker.go (94%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/client/observability.go (94%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/client/options.go (97%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/client/receiver.go (98%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/context/context.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/context/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/context/logger.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/content_type.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/data_content_encoding.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/datacodec/codec.go (92%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/datacodec/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/datacodec/json/data.go (97%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/datacodec/json/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/datacodec/json/observability.go (95%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/datacodec/observability.go (95%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/datacodec/text/text.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/datacodec/xml/data.go (97%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/datacodec/xml/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/datacodec/xml/observability.go (95%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/event.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/event_data.go (97%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/event_interface.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/event_marshal.go (99%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/event_observability.go (97%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/event_reader.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/event_writer.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/eventcontext.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/eventcontext_v03.go (99%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/eventcontext_v03_reader.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/eventcontext_v03_writer.go (98%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/eventcontext_v1.go (99%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/eventcontext_v1_reader.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/eventcontext_v1_writer.go (98%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/event/extensions.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/extensions/distributed_tracing_extension.go (97%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/observability/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/observability/keys.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/observability/observer.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/protocol/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/protocol/error.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/protocol/http/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/protocol/http/engine.go (98%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/protocol/http/message.go (95%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/protocol/http/options.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/protocol/http/protocol.go (97%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/protocol/http/response.go (95%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/protocol/http/write_request.go (90%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/protocol/http/write_responsewriter.go (91%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/protocol/inbound.go (96%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/protocol/lifecycle.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/protocol/outbound.go (96%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/protocol/result.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/types/allocate.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/types/doc.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/types/timestamp.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/types/uri.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/types/uriref.go (100%) rename vendor/github.com/cloudevents/sdk-go/{pkg => v2}/types/value.go (100%) diff --git a/Gopkg.lock b/Gopkg.lock index a48ea36b1eb..482c81d3cb6 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -122,45 +122,45 @@ version = "v0.2.1" [[projects]] - digest = "1:ebd6a5e731193fe6ac076e1184901ee3abf8c22388e49fbfbd93739a56e835f7" + digest = "1:ea81e13a33886f03955d60157defe3bcfcc878142f01e990382189951622caca" name = "github.com/cloudevents/sdk-go" packages = [ - ".", - "legacy", - "legacy/pkg/cloudevents", - "legacy/pkg/cloudevents/client", - "legacy/pkg/cloudevents/context", - "legacy/pkg/cloudevents/datacodec", - "legacy/pkg/cloudevents/datacodec/json", - "legacy/pkg/cloudevents/datacodec/text", - "legacy/pkg/cloudevents/datacodec/xml", - "legacy/pkg/cloudevents/extensions", - "legacy/pkg/cloudevents/observability", - "legacy/pkg/cloudevents/transport", - "legacy/pkg/cloudevents/transport/http", - "legacy/pkg/cloudevents/types", - "pkg/binding", - "pkg/binding/buffering", - "pkg/binding/format", - "pkg/binding/spec", - "pkg/binding/test", - "pkg/binding/transformer", - "pkg/client", - "pkg/context", - "pkg/event", - "pkg/event/datacodec", - "pkg/event/datacodec/json", - "pkg/event/datacodec/text", - "pkg/event/datacodec/xml", - "pkg/extensions", - "pkg/observability", - "pkg/protocol", - "pkg/protocol/http", - "pkg/types", + "v1", + "v1/cloudevents", + "v1/cloudevents/client", + "v1/cloudevents/context", + "v1/cloudevents/datacodec", + "v1/cloudevents/datacodec/json", + "v1/cloudevents/datacodec/text", + "v1/cloudevents/datacodec/xml", + "v1/cloudevents/extensions", + "v1/cloudevents/observability", + "v1/cloudevents/transport", + "v1/cloudevents/transport/http", + "v1/cloudevents/types", + "v2", + "v2/binding", + "v2/binding/buffering", + "v2/binding/format", + "v2/binding/spec", + "v2/binding/test", + "v2/binding/transformer", + "v2/client", + "v2/context", + "v2/event", + "v2/event/datacodec", + "v2/event/datacodec/json", + "v2/event/datacodec/text", + "v2/event/datacodec/xml", + "v2/extensions", + "v2/observability", + "v2/protocol", + "v2/protocol/http", + "v2/types", ] pruneopts = "NUT" - revision = "f248e160418f3e881491fdc3a60ea83660e30b37" - version = "v2.0.0-preview3" + revision = "0a5202bf31a5927f261fb8ee0bba88cef0963d8c" + version = "v2.0.0-preview4" [[projects]] digest = "1:ffe9824d294da03b391f44e1ae8281281b4afc1bdaa9588c9097785e3af10cec" @@ -1505,18 +1505,18 @@ analyzer-version = 1 input-imports = [ "contrib.go.opencensus.io/exporter/ocagent", - "github.com/cloudevents/sdk-go", - "github.com/cloudevents/sdk-go/legacy", - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents", - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client", - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http", - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types", - "github.com/cloudevents/sdk-go/pkg/binding", - "github.com/cloudevents/sdk-go/pkg/binding/buffering", - "github.com/cloudevents/sdk-go/pkg/binding/test", - "github.com/cloudevents/sdk-go/pkg/binding/transformer", - "github.com/cloudevents/sdk-go/pkg/protocol/http", - "github.com/cloudevents/sdk-go/pkg/types", + "github.com/cloudevents/sdk-go/v1", + "github.com/cloudevents/sdk-go/v1/cloudevents", + "github.com/cloudevents/sdk-go/v1/cloudevents/client", + "github.com/cloudevents/sdk-go/v1/cloudevents/transport/http", + "github.com/cloudevents/sdk-go/v1/cloudevents/types", + "github.com/cloudevents/sdk-go/v2", + "github.com/cloudevents/sdk-go/v2/binding", + "github.com/cloudevents/sdk-go/v2/binding/buffering", + "github.com/cloudevents/sdk-go/v2/binding/test", + "github.com/cloudevents/sdk-go/v2/binding/transformer", + "github.com/cloudevents/sdk-go/v2/protocol/http", + "github.com/cloudevents/sdk-go/v2/types", "github.com/ghodss/yaml", "github.com/golang/protobuf/proto", "github.com/golang/protobuf/ptypes", diff --git a/Gopkg.toml b/Gopkg.toml index 92e7f4165d0..3a6d6480a09 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -91,7 +91,7 @@ required = [ [[constraint]] name = "github.com/cloudevents/sdk-go" - version = "v2.0.0-preview3" + version = "v2.0.0-preview4" # needed because pkg upgraded [[override]] diff --git a/cmd/broker/ingress/main.go b/cmd/broker/ingress/main.go index f4025a12598..0e0612c2f3b 100644 --- a/cmd/broker/ingress/main.go +++ b/cmd/broker/ingress/main.go @@ -26,7 +26,7 @@ import ( // Uncomment the following line to load the gcp plugin (only required to authenticate against GKE clusters). // _ "k8s.io/client-go/plugin/pkg/client/auth/gcp" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "github.com/google/uuid" "github.com/kelseyhightower/envconfig" "go.opencensus.io/stats/view" diff --git a/cmd/ping/adapter/kodata/vendor b/cmd/ping/adapter/kodata/vendor deleted file mode 120000 index 4a212190254..00000000000 --- a/cmd/ping/adapter/kodata/vendor +++ /dev/null @@ -1 +0,0 @@ -../../../../vendor \ No newline at end of file diff --git a/cmd/pong/main.go b/cmd/pong/main.go index 1b4b0488e8d..f04c6383526 100644 --- a/cmd/pong/main.go +++ b/cmd/pong/main.go @@ -22,7 +22,7 @@ import ( "flag" "log" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "github.com/google/uuid" ) diff --git a/cmd/sendevent/main.go b/cmd/sendevent/main.go index d73863807b0..1c80b88ae3c 100644 --- a/cmd/sendevent/main.go +++ b/cmd/sendevent/main.go @@ -25,7 +25,7 @@ import ( "log" "os" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "knative.dev/eventing/pkg/utils" ) diff --git a/pkg/adapter/apiserver/adapter.go b/pkg/adapter/apiserver/adapter.go index 294c3257ba4..861a2f154d8 100644 --- a/pkg/adapter/apiserver/adapter.go +++ b/pkg/adapter/apiserver/adapter.go @@ -23,7 +23,7 @@ import ( "strings" "time" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "go.uber.org/zap" "k8s.io/apimachinery/pkg/api/meta" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/pkg/adapter/apiserver/events/events.go b/pkg/adapter/apiserver/events/events.go index eb907cb3384..6c04977e992 100644 --- a/pkg/adapter/apiserver/events/events.go +++ b/pkg/adapter/apiserver/events/events.go @@ -24,7 +24,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" sourcesv1alpha1 "knative.dev/eventing/pkg/apis/sources/v1alpha1" ) diff --git a/pkg/adapter/apiserver/events/events_test.go b/pkg/adapter/apiserver/events/events_test.go index 4be90ad89ba..6cbad766fdf 100644 --- a/pkg/adapter/apiserver/events/events_test.go +++ b/pkg/adapter/apiserver/events/events_test.go @@ -24,7 +24,7 @@ import ( "github.com/google/go-cmp/cmp/cmpopts" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "github.com/google/go-cmp/cmp" "knative.dev/eventing/pkg/adapter/apiserver/events" diff --git a/pkg/adapter/apiserver/ref.go b/pkg/adapter/apiserver/ref.go index 1e267f53702..889bdda86b5 100644 --- a/pkg/adapter/apiserver/ref.go +++ b/pkg/adapter/apiserver/ref.go @@ -20,7 +20,7 @@ import ( "context" "reflect" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "go.uber.org/zap" "k8s.io/apimachinery/pkg/api/meta" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" diff --git a/pkg/adapter/apiserver/resource.go b/pkg/adapter/apiserver/resource.go index c819b373ff5..77b6cc10045 100644 --- a/pkg/adapter/apiserver/resource.go +++ b/pkg/adapter/apiserver/resource.go @@ -19,7 +19,7 @@ package apiserver import ( "context" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "go.uber.org/zap" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/client-go/tools/cache" diff --git a/pkg/adapter/main.go b/pkg/adapter/main.go index 31867c6c19e..e544ac0b4c0 100644 --- a/pkg/adapter/main.go +++ b/pkg/adapter/main.go @@ -27,7 +27,7 @@ import ( // Uncomment the following line to load the gcp plugin // (only required to authenticate against GKE clusters). // _ "k8s.io/client-go/plugin/pkg/client/auth/gcp" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "github.com/kelseyhightower/envconfig" "go.opencensus.io/stats/view" "go.uber.org/zap" diff --git a/pkg/adapter/main_test.go b/pkg/adapter/main_test.go index 025a4326468..8b7bfcb2d4a 100644 --- a/pkg/adapter/main_test.go +++ b/pkg/adapter/main_test.go @@ -24,7 +24,7 @@ import ( // Uncomment the following line to load the gcp plugin // (only required to authenticate against GKE clusters). // _ "k8s.io/client-go/plugin/pkg/client/auth/gcp" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "go.opencensus.io/stats/view" "knative.dev/pkg/metrics" "knative.dev/pkg/source" diff --git a/pkg/adapter/ping/adapter.go b/pkg/adapter/ping/adapter.go index bc4b6fbb7cc..d5334293559 100644 --- a/pkg/adapter/ping/adapter.go +++ b/pkg/adapter/ping/adapter.go @@ -21,7 +21,7 @@ import ( "encoding/json" "fmt" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "github.com/robfig/cron" "go.uber.org/zap" "knative.dev/pkg/logging" diff --git a/pkg/broker/filter/filter_handler.go b/pkg/broker/filter/filter_handler.go index 46621f3ca9b..a88a3bbdc55 100644 --- a/pkg/broker/filter/filter_handler.go +++ b/pkg/broker/filter/filter_handler.go @@ -24,7 +24,7 @@ import ( "sync/atomic" "time" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "go.uber.org/zap" pkgtracing "knative.dev/pkg/tracing" diff --git a/pkg/broker/filter/filter_handler_test.go b/pkg/broker/filter/filter_handler_test.go index 53f6592a8c5..d940b4854dd 100644 --- a/pkg/broker/filter/filter_handler_test.go +++ b/pkg/broker/filter/filter_handler_test.go @@ -28,9 +28,9 @@ import ( "k8s.io/apimachinery/pkg/labels" - cloudevents "github.com/cloudevents/sdk-go/legacy" - cepkg "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents" - cehttp "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http" + cloudevents "github.com/cloudevents/sdk-go/v1" + cepkg "github.com/cloudevents/sdk-go/v1/cloudevents" + cehttp "github.com/cloudevents/sdk-go/v1/cloudevents/transport/http" "github.com/google/go-cmp/cmp" "go.uber.org/zap" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/pkg/broker/ingress/ingress_handler.go b/pkg/broker/ingress/ingress_handler.go index 3a28b2bb5b4..bc6270c402a 100644 --- a/pkg/broker/ingress/ingress_handler.go +++ b/pkg/broker/ingress/ingress_handler.go @@ -23,8 +23,8 @@ import ( "net/url" "time" - cloudevents "github.com/cloudevents/sdk-go/legacy" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client" + cloudevents "github.com/cloudevents/sdk-go/v1" + "github.com/cloudevents/sdk-go/v1/cloudevents/client" "go.uber.org/zap" "knative.dev/eventing/pkg/broker" diff --git a/pkg/broker/ingress/ingress_handler_test.go b/pkg/broker/ingress/ingress_handler_test.go index 789482b3a6d..3f613d37567 100644 --- a/pkg/broker/ingress/ingress_handler_test.go +++ b/pkg/broker/ingress/ingress_handler_test.go @@ -25,8 +25,8 @@ import ( "testing" "time" - cloudevents "github.com/cloudevents/sdk-go/legacy" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http" + cloudevents "github.com/cloudevents/sdk-go/v1" + "github.com/cloudevents/sdk-go/v1/cloudevents/transport/http" "go.uber.org/zap" "knative.dev/eventing/pkg/broker" diff --git a/pkg/broker/ttl.go b/pkg/broker/ttl.go index 7aedd1e4b2e..7498e3a6743 100644 --- a/pkg/broker/ttl.go +++ b/pkg/broker/ttl.go @@ -19,9 +19,9 @@ package broker import ( "context" - cloudevents "github.com/cloudevents/sdk-go/legacy" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client" - cetypes "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types" + cloudevents "github.com/cloudevents/sdk-go/v1" + "github.com/cloudevents/sdk-go/v1/cloudevents/client" + cetypes "github.com/cloudevents/sdk-go/v1/cloudevents/types" "go.uber.org/zap" ) diff --git a/pkg/broker/ttl_test.go b/pkg/broker/ttl_test.go index 774a79a9f65..517e8f5ae73 100644 --- a/pkg/broker/ttl_test.go +++ b/pkg/broker/ttl_test.go @@ -20,7 +20,7 @@ import ( "context" "testing" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "go.uber.org/zap" ) diff --git a/pkg/channel/event_dispatcher.go b/pkg/channel/event_dispatcher.go index 4a56009817a..c54d672159f 100644 --- a/pkg/channel/event_dispatcher.go +++ b/pkg/channel/event_dispatcher.go @@ -22,8 +22,8 @@ import ( "net/http" "net/url" - cloudevents "github.com/cloudevents/sdk-go/legacy" - cehttp "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http" + cloudevents "github.com/cloudevents/sdk-go/v1" + cehttp "github.com/cloudevents/sdk-go/v1/cloudevents/transport/http" "go.opencensus.io/plugin/ochttp/propagation/b3" "go.uber.org/zap" "k8s.io/apimachinery/pkg/util/sets" diff --git a/pkg/channel/event_dispatcher_test.go b/pkg/channel/event_dispatcher_test.go index 213f55dbcc4..f48cedeefd7 100644 --- a/pkg/channel/event_dispatcher_test.go +++ b/pkg/channel/event_dispatcher_test.go @@ -26,8 +26,8 @@ import ( "strings" "testing" - cloudevents "github.com/cloudevents/sdk-go/legacy" - cehttp "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http" + cloudevents "github.com/cloudevents/sdk-go/v1" + cehttp "github.com/cloudevents/sdk-go/v1/cloudevents/transport/http" "github.com/google/go-cmp/cmp" "go.uber.org/zap" "k8s.io/apimachinery/pkg/util/sets" diff --git a/pkg/channel/event_receiver.go b/pkg/channel/event_receiver.go index 3fcec524470..30c3636f4f5 100644 --- a/pkg/channel/event_receiver.go +++ b/pkg/channel/event_receiver.go @@ -24,7 +24,7 @@ import ( "strings" "time" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "go.uber.org/zap" "knative.dev/eventing/pkg/kncloudevents" diff --git a/pkg/channel/event_receiver_test.go b/pkg/channel/event_receiver_test.go index 86c013890fe..6a5c7082cd6 100644 --- a/pkg/channel/event_receiver_test.go +++ b/pkg/channel/event_receiver_test.go @@ -23,8 +23,8 @@ import ( "net/http" "testing" - cloudevents "github.com/cloudevents/sdk-go/legacy" - cehttp "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http" + cloudevents "github.com/cloudevents/sdk-go/v1" + cehttp "github.com/cloudevents/sdk-go/v1/cloudevents/transport/http" "github.com/google/go-cmp/cmp" _ "knative.dev/pkg/system/testing" diff --git a/pkg/channel/fanout/fanout_handler.go b/pkg/channel/fanout/fanout_handler.go index f0be5f50bd0..192f62006b4 100644 --- a/pkg/channel/fanout/fanout_handler.go +++ b/pkg/channel/fanout/fanout_handler.go @@ -26,7 +26,7 @@ import ( "errors" "time" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "go.opencensus.io/trace" "go.uber.org/zap" diff --git a/pkg/channel/fanout/fanout_handler_binding.go b/pkg/channel/fanout/fanout_handler_binding.go index e53872b164e..d99fdd9da0e 100644 --- a/pkg/channel/fanout/fanout_handler_binding.go +++ b/pkg/channel/fanout/fanout_handler_binding.go @@ -27,8 +27,8 @@ import ( nethttp "net/http" "time" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/buffering" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/buffering" "go.opencensus.io/trace" "go.uber.org/zap" diff --git a/pkg/channel/fanout/fanout_handler_binding_test.go b/pkg/channel/fanout/fanout_handler_binding_test.go index 6ada3c4de4d..a85d38cf2aa 100644 --- a/pkg/channel/fanout/fanout_handler_binding_test.go +++ b/pkg/channel/fanout/fanout_handler_binding_test.go @@ -24,9 +24,9 @@ import ( "testing" "time" - cloudevents "github.com/cloudevents/sdk-go" - "github.com/cloudevents/sdk-go/pkg/binding" - bindingshttp "github.com/cloudevents/sdk-go/pkg/protocol/http" + cloudevents "github.com/cloudevents/sdk-go/v2" + "github.com/cloudevents/sdk-go/v2/binding" + bindingshttp "github.com/cloudevents/sdk-go/v2/protocol/http" "go.uber.org/zap" "knative.dev/pkg/apis" diff --git a/pkg/channel/fanout/fanout_handler_test.go b/pkg/channel/fanout/fanout_handler_test.go index 02bdb97d031..aaced577c3c 100644 --- a/pkg/channel/fanout/fanout_handler_test.go +++ b/pkg/channel/fanout/fanout_handler_test.go @@ -24,8 +24,8 @@ import ( "testing" "time" - cloudevents "github.com/cloudevents/sdk-go/legacy" - cehttp "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http" + cloudevents "github.com/cloudevents/sdk-go/v1" + cehttp "github.com/cloudevents/sdk-go/v1/cloudevents/transport/http" "go.uber.org/atomic" "go.uber.org/zap" "knative.dev/pkg/apis" @@ -142,7 +142,7 @@ func TestFanoutHandler_ServeHTTP(t *testing.T) { expectedStatus: http.StatusAccepted, }, "one sub succeeds, one sub fails": { - skip: "RACE condition due to bug in cloudevents-sdk. Unskip it once the issue https://github.com/cloudevents/sdk-go/legacy/issues/193 is fixed", + skip: "RACE condition due to bug in cloudevents-sdk. Unskip it once the issue https://github.com/cloudevents/sdk-go/v1/issues/193 is fixed", subs: []eventingduck.SubscriberSpec{ { SubscriberURI: replaceSubscriber, @@ -180,7 +180,7 @@ func TestFanoutHandler_ServeHTTP(t *testing.T) { expectedStatus: http.StatusAccepted, }, "all subs succeed with async handler": { - skip: "RACE condition due to bug in cloudevents-sdk. Unskip it once the issue https://github.com/cloudevents/sdk-go/legacy/issues/193 is fixed", + skip: "RACE condition due to bug in cloudevents-sdk. Unskip it once the issue https://github.com/cloudevents/sdk-go/v1/issues/193 is fixed", subs: []eventingduck.SubscriberSpec{ { SubscriberURI: replaceSubscriber, diff --git a/pkg/channel/history.go b/pkg/channel/history.go index 78089495bbb..c665db06844 100644 --- a/pkg/channel/history.go +++ b/pkg/channel/history.go @@ -20,7 +20,7 @@ import ( "regexp" "strings" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" ) const ( diff --git a/pkg/channel/history_test.go b/pkg/channel/history_test.go index d441f87aaaa..4667cb5cb9c 100644 --- a/pkg/channel/history_test.go +++ b/pkg/channel/history_test.go @@ -19,7 +19,7 @@ package channel import ( "testing" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" ) func TestMessageHistory(t *testing.T) { diff --git a/pkg/channel/history_transformer.go b/pkg/channel/history_transformer.go index 7a756a8efb5..8a5abef8419 100644 --- a/pkg/channel/history_transformer.go +++ b/pkg/channel/history_transformer.go @@ -17,9 +17,9 @@ limitations under the License. package channel import ( - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/transformer" - "github.com/cloudevents/sdk-go/pkg/types" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/transformer" + "github.com/cloudevents/sdk-go/v2/types" ) func AddHistory(host string) []binding.TransformerFactory { diff --git a/pkg/channel/history_transformer_test.go b/pkg/channel/history_transformer_test.go index 9aef7104502..b88d2b77bb2 100644 --- a/pkg/channel/history_transformer_test.go +++ b/pkg/channel/history_transformer_test.go @@ -20,7 +20,7 @@ import ( "context" "testing" - "github.com/cloudevents/sdk-go/pkg/binding/test" + "github.com/cloudevents/sdk-go/v2/binding/test" ) func TestHistoryTransformer(t *testing.T) { diff --git a/pkg/channel/message_dispatcher.go b/pkg/channel/message_dispatcher.go index 7a4eacec68d..41a65091ca9 100644 --- a/pkg/channel/message_dispatcher.go +++ b/pkg/channel/message_dispatcher.go @@ -22,9 +22,9 @@ import ( nethttp "net/http" "net/url" - cloudevents "github.com/cloudevents/sdk-go" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/protocol/http" + cloudevents "github.com/cloudevents/sdk-go/v2" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/protocol/http" "go.uber.org/zap" "k8s.io/apimachinery/pkg/util/sets" diff --git a/pkg/channel/message_dispatcher_test.go b/pkg/channel/message_dispatcher_test.go index 8fe83cce3e2..2c00544dab9 100644 --- a/pkg/channel/message_dispatcher_test.go +++ b/pkg/channel/message_dispatcher_test.go @@ -24,9 +24,9 @@ import ( "net/http/httptest" "testing" - cloudevents "github.com/cloudevents/sdk-go" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/transformer" + cloudevents "github.com/cloudevents/sdk-go/v2" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/transformer" "github.com/google/uuid" "go.uber.org/zap" diff --git a/pkg/channel/message_receiver.go b/pkg/channel/message_receiver.go index 8fa61db007f..13544b8013e 100644 --- a/pkg/channel/message_receiver.go +++ b/pkg/channel/message_receiver.go @@ -22,10 +22,10 @@ import ( nethttp "net/http" "time" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/buffering" - "github.com/cloudevents/sdk-go/pkg/binding/transformer" - "github.com/cloudevents/sdk-go/pkg/protocol/http" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/buffering" + "github.com/cloudevents/sdk-go/v2/binding/transformer" + "github.com/cloudevents/sdk-go/v2/protocol/http" "go.opencensus.io/trace" "go.uber.org/zap" diff --git a/pkg/channel/message_receiver_test.go b/pkg/channel/message_receiver_test.go index 7cf91cd009e..2fed22317f3 100644 --- a/pkg/channel/message_receiver_test.go +++ b/pkg/channel/message_receiver_test.go @@ -25,9 +25,9 @@ import ( "net/http/httptest" "testing" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/test" - "github.com/cloudevents/sdk-go/pkg/protocol/http" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/test" + "github.com/cloudevents/sdk-go/v2/protocol/http" "github.com/google/go-cmp/cmp" _ "knative.dev/pkg/system/testing" diff --git a/pkg/channel/multichannelfanout/multi_channel_fanout_handler.go b/pkg/channel/multichannelfanout/multi_channel_fanout_handler.go index e7c6dd4523f..0f2df219d12 100644 --- a/pkg/channel/multichannelfanout/multi_channel_fanout_handler.go +++ b/pkg/channel/multichannelfanout/multi_channel_fanout_handler.go @@ -30,7 +30,7 @@ import ( "fmt" "net/http" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "github.com/google/go-cmp/cmp" "github.com/pkg/errors" "go.uber.org/zap" diff --git a/pkg/channel/multichannelfanout/multi_channel_fanout_handler_binding_test.go b/pkg/channel/multichannelfanout/multi_channel_fanout_handler_binding_test.go index a36f441fa00..fc9b2319e05 100644 --- a/pkg/channel/multichannelfanout/multi_channel_fanout_handler_binding_test.go +++ b/pkg/channel/multichannelfanout/multi_channel_fanout_handler_binding_test.go @@ -24,9 +24,9 @@ import ( "net/http/httptest" "testing" - cloudevents "github.com/cloudevents/sdk-go" - "github.com/cloudevents/sdk-go/pkg/binding" - bindingshttp "github.com/cloudevents/sdk-go/pkg/protocol/http" + cloudevents "github.com/cloudevents/sdk-go/v2" + "github.com/cloudevents/sdk-go/v2/binding" + bindingshttp "github.com/cloudevents/sdk-go/v2/protocol/http" "github.com/google/go-cmp/cmp" "go.uber.org/zap" "knative.dev/pkg/apis" diff --git a/pkg/channel/multichannelfanout/multi_channel_fanout_handler_test.go b/pkg/channel/multichannelfanout/multi_channel_fanout_handler_test.go index b5d453abf66..8433f541ca8 100644 --- a/pkg/channel/multichannelfanout/multi_channel_fanout_handler_test.go +++ b/pkg/channel/multichannelfanout/multi_channel_fanout_handler_test.go @@ -22,8 +22,8 @@ import ( "net/http/httptest" "testing" - cloudevents "github.com/cloudevents/sdk-go/legacy" - cehttp "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http" + cloudevents "github.com/cloudevents/sdk-go/v1" + cehttp "github.com/cloudevents/sdk-go/v1/cloudevents/transport/http" "github.com/google/go-cmp/cmp" "go.uber.org/zap" "knative.dev/pkg/apis" diff --git a/pkg/channel/swappable/swappable.go b/pkg/channel/swappable/swappable.go index c88f9285c8c..4e100830da5 100644 --- a/pkg/channel/swappable/swappable.go +++ b/pkg/channel/swappable/swappable.go @@ -28,7 +28,7 @@ import ( "sync" "sync/atomic" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "go.uber.org/zap" "knative.dev/eventing/pkg/channel/multichannelfanout" diff --git a/pkg/channel/swappable/swappable_binding_test.go b/pkg/channel/swappable/swappable_binding_test.go index 1ca6c98a0de..e328857fa87 100644 --- a/pkg/channel/swappable/swappable_binding_test.go +++ b/pkg/channel/swappable/swappable_binding_test.go @@ -22,9 +22,9 @@ import ( "net/http/httptest" "testing" - cloudevents "github.com/cloudevents/sdk-go" - "github.com/cloudevents/sdk-go/pkg/binding" - bindingshttp "github.com/cloudevents/sdk-go/pkg/protocol/http" + cloudevents "github.com/cloudevents/sdk-go/v2" + "github.com/cloudevents/sdk-go/v2/binding" + bindingshttp "github.com/cloudevents/sdk-go/v2/protocol/http" "go.uber.org/zap" eventingduck "knative.dev/eventing/pkg/apis/duck/v1alpha1" diff --git a/pkg/channel/swappable/swappable_test.go b/pkg/channel/swappable/swappable_test.go index 9d99323d354..6ba7826959d 100644 --- a/pkg/channel/swappable/swappable_test.go +++ b/pkg/channel/swappable/swappable_test.go @@ -22,8 +22,8 @@ import ( "net/http/httptest" "testing" - cloudevents "github.com/cloudevents/sdk-go/legacy" - cehttp "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http" + cloudevents "github.com/cloudevents/sdk-go/v1" + cehttp "github.com/cloudevents/sdk-go/v1/cloudevents/transport/http" "go.uber.org/zap" "knative.dev/pkg/apis" diff --git a/pkg/inmemorychannel/dispatcher.go b/pkg/inmemorychannel/dispatcher.go index e141d8f5760..d52455a7a10 100644 --- a/pkg/inmemorychannel/dispatcher.go +++ b/pkg/inmemorychannel/dispatcher.go @@ -20,7 +20,7 @@ import ( "errors" "time" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "go.uber.org/zap" "knative.dev/eventing/pkg/channel/multichannelfanout" diff --git a/pkg/kncloudevents/good_client.go b/pkg/kncloudevents/good_client.go index 7f4784ccca6..e6f8807eecc 100644 --- a/pkg/kncloudevents/good_client.go +++ b/pkg/kncloudevents/good_client.go @@ -19,9 +19,9 @@ package kncloudevents import ( nethttp "net/http" - cloudevents "github.com/cloudevents/sdk-go/legacy" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http" + cloudevents "github.com/cloudevents/sdk-go/v1" + "github.com/cloudevents/sdk-go/v1/cloudevents/client" + "github.com/cloudevents/sdk-go/v1/cloudevents/transport/http" "go.opencensus.io/plugin/ochttp" "go.opencensus.io/plugin/ochttp/propagation/b3" "knative.dev/pkg/tracing" diff --git a/pkg/kncloudevents/testing/test_client.go b/pkg/kncloudevents/testing/test_client.go index 0c6c134e249..028fd574546 100644 --- a/pkg/kncloudevents/testing/test_client.go +++ b/pkg/kncloudevents/testing/test_client.go @@ -4,7 +4,7 @@ import ( "context" "sync" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" ) type TestCloudEventsClient struct { diff --git a/pkg/kncloudevents/utils.go b/pkg/kncloudevents/utils.go index 86a8fb26af7..e10a588cc8a 100644 --- a/pkg/kncloudevents/utils.go +++ b/pkg/kncloudevents/utils.go @@ -20,8 +20,8 @@ import ( "context" nethttp "net/http" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/protocol/http" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/protocol/http" ) func WriteHttpRequestWithAdditionalHeaders(ctx context.Context, message binding.Message, req *nethttp.Request, additionalHeaders nethttp.Header, transformers binding.TransformerFactories) error { diff --git a/pkg/reconciler/pingsource/jobrunner/runner.go b/pkg/reconciler/pingsource/jobrunner/runner.go index e8eef0ca481..6ef4b241801 100644 --- a/pkg/reconciler/pingsource/jobrunner/runner.go +++ b/pkg/reconciler/pingsource/jobrunner/runner.go @@ -20,7 +20,7 @@ import ( "context" "encoding/json" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "github.com/robfig/cron" "go.uber.org/zap" "knative.dev/pkg/source" diff --git a/pkg/tracing/traceparent.go b/pkg/tracing/traceparent.go index 35a70fe9485..5e9c8801d09 100644 --- a/pkg/tracing/traceparent.go +++ b/pkg/tracing/traceparent.go @@ -22,7 +22,7 @@ import ( "regexp" "strconv" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "go.opencensus.io/plugin/ochttp/propagation/b3" "go.opencensus.io/trace" ) diff --git a/pkg/tracing/traceparent_test.go b/pkg/tracing/traceparent_test.go index 61479c9edae..b4a5f606cff 100644 --- a/pkg/tracing/traceparent_test.go +++ b/pkg/tracing/traceparent_test.go @@ -23,7 +23,7 @@ import ( "github.com/google/go-cmp/cmp" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "go.opencensus.io/trace" ) diff --git a/pkg/tracing/traceparent_transformer.go b/pkg/tracing/traceparent_transformer.go index 7eeb7294e26..80a05617a67 100644 --- a/pkg/tracing/traceparent_transformer.go +++ b/pkg/tracing/traceparent_transformer.go @@ -17,8 +17,8 @@ limitations under the License. package tracing import ( - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/transformer" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/transformer" "go.opencensus.io/trace" ) diff --git a/pkg/tracing/traceparent_transformer_test.go b/pkg/tracing/traceparent_transformer_test.go index 267b2d53e47..16789dead07 100644 --- a/pkg/tracing/traceparent_transformer_test.go +++ b/pkg/tracing/traceparent_transformer_test.go @@ -20,7 +20,7 @@ import ( "context" "testing" - "github.com/cloudevents/sdk-go/pkg/binding/test" + "github.com/cloudevents/sdk-go/v2/binding/test" "go.opencensus.io/trace" ) diff --git a/pkg/utils/context.go b/pkg/utils/context.go index d57081ccbf2..3396cbbbf37 100644 --- a/pkg/utils/context.go +++ b/pkg/utils/context.go @@ -22,8 +22,8 @@ import ( "net/url" "strings" - cloudevents "github.com/cloudevents/sdk-go/legacy" - cehttp "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http" + cloudevents "github.com/cloudevents/sdk-go/v1" + cehttp "github.com/cloudevents/sdk-go/v1/cloudevents/transport/http" "k8s.io/apimachinery/pkg/util/sets" ) diff --git a/test/conformance/helpers/broker_tracing_test_helper.go b/test/conformance/helpers/broker_tracing_test_helper.go index a7d68d315b5..92e37df9210 100644 --- a/test/conformance/helpers/broker_tracing_test_helper.go +++ b/test/conformance/helpers/broker_tracing_test_helper.go @@ -21,7 +21,7 @@ import ( "strings" "testing" - ce "github.com/cloudevents/sdk-go/legacy" + ce "github.com/cloudevents/sdk-go/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/uuid" diff --git a/test/conformance/helpers/channel_tracing_test_helper.go b/test/conformance/helpers/channel_tracing_test_helper.go index 1797932d5b9..244631f3c16 100644 --- a/test/conformance/helpers/channel_tracing_test_helper.go +++ b/test/conformance/helpers/channel_tracing_test_helper.go @@ -22,7 +22,7 @@ import ( "testing" "time" - ce "github.com/cloudevents/sdk-go/legacy" + ce "github.com/cloudevents/sdk-go/v1" "github.com/openzipkin/zipkin-go/model" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/uuid" diff --git a/test/e2e/channel_single_event_test.go b/test/e2e/channel_single_event_test.go index e5f915140fd..9890cfc0a31 100644 --- a/test/e2e/channel_single_event_test.go +++ b/test/e2e/channel_single_event_test.go @@ -21,7 +21,7 @@ package e2e import ( "testing" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "knative.dev/eventing/test/e2e/helpers" ) diff --git a/test/lib/checkevents.go b/test/lib/checkevents.go index 70432eb5a9b..c5606fdb8cb 100644 --- a/test/lib/checkevents.go +++ b/test/lib/checkevents.go @@ -21,7 +21,7 @@ import ( "sync" "time" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "k8s.io/apimachinery/pkg/util/wait" "knative.dev/pkg/test/logging" diff --git a/test/lib/checkevents_test.go b/test/lib/checkevents_test.go index 21aa6b7f894..a7b47d47a40 100644 --- a/test/lib/checkevents_test.go +++ b/test/lib/checkevents_test.go @@ -23,7 +23,7 @@ import ( "testing" "time" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" ) type dummyEventGet struct { diff --git a/test/lib/cloudevents/cloud_events.go b/test/lib/cloudevents/cloud_events.go index e6c2e947743..a2e9442ef87 100644 --- a/test/lib/cloudevents/cloud_events.go +++ b/test/lib/cloudevents/cloud_events.go @@ -17,8 +17,8 @@ limitations under the License. package cloudevents import ( - ce "github.com/cloudevents/sdk-go/legacy" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types" + ce "github.com/cloudevents/sdk-go/v1" + "github.com/cloudevents/sdk-go/v1/cloudevents/types" ) // CloudEvent related constants. diff --git a/test/lib/requests.go b/test/lib/requests.go index a1ca47fd756..59419c5f638 100644 --- a/test/lib/requests.go +++ b/test/lib/requests.go @@ -24,7 +24,7 @@ import ( "net/http" "time" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" corev1 "k8s.io/api/core/v1" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/test/performance/infra/receiver/id_extractor.go b/test/performance/infra/receiver/id_extractor.go index 9a2fdf88211..1e6f9c4512a 100644 --- a/test/performance/infra/receiver/id_extractor.go +++ b/test/performance/infra/receiver/id_extractor.go @@ -16,7 +16,7 @@ limitations under the License. package receiver -import cloudevents "github.com/cloudevents/sdk-go/legacy" +import cloudevents "github.com/cloudevents/sdk-go/v1" // IdExtractor is used by the receiver to establish the id of the received event type IdExtractor func(event cloudevents.Event) string diff --git a/test/performance/infra/receiver/receiver.go b/test/performance/infra/receiver/receiver.go index f0f91fee5d5..a9455c188a6 100644 --- a/test/performance/infra/receiver/receiver.go +++ b/test/performance/infra/receiver/receiver.go @@ -25,7 +25,7 @@ import ( "runtime" "time" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "github.com/golang/protobuf/ptypes" "github.com/golang/protobuf/ptypes/timestamp" diff --git a/test/performance/infra/receiver/type_extractor.go b/test/performance/infra/receiver/type_extractor.go index f055285cd89..200f692db19 100644 --- a/test/performance/infra/receiver/type_extractor.go +++ b/test/performance/infra/receiver/type_extractor.go @@ -16,7 +16,7 @@ limitations under the License. package receiver -import cloudevents "github.com/cloudevents/sdk-go/legacy" +import cloudevents "github.com/cloudevents/sdk-go/v1" // TypeExtractor is used by the receiver to establish the type of the received event type TypeExtractor func(event cloudevents.Event) string diff --git a/test/performance/infra/sender/http_load_generator.go b/test/performance/infra/sender/http_load_generator.go index addaf05a62e..6be1b39f773 100644 --- a/test/performance/infra/sender/http_load_generator.go +++ b/test/performance/infra/sender/http_load_generator.go @@ -24,8 +24,8 @@ import ( "net/http" "time" - cloudevents "github.com/cloudevents/sdk-go/legacy" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client" + cloudevents "github.com/cloudevents/sdk-go/v1" + "github.com/cloudevents/sdk-go/v1/cloudevents/client" "github.com/golang/protobuf/ptypes" "github.com/google/uuid" "github.com/rogpeppe/fastuuid" diff --git a/test/test_images/eventdetails/main.go b/test/test_images/eventdetails/main.go index 1a34337b977..42589213add 100644 --- a/test/test_images/eventdetails/main.go +++ b/test/test_images/eventdetails/main.go @@ -21,7 +21,7 @@ import ( "fmt" "log" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "go.uber.org/zap" "knative.dev/eventing/pkg/kncloudevents" diff --git a/test/test_images/filterevents/main.go b/test/test_images/filterevents/main.go index b29e859f6a7..b2ba75526fd 100644 --- a/test/test_images/filterevents/main.go +++ b/test/test_images/filterevents/main.go @@ -21,7 +21,7 @@ import ( "flag" "log" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" ) var ( diff --git a/test/test_images/heartbeats/main.go b/test/test_images/heartbeats/main.go index e8b7a1819b9..8472eafc591 100644 --- a/test/test_images/heartbeats/main.go +++ b/test/test_images/heartbeats/main.go @@ -30,7 +30,7 @@ import ( "knative.dev/eventing/pkg/kncloudevents" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "github.com/kelseyhightower/envconfig" ) diff --git a/test/test_images/logevents/main.go b/test/test_images/logevents/main.go index 2912f405bce..1d7c6192aa3 100644 --- a/test/test_images/logevents/main.go +++ b/test/test_images/logevents/main.go @@ -20,7 +20,7 @@ import ( "context" "log" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "go.uber.org/zap" "knative.dev/eventing/pkg/kncloudevents" diff --git a/test/test_images/recordevents/eventstore.go b/test/test_images/recordevents/eventstore.go index 536c275a874..0e5c7b866e4 100644 --- a/test/test_images/recordevents/eventstore.go +++ b/test/test_images/recordevents/eventstore.go @@ -21,7 +21,7 @@ import ( "fmt" "sync" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "knative.dev/eventing/test/lib" ) diff --git a/test/test_images/recordevents/eventstore_test.go b/test/test_images/recordevents/eventstore_test.go index 0adb8d7e73a..f85c2536483 100644 --- a/test/test_images/recordevents/eventstore_test.go +++ b/test/test_images/recordevents/eventstore_test.go @@ -21,7 +21,7 @@ import ( "strconv" "testing" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "knative.dev/eventing/test/lib" ) diff --git a/test/test_images/recordevents/main.go b/test/test_images/recordevents/main.go index 3439b3ba464..43791a3046c 100644 --- a/test/test_images/recordevents/main.go +++ b/test/test_images/recordevents/main.go @@ -25,7 +25,7 @@ import ( "strconv" "strings" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "go.uber.org/zap" "knative.dev/eventing/pkg/kncloudevents" diff --git a/test/test_images/sendevents/main.go b/test/test_images/sendevents/main.go index 7595526f0da..5794dceb5b6 100644 --- a/test/test_images/sendevents/main.go +++ b/test/test_images/sendevents/main.go @@ -27,8 +27,8 @@ import ( "strconv" "time" - cloudevents "github.com/cloudevents/sdk-go/legacy" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http" + cloudevents "github.com/cloudevents/sdk-go/v1" + "github.com/cloudevents/sdk-go/v1/cloudevents/transport/http" "go.opencensus.io/plugin/ochttp" "go.opencensus.io/plugin/ochttp/propagation/b3" "go.opencensus.io/trace" diff --git a/test/test_images/sequencestepper/main.go b/test/test_images/sequencestepper/main.go index 9a340e8d85d..86b704508c9 100644 --- a/test/test_images/sequencestepper/main.go +++ b/test/test_images/sequencestepper/main.go @@ -21,7 +21,7 @@ import ( "flag" "log" - ce "github.com/cloudevents/sdk-go/legacy" + ce "github.com/cloudevents/sdk-go/v1" "knative.dev/eventing/test/lib/cloudevents" ) diff --git a/test/test_images/transformevents/main.go b/test/test_images/transformevents/main.go index 1f4d25a72e8..158b658eb8d 100644 --- a/test/test_images/transformevents/main.go +++ b/test/test_images/transformevents/main.go @@ -21,7 +21,7 @@ import ( "flag" "log" - cloudevents "github.com/cloudevents/sdk-go/legacy" + cloudevents "github.com/cloudevents/sdk-go/v1" "go.uber.org/zap" "knative.dev/eventing/pkg/kncloudevents" diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/alias.go b/vendor/github.com/cloudevents/sdk-go/v1/alias.go similarity index 93% rename from vendor/github.com/cloudevents/sdk-go/legacy/alias.go rename to vendor/github.com/cloudevents/sdk-go/v1/alias.go index 84c4cce5110..885c37797a0 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/alias.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/alias.go @@ -1,15 +1,15 @@ -package cloudevents +package v1 // Package cloudevents alias' common functions and types to improve discoverability and reduce // the number of imports for simple HTTP clients. import ( - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/context" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types" + "github.com/cloudevents/sdk-go/v1/cloudevents" + "github.com/cloudevents/sdk-go/v1/cloudevents/client" + "github.com/cloudevents/sdk-go/v1/cloudevents/context" + "github.com/cloudevents/sdk-go/v1/cloudevents/observability" + "github.com/cloudevents/sdk-go/v1/cloudevents/transport/http" + "github.com/cloudevents/sdk-go/v1/cloudevents/types" ) // Client diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client/client.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/client/client.go similarity index 95% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client/client.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/client/client.go index 38ce35534c8..55721a02400 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client/client.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/client/client.go @@ -5,11 +5,11 @@ import ( "fmt" "sync" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/extensions" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http" + "github.com/cloudevents/sdk-go/v1/cloudevents" + "github.com/cloudevents/sdk-go/v1/cloudevents/extensions" + "github.com/cloudevents/sdk-go/v1/cloudevents/observability" + "github.com/cloudevents/sdk-go/v1/cloudevents/transport" + "github.com/cloudevents/sdk-go/v1/cloudevents/transport/http" "go.opencensus.io/trace" ) diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client/defaulters.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/client/defaulters.go similarity index 96% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client/defaulters.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/client/defaulters.go index f71d55805f3..8ddd8bf28c0 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client/defaulters.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/client/defaulters.go @@ -4,7 +4,7 @@ import ( "context" "time" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents" + "github.com/cloudevents/sdk-go/v1/cloudevents" "github.com/google/uuid" ) diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client/doc.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/client/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client/doc.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/client/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client/observability.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/client/observability.go similarity index 93% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client/observability.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/client/observability.go index a5797d98c72..110c78d228f 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client/observability.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/client/observability.go @@ -1,8 +1,8 @@ package client import ( - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability" + "github.com/cloudevents/sdk-go/v1/cloudevents" + "github.com/cloudevents/sdk-go/v1/cloudevents/observability" "go.opencensus.io/stats" "go.opencensus.io/stats/view" "go.opencensus.io/trace" diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client/options.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/client/options.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client/options.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/client/options.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client/receiver.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/client/receiver.go similarity index 98% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client/receiver.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/client/receiver.go index cbbee1f2874..d63ec13a3ae 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/client/receiver.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/client/receiver.go @@ -6,8 +6,8 @@ import ( "fmt" "reflect" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport" + "github.com/cloudevents/sdk-go/v1/cloudevents" + "github.com/cloudevents/sdk-go/v1/cloudevents/transport" ) // Receive is the signature of a fn to be invoked for incoming cloudevents. diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/content_type.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/content_type.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/content_type.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/content_type.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/context/context.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/context/context.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/context/context.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/context/context.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/context/doc.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/context/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/context/doc.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/context/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/context/logger.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/context/logger.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/context/logger.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/context/logger.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/data_content_encoding.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/data_content_encoding.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/data_content_encoding.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/data_content_encoding.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/codec.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/codec.go similarity index 91% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/codec.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/codec.go index 2081e71ce13..12243addb35 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/codec.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/codec.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/json" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/text" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/xml" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability" + "github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/json" + "github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/text" + "github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/xml" + "github.com/cloudevents/sdk-go/v1/cloudevents/observability" ) // Decoder is the expected function signature for decoding `in` to `out`. What diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/doc.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/doc.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/json/data.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/json/data.go similarity index 97% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/json/data.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/json/data.go index 3a9509517fd..31ef508b1aa 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/json/data.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/json/data.go @@ -7,7 +7,7 @@ import ( "reflect" "strconv" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability" + "github.com/cloudevents/sdk-go/v1/cloudevents/observability" ) // Decode takes `in` as []byte, or base64 string, normalizes in to unquoted and diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/json/doc.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/json/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/json/doc.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/json/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/json/observability.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/json/observability.go similarity index 94% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/json/observability.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/json/observability.go index 069f76eb39e..3e88f49077f 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/json/observability.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/json/observability.go @@ -1,7 +1,7 @@ package json import ( - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability" + "github.com/cloudevents/sdk-go/v1/cloudevents/observability" "go.opencensus.io/stats" "go.opencensus.io/stats/view" ) diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/observability.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/observability.go similarity index 94% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/observability.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/observability.go index 81d2c6b1e61..a0ad7deb322 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/observability.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/observability.go @@ -1,7 +1,7 @@ package datacodec import ( - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability" + "github.com/cloudevents/sdk-go/v1/cloudevents/observability" "go.opencensus.io/stats" "go.opencensus.io/stats/view" ) diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/text/text.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/text/text.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/text/text.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/text/text.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/xml/data.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/xml/data.go similarity index 97% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/xml/data.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/xml/data.go index f086b13f38b..9f42b7fa66c 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/xml/data.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/xml/data.go @@ -7,7 +7,7 @@ import ( "fmt" "strconv" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability" + "github.com/cloudevents/sdk-go/v1/cloudevents/observability" ) // Decode takes `in` as []byte, or base64 string, normalizes in to unquoted and diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/xml/doc.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/xml/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/xml/doc.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/xml/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/xml/observability.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/xml/observability.go similarity index 94% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/xml/observability.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/xml/observability.go index 5474551613f..92102555c26 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec/xml/observability.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/datacodec/xml/observability.go @@ -1,7 +1,7 @@ package xml import ( - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability" + "github.com/cloudevents/sdk-go/v1/cloudevents/observability" "go.opencensus.io/stats" "go.opencensus.io/stats/view" ) diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/doc.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/doc.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/event.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/event.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/event.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/event.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/event_data.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/event_data.go similarity index 97% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/event_data.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/event_data.go index e27485a5436..63cc2d56790 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/event_data.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/event_data.go @@ -7,7 +7,7 @@ import ( "fmt" "strconv" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/datacodec" + "github.com/cloudevents/sdk-go/v1/cloudevents/datacodec" ) // Data is special. Break it out into it's own file. diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/event_interface.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/event_interface.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/event_interface.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/event_interface.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/event_marshal.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/event_marshal.go similarity index 99% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/event_marshal.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/event_marshal.go index 9b902654edc..a1f10e5c4f9 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/event_marshal.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/event_marshal.go @@ -11,7 +11,7 @@ import ( errors2 "github.com/pkg/errors" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability" + "github.com/cloudevents/sdk-go/v1/cloudevents/observability" ) // MarshalJSON implements a custom json marshal method used when this type is diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/event_observability.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/event_observability.go similarity index 96% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/event_observability.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/event_observability.go index 2fbcf484dfd..ef03abfe56e 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/event_observability.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/event_observability.go @@ -3,7 +3,7 @@ package cloudevents import ( "fmt" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability" + "github.com/cloudevents/sdk-go/v1/cloudevents/observability" "go.opencensus.io/stats" "go.opencensus.io/stats/view" ) diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/event_reader.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/event_reader.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/event_reader.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/event_reader.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/event_response.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/event_response.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/event_response.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/event_response.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/event_writer.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/event_writer.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/event_writer.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/event_writer.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v01.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v01.go similarity index 99% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v01.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v01.go index ca34d4c777b..0ecacf68fc8 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v01.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v01.go @@ -5,7 +5,7 @@ import ( "sort" "strings" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types" + "github.com/cloudevents/sdk-go/v1/cloudevents/types" ) const ( diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v01_reader.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v01_reader.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v01_reader.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v01_reader.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v01_writer.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v01_writer.go similarity index 97% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v01_writer.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v01_writer.go index 0794686baf0..f8e5888ab9b 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v01_writer.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v01_writer.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types" + "github.com/cloudevents/sdk-go/v1/cloudevents/types" ) // Adhere to EventContextWriter diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v02.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v02.go similarity index 99% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v02.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v02.go index c5f2a8b557e..f4401047f88 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v02.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v02.go @@ -6,7 +6,7 @@ import ( "sort" "strings" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types" + "github.com/cloudevents/sdk-go/v1/cloudevents/types" ) const ( diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v02_reader.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v02_reader.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v02_reader.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v02_reader.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v02_writer.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v02_writer.go similarity index 97% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v02_writer.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v02_writer.go index f1e6017331b..733680aa2e1 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v02_writer.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v02_writer.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types" + "github.com/cloudevents/sdk-go/v1/cloudevents/types" ) // Adhere to EventContextWriter diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v03.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v03.go similarity index 99% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v03.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v03.go index 77114342003..0b855ff71f6 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v03.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v03.go @@ -6,7 +6,7 @@ import ( "sort" "strings" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types" + "github.com/cloudevents/sdk-go/v1/cloudevents/types" ) const ( diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v03_reader.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v03_reader.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v03_reader.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v03_reader.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v03_writer.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v03_writer.go similarity index 97% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v03_writer.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v03_writer.go index 92df1135055..479bc0729ef 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v03_writer.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v03_writer.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types" + "github.com/cloudevents/sdk-go/v1/cloudevents/types" ) // Adhere to EventContextWriter diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v1.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v1.go similarity index 99% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v1.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v1.go index 2fe3a3c6c9a..c3d05577652 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v1.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v1.go @@ -7,7 +7,7 @@ import ( "sort" "strings" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types" + "github.com/cloudevents/sdk-go/v1/cloudevents/types" ) // WIP: AS OF SEP 20, 2019 diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v1_reader.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v1_reader.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v1_reader.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v1_reader.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v1_writer.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v1_writer.go similarity index 97% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v1_writer.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v1_writer.go index 429010e5657..5765fdd259f 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/eventcontext_v1_writer.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/eventcontext_v1_writer.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types" + "github.com/cloudevents/sdk-go/v1/cloudevents/types" ) // Adhere to EventContextWriter diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/extensions.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/extensions.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/extensions.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/extensions.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/extensions/distributed_tracing_extension.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/extensions/distributed_tracing_extension.go similarity index 96% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/extensions/distributed_tracing_extension.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/extensions/distributed_tracing_extension.go index 2220e8d1b9d..0c951c6d35e 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/extensions/distributed_tracing_extension.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/extensions/distributed_tracing_extension.go @@ -5,8 +5,8 @@ import ( "reflect" "strings" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types" + "github.com/cloudevents/sdk-go/v1/cloudevents" + "github.com/cloudevents/sdk-go/v1/cloudevents/types" "github.com/lightstep/tracecontext.go/traceparent" "github.com/lightstep/tracecontext.go/tracestate" "go.opencensus.io/trace" diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability/doc.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/observability/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability/doc.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/observability/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability/keys.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/observability/keys.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability/keys.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/observability/keys.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability/observer.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/observability/observer.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability/observer.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/observability/observer.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/codec.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/codec.go similarity index 94% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/codec.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/codec.go index 3cbcd79840f..97d83701b9d 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/codec.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/codec.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents" + "github.com/cloudevents/sdk-go/v1/cloudevents" ) // Codec is the interface for transport codecs to convert between transport diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/doc.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/doc.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/error.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/error.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/error.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/error.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/codec.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/codec.go similarity index 94% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/codec.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/codec.go index b966aed1167..f7eca8cce95 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/codec.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/codec.go @@ -6,9 +6,9 @@ import ( "fmt" "sync" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents" - cecontext "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/context" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport" + "github.com/cloudevents/sdk-go/v1/cloudevents" + cecontext "github.com/cloudevents/sdk-go/v1/cloudevents/context" + "github.com/cloudevents/sdk-go/v1/cloudevents/transport" ) // Codec is the wrapper for all versions of codecs supported by the http diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/codec_structured.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/codec_structured.go similarity index 88% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/codec_structured.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/codec_structured.go index 915a9ddeb66..097e9361e41 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/codec_structured.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/codec_structured.go @@ -6,8 +6,8 @@ import ( "fmt" "net/http" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport" + "github.com/cloudevents/sdk-go/v1/cloudevents" + "github.com/cloudevents/sdk-go/v1/cloudevents/transport" ) // CodecStructured represents an structured http transport codec for all versions. diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/codec_v01.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/codec_v01.go similarity index 94% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/codec_v01.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/codec_v01.go index 38f9d1dd519..78da7b2fbce 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/codec_v01.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/codec_v01.go @@ -8,11 +8,11 @@ import ( "net/textproto" "strings" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents" - cecontext "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/context" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types" + "github.com/cloudevents/sdk-go/v1/cloudevents" + cecontext "github.com/cloudevents/sdk-go/v1/cloudevents/context" + "github.com/cloudevents/sdk-go/v1/cloudevents/observability" + "github.com/cloudevents/sdk-go/v1/cloudevents/transport" + "github.com/cloudevents/sdk-go/v1/cloudevents/types" ) // CodecV01 represents a http transport codec that uses CloudEvents spec v0.1 diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/codec_v02.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/codec_v02.go similarity index 94% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/codec_v02.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/codec_v02.go index 8fcfc8c315a..8f4328a7653 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/codec_v02.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/codec_v02.go @@ -8,11 +8,11 @@ import ( "net/textproto" "strings" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents" - cecontext "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/context" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types" + "github.com/cloudevents/sdk-go/v1/cloudevents" + cecontext "github.com/cloudevents/sdk-go/v1/cloudevents/context" + "github.com/cloudevents/sdk-go/v1/cloudevents/observability" + "github.com/cloudevents/sdk-go/v1/cloudevents/transport" + "github.com/cloudevents/sdk-go/v1/cloudevents/types" ) // CodecV02 represents a http transport codec that uses CloudEvents spec v0.2 diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/codec_v03.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/codec_v03.go similarity index 95% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/codec_v03.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/codec_v03.go index 91d663214be..02ba1fb2a13 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/codec_v03.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/codec_v03.go @@ -8,11 +8,11 @@ import ( "net/textproto" "strings" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents" - cecontext "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/context" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types" + "github.com/cloudevents/sdk-go/v1/cloudevents" + cecontext "github.com/cloudevents/sdk-go/v1/cloudevents/context" + "github.com/cloudevents/sdk-go/v1/cloudevents/observability" + "github.com/cloudevents/sdk-go/v1/cloudevents/transport" + "github.com/cloudevents/sdk-go/v1/cloudevents/types" ) // CodecV03 represents a http transport codec that uses CloudEvents spec v0.3 diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/codec_v1.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/codec_v1.go similarity index 94% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/codec_v1.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/codec_v1.go index 043755da401..4a9c0b8e53d 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/codec_v1.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/codec_v1.go @@ -7,11 +7,11 @@ import ( "net/textproto" "strings" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents" - cecontext "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/context" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types" + "github.com/cloudevents/sdk-go/v1/cloudevents" + cecontext "github.com/cloudevents/sdk-go/v1/cloudevents/context" + "github.com/cloudevents/sdk-go/v1/cloudevents/observability" + "github.com/cloudevents/sdk-go/v1/cloudevents/transport" + "github.com/cloudevents/sdk-go/v1/cloudevents/types" ) // CodecV1 represents a http transport codec that uses CloudEvents spec v1.0 diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/context.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/context.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/context.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/context.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/doc.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/doc.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/encoding.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/encoding.go similarity index 97% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/encoding.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/encoding.go index 93b2c5ebece..70ea6989f62 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/encoding.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/encoding.go @@ -3,8 +3,8 @@ package http import ( "context" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents" - cecontext "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/context" + "github.com/cloudevents/sdk-go/v1/cloudevents" + cecontext "github.com/cloudevents/sdk-go/v1/cloudevents/context" ) // Encoding to use for HTTP transport. diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/message.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/message.go similarity index 98% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/message.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/message.go index d17a9adaeb4..5693c6eab38 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/message.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/message.go @@ -8,7 +8,7 @@ import ( "io/ioutil" "net/http" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport" + "github.com/cloudevents/sdk-go/v1/cloudevents/transport" ) // type check that this transport message impl matches the contract diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/observability.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/observability.go similarity index 96% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/observability.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/observability.go index eb3cc1b13b8..d60a2ab61d4 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/observability.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/observability.go @@ -3,7 +3,7 @@ package http import ( "fmt" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability" + "github.com/cloudevents/sdk-go/v1/cloudevents/observability" "go.opencensus.io/stats" "go.opencensus.io/stats/view" ) diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/options.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/options.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/options.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/options.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/transport.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/transport.go similarity index 98% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/transport.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/transport.go index 653d7c01968..87c0d25c5ae 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/http/transport.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/http/transport.go @@ -17,10 +17,10 @@ import ( "go.opencensus.io/plugin/ochttp/propagation/tracecontext" "go.uber.org/zap" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents" - cecontext "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/context" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/observability" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport" + "github.com/cloudevents/sdk-go/v1/cloudevents" + cecontext "github.com/cloudevents/sdk-go/v1/cloudevents/context" + "github.com/cloudevents/sdk-go/v1/cloudevents/observability" + "github.com/cloudevents/sdk-go/v1/cloudevents/transport" ) // Transport adheres to transport.Transport. diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/message.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/message.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/message.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/message.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/transport.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/transport.go similarity index 96% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/transport.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/transport.go index 27e3ad8fb9a..c9a574a3e94 100644 --- a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/transport/transport.go +++ b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/transport/transport.go @@ -3,7 +3,7 @@ package transport import ( "context" - "github.com/cloudevents/sdk-go/legacy/pkg/cloudevents" + "github.com/cloudevents/sdk-go/v1/cloudevents" ) // Transport is the interface for transport sender to send the converted Message diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types/allocate.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/types/allocate.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types/allocate.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/types/allocate.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types/doc.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/types/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types/doc.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/types/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types/timestamp.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/types/timestamp.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types/timestamp.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/types/timestamp.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types/uri.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/types/uri.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types/uri.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/types/uri.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types/uriref.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/types/uriref.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types/uriref.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/types/uriref.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types/urlref.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/types/urlref.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types/urlref.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/types/urlref.go diff --git a/vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types/value.go b/vendor/github.com/cloudevents/sdk-go/v1/cloudevents/types/value.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/legacy/pkg/cloudevents/types/value.go rename to vendor/github.com/cloudevents/sdk-go/v1/cloudevents/types/value.go diff --git a/vendor/github.com/cloudevents/sdk-go/alias.go b/vendor/github.com/cloudevents/sdk-go/v2/alias.go similarity index 89% rename from vendor/github.com/cloudevents/sdk-go/alias.go rename to vendor/github.com/cloudevents/sdk-go/v2/alias.go index c3497fb47ae..e66835dd1ac 100644 --- a/vendor/github.com/cloudevents/sdk-go/alias.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/alias.go @@ -1,17 +1,17 @@ -package cloudevents +package v2 // Package cloudevents alias' common functions and types to improve discoverability and reduce // the number of imports for simple HTTP clients. import ( - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/client" - "github.com/cloudevents/sdk-go/pkg/context" - "github.com/cloudevents/sdk-go/pkg/event" - "github.com/cloudevents/sdk-go/pkg/observability" - "github.com/cloudevents/sdk-go/pkg/protocol" - "github.com/cloudevents/sdk-go/pkg/protocol/http" - "github.com/cloudevents/sdk-go/pkg/types" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/client" + "github.com/cloudevents/sdk-go/v2/context" + "github.com/cloudevents/sdk-go/v2/event" + "github.com/cloudevents/sdk-go/v2/observability" + "github.com/cloudevents/sdk-go/v2/protocol" + "github.com/cloudevents/sdk-go/v2/protocol/http" + "github.com/cloudevents/sdk-go/v2/types" ) // Client diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/binary_writer.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/binary_writer.go similarity index 96% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/binary_writer.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/binary_writer.go index 36211d37ab7..5d2fafe5d68 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/binary_writer.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/binary_writer.go @@ -4,7 +4,7 @@ import ( "context" "io" - "github.com/cloudevents/sdk-go/pkg/binding/spec" + "github.com/cloudevents/sdk-go/v2/binding/spec" ) // BinaryWriter is used to visit a binary Message and generate a new representation. diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/buffering/acks_before_finish_message.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/buffering/acks_before_finish_message.go similarity index 94% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/buffering/acks_before_finish_message.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/buffering/acks_before_finish_message.go index 8e07683de3a..cdab08825a0 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/buffering/acks_before_finish_message.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/buffering/acks_before_finish_message.go @@ -3,7 +3,7 @@ package buffering import ( "sync/atomic" - "github.com/cloudevents/sdk-go/pkg/binding" + "github.com/cloudevents/sdk-go/v2/binding" ) type acksMessage struct { diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/buffering/binary_buffer_message.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/buffering/binary_buffer_message.go similarity index 96% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/buffering/binary_buffer_message.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/buffering/binary_buffer_message.go index 8386b1a18a0..2de549826c5 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/buffering/binary_buffer_message.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/buffering/binary_buffer_message.go @@ -7,8 +7,8 @@ import ( "github.com/valyala/bytebufferpool" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/spec" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/spec" ) var binaryMessagePool bytebufferpool.Pool diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/buffering/copy_message.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/buffering/copy_message.go similarity index 97% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/buffering/copy_message.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/buffering/copy_message.go index 62d7305a9a3..bc94c927452 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/buffering/copy_message.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/buffering/copy_message.go @@ -3,7 +3,7 @@ package buffering import ( "context" - "github.com/cloudevents/sdk-go/pkg/binding" + "github.com/cloudevents/sdk-go/v2/binding" ) // BufferMessage works the same as CopyMessage and it also bounds the original Message diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/buffering/struct_buffer_message.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/buffering/struct_buffer_message.go similarity index 94% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/buffering/struct_buffer_message.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/buffering/struct_buffer_message.go index 0cb6cfe3275..68f41aea492 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/buffering/struct_buffer_message.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/buffering/struct_buffer_message.go @@ -7,8 +7,8 @@ import ( "github.com/valyala/bytebufferpool" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/format" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/format" ) var structMessagePool bytebufferpool.Pool diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/chan.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/chan.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/chan.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/chan.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/doc.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/doc.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/encoding.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/encoding.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/encoding.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/encoding.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/event_message.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/event_message.go similarity index 93% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/event_message.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/event_message.go index 90fecc41c79..0d1a3b4d001 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/event_message.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/event_message.go @@ -4,9 +4,9 @@ import ( "bytes" "context" - "github.com/cloudevents/sdk-go/pkg/binding/format" - "github.com/cloudevents/sdk-go/pkg/binding/spec" - "github.com/cloudevents/sdk-go/pkg/event" + "github.com/cloudevents/sdk-go/v2/binding/format" + "github.com/cloudevents/sdk-go/v2/binding/spec" + "github.com/cloudevents/sdk-go/v2/event" ) const ( diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/finish_message.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/finish_message.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/finish_message.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/finish_message.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/format/doc.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/format/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/format/doc.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/format/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/format/format.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/format/format.go similarity index 98% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/format/format.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/format/format.go index 4dea8b52aa0..fd722aca6f1 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/format/format.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/format/format.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/cloudevents/sdk-go/pkg/event" + "github.com/cloudevents/sdk-go/v2/event" ) // Format marshals and unmarshals structured events to bytes. diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/message.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/message.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/message.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/message.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/spec/attributes.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/spec/attributes.go similarity index 97% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/spec/attributes.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/spec/attributes.go index f8417d627db..f08084d9b06 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/spec/attributes.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/spec/attributes.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/cloudevents/sdk-go/pkg/event" + "github.com/cloudevents/sdk-go/v2/event" - "github.com/cloudevents/sdk-go/pkg/types" + "github.com/cloudevents/sdk-go/v2/types" ) // Kind is a version-independent identifier for a CloudEvent context attribute. diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/spec/doc.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/spec/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/spec/doc.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/spec/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/spec/spec.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/spec/spec.go similarity index 98% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/spec/spec.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/spec/spec.go index 5febc0f5c2b..2468165eb85 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/spec/spec.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/spec/spec.go @@ -3,8 +3,8 @@ package spec import ( "strings" - "github.com/cloudevents/sdk-go/pkg/event" - "github.com/cloudevents/sdk-go/pkg/types" + "github.com/cloudevents/sdk-go/v2/event" + "github.com/cloudevents/sdk-go/v2/types" ) // Version provides meta-data for a single spec-version. diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/structured_writer.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/structured_writer.go similarity index 90% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/structured_writer.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/structured_writer.go index 2479ffe61b4..8cf2bbe3e36 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/structured_writer.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/structured_writer.go @@ -4,7 +4,7 @@ import ( "context" "io" - "github.com/cloudevents/sdk-go/pkg/binding/format" + "github.com/cloudevents/sdk-go/v2/binding/format" ) // StructuredWriter is used to visit a structured Message and generate a new representation. diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/test/doc.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/test/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/test/doc.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/test/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/test/events.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/test/events.go similarity index 94% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/test/events.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/test/events.go index 177d78b7588..09d89ea0460 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/test/events.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/test/events.go @@ -7,9 +7,9 @@ import ( "reflect" "time" - "github.com/cloudevents/sdk-go/pkg/binding/spec" - "github.com/cloudevents/sdk-go/pkg/event" - "github.com/cloudevents/sdk-go/pkg/types" + "github.com/cloudevents/sdk-go/v2/binding/spec" + "github.com/cloudevents/sdk-go/v2/event" + "github.com/cloudevents/sdk-go/v2/types" ) func strptr(s string) *string { return &s } diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/test/mock_binary_message.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/test/mock_binary_message.go similarity index 94% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/test/mock_binary_message.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/test/mock_binary_message.go index b3a7631a641..ef89d4927ba 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/test/mock_binary_message.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/test/mock_binary_message.go @@ -6,9 +6,9 @@ import ( "io" "io/ioutil" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/spec" - "github.com/cloudevents/sdk-go/pkg/event" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/spec" + "github.com/cloudevents/sdk-go/v2/event" ) // MockBinaryMessage implements a binary-mode message as a simple struct. diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/test/mock_structured_message.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/test/mock_structured_message.go similarity index 90% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/test/mock_structured_message.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/test/mock_structured_message.go index d61801e1439..a7a4d3a97d5 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/test/mock_structured_message.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/test/mock_structured_message.go @@ -6,9 +6,9 @@ import ( "io" "io/ioutil" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/format" - "github.com/cloudevents/sdk-go/pkg/event" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/format" + "github.com/cloudevents/sdk-go/v2/event" ) // MockStructuredMessage implements a structured-mode message as a simple struct. diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/test/test.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/test/test.go similarity index 92% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/test/test.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/test/test.go index 349703c36cf..9807d71b309 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/test/test.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/test/test.go @@ -11,11 +11,11 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/format" - "github.com/cloudevents/sdk-go/pkg/binding/spec" - "github.com/cloudevents/sdk-go/pkg/event" - "github.com/cloudevents/sdk-go/pkg/types" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/format" + "github.com/cloudevents/sdk-go/v2/binding/spec" + "github.com/cloudevents/sdk-go/v2/event" + "github.com/cloudevents/sdk-go/v2/types" ) // NameOf generates a string test name from x, esp. for ce.Event and ce.Message. diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/test/transformer.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/test/transformer.go similarity index 94% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/test/transformer.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/test/transformer.go index a0f5930b917..7a5046d935f 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/test/transformer.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/test/transformer.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/event" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/event" ) type TransformerTestArgs struct { diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/to_event.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/to_event.go similarity index 94% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/to_event.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/to_event.go index 171dd7c322a..79312547043 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/to_event.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/to_event.go @@ -6,10 +6,10 @@ import ( "errors" "io" - "github.com/cloudevents/sdk-go/pkg/binding/format" - "github.com/cloudevents/sdk-go/pkg/binding/spec" - "github.com/cloudevents/sdk-go/pkg/event" - "github.com/cloudevents/sdk-go/pkg/types" + "github.com/cloudevents/sdk-go/v2/binding/format" + "github.com/cloudevents/sdk-go/v2/binding/spec" + "github.com/cloudevents/sdk-go/v2/event" + "github.com/cloudevents/sdk-go/v2/types" ) // Generic error when a conversion of a Message to an Event fails diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/transformer.go similarity index 97% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/transformer.go index 2ad667c45c9..c0b56c72aad 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/transformer.go @@ -1,7 +1,7 @@ package binding import ( - "github.com/cloudevents/sdk-go/pkg/event" + "github.com/cloudevents/sdk-go/v2/event" ) // Implements a transformation process while transferring the event from the Message implementation diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer/add_metadata.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/transformer/add_metadata.go similarity index 95% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer/add_metadata.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/transformer/add_metadata.go index b94faf370bc..577f7ab3d48 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer/add_metadata.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/transformer/add_metadata.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/spec" - "github.com/cloudevents/sdk-go/pkg/event" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/spec" + "github.com/cloudevents/sdk-go/v2/event" ) // Add cloudevents attribute (if missing) during the encoding process diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer/default_metadata.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/transformer/default_metadata.go similarity index 92% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer/default_metadata.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/transformer/default_metadata.go index 367190e9f0b..6b16962366d 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer/default_metadata.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/transformer/default_metadata.go @@ -6,10 +6,10 @@ import ( "github.com/google/uuid" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/spec" - "github.com/cloudevents/sdk-go/pkg/event" - "github.com/cloudevents/sdk-go/pkg/types" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/spec" + "github.com/cloudevents/sdk-go/v2/event" + "github.com/cloudevents/sdk-go/v2/types" ) var ( diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer/delete_metadata.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/transformer/delete_metadata.go similarity index 94% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer/delete_metadata.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/transformer/delete_metadata.go index 4d99ef2aade..c4c4131f438 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer/delete_metadata.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/transformer/delete_metadata.go @@ -3,9 +3,9 @@ package transformer import ( "fmt" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/spec" - "github.com/cloudevents/sdk-go/pkg/event" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/spec" + "github.com/cloudevents/sdk-go/v2/event" ) // Delete cloudevents attribute during the encoding process diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer/set_metadata.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/transformer/set_metadata.go similarity index 88% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer/set_metadata.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/transformer/set_metadata.go index 53fc7e19488..9e404f6ea96 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer/set_metadata.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/transformer/set_metadata.go @@ -1,8 +1,8 @@ package transformer import ( - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/spec" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/spec" ) // Sets a cloudevents attribute (if missing) to defaultValue or update it with updater function diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer/update_metadata.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/transformer/update_metadata.go similarity index 96% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer/update_metadata.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/transformer/update_metadata.go index f4e32c1bd42..df2a1dbdb69 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer/update_metadata.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/transformer/update_metadata.go @@ -3,9 +3,9 @@ package transformer import ( "fmt" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/spec" - "github.com/cloudevents/sdk-go/pkg/event" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/spec" + "github.com/cloudevents/sdk-go/v2/event" ) // Update cloudevents attribute (if present) using the provided function diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer/version.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/transformer/version.go similarity index 90% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer/version.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/transformer/version.go index e95c3ae49e3..e1d02c480a9 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/transformer/version.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/transformer/version.go @@ -1,9 +1,9 @@ package transformer import ( - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/spec" - "github.com/cloudevents/sdk-go/pkg/event" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/spec" + "github.com/cloudevents/sdk-go/v2/event" ) // Converts the event context version to the specified one. diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/binding/write.go b/vendor/github.com/cloudevents/sdk-go/v2/binding/write.go similarity index 99% rename from vendor/github.com/cloudevents/sdk-go/pkg/binding/write.go rename to vendor/github.com/cloudevents/sdk-go/v2/binding/write.go index e6dbdaa78ab..89fd3a24ccf 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/binding/write.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/binding/write.go @@ -3,7 +3,7 @@ package binding import ( "context" - "github.com/cloudevents/sdk-go/pkg/event" + "github.com/cloudevents/sdk-go/v2/event" ) const ( diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/client/client.go b/vendor/github.com/cloudevents/sdk-go/v2/client/client.go similarity index 96% rename from vendor/github.com/cloudevents/sdk-go/pkg/client/client.go rename to vendor/github.com/cloudevents/sdk-go/v2/client/client.go index bf428894823..8b0a9d15279 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/client/client.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/client/client.go @@ -9,10 +9,10 @@ import ( "go.uber.org/zap" - "github.com/cloudevents/sdk-go/pkg/binding" - cecontext "github.com/cloudevents/sdk-go/pkg/context" - "github.com/cloudevents/sdk-go/pkg/event" - "github.com/cloudevents/sdk-go/pkg/protocol" + "github.com/cloudevents/sdk-go/v2/binding" + cecontext "github.com/cloudevents/sdk-go/v2/context" + "github.com/cloudevents/sdk-go/v2/event" + "github.com/cloudevents/sdk-go/v2/protocol" ) // Client interface defines the runtime contract the CloudEvents client supports. diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/client/client_default.go b/vendor/github.com/cloudevents/sdk-go/v2/client/client_default.go similarity index 93% rename from vendor/github.com/cloudevents/sdk-go/pkg/client/client_default.go rename to vendor/github.com/cloudevents/sdk-go/v2/client/client_default.go index ff448eec221..82877d6791d 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/client/client_default.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/client/client_default.go @@ -1,7 +1,7 @@ package client import ( - "github.com/cloudevents/sdk-go/pkg/protocol/http" + "github.com/cloudevents/sdk-go/v2/protocol/http" ) // NewDefault provides the good defaults for the common case using an HTTP diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/client/client_observed.go b/vendor/github.com/cloudevents/sdk-go/v2/client/client_observed.go similarity index 94% rename from vendor/github.com/cloudevents/sdk-go/pkg/client/client_observed.go rename to vendor/github.com/cloudevents/sdk-go/v2/client/client_observed.go index 200ca640a50..583b9dc2b2b 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/client/client_observed.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/client/client_observed.go @@ -2,9 +2,9 @@ package client import ( "context" - "github.com/cloudevents/sdk-go/pkg/event" - "github.com/cloudevents/sdk-go/pkg/extensions" - "github.com/cloudevents/sdk-go/pkg/observability" + "github.com/cloudevents/sdk-go/v2/event" + "github.com/cloudevents/sdk-go/v2/extensions" + "github.com/cloudevents/sdk-go/v2/observability" "go.opencensus.io/trace" ) diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/client/defaulters.go b/vendor/github.com/cloudevents/sdk-go/v2/client/defaulters.go similarity index 97% rename from vendor/github.com/cloudevents/sdk-go/pkg/client/defaulters.go rename to vendor/github.com/cloudevents/sdk-go/v2/client/defaulters.go index 51439c48dea..5d0d7bc9412 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/client/defaulters.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/client/defaulters.go @@ -4,7 +4,7 @@ import ( "context" "time" - "github.com/cloudevents/sdk-go/pkg/event" + "github.com/cloudevents/sdk-go/v2/event" "github.com/google/uuid" ) diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/client/doc.go b/vendor/github.com/cloudevents/sdk-go/v2/client/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/client/doc.go rename to vendor/github.com/cloudevents/sdk-go/v2/client/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/client/http_receiver.go b/vendor/github.com/cloudevents/sdk-go/v2/client/http_receiver.go similarity index 92% rename from vendor/github.com/cloudevents/sdk-go/pkg/client/http_receiver.go rename to vendor/github.com/cloudevents/sdk-go/v2/client/http_receiver.go index 75b916bf86e..416e971e69a 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/client/http_receiver.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/client/http_receiver.go @@ -4,7 +4,7 @@ import ( "context" "net/http" - thttp "github.com/cloudevents/sdk-go/pkg/protocol/http" + thttp "github.com/cloudevents/sdk-go/v2/protocol/http" ) func NewHTTPReceiveHandler(ctx context.Context, p *thttp.Protocol, fn interface{}) (*EventReceiver, error) { diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/client/invoker.go b/vendor/github.com/cloudevents/sdk-go/v2/client/invoker.go similarity index 94% rename from vendor/github.com/cloudevents/sdk-go/pkg/client/invoker.go rename to vendor/github.com/cloudevents/sdk-go/v2/client/invoker.go index 99dc1936ec4..e7c064021d9 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/client/invoker.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/client/invoker.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/protocol" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/protocol" ) type Invoker interface { diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/client/observability.go b/vendor/github.com/cloudevents/sdk-go/v2/client/observability.go similarity index 94% rename from vendor/github.com/cloudevents/sdk-go/pkg/client/observability.go rename to vendor/github.com/cloudevents/sdk-go/v2/client/observability.go index ccad6bf1b57..8e8add28e7d 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/client/observability.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/client/observability.go @@ -2,9 +2,9 @@ package client import ( "context" - "github.com/cloudevents/sdk-go/pkg/event" - "github.com/cloudevents/sdk-go/pkg/extensions" - "github.com/cloudevents/sdk-go/pkg/observability" + "github.com/cloudevents/sdk-go/v2/event" + "github.com/cloudevents/sdk-go/v2/extensions" + "github.com/cloudevents/sdk-go/v2/observability" "go.opencensus.io/stats" "go.opencensus.io/stats/view" "go.opencensus.io/trace" diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/client/options.go b/vendor/github.com/cloudevents/sdk-go/v2/client/options.go similarity index 97% rename from vendor/github.com/cloudevents/sdk-go/pkg/client/options.go rename to vendor/github.com/cloudevents/sdk-go/v2/client/options.go index 110fca4d059..3a1b40fe9ea 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/client/options.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/client/options.go @@ -2,7 +2,7 @@ package client import ( "fmt" - "github.com/cloudevents/sdk-go/pkg/binding" + "github.com/cloudevents/sdk-go/v2/binding" ) // Option is the function signature required to be considered an client.Option. diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/client/receiver.go b/vendor/github.com/cloudevents/sdk-go/v2/client/receiver.go similarity index 98% rename from vendor/github.com/cloudevents/sdk-go/pkg/client/receiver.go rename to vendor/github.com/cloudevents/sdk-go/v2/client/receiver.go index 83ce968cbf1..e75f9abb987 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/client/receiver.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/client/receiver.go @@ -6,8 +6,8 @@ import ( "fmt" "reflect" - "github.com/cloudevents/sdk-go/pkg/event" - "github.com/cloudevents/sdk-go/pkg/protocol" + "github.com/cloudevents/sdk-go/v2/event" + "github.com/cloudevents/sdk-go/v2/protocol" ) // Receive is the signature of a fn to be invoked for incoming cloudevents. diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/context/context.go b/vendor/github.com/cloudevents/sdk-go/v2/context/context.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/context/context.go rename to vendor/github.com/cloudevents/sdk-go/v2/context/context.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/context/doc.go b/vendor/github.com/cloudevents/sdk-go/v2/context/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/context/doc.go rename to vendor/github.com/cloudevents/sdk-go/v2/context/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/context/logger.go b/vendor/github.com/cloudevents/sdk-go/v2/context/logger.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/context/logger.go rename to vendor/github.com/cloudevents/sdk-go/v2/context/logger.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/content_type.go b/vendor/github.com/cloudevents/sdk-go/v2/event/content_type.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/content_type.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/content_type.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/data_content_encoding.go b/vendor/github.com/cloudevents/sdk-go/v2/event/data_content_encoding.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/data_content_encoding.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/data_content_encoding.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/codec.go b/vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/codec.go similarity index 92% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/codec.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/codec.go index 5a6ddf071b4..802b6c1a7fe 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/codec.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/codec.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/cloudevents/sdk-go/pkg/event/datacodec/json" - "github.com/cloudevents/sdk-go/pkg/event/datacodec/text" - "github.com/cloudevents/sdk-go/pkg/event/datacodec/xml" - "github.com/cloudevents/sdk-go/pkg/observability" + "github.com/cloudevents/sdk-go/v2/event/datacodec/json" + "github.com/cloudevents/sdk-go/v2/event/datacodec/text" + "github.com/cloudevents/sdk-go/v2/event/datacodec/xml" + "github.com/cloudevents/sdk-go/v2/observability" ) // Decoder is the expected function signature for decoding `in` to `out`. What diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/doc.go b/vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/doc.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/json/data.go b/vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/json/data.go similarity index 97% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/json/data.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/json/data.go index 1a92c933a45..e4995f43ddb 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/json/data.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/json/data.go @@ -7,7 +7,7 @@ import ( "reflect" "strconv" - "github.com/cloudevents/sdk-go/pkg/observability" + "github.com/cloudevents/sdk-go/v2/observability" ) // Decode takes `in` as []byte, or base64 string, normalizes in to unquoted and diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/json/doc.go b/vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/json/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/json/doc.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/json/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/json/observability.go b/vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/json/observability.go similarity index 95% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/json/observability.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/json/observability.go index 1bea357eb23..7ff79659043 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/json/observability.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/json/observability.go @@ -1,7 +1,7 @@ package json import ( - "github.com/cloudevents/sdk-go/pkg/observability" + "github.com/cloudevents/sdk-go/v2/observability" "go.opencensus.io/stats" "go.opencensus.io/stats/view" ) diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/observability.go b/vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/observability.go similarity index 95% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/observability.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/observability.go index bf7fce2193b..870ec5dfe83 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/observability.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/observability.go @@ -1,7 +1,7 @@ package datacodec import ( - "github.com/cloudevents/sdk-go/pkg/observability" + "github.com/cloudevents/sdk-go/v2/observability" "go.opencensus.io/stats" "go.opencensus.io/stats/view" ) diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/text/text.go b/vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/text/text.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/text/text.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/text/text.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/xml/data.go b/vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/xml/data.go similarity index 97% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/xml/data.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/xml/data.go index 43d43e5659d..6522d39bcfe 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/xml/data.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/xml/data.go @@ -7,7 +7,7 @@ import ( "fmt" "strconv" - "github.com/cloudevents/sdk-go/pkg/observability" + "github.com/cloudevents/sdk-go/v2/observability" ) // Decode takes `in` as []byte, or base64 string, normalizes in to unquoted and diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/xml/doc.go b/vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/xml/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/xml/doc.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/xml/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/xml/observability.go b/vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/xml/observability.go similarity index 95% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/xml/observability.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/xml/observability.go index e414a63f0f1..b0f4c935d02 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/event/datacodec/xml/observability.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/event/datacodec/xml/observability.go @@ -1,7 +1,7 @@ package xml import ( - "github.com/cloudevents/sdk-go/pkg/observability" + "github.com/cloudevents/sdk-go/v2/observability" "go.opencensus.io/stats" "go.opencensus.io/stats/view" ) diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/doc.go b/vendor/github.com/cloudevents/sdk-go/v2/event/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/doc.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/event.go b/vendor/github.com/cloudevents/sdk-go/v2/event/event.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/event.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/event.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/event_data.go b/vendor/github.com/cloudevents/sdk-go/v2/event/event_data.go similarity index 97% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/event_data.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/event_data.go index e265a45cd73..649a0e2ccd1 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/event/event_data.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/event/event_data.go @@ -6,7 +6,7 @@ import ( "fmt" "strconv" - "github.com/cloudevents/sdk-go/pkg/event/datacodec" + "github.com/cloudevents/sdk-go/v2/event/datacodec" ) // Data is special. Break it out into it's own file. diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/event_interface.go b/vendor/github.com/cloudevents/sdk-go/v2/event/event_interface.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/event_interface.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/event_interface.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/event_marshal.go b/vendor/github.com/cloudevents/sdk-go/v2/event/event_marshal.go similarity index 99% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/event_marshal.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/event_marshal.go index d5248b2e88b..38e6a6d8e14 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/event/event_marshal.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/event/event_marshal.go @@ -11,7 +11,7 @@ import ( errors2 "github.com/pkg/errors" - "github.com/cloudevents/sdk-go/pkg/observability" + "github.com/cloudevents/sdk-go/v2/observability" ) // MarshalJSON implements a custom json marshal method used when this type is diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/event_observability.go b/vendor/github.com/cloudevents/sdk-go/v2/event/event_observability.go similarity index 97% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/event_observability.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/event_observability.go index e3dfbe57877..e21a845f1cb 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/event/event_observability.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/event/event_observability.go @@ -3,7 +3,7 @@ package event import ( "fmt" - "github.com/cloudevents/sdk-go/pkg/observability" + "github.com/cloudevents/sdk-go/v2/observability" "go.opencensus.io/stats" "go.opencensus.io/stats/view" ) diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/event_reader.go b/vendor/github.com/cloudevents/sdk-go/v2/event/event_reader.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/event_reader.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/event_reader.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/event_writer.go b/vendor/github.com/cloudevents/sdk-go/v2/event/event_writer.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/event_writer.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/event_writer.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/eventcontext.go b/vendor/github.com/cloudevents/sdk-go/v2/event/eventcontext.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/eventcontext.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/eventcontext.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/eventcontext_v03.go b/vendor/github.com/cloudevents/sdk-go/v2/event/eventcontext_v03.go similarity index 99% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/eventcontext_v03.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/eventcontext_v03.go index 1d618e805e8..27177448135 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/event/eventcontext_v03.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/event/eventcontext_v03.go @@ -6,7 +6,7 @@ import ( "sort" "strings" - "github.com/cloudevents/sdk-go/pkg/types" + "github.com/cloudevents/sdk-go/v2/types" ) const ( diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/eventcontext_v03_reader.go b/vendor/github.com/cloudevents/sdk-go/v2/event/eventcontext_v03_reader.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/eventcontext_v03_reader.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/eventcontext_v03_reader.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/eventcontext_v03_writer.go b/vendor/github.com/cloudevents/sdk-go/v2/event/eventcontext_v03_writer.go similarity index 98% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/eventcontext_v03_writer.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/eventcontext_v03_writer.go index d69dfd23278..8c9ddfe0765 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/event/eventcontext_v03_writer.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/event/eventcontext_v03_writer.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/cloudevents/sdk-go/pkg/types" + "github.com/cloudevents/sdk-go/v2/types" ) // Adhere to EventContextWriter diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/eventcontext_v1.go b/vendor/github.com/cloudevents/sdk-go/v2/event/eventcontext_v1.go similarity index 99% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/eventcontext_v1.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/eventcontext_v1.go index 2ca2b509b97..a459bdae176 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/event/eventcontext_v1.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/event/eventcontext_v1.go @@ -7,7 +7,7 @@ import ( "sort" "strings" - "github.com/cloudevents/sdk-go/pkg/types" + "github.com/cloudevents/sdk-go/v2/types" ) // WIP: AS OF SEP 20, 2019 diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/eventcontext_v1_reader.go b/vendor/github.com/cloudevents/sdk-go/v2/event/eventcontext_v1_reader.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/eventcontext_v1_reader.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/eventcontext_v1_reader.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/eventcontext_v1_writer.go b/vendor/github.com/cloudevents/sdk-go/v2/event/eventcontext_v1_writer.go similarity index 98% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/eventcontext_v1_writer.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/eventcontext_v1_writer.go index 96351d780bf..e2bd18cf2be 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/event/eventcontext_v1_writer.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/event/eventcontext_v1_writer.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/cloudevents/sdk-go/pkg/types" + "github.com/cloudevents/sdk-go/v2/types" ) // Adhere to EventContextWriter diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/event/extensions.go b/vendor/github.com/cloudevents/sdk-go/v2/event/extensions.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/event/extensions.go rename to vendor/github.com/cloudevents/sdk-go/v2/event/extensions.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/extensions/distributed_tracing_extension.go b/vendor/github.com/cloudevents/sdk-go/v2/extensions/distributed_tracing_extension.go similarity index 97% rename from vendor/github.com/cloudevents/sdk-go/pkg/extensions/distributed_tracing_extension.go rename to vendor/github.com/cloudevents/sdk-go/v2/extensions/distributed_tracing_extension.go index 5989ff1d6fc..f0206f33c1f 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/extensions/distributed_tracing_extension.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/extensions/distributed_tracing_extension.go @@ -5,9 +5,9 @@ import ( "reflect" "strings" - "github.com/cloudevents/sdk-go/pkg/event" + "github.com/cloudevents/sdk-go/v2/event" - "github.com/cloudevents/sdk-go/pkg/types" + "github.com/cloudevents/sdk-go/v2/types" "github.com/lightstep/tracecontext.go/traceparent" "github.com/lightstep/tracecontext.go/tracestate" "go.opencensus.io/trace" diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/observability/doc.go b/vendor/github.com/cloudevents/sdk-go/v2/observability/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/observability/doc.go rename to vendor/github.com/cloudevents/sdk-go/v2/observability/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/observability/keys.go b/vendor/github.com/cloudevents/sdk-go/v2/observability/keys.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/observability/keys.go rename to vendor/github.com/cloudevents/sdk-go/v2/observability/keys.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/observability/observer.go b/vendor/github.com/cloudevents/sdk-go/v2/observability/observer.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/observability/observer.go rename to vendor/github.com/cloudevents/sdk-go/v2/observability/observer.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/doc.go b/vendor/github.com/cloudevents/sdk-go/v2/protocol/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/protocol/doc.go rename to vendor/github.com/cloudevents/sdk-go/v2/protocol/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/error.go b/vendor/github.com/cloudevents/sdk-go/v2/protocol/error.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/protocol/error.go rename to vendor/github.com/cloudevents/sdk-go/v2/protocol/error.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/doc.go b/vendor/github.com/cloudevents/sdk-go/v2/protocol/http/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/doc.go rename to vendor/github.com/cloudevents/sdk-go/v2/protocol/http/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/engine.go b/vendor/github.com/cloudevents/sdk-go/v2/protocol/http/engine.go similarity index 98% rename from vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/engine.go rename to vendor/github.com/cloudevents/sdk-go/v2/protocol/http/engine.go index 900ce77a2a9..1a41300df99 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/engine.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/protocol/http/engine.go @@ -7,7 +7,7 @@ import ( "net/http" "strings" - "github.com/cloudevents/sdk-go/pkg/protocol" + "github.com/cloudevents/sdk-go/v2/protocol" "go.opencensus.io/plugin/ochttp" "go.opencensus.io/plugin/ochttp/propagation/tracecontext" ) diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/message.go b/vendor/github.com/cloudevents/sdk-go/v2/protocol/http/message.go similarity index 95% rename from vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/message.go rename to vendor/github.com/cloudevents/sdk-go/v2/protocol/http/message.go index 663a5af9b57..278d43890c1 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/message.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/protocol/http/message.go @@ -6,9 +6,9 @@ import ( nethttp "net/http" "strings" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/format" - "github.com/cloudevents/sdk-go/pkg/binding/spec" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/format" + "github.com/cloudevents/sdk-go/v2/binding/spec" ) const prefix = "Ce-" diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/options.go b/vendor/github.com/cloudevents/sdk-go/v2/protocol/http/options.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/options.go rename to vendor/github.com/cloudevents/sdk-go/v2/protocol/http/options.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/protocol.go b/vendor/github.com/cloudevents/sdk-go/v2/protocol/http/protocol.go similarity index 97% rename from vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/protocol.go rename to vendor/github.com/cloudevents/sdk-go/v2/protocol/http/protocol.go index ebf76bc5faa..1edb317d723 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/protocol.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/protocol/http/protocol.go @@ -10,10 +10,10 @@ import ( "sync" "time" - "github.com/cloudevents/sdk-go/pkg/protocol" + "github.com/cloudevents/sdk-go/v2/protocol" - "github.com/cloudevents/sdk-go/pkg/binding" - cecontext "github.com/cloudevents/sdk-go/pkg/context" + "github.com/cloudevents/sdk-go/v2/binding" + cecontext "github.com/cloudevents/sdk-go/v2/context" ) const ( diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/response.go b/vendor/github.com/cloudevents/sdk-go/v2/protocol/http/response.go similarity index 95% rename from vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/response.go rename to vendor/github.com/cloudevents/sdk-go/v2/protocol/http/response.go index 1c092743ff5..a2ff0cce269 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/response.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/protocol/http/response.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - "github.com/cloudevents/sdk-go/pkg/protocol" + "github.com/cloudevents/sdk-go/v2/protocol" ) // NewResult returns a fully populated http Result that should be used as diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/write_request.go b/vendor/github.com/cloudevents/sdk-go/v2/protocol/http/write_request.go similarity index 90% rename from vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/write_request.go rename to vendor/github.com/cloudevents/sdk-go/v2/protocol/http/write_request.go index 32007b2815a..9ba30184aa7 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/write_request.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/protocol/http/write_request.go @@ -6,10 +6,10 @@ import ( "io/ioutil" "net/http" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/format" - "github.com/cloudevents/sdk-go/pkg/binding/spec" - "github.com/cloudevents/sdk-go/pkg/types" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/format" + "github.com/cloudevents/sdk-go/v2/binding/spec" + "github.com/cloudevents/sdk-go/v2/types" ) // Fill the provided httpRequest with the message m. diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/write_responsewriter.go b/vendor/github.com/cloudevents/sdk-go/v2/protocol/http/write_responsewriter.go similarity index 91% rename from vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/write_responsewriter.go rename to vendor/github.com/cloudevents/sdk-go/v2/protocol/http/write_responsewriter.go index 776b2dcdfab..09eb58aba40 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/http/write_responsewriter.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/protocol/http/write_responsewriter.go @@ -6,10 +6,10 @@ import ( "net/http" "strconv" - "github.com/cloudevents/sdk-go/pkg/binding" - "github.com/cloudevents/sdk-go/pkg/binding/format" - "github.com/cloudevents/sdk-go/pkg/binding/spec" - "github.com/cloudevents/sdk-go/pkg/types" + "github.com/cloudevents/sdk-go/v2/binding" + "github.com/cloudevents/sdk-go/v2/binding/format" + "github.com/cloudevents/sdk-go/v2/binding/spec" + "github.com/cloudevents/sdk-go/v2/types" ) // Write out to the the provided httpResponseWriter with the message m. diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/inbound.go b/vendor/github.com/cloudevents/sdk-go/v2/protocol/inbound.go similarity index 96% rename from vendor/github.com/cloudevents/sdk-go/pkg/protocol/inbound.go rename to vendor/github.com/cloudevents/sdk-go/v2/protocol/inbound.go index d6397cbbded..9fb0a71c1e0 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/inbound.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/protocol/inbound.go @@ -3,7 +3,7 @@ package protocol import ( "context" - "github.com/cloudevents/sdk-go/pkg/binding" + "github.com/cloudevents/sdk-go/v2/binding" ) // Receiver receives messages. diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/lifecycle.go b/vendor/github.com/cloudevents/sdk-go/v2/protocol/lifecycle.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/protocol/lifecycle.go rename to vendor/github.com/cloudevents/sdk-go/v2/protocol/lifecycle.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/outbound.go b/vendor/github.com/cloudevents/sdk-go/v2/protocol/outbound.go similarity index 96% rename from vendor/github.com/cloudevents/sdk-go/pkg/protocol/outbound.go rename to vendor/github.com/cloudevents/sdk-go/v2/protocol/outbound.go index 8bb2a7536a2..2963c1daad6 100644 --- a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/outbound.go +++ b/vendor/github.com/cloudevents/sdk-go/v2/protocol/outbound.go @@ -3,7 +3,7 @@ package protocol import ( "context" - "github.com/cloudevents/sdk-go/pkg/binding" + "github.com/cloudevents/sdk-go/v2/binding" ) // Sender sends messages. diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/protocol/result.go b/vendor/github.com/cloudevents/sdk-go/v2/protocol/result.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/protocol/result.go rename to vendor/github.com/cloudevents/sdk-go/v2/protocol/result.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/types/allocate.go b/vendor/github.com/cloudevents/sdk-go/v2/types/allocate.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/types/allocate.go rename to vendor/github.com/cloudevents/sdk-go/v2/types/allocate.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/types/doc.go b/vendor/github.com/cloudevents/sdk-go/v2/types/doc.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/types/doc.go rename to vendor/github.com/cloudevents/sdk-go/v2/types/doc.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/types/timestamp.go b/vendor/github.com/cloudevents/sdk-go/v2/types/timestamp.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/types/timestamp.go rename to vendor/github.com/cloudevents/sdk-go/v2/types/timestamp.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/types/uri.go b/vendor/github.com/cloudevents/sdk-go/v2/types/uri.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/types/uri.go rename to vendor/github.com/cloudevents/sdk-go/v2/types/uri.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/types/uriref.go b/vendor/github.com/cloudevents/sdk-go/v2/types/uriref.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/types/uriref.go rename to vendor/github.com/cloudevents/sdk-go/v2/types/uriref.go diff --git a/vendor/github.com/cloudevents/sdk-go/pkg/types/value.go b/vendor/github.com/cloudevents/sdk-go/v2/types/value.go similarity index 100% rename from vendor/github.com/cloudevents/sdk-go/pkg/types/value.go rename to vendor/github.com/cloudevents/sdk-go/v2/types/value.go