excludedprefixes

package
v1.1.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: Apache-2.0 Imports: 10 Imported by: 5

Documentation

Overview

Package excludedprefixes provides a networkservice.NetworkServiceServer chain element that can read excluded prefixes from config map and add them to request to avoid repeated usage.

Index

Constants

View Source
const (

	// PrefixesFilePathDefault - excluded prefixes file absolute path
	PrefixesFilePathDefault = nsmConfigDir + "/" + prefixesFile
)

These variables set default path to the config file

Variables

This section is empty.

Functions

func NewServer

NewServer - creates a networkservice.NetworkServiceServer chain element that can read excluded prefixes from config map and add them to request to avoid repeated usage. Note: request.Connection and Connection.Context should not be nil when calling Request

Types

type ServerOption

type ServerOption func(server *excludedPrefixesServer)

ServerOption - method for excludedPrefixesServer

func WithConfigPath

func WithConfigPath(s string) ServerOption

WithConfigPath - returns method that set configPath in excludedPrefixesServer

Jump to

Keyboard shortcuts

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