cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "mib2go",
	Short: "Generates Go code from MIB files",
	Long:  `mib2go is a CLI to generate Go code from SNMP MIB files.`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type ImportMap

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

func (*ImportMap) AddNode

func (i *ImportMap) AddNode(moduleName string, importName string)

func (*ImportMap) AddType

func (i *ImportMap) AddType(moduleName string, importName string)

func (ImportMap) Imports

func (i ImportMap) Imports() map[string]map[string]ImportType

type ImportType

type ImportType string
const (
	ImportTypeUnknown ImportType = ""
	ImportTypeNode    ImportType = "node"
	ImportTypeType    ImportType = "type"
)

type MibModule added in v0.1.1

type MibModule struct {
	Module gosmi.SmiModule
	Flags  processingFlag
}

Jump to

Keyboard shortcuts

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