Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionStatement ¶
type ActionStatement struct {
Token token.Token
Action *Identifier
Subject Subject
Verb *Identifier
TypePattern *Identifier
WhereClause Condition
}
func (*ActionStatement) String ¶
func (a *ActionStatement) String() string
func (*ActionStatement) TokenLiteral ¶
func (a *ActionStatement) TokenLiteral() string
type Condition ¶
type Condition interface {
Node
GetTypes() []*Identifier
// contains filtered or unexported methods
}
type Identifier ¶
func (*Identifier) GetTypes ¶
func (slf *Identifier) GetTypes() []*Identifier
func (*Identifier) String ¶
func (slf *Identifier) String() string
func (*Identifier) TokenLiteral ¶
func (slf *Identifier) TokenLiteral() string
type InfixCondition ¶
type InfixCondition struct {
Token token.Token // the operator token, e.g. `==`
Left Condition
Operator string
Right Condition
}
func (*InfixCondition) GetTypes ¶
func (slf *InfixCondition) GetTypes() []*Identifier
func (*InfixCondition) String ¶
func (slf *InfixCondition) String() string
func (*InfixCondition) TokenLiteral ¶
func (slf *InfixCondition) TokenLiteral() string
type Policies ¶
type Policies struct {
Statements []Statement
}
concrete types
func (*Policies) TokenLiteral ¶
type PrefixCondition ¶
type PrefixCondition struct {
Token token.Token // the prefix token, e.g. `not`
Operator string
Right Condition
}
func (*PrefixCondition) GetTypes ¶
func (slf *PrefixCondition) GetTypes() []*Identifier
func (*PrefixCondition) String ¶
func (slf *PrefixCondition) String() string
func (*PrefixCondition) TokenLiteral ¶
func (slf *PrefixCondition) TokenLiteral() string
type SubjectGroup ¶
func (*SubjectGroup) String ¶
func (s *SubjectGroup) String() string
func (*SubjectGroup) TokenLiteral ¶
func (s *SubjectGroup) TokenLiteral() string
type SubjectUser ¶
func (*SubjectUser) String ¶
func (s *SubjectUser) String() string
func (*SubjectUser) TokenLiteral ¶
func (s *SubjectUser) TokenLiteral() string
type TypePattern ¶
func (*TypePattern) String ¶
func (t *TypePattern) String() string
func (*TypePattern) TokenLiteral ¶
func (t *TypePattern) TokenLiteral() string
type WhereClause ¶
type WhereClause struct {
Token token.Token // the first token of the condition
Condition Condition
}
WhereClause defines the where clause
func (*WhereClause) GetTypes ¶
func (slf *WhereClause) GetTypes() []*Identifier
func (*WhereClause) String ¶
func (slf *WhereClause) String() string
func (*WhereClause) TokenLiteral ¶
func (slf *WhereClause) TokenLiteral() string
Click to show internal directories.
Click to hide internal directories.