nsurl

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2022 License: Apache-2.0 Imports: 6 Imported by: 5

Documentation

Overview

Package nsurl provides a wrapper for a url.URL that is being used to represent a Network Service being requested by a workload. The rough schema is ${mechanism}://${network service name}[/${interface name}][{labels in URL query format}] Examples:

kernel://my-service@dc.example.com/ms1
memif://my-vpp-service?A=1&B=2&C=3
vfio://second-service?sriovToken=intel/10G

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NSURL

type NSURL url.URL

NSURL - wrapper around *url.URL to allow easy extraction of NSM related information

func (*NSURL) Labels

func (n *NSURL) Labels() map[string]string

Labels - return the source Labels for the requested Network Service

func (*NSURL) Mechanism

func (n *NSURL) Mechanism() *networkservice.Mechanism

Mechanism - return Mechanism for the requested Network Service

func (*NSURL) NetworkService

func (n *NSURL) NetworkService() string

NetworkService - return the name of the requested Network Service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL