models

package
v0.0.0-...-24c7f32 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Models

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

Models tracks registered YANG models

func NewModels

func NewModels() *Models

NewModels initializes YANG model registry and primes it with a base set of OpenConfig models

func (*Models) Get

func (r *Models) Get() []*pb.ModelData

Get returns all currently registered YANG models

func (*Models) Register

func (r *Models) Register(m *pb.ModelData)

Register inserts a new YANG model into the registry

func (*Models) Unregister

func (r *Models) Unregister(m *pb.ModelData)

Unregister removes the specified YANG model from the registry

Jump to

Keyboard shortcuts

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