Documentation ¶
Overview ¶
Package mechanisms provides a simple shim to allow the attempt to select a mechanism based on the MechanismPreference expressed in the Request.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(mechanisms map[string]networkservice.NetworkServiceClient) networkservice.NetworkServiceClient
NewClient - returns a new mechanisms networkservicemesh.NetworkServiceClient
func NewServer ¶
func NewServer(mechanisms map[string]networkservice.NetworkServiceServer) networkservice.NetworkServiceServer
NewServer - returns new NetworkServiceServer chain element that will attempt to meet the request.MechanismPreferences using
the provided maps of MechanismType to NetworkServiceServer - mechanisms key: mechanismType value: NetworkServiceServer that only handles the work for the specified mechanismType Note: Supplied NetworkServiceServer elements should not call next.Server(ctx).{Request,Close} themselves
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package checkmechanism provides TestSuites for use with implementations of a mechanism networkservice chain element.
|
Package checkmechanism provides TestSuites for use with implementations of a mechanism networkservice chain element. |
Package kernel provides the necessary mechanisms to request and inject a kernel interface.
|
Package kernel provides the necessary mechanisms to request and inject a kernel interface. |
vlan
Package vlan provides server chain element setting vlan id on the kernel mechanism
|
Package vlan provides server chain element setting vlan id on the kernel mechanism |
Package recvfd provides a NetworkService{Client,Server} chain element that looks at Connection.Mechanism.Parameters[common.InodeURL] with scheme 'inode' and receives the fds (if possible) and converts them to scheme file.
|
Package recvfd provides a NetworkService{Client,Server} chain element that looks at Connection.Mechanism.Parameters[common.InodeURL] with scheme 'inode' and receives the fds (if possible) and converts them to scheme file. |
Package sendfd provides a NetworkService{Client,Server} chain element that looks at the Connection.Mechanism and Request.MechanismPreferences and if they have the Parameters[common.InodeURL] with scheme 'file' converts them to scheme inode and sends them over the connection as fds if possible.
|
Package sendfd provides a NetworkService{Client,Server} chain element that looks at the Connection.Mechanism and Request.MechanismPreferences and if they have the Parameters[common.InodeURL] with scheme 'file' converts them to scheme inode and sends them over the connection as fds if possible. |
vxlan
|
|
vni
Package vni provides networkservice.NetworkService{Client,Server} chain elements for setting SrcIP/DstIP/VNI for the vxlan mechanism
|
Package vni provides networkservice.NetworkService{Client,Server} chain elements for setting SrcIP/DstIP/VNI for the vxlan mechanism |
Click to show internal directories.
Click to hide internal directories.