Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

use cloudevent alias pkg #362

Merged
merged 2 commits into from
Apr 23, 2019
Merged

use cloudevent alias pkg #362

merged 2 commits into from
Apr 23, 2019

Conversation

matzew
Copy link
Member

@matzew matzew commented Apr 17, 2019

as per title

/cc @n3wscott

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Apr 17, 2019
@knative-prow-robot knative-prow-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Apr 17, 2019
@@ -1,26 +1,29 @@
package kncloudevents

import (
"github.com/cloudevents/sdk-go"
"github.com/cloudevents/sdk-go/pkg/cloudevents/client"
"github.com/cloudevents/sdk-go/pkg/cloudevents/transport/http"
)

func NewDefaultClient(target ...string) (client.Client, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This client too in the sig

@@ -1,26 +1,29 @@
package kncloudevents

import (
"github.com/cloudevents/sdk-go"
"github.com/cloudevents/sdk-go/pkg/cloudevents/client"
"github.com/cloudevents/sdk-go/pkg/cloudevents/transport/http"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete these imports

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@n3wscott Option is still in http,

see: cloudevents/sdk-go#116

// Use the transport to make a new CloudEvents client.
c, err := client.New(t,
c, err := cloudevents.NewClient(t,
client.WithUUIDs(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can come from cloudevents too

Copy link
Contributor

@n3wscott n3wscott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 23, 2019
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: matzew, n3wscott

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 23, 2019
@knative-prow-robot knative-prow-robot merged commit eb81a54 into knative:master Apr 23, 2019
silvagiiu referenced this pull request May 18, 2019
* Adding smaller set of owners for sources.

* adding base authors to sources.

* Adding github stuff.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants