Documentation ¶
Overview ¶
Package source handles the loading of YANG files generally from the disk.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cacher ¶
type Cacher interface { WriteToCache(resourceId string, ext string, copy io.Reader) error ReadFromCache(resourceId string, ext string) (io.Reader, error) }
Cacher implementations manage cached resources
type Opener ¶
Opener will find yang files (resources) abstracting away where or how
func EmbedDir ¶
EmbedDir will find a yang file in an embedded file system because Embed doesn't support symlinks, EmbedDir also looks for version specific files of yang with a pattern of <resourceId>@<version><ext>, e.g. ietf-inet-types@2013-07-15.yang
Click to show internal directories.
Click to hide internal directories.