Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework nsmlabels to nsurl. #693

Merged
merged 1 commit into from
Feb 2, 2021

Conversation

edwarnicke
Copy link
Member

No description provided.

Copy link
Member

@denis-tingaikin denis-tingaikin left a comment

Choose a reason for hiding this comment

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

I like this idea

go.mod Outdated Show resolved Hide resolved
)

// NSURL - wrapper around *url.URL to allow easy extraction of NSM related information
type NSURL struct {
Copy link
Member

@denis-tingaikin denis-tingaikin Feb 2, 2021

Choose a reason for hiding this comment

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

Also, we can define a type based on another type.
For example:

Suggested change
type NSURL struct {
type NSURL url.URL

In this case, we could use a typecast to covert url.URL to NSURL or vise versa.
That means L43-L47 in this case can be removed.

This is mostly just a reworking of the style of the approach, but it does
have a fix for handling interdomain network services

Signed-off-by: Ed Warnicke <hagbard@gmail.com>
Copy link
Member

@denis-tingaikin denis-tingaikin left a comment

Choose a reason for hiding this comment

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

@edwarnicke Nice!

@denis-tingaikin denis-tingaikin merged commit 0bf5efc into networkservicemesh:master Feb 2, 2021
nsmbot pushed a commit to networkservicemesh/cmd-nse-icmp-responder that referenced this pull request Feb 2, 2021
…k@master networkservicemesh/sdk#693

networkservicemesh/sdk PR link: networkservicemesh/sdk#693

networkservicemesh/sdk commit message:
commit 0bf5efc158e0365a764bc2bb6a15a4ba3ac8237a
Author: Ed Warnicke <hagbard@gmail.com>
Date:   Tue Feb 2 15:10:17 2021 -0600

    Rework nsmlabels to nsurl. (#693)

    This is mostly just a reworking of the style of the approach, but it does
    have a fix for handling interdomain network services

    Signed-off-by: Ed Warnicke <hagbard@gmail.com>

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-kernel that referenced this pull request Feb 2, 2021
…k@master networkservicemesh/sdk#693

networkservicemesh/sdk PR link: networkservicemesh/sdk#693

networkservicemesh/sdk commit message:
commit 0bf5efc158e0365a764bc2bb6a15a4ba3ac8237a
Author: Ed Warnicke <hagbard@gmail.com>
Date:   Tue Feb 2 15:10:17 2021 -0600

    Rework nsmlabels to nsurl. (#693)

    This is mostly just a reworking of the style of the approach, but it does
    have a fix for handling interdomain network services

    Signed-off-by: Ed Warnicke <hagbard@gmail.com>

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr that referenced this pull request Feb 2, 2021
…k@master networkservicemesh/sdk#693

networkservicemesh/sdk PR link: networkservicemesh/sdk#693

networkservicemesh/sdk commit message:
commit 0bf5efc158e0365a764bc2bb6a15a4ba3ac8237a
Author: Ed Warnicke <hagbard@gmail.com>
Date:   Tue Feb 2 15:10:17 2021 -0600

    Rework nsmlabels to nsurl. (#693)

    This is mostly just a reworking of the style of the approach, but it does
    have a fix for handling interdomain network services

    Signed-off-by: Ed Warnicke <hagbard@gmail.com>

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-vfio that referenced this pull request Feb 2, 2021
…k@master networkservicemesh/sdk#693

networkservicemesh/sdk PR link: networkservicemesh/sdk#693

networkservicemesh/sdk commit message:
commit 0bf5efc158e0365a764bc2bb6a15a4ba3ac8237a
Author: Ed Warnicke <hagbard@gmail.com>
Date:   Tue Feb 2 15:10:17 2021 -0600

    Rework nsmlabels to nsurl. (#693)

    This is mostly just a reworking of the style of the approach, but it does
    have a fix for handling interdomain network services

    Signed-off-by: Ed Warnicke <hagbard@gmail.com>

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-vpp that referenced this pull request Feb 2, 2021
…k@master networkservicemesh/sdk#693

networkservicemesh/sdk PR link: networkservicemesh/sdk#693

networkservicemesh/sdk commit message:
commit 0bf5efc158e0365a764bc2bb6a15a4ba3ac8237a
Author: Ed Warnicke <hagbard@gmail.com>
Date:   Tue Feb 2 15:10:17 2021 -0600

    Rework nsmlabels to nsurl. (#693)

    This is mostly just a reworking of the style of the approach, but it does
    have a fix for handling interdomain network services

    Signed-off-by: Ed Warnicke <hagbard@gmail.com>

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr-proxy that referenced this pull request Feb 2, 2021
…k@master networkservicemesh/sdk#693

networkservicemesh/sdk PR link: networkservicemesh/sdk#693

networkservicemesh/sdk commit message:
commit 0bf5efc158e0365a764bc2bb6a15a4ba3ac8237a
Author: Ed Warnicke <hagbard@gmail.com>
Date:   Tue Feb 2 15:10:17 2021 -0600

    Rework nsmlabels to nsurl. (#693)

    This is mostly just a reworking of the style of the approach, but it does
    have a fix for handling interdomain network services

    Signed-off-by: Ed Warnicke <hagbard@gmail.com>

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-memory that referenced this pull request Feb 2, 2021
…k@master networkservicemesh/sdk#693

networkservicemesh/sdk PR link: networkservicemesh/sdk#693

networkservicemesh/sdk commit message:
commit 0bf5efc158e0365a764bc2bb6a15a4ba3ac8237a
Author: Ed Warnicke <hagbard@gmail.com>
Date:   Tue Feb 2 15:10:17 2021 -0600

    Rework nsmlabels to nsurl. (#693)

    This is mostly just a reworking of the style of the approach, but it does
    have a fix for handling interdomain network services

    Signed-off-by: Ed Warnicke <hagbard@gmail.com>

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-proxy-dns that referenced this pull request Feb 2, 2021
…k@master networkservicemesh/sdk#693

networkservicemesh/sdk PR link: networkservicemesh/sdk#693

networkservicemesh/sdk commit message:
commit 0bf5efc158e0365a764bc2bb6a15a4ba3ac8237a
Author: Ed Warnicke <hagbard@gmail.com>
Date:   Tue Feb 2 15:10:17 2021 -0600

    Rework nsmlabels to nsurl. (#693)

    This is mostly just a reworking of the style of the approach, but it does
    have a fix for handling interdomain network services

    Signed-off-by: Ed Warnicke <hagbard@gmail.com>

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-k8s that referenced this pull request Feb 2, 2021
…k@master networkservicemesh/sdk#693

networkservicemesh/sdk PR link: networkservicemesh/sdk#693

networkservicemesh/sdk commit message:
commit 0bf5efc158e0365a764bc2bb6a15a4ba3ac8237a
Author: Ed Warnicke <hagbard@gmail.com>
Date:   Tue Feb 2 15:10:17 2021 -0600

    Rework nsmlabels to nsurl. (#693)

    This is mostly just a reworking of the style of the approach, but it does
    have a fix for handling interdomain network services

    Signed-off-by: Ed Warnicke <hagbard@gmail.com>

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants