edgerouter

package
v0.19.64 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultHeartbeatIntervalSeconds   = 60
	MinHeartbeatIntervalSeconds       = 10
	MaxHeartbeatIntervalSeconds       = 60
	DefaultSessionValidateChunkSize   = 1000
	DefaultSessionValidateMinInterval = "250ms"
	DefaultSessionValidateMaxInterval = "1500ms"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiProxy

type ApiProxy struct {
	Enabled  bool
	Listener string
	Upstream string
}

type Config

type Config struct {
	Enabled                    bool
	ApiProxy                   ApiProxy
	Advertise                  string
	WSAdvertise                string
	Csr                        Csr
	IdentityConfig             identity.IdentityConfig
	HeartbeatIntervalSeconds   int
	SessionValidateChunkSize   uint32
	SessionValidateMinInterval time.Duration
	SessionValidateMaxInterval time.Duration
	Tcfg                       transport.Configuration
}

func NewConfig

func NewConfig() *Config

func (*Config) LoadConfigFromMap

func (config *Config) LoadConfigFromMap(configMap map[interface{}]interface{}) error

func (*Config) LoadConfigFromMapForEnrollment

func (config *Config) LoadConfigFromMapForEnrollment(configMap map[interface{}]interface{}) error

func (*Config) LoadIdentity

func (config *Config) LoadIdentity() (identity.Identity, error)

type Csr

type Csr struct {
	Sans               *Sans  `yaml:"sans"`
	Country            string `yaml:"country"`
	Locality           string `yaml:"locality"`
	Organization       string `yaml:"organization"`
	OrganizationalUnit string `yaml:"organizationalUnit"`
	Province           string `yaml:"province"`
}

type Memory

type Memory struct {
	Path     string        `yaml:"path"`
	Interval time.Duration `yaml:"intervalMs"`
}

type Sans

type Sans struct {
	DnsAddresses       []string `yaml:"dns" mapstructure:"dns"`
	IpAddresses        []string `yaml:"ip" mapstructure:"ip"`
	IpAddressesParsed  []net.IP
	EmailAddresses     []string `yaml:"email" mapstructure:"email"`
	UriAddresses       []string `yaml:"uri" mapstructure:"uri"`
	UriAddressesParsed []*url.URL
}

Jump to

Keyboard shortcuts

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