compiler

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 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 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"`
}

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