Documentation ¶
Overview ¶
Package interfacename contains code implementing NetworkServiceServer and NetworkServiceClient to generate and set the name of the interface in the mechanism and the mechanism preferences of the requests
Index ¶
Constants ¶
View Source
const MAX_INTERFACE_NAME_LENGTH = 16
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(prefix string, generator NameGenerator) networkservice.NetworkServiceClient
NewClient implements NetworkServiceClient to generate and add the interface name in the mechanism and mechanism preferences of the requests
func NewServer ¶
func NewServer(prefix string, generator NameGenerator) networkservice.NetworkServiceServer
NewServer implements NetworkServiceServer to generate and add the interface name in the mechanism and mechanism preferences of the requests
Note: NSM v1.1.1 kernel.NewServer() interferes with interfaceNameServer. It has been decided to let NSM name the NSE side interfaces if possible.
Types ¶
type NameGenerator ¶
type RandomGenerator ¶
type RandomGenerator struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.