Versions in this module Expand all Collapse all v0 v0.8.0 Sep 20, 2024 Changes in this version + const APIFileExtension + const DefaultDir + const OptFileVersion + const OptionArchiveCompression + const OptionArchiveStrip + const OptionArchiveSubdir + const OptionFormat + const OptionGitBranch + const OptionGitDepth + const OptionGitRef + const OptionGitSubdir + const OptionGitTag + const VPPDirEnvVar + const VPPVersionEnvVar + func FindFiles(dir string) (files []string, err error) + func FindFilesRecursive(dir string, deep int) (files []string, err error) + func GetVPPVersionInstalled() (string, error) + func GetVPPVersionRepo(repoDir string) (string, error) + func ResolveApiDir(dir string) string + func ResolveVPPVersion(apidir string) string + type AliasType struct + Length int + Name string + Type string + type Counter struct + Elements []Element + Name string + type CounterPaths struct + Name string + Paths []string + type Element struct + Description string + Name string + Severity string + Type string + Units string + type EnumEntry struct + Name string + Value uint32 + type EnumType struct + Entries []EnumEntry + Name string + Type string + type Field struct + Array bool + Length int + Meta map[string]interface{} + Name string + SizeFrom string + Type string + type File struct + AliasTypes []AliasType + CRC string + Counters []Counter + EnumTypes []EnumType + EnumflagTypes []EnumType + Imports []string + Messages []Message + Name string + Options map[string]string + Path string + Paths []CounterPaths + Service *Service + StructTypes []StructType + UnionTypes []UnionType + func Parse() ([]File, error) + func ParseDir(apiDir string) ([]File, error) + func ParseFile(apiFile string) (*File, error) + func ParseRaw(content []byte) (file *File, err error) + type InputFormat string + const FormatDir + const FormatGit + const FormatNone + const FormatTar + const FormatZip + type InputRef struct + Format InputFormat + Options map[string]string + Path string + func ParseInputRef(input string) (*InputRef, error) + func (input *InputRef) Retrieve() (*VppInput, error) + type Message struct + CRC string + Comment string + Fields []Field + Name string + Options map[string]string + type RPC struct + Events []string + Reply string + Request string + Stream bool + StreamMsg string + type Schema struct + Files []File + Version string + type Service struct + RPCs []RPC + type StructType struct + Fields []Field + Name string + type UnionType struct + Fields []Field + Name string + type VppInput struct + ApiDirectory string + Schema Schema + func ResolveVppInput(input string) (*VppInput, error)