Snmp.Compiler (elixir_snmp v0.2.1) View Source

Functions for compiling MIBs

Link to this section Summary

Functions

Returns given source's dependencies (imports)

Compiles and returns MIB (AST)

Compiles given MIBs

Link to this section Types

Specs

opts() :: %Snmp.Compiler.Options{
  destdir: term(),
  extra_opts: term(),
  force: term(),
  includes: term(),
  includes_lib: term(),
  instrumentation: term(),
  srcdir: term()
}

Link to this section Functions

Link to this function

dependencies(source, opts)

View Source

Specs

dependencies(Path.t(), opts()) :: {:ok, [String.t()]} | {:error, term()}

Returns given source's dependencies (imports)

Specs

mib(String.Chars.t(), opts()) :: {:ok, Snmp.Mib.t()} | {:error, term()}

Compiles and returns MIB (AST)

Specs

run([Path.t()], opts()) :: {:ok, [Path.t()]} | {:error, term()}

Compiles given MIBs