Documentation
¶
Index ¶
- Variables
- func IsInvalidAction(s string) bool
- func IsInvalidEntity(s string) bool
- type AST
- type Action
- type CommandNode
- func (n *CommandNode) Equal(n2 Node) bool
- func (n *CommandNode) Err() error
- 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
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 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) Equal ¶
func (n *CommandNode) Equal(n2 Node) bool
func (*CommandNode) Err ¶
func (n *CommandNode) Err() error
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) Equal ¶
func (n *DeclarationNode) Equal(n2 Node) bool
func (*DeclarationNode) String ¶
func (n *DeclarationNode) String() string
type Entity ¶
type Entity string
const ( UnknownEntity Entity = "unknown" NoneEntity Entity = "none" Vpc Entity = "vpc" Subnet Entity = "subnet" Instance Entity = "instance" Volume Entity = "volume" Tag Entity = "tag" Securitygroup Entity = "securitygroup" Keypair Entity = "keypair" Internetgateway Entity = "internetgateway" Routetable Entity = "routetable" Route Entity = "route" Loadbalancer Entity = "loadbalancer" Listener Entity = "listener" Targetgroup Entity = "targetgroup" Database Entity = "database" Dbsubnetgroup Entity = "dbsubnetgroup" Zone Entity = "zone" Record Entity = "record" User Entity = "user" Group Entity = "group" Role Entity = "role" Policy Entity = "policy" Accesskey Entity = "accesskey" Bucket Entity = "bucket" S3object Entity = "s3object" Subscription Entity = "subscription" Topic Entity = "topic" Queue Entity = "queue" )
type ExpressionNode ¶
type Peg ¶
func (*Peg) PrettyPrintSyntaxTree ¶
func (t *Peg) PrettyPrintSyntaxTree(buffer string)
func (*Peg) PrintSyntaxTree ¶
func (p *Peg) PrintSyntaxTree()
Click to show internal directories.
Click to hide internal directories.