schema

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 17 Imported by: 3

Documentation

Index

Constants

View Source
const (
	RootName = "__root__"
)

Variables

This section is empty.

Functions

func ExpandOSPaths

func ExpandOSPaths(paths []string) ([]string, error)

Types

type Schema

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

func NewSchema

func NewSchema(sCfg *config.SchemaConfig) (*Schema, error)

func (*Schema) BuildPath

func (sc *Schema) BuildPath(pe []string, p *sdcpb.Path) error

func (*Schema) Dirs

func (s *Schema) Dirs() []string

func (*Schema) Excludes

func (s *Schema) Excludes() []string

func (*Schema) ExpandPath

func (sc *Schema) ExpandPath(p *sdcpb.Path, dt sdcpb.DataType) ([]*sdcpb.Path, error)

func (*Schema) Files

func (s *Schema) Files() []string

func (*Schema) FindPossibleModulesForPathElement added in v0.0.28

func (sc *Schema) FindPossibleModulesForPathElement(e *yang.Entry, pathElement string) ([]*yang.Entry, error)

func (*Schema) GetEntry

func (sc *Schema) GetEntry(pe []string) (*yang.Entry, error)

func (*Schema) GetEntryCh

func (sc *Schema) GetEntryCh(pe []string, ch chan *yang.Entry) error

func (*Schema) Name

func (s *Schema) Name() string

func (*Schema) Reload

func (s *Schema) Reload() (*Schema, error)

func (*Schema) Reset

func (s *Schema) Reset()

func (*Schema) SchemaElemFromYEntry added in v0.0.26

func (sc *Schema) SchemaElemFromYEntry(e *yang.Entry, withDesc bool) (*sdcpb.SchemaElem, error)

func (*Schema) UniqueName

func (s *Schema) UniqueName(sep string) string

func (*Schema) Vendor

func (s *Schema) Vendor() string

func (*Schema) Version

func (s *Schema) Version() string

func (*Schema) Walk

func (s *Schema) Walk(e *yang.Entry, fn func(ec *yang.Entry) error) error

Jump to

Keyboard shortcuts

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