Documentation
¶
Index ¶
- type OpTmpl
- func (t *OpTmpl) Allowed() string
- func (t *OpTmpl) Comptype() string
- func (t *OpTmpl) Features() string
- func (t *OpTmpl) GetField(name string) (string, error)
- func (t *OpTmpl) Help() string
- func (t *OpTmpl) Include() string
- func (t *OpTmpl) Local() bool
- func (t *OpTmpl) Map() map[string]string
- func (t *OpTmpl) PassOpcArgs() bool
- func (t *OpTmpl) Priv() bool
- func (t *OpTmpl) Run() string
- func (t *OpTmpl) Secret() bool
- func (t *OpTmpl) SetAllowed(v string)
- func (t *OpTmpl) SetComptype(v string)
- func (t *OpTmpl) SetFeatures(v string)
- func (t *OpTmpl) SetHelp(v string)
- func (t *OpTmpl) SetInclude(v string)
- func (t *OpTmpl) SetLocal(v bool)
- func (t *OpTmpl) SetPassOpcArgs(v bool)
- func (t *OpTmpl) SetPriv(v bool)
- func (t *OpTmpl) SetRun(v string)
- func (t *OpTmpl) SetSecret(v bool)
- func (t *OpTmpl) SetYang(v bool)
- func (t *OpTmpl) String() string
- func (t *OpTmpl) Yang() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpTmpl ¶
type OpTmpl struct {
// contains filtered or unexported fields
}
OpTmpl represents an operational mode template
func (*OpTmpl) PassOpcArgs ¶
PassOpcArgs returns true if the command is requesting OPC_ARGS in its environment
func (*OpTmpl) SetAllowed ¶
SetAllowed overwrites the allowed field's value
func (*OpTmpl) SetComptype ¶
SetComptype overwrites the comptype field's value
func (*OpTmpl) SetFeatures ¶
func (*OpTmpl) SetInclude ¶
SetInclude overwrites the link field's value
func (*OpTmpl) SetPassOpcArgs ¶
SetPassOpcArgs overwrites the passOpcArgs field of the template
Directories
¶
| Path | Synopsis |
|---|---|
|
Package parse is a simple parser for operational mode templates.
|
Package parse is a simple parser for operational mode templates. |
|
Package tree is an nary tree that stores operational mode templates using maps of strings to nodes as the linkage mechanism.
|
Package tree is an nary tree that stores operational mode templates using maps of strings to nodes as the linkage mechanism. |
Click to show internal directories.
Click to hide internal directories.