Documentation ¶
Index ¶
- Variables
- func IsInvalidAction(s string) bool
- func IsInvalidEntity(s string) bool
- type AST
- type Action
- type CommandNode
- func (n *CommandNode) Err() error
- func (n *CommandNode) GetHoles() (holes []string)
- func (n *CommandNode) Keys() (keys []string)
- func (n *CommandNode) ProcessHoles(fills map[string]interface{}) map[string]interface{}
- func (n *CommandNode) ProcessRefs(fills map[string]interface{})
- func (n *CommandNode) Result() interface{}
- func (n *CommandNode) String() string
- type DeclarationNode
- type Entity
- type ExpressionNode
- type Node
- type Peg
- func (t *Peg) AST() *node32
- func (t *Peg) Add(rule pegRule, begin, end, index uint32)
- func (p *Peg) Execute()
- func (p *Peg) Init()
- func (p *Peg) Parse(rule ...int) error
- func (t *Peg) PrettyPrintSyntaxTree(buffer string)
- func (t *Peg) Print()
- func (p *Peg) PrintSyntaxTree()
- func (p *Peg) Reset()
- func (t *Peg) Tokens() []token32
- func (t *Peg) Trim(length uint32)
- type Statement
- type ValueNode
- type WithHoles
Constants ¶
This section is empty.
Variables ¶
View Source
var SimpleStringValue = regexp.MustCompile("^[a-zA-Z0-9-._:/+;~@<>*]+$") // in sync with [a-zA-Z0-9-._:/+;~@<>]+ in PEG (with ^ and $ around)
Functions ¶
func IsInvalidAction ¶
func IsInvalidEntity ¶
Types ¶
type Action ¶
type Action string
const ( UnknownAction Action = "unknown" NoneAction Action = "none" Create Action = "create" Delete Action = "delete" Update Action = "update" Check Action = "check" Start Action = "start" Stop Action = "stop" Attach Action = "attach" Detach Action = "detach" Copy Action = "copy" Import Action = "import" Authenticate Action = "authenticate" )
type CommandNode ¶
type CommandNode struct { CmdResult interface{} CmdErr error Action, Entity string Refs map[string]string Params map[string]interface{} Holes map[string]string }
func (*CommandNode) Err ¶
func (n *CommandNode) Err() error
func (*CommandNode) GetHoles ¶ added in v0.0.24
func (n *CommandNode) GetHoles() (holes []string)
func (*CommandNode) Keys ¶
func (n *CommandNode) Keys() (keys []string)
func (*CommandNode) ProcessHoles ¶
func (n *CommandNode) ProcessHoles(fills map[string]interface{}) map[string]interface{}
func (*CommandNode) ProcessRefs ¶
func (n *CommandNode) ProcessRefs(fills map[string]interface{})
func (*CommandNode) Result ¶
func (n *CommandNode) Result() interface{}
func (*CommandNode) String ¶
func (n *CommandNode) String() string
type DeclarationNode ¶
type DeclarationNode struct { Ident string Expr ExpressionNode }
func (*DeclarationNode) String ¶
func (n *DeclarationNode) String() string
type ExpressionNode ¶
type Peg ¶
func (*Peg) PrettyPrintSyntaxTree ¶
func (t *Peg) PrettyPrintSyntaxTree(buffer string)
func (*Peg) PrintSyntaxTree ¶
func (p *Peg) PrintSyntaxTree()
type ValueNode ¶ added in v0.0.24
type ValueNode struct { Value interface{} Hole string }
func (*ValueNode) IsResolved ¶ added in v0.0.24
func (*ValueNode) ProcessHoles ¶ added in v0.0.24
Click to show internal directories.
Click to hide internal directories.