devicecfg

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package devicecfg provides service domain to device config

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Interfaces []*Device `yaml:"interfaces"`
}

Config contains list of available service domains

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 Device

type Device struct {
	Name    string       `yaml:"name"`
	Matches []*Selectors `yaml:"matches"`
}

Device contains an available interface name and related matches

func (*Device) String

func (iface *Device) String() string

type Labels

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

Labels contins the via selector

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