Versions in this module Expand all Collapse all v0 v0.6.0 Apr 27, 2019 Changes in this version + const DefaultAnnotationPrefix + const DefaultBasePackageName + const DefaultEnumPackageName + const DefaultGNMIImportPath + const DefaultGoyangImportPath + const DefaultYextPath + const DefaultYgotImportPath + const DefaultYtypesImportPath + const DefaultYwrapperPath + func BytesToGoByteSlice(b []byte) []string + func WriteGzippedByteSlice(b []byte) ([]byte, error) + type GeneratedGoCode struct + CommonHeader string + EnumMap string + EnumTypeMap string + Enums []string + JSONSchemaCode string + OneOffHeader string + RawJSONSchema []byte + Structs []GoStructCodeSnippet + type GeneratedProto3 struct + Packages map[string]Proto3Package + type GeneratorConfig struct + Caller string + CompressOCPaths bool + ExcludeModules []string + ExcludeState bool + FakeRootName string + GenerateFakeRoot bool + GenerateJSONSchema bool + GoOptions GoOpts + PackageName string + ProtoOptions ProtoOpts + StoreRawSchema bool + YANGParseOptions yang.Options + type GoOpts struct + AddAnnotationFields bool + AnnotationPrefix string + GNMIProtoPath string + GenerateAppendMethod bool + GenerateDeleteMethod bool + GenerateGetters bool + GenerateLeafGetters bool + GenerateRenameMethod bool + GoyangImportPath string + IncludeModelData bool + SchemaVarName string + YgotImportPath string + YtypesImportPath string + type GoStructCodeSnippet struct + Interfaces string + ListKeys string + Methods string + StructDef string + StructName string + func (g GoStructCodeSnippet) String() string + type Proto3Package struct + Enums []string + FilePath []string + Header string + Messages []string + type ProtoOpts struct + AnnotateEnumNames bool + AnnotateSchemaPaths bool + BaseImportPath string + EnumPackageName string + NestedMessages bool + YextPath string + YwrapperPath string + type YANGCodeGenerator struct + Config GeneratorConfig + func NewYANGCodeGenerator(c *GeneratorConfig) *YANGCodeGenerator + func (cg *YANGCodeGenerator) GenerateGoCode(yangFiles, includePaths []string) (*GeneratedGoCode, util.Errors) + func (cg *YANGCodeGenerator) GenerateProto3(yangFiles, includePaths []string) (*GeneratedProto3, util.Errors)