Help us shape the future of Go! Take the 2026 Go Developer Survey

schema

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 15 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)

func SchemaElemFromYEntry

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

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) 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) 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