compiler

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadMetaData

func LoadMetaData(path string, metaData *MetaData) error

LoadMetaData loads the metadata.yaml file

Types

type Dictionary added in v0.9.3

type Dictionary struct {
	Name          string
	Version       string
	PluginVersion string
	GoPackage     string
	ModelData     []*gnmi.ModelData
	Module        string
	GetStateMode  uint32
	ReadOnlyPath  []*api.ReadOnlyPath
	ReadWritePath []*api.ReadWritePath
}

type MetaData

type MetaData struct {
	Name         string   `mapstructure:"name" yaml:"name"`
	Version      string   `mapstructure:"version" yaml:"version"`
	Modules      []Module `mapstructure:"modules" yaml:"modules"`
	GetStateMode uint32   `mapstructure:"getStateMode" yaml:"getStateMode"`
	LintModel    bool     `mapstructure:"lintModel" yaml:"lintModel"`
	GenOpenAPI   bool     `mapstructure:"genOpenAPI" yaml:"genOpenAPI"`
	GoPackage    string   `mapstructure:"goPackage" yaml:"goPackage"`
}

MetaData plugin meta-data

type ModelCompiler

type ModelCompiler struct {
	// contains filtered or unexported fields
}

ModelCompiler is a model plugin compiler

func NewCompiler

func NewCompiler() *ModelCompiler

NewCompiler creates a new config model compiler

func (*ModelCompiler) Compile

func (c *ModelCompiler) Compile(path string) error

Compile compiles the config model

type Module

type Module struct {
	Name         string `mapstructure:"name" yaml:"name"`
	Revision     string `mapstructure:"revision" yaml:"revision"`
	Organization string `mapstructure:"organization" yaml:"organization"`
	YangFile     string `mapstructure:"file" yaml:"file"`
}

Jump to

Keyboard shortcuts

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