l2resourcecfg

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package l2resourcecfg provides parsing factilty for l2 connection point config map for VLAN breakout case.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Interfaces []*Resource `yaml:"interfaces"`
	Bridges    []*Resource `yaml:"bridges"`
}

Config contains list of available l2 connection endpoints

func ReadConfig

func ReadConfig(ctx context.Context, configFile string) (*Config, error)

ReadConfig reads configuration from file

func (*Config) String

func (c *Config) String() string

type Labels

type Labels struct {
	Via string `yaml:"via"`
}

Labels contins the via selector

type Resource

type Resource struct {
	Name    string       `yaml:"name"`
	Bridge  string       `yaml:"bridge,omitempty"`
	Matches []*Selectors `yaml:"matches"`
}

Resource contains an available interface or bridge name and related matches

func (*Resource) String

func (res *Resource) String() string

type Selectors

type Selectors struct {
	LabelSelector []*Labels `yaml:"labelSelector"`
}

Selectors contains a list of selectors

func (*Selectors) String

func (mh *Selectors) String() string

Jump to

Keyboard shortcuts

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