config

package
v1.1.1 Latest Latest
Warning

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

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

Documentation

Overview

Package config - contain environment variables used by cmd-forwarder-vpp

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name             string            `default:"forwarder" desc:"Name of Endpoint"`
	Labels           map[string]string `default:"p2p:true" desc:"Labels related to this forwarder-vpp instance"`
	NSName           string            `default:"forwarder" desc:"Name of Network Service to Register with Registry"`
	ConnectTo        url.URL           `default:"unix:///connect.to.socket" desc:"url to connect to" split_words:"true"`
	ListenOn         url.URL           `default:"unix:///listen.on.socket" desc:"url to listen on" split_words:"true"`
	MaxTokenLifetime time.Duration     `default:"10m" desc:"maximum lifetime of tokens" split_words:"true"`
	LogLevel         string            `default:"INFO" desc:"Log level" split_words:"true"`
	DialTimeout      time.Duration     `default:"50ms" desc:"Timeout for the dial the next endpoint" split_words:"true"`

	TunnelIP     net.IP       `desc:"IP to use for tunnels" split_words:"true"`
	VxlanPort    uint16       `default:"0" desc:"VXLAN port to use" split_words:"true"`
	VppAPISocket string       `` /* 137-byte string literal not displayed */
	VppInit      vppinit.Func `default:"AF_PACKET" desc:"type of VPP initialization.  Must be AF_PACKET or NONE" split_words:"true"`

	ResourcePollTimeout time.Duration `default:"30s" desc:"device plugin polling timeout" split_words:"true"`
	DevicePluginPath    string        `default:"/var/lib/kubelet/device-plugins/" desc:"path to the device plugin directory" split_words:"true"`
	PodResourcesPath    string        `default:"/var/lib/kubelet/pod-resources/" desc:"path to the pod resources directory" split_words:"true"`
	DeviceSelectorFile  string        `default:"" desc:"config file for device name to label matching" split_words:"true"`
	SRIOVConfigFile     string        `default:"" desc:"PCI resources config path" split_words:"true"`
	PCIDevicesPath      string        `default:"/sys/bus/pci/devices" desc:"path to the PCI devices directory" split_words:"true"`
	PCIDriversPath      string        `default:"/sys/bus/pci/drivers" desc:"path to the PCI drivers directory" split_words:"true"`
	CgroupPath          string        `default:"/host/sys/fs/cgroup/devices" desc:"path to the host cgroup directory" split_words:"true"`
	VFIOPath            string        `default:"/host/dev/vfio" desc:"path to the host VFIO directory" split_words:"true"`
}

Config - configuration for cmd-forwarder-vpp

func (*Config) Process

func (c *Config) Process() error

Process reads config from env

Jump to

Keyboard shortcuts

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