nseconfig

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(decoder decoder, cfg config) error

Types

type Config

type Config struct {
	Endpoints []*Endpoint
}

type DecoderFn

type DecoderFn func(v interface{}) error

func (DecoderFn) Decode

func (d DecoderFn) Decode(v interface{}) error

type Endpoint

type Endpoint struct {
	Name   string `yaml:"name"`
	Labels Labels `yaml:"labels"`

	NseName string `yaml:"nseName"` //TODO temporary in order to be able to run examples

	NseControl *NseControl `yaml:"nseControl"`

	VL3 VL3 `yaml:"vl3"`
}

func (*Endpoint) ToNSConfiguration

func (e *Endpoint) ToNSConfiguration() *common.NSConfiguration

type IPAM

type IPAM struct {
	DefaultPrefixPool string   `yaml:"defaultPrefixPool"`
	PrefixLength      int      `yaml:"prefixLength"`
	Routes            []string `yaml:"routes"`
	ServerAddress     string   `yaml:"serverAddress"`
}

type InvalidConfigErrors

type InvalidConfigErrors []error

func (InvalidConfigErrors) Error

func (v InvalidConfigErrors) Error() string

type Labels

type Labels map[string]string

func (Labels) String

func (l Labels) String() string

type NSConfigurationConverter

type NSConfigurationConverter interface {
	ToNSConfiguration() *common.NSConfiguration
}

type NseControl

type NseControl struct {
	Name               string `yaml:"name"`
	Address            string `yaml:"address"`
	AccessToken        string `yaml:"accessToken"`
	ConnectivityDomain string `yaml:"connectivityDomain"`
}

type VL3

type VL3 struct {
	IPAM        IPAM     `yaml:"ipam"`
	Ifname      string   `yaml:"ifName"`
	NameServers []string `yaml:"nameServers"`
	DNSZones    []string `yaml:"dnsZones"`
}

Jump to

Keyboard shortcuts

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