light

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CtyType_name = map[int32]string{
		0: "Unknown",
		1: "String",
		2: "Bool",
		3: "Number",
		4: "List",
		5: "Map",
		6: "DynamicPseudo",
	}
	CtyType_value = map[string]int32{
		"Unknown":       0,
		"String":        1,
		"Bool":          2,
		"Number":        3,
		"List":          4,
		"Map":           5,
		"DynamicPseudo": 6,
	}
)

Enum value maps for CtyType.

View Source
var (
	TokenType_name = map[int32]string{
		0:  "TokenUnknown",
		1:  "OBrace",
		2:  "CBrace",
		3:  "OBrack",
		4:  "CBrack",
		5:  "OParen",
		6:  "CParen",
		7:  "OQuote",
		8:  "CQuote",
		9:  "OHeredoc",
		10: "CHeredoc",
		11: "Star",
		12: "Slash",
		13: "Plus",
		14: "Minus",
		15: "Percent",
		16: "Equal",
		17: "EqualOp",
		18: "NotEqual",
		19: "LessThan",
		20: "LessThanEq",
		21: "GreaterThan",
		22: "GreaterThanEq",
		23: "And",
		24: "Or",
		25: "Bang",
		26: "Dot",
		27: "Comma",
		28: "Ellipsis",
		29: "FatArrow",
		30: "Question",
		31: "Colon",
		32: "TemplateInterp",
		33: "TemplateControl",
		34: "TemplateSeqEnd",
		35: "QuotedLit",
		36: "StringLit",
		37: "NumberLit",
		38: "Ident",
		39: "Comment",
		40: "Newline",
		41: "EOF",
		42: "BitwiseAnd",
		43: "BitwiseOr",
		44: "BitwiseNot",
		45: "BitwiseXor",
		46: "StarStar",
		47: "Apostrophe",
		48: "Backtick",
		49: "Semicolon",
		50: "Tabs",
		51: "Invalid",
		52: "BadUTF8",
		53: "QuotedNewline",
		54: "Nil",
	}
	TokenType_value = map[string]int32{
		"TokenUnknown":    0,
		"OBrace":          1,
		"CBrace":          2,
		"OBrack":          3,
		"CBrack":          4,
		"OParen":          5,
		"CParen":          6,
		"OQuote":          7,
		"CQuote":          8,
		"OHeredoc":        9,
		"CHeredoc":        10,
		"Star":            11,
		"Slash":           12,
		"Plus":            13,
		"Minus":           14,
		"Percent":         15,
		"Equal":           16,
		"EqualOp":         17,
		"NotEqual":        18,
		"LessThan":        19,
		"LessThanEq":      20,
		"GreaterThan":     21,
		"GreaterThanEq":   22,
		"And":             23,
		"Or":              24,
		"Bang":            25,
		"Dot":             26,
		"Comma":           27,
		"Ellipsis":        28,
		"FatArrow":        29,
		"Question":        30,
		"Colon":           31,
		"TemplateInterp":  32,
		"TemplateControl": 33,
		"TemplateSeqEnd":  34,
		"QuotedLit":       35,
		"StringLit":       36,
		"NumberLit":       37,
		"Ident":           38,
		"Comment":         39,
		"Newline":         40,
		"EOF":             41,
		"BitwiseAnd":      42,
		"BitwiseOr":       43,
		"BitwiseNot":      44,
		"BitwiseXor":      45,
		"StarStar":        46,
		"Apostrophe":      47,
		"Backtick":        48,
		"Semicolon":       49,
		"Tabs":            50,
		"Invalid":         51,
		"BadUTF8":         52,
		"QuotedNewline":   53,
		"Nil":             54,
	}
)

Enum value maps for TokenType.

View Source
var File_light_lightsyntax_proto protoreflect.FileDescriptor

Functions

func KeyValueExprToString added in v0.1.1

func KeyValueExprToString(l *Expression) *string

func LiteralValueExprToBoolean added in v0.1.1

func LiteralValueExprToBoolean(l *Expression) *bool

func LiteralValueExprToFloat64 added in v0.1.1

func LiteralValueExprToFloat64(l *Expression) *float64

func LiteralValueExprToInt64 added in v0.1.1

func LiteralValueExprToInt64(l *Expression) *int64

func LiteralValueExprToInterface added in v0.1.5

func LiteralValueExprToInterface(l *Expression) interface{}

func LiteralValueExprToString added in v0.1.1

func LiteralValueExprToString(l *Expression) *string

func ObjConsExprToStringMap added in v0.1.1

func ObjConsExprToStringMap(expr *Expression) map[string]string

func TextValueExprToString added in v0.1.1

func TextValueExprToString(t *Expression) *string

func TraversalToString added in v0.1.1

func TraversalToString(t *Expression) *string

func TupleConsExprToStringArray added in v0.1.1

func TupleConsExprToStringArray(expr *Expression) []string

Types

type AnonSymbolExpr added in v0.1.0

type AnonSymbolExpr struct {
	// contains filtered or unexported fields
}

func (*AnonSymbolExpr) Descriptor deprecated added in v0.1.0

func (*AnonSymbolExpr) Descriptor() ([]byte, []int)

Deprecated: Use AnonSymbolExpr.ProtoReflect.Descriptor instead.

func (*AnonSymbolExpr) ProtoMessage added in v0.1.0

func (*AnonSymbolExpr) ProtoMessage()

func (*AnonSymbolExpr) ProtoReflect added in v0.1.0

func (x *AnonSymbolExpr) ProtoReflect() protoreflect.Message

func (*AnonSymbolExpr) Reset added in v0.1.0

func (x *AnonSymbolExpr) Reset()

func (*AnonSymbolExpr) String added in v0.1.0

func (x *AnonSymbolExpr) String() string

type Attribute added in v0.1.0

type Attribute struct {
	Name string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Expr *Expression `protobuf:"bytes,2,opt,name=expr,proto3" json:"expr,omitempty"`
	// contains filtered or unexported fields
}

func (*Attribute) Descriptor deprecated added in v0.1.0

func (*Attribute) Descriptor() ([]byte, []int)

Deprecated: Use Attribute.ProtoReflect.Descriptor instead.

func (*Attribute) GetExpr added in v0.1.0

func (x *Attribute) GetExpr() *Expression

func (*Attribute) GetName added in v0.1.0

func (x *Attribute) GetName() string

func (*Attribute) ProtoMessage added in v0.1.0

func (*Attribute) ProtoMessage()

func (*Attribute) ProtoReflect added in v0.1.0

func (x *Attribute) ProtoReflect() protoreflect.Message

func (*Attribute) Reset added in v0.1.0

func (x *Attribute) Reset()

func (*Attribute) String added in v0.1.0

func (x *Attribute) String() string

func (*Attribute) ToNative added in v0.1.5

func (self *Attribute) ToNative(ref map[string]interface{}, node *utils.Tree, k ...string) (interface{}, error)

ToNative converts Attribute to a native Go type assuming there is no evaluation needed.

type BinaryOpExpr added in v0.1.0

type BinaryOpExpr struct {
	LHS *Expression `protobuf:"bytes,1,opt,name=LHS,proto3" json:"LHS,omitempty"`
	Op  *Operation  `protobuf:"bytes,2,opt,name=op,proto3" json:"op,omitempty"`
	RHS *Expression `protobuf:"bytes,3,opt,name=RHS,proto3" json:"RHS,omitempty"`
	// contains filtered or unexported fields
}

func (*BinaryOpExpr) Descriptor deprecated added in v0.1.0

func (*BinaryOpExpr) Descriptor() ([]byte, []int)

Deprecated: Use BinaryOpExpr.ProtoReflect.Descriptor instead.

func (*BinaryOpExpr) GetLHS added in v0.1.0

func (x *BinaryOpExpr) GetLHS() *Expression

func (*BinaryOpExpr) GetOp added in v0.1.0

func (x *BinaryOpExpr) GetOp() *Operation

func (*BinaryOpExpr) GetRHS added in v0.1.0

func (x *BinaryOpExpr) GetRHS() *Expression

func (*BinaryOpExpr) ProtoMessage added in v0.1.0

func (*BinaryOpExpr) ProtoMessage()

func (*BinaryOpExpr) ProtoReflect added in v0.1.0

func (x *BinaryOpExpr) ProtoReflect() protoreflect.Message

func (*BinaryOpExpr) Reset added in v0.1.0

func (x *BinaryOpExpr) Reset()

func (*BinaryOpExpr) String added in v0.1.0

func (x *BinaryOpExpr) String() string

type Block added in v0.1.0

type Block struct {
	Type   string   `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
	Bdy    *Body    `protobuf:"bytes,3,opt,name=bdy,proto3" json:"bdy,omitempty"`
	// contains filtered or unexported fields
}

func (*Block) Descriptor deprecated added in v0.1.0

func (*Block) Descriptor() ([]byte, []int)

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetBdy added in v0.1.0

func (x *Block) GetBdy() *Body

func (*Block) GetLabels added in v0.1.0

func (x *Block) GetLabels() []string

func (*Block) GetType added in v0.1.0

func (x *Block) GetType() string

func (*Block) ProtoMessage added in v0.1.0

func (*Block) ProtoMessage()

func (*Block) ProtoReflect added in v0.1.0

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset added in v0.1.0

func (x *Block) Reset()

func (*Block) String added in v0.1.0

func (x *Block) String() string

type Body added in v0.1.0

type Body struct {
	Attributes map[string]*Attribute `` /* 161-byte string literal not displayed */
	Blocks     []*Block              `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"`
	// contains filtered or unexported fields
}

func ParseBody added in v0.1.5

func ParseBody(dat []byte) (*Body, error)

ParseBody parses HCL data into Body proto.

func (*Body) Descriptor deprecated added in v0.1.0

func (*Body) Descriptor() ([]byte, []int)

Deprecated: Use Body.ProtoReflect.Descriptor instead.

func (*Body) Evaluate added in v0.1.0

func (body *Body) Evaluate(rest ...interface{}) ([]byte, error)

Evaluate converts Body proto to HCL with expressions evaluated.

func (*Body) GetAttributes added in v0.1.0

func (x *Body) GetAttributes() map[string]*Attribute

func (*Body) GetBlocks added in v0.1.0

func (x *Body) GetBlocks() []*Block

func (*Body) Hcl added in v0.1.0

func (self *Body) Hcl() ([]byte, error)

HCL converts Body proto to HCL without evaluation of expressions.

func (*Body) MarshalHCL added in v0.1.5

func (body *Body) MarshalHCL() ([]byte, error)

func (*Body) ProtoMessage added in v0.1.0

func (*Body) ProtoMessage()

func (*Body) ProtoReflect added in v0.1.0

func (x *Body) ProtoReflect() protoreflect.Message

func (*Body) Reset added in v0.1.0

func (x *Body) Reset()

func (*Body) String added in v0.1.0

func (x *Body) String() string

func (*Body) ToObjectConsExpr added in v0.1.0

func (self *Body) ToObjectConsExpr(quote ...bool) *ObjectConsExpr

func (*Body) UnmarshalHCL added in v0.1.5

func (self *Body) UnmarshalHCL(dat []byte, _ ...string) error

type ConditionalExpr added in v0.1.0

type ConditionalExpr struct {
	Condition   *Expression `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition,omitempty"`
	TrueResult  *Expression `protobuf:"bytes,2,opt,name=trueResult,proto3" json:"trueResult,omitempty"`
	FalseResult *Expression `protobuf:"bytes,3,opt,name=falseResult,proto3" json:"falseResult,omitempty"`
	// contains filtered or unexported fields
}

func (*ConditionalExpr) Descriptor deprecated added in v0.1.0

func (*ConditionalExpr) Descriptor() ([]byte, []int)

Deprecated: Use ConditionalExpr.ProtoReflect.Descriptor instead.

func (*ConditionalExpr) GetCondition added in v0.1.0

func (x *ConditionalExpr) GetCondition() *Expression

func (*ConditionalExpr) GetFalseResult added in v0.1.0

func (x *ConditionalExpr) GetFalseResult() *Expression

func (*ConditionalExpr) GetTrueResult added in v0.1.0

func (x *ConditionalExpr) GetTrueResult() *Expression

func (*ConditionalExpr) ProtoMessage added in v0.1.0

func (*ConditionalExpr) ProtoMessage()

func (*ConditionalExpr) ProtoReflect added in v0.1.0

func (x *ConditionalExpr) ProtoReflect() protoreflect.Message

func (*ConditionalExpr) Reset added in v0.1.0

func (x *ConditionalExpr) Reset()

func (*ConditionalExpr) String added in v0.1.0

func (x *ConditionalExpr) String() string

type CtyFunction added in v0.1.0

type CtyFunction struct {
	Description string          `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	Parameters  []*CtyParameter `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty"`
	VarParam    *CtyParameter   `protobuf:"bytes,3,opt,name=varParam,proto3" json:"varParam,omitempty"`
	// contains filtered or unexported fields
}

func (*CtyFunction) Descriptor deprecated added in v0.1.0

func (*CtyFunction) Descriptor() ([]byte, []int)

Deprecated: Use CtyFunction.ProtoReflect.Descriptor instead.

func (*CtyFunction) GetDescription added in v0.1.0

func (x *CtyFunction) GetDescription() string

func (*CtyFunction) GetParameters added in v0.1.0

func (x *CtyFunction) GetParameters() []*CtyParameter

func (*CtyFunction) GetVarParam added in v0.1.0

func (x *CtyFunction) GetVarParam() *CtyParameter

func (*CtyFunction) ProtoMessage added in v0.1.0

func (*CtyFunction) ProtoMessage()

func (*CtyFunction) ProtoReflect added in v0.1.0

func (x *CtyFunction) ProtoReflect() protoreflect.Message

func (*CtyFunction) Reset added in v0.1.0

func (x *CtyFunction) Reset()

func (*CtyFunction) String added in v0.1.0

func (x *CtyFunction) String() string

type CtyList added in v0.1.0

type CtyList struct {
	Values []*CtyValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*CtyList) Descriptor deprecated added in v0.1.0

func (*CtyList) Descriptor() ([]byte, []int)

Deprecated: Use CtyList.ProtoReflect.Descriptor instead.

func (*CtyList) GetValues added in v0.1.0

func (x *CtyList) GetValues() []*CtyValue

func (*CtyList) ProtoMessage added in v0.1.0

func (*CtyList) ProtoMessage()

func (*CtyList) ProtoReflect added in v0.1.0

func (x *CtyList) ProtoReflect() protoreflect.Message

func (*CtyList) Reset added in v0.1.0

func (x *CtyList) Reset()

func (*CtyList) String added in v0.1.0

func (x *CtyList) String() string

type CtyMap added in v0.1.0

type CtyMap struct {
	Values map[string]*CtyValue `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CtyMap) Descriptor deprecated added in v0.1.0

func (*CtyMap) Descriptor() ([]byte, []int)

Deprecated: Use CtyMap.ProtoReflect.Descriptor instead.

func (*CtyMap) GetValues added in v0.1.0

func (x *CtyMap) GetValues() map[string]*CtyValue

func (*CtyMap) ProtoMessage added in v0.1.0

func (*CtyMap) ProtoMessage()

func (*CtyMap) ProtoReflect added in v0.1.0

func (x *CtyMap) ProtoReflect() protoreflect.Message

func (*CtyMap) Reset added in v0.1.0

func (x *CtyMap) Reset()

func (*CtyMap) String added in v0.1.0

func (x *CtyMap) String() string

type CtyParameter added in v0.1.0

type CtyParameter struct {
	Name             string  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description      string  `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Typ              CtyType `protobuf:"varint,3,opt,name=typ,proto3,enum=light.CtyType" json:"typ,omitempty"`
	AllowNull        bool    `protobuf:"varint,4,opt,name=allowNull,proto3" json:"allowNull,omitempty"`
	AllowDynamicType bool    `protobuf:"varint,5,opt,name=allowDynamicType,proto3" json:"allowDynamicType,omitempty"`
	AllowMarked      bool    `protobuf:"varint,6,opt,name=allowMarked,proto3" json:"allowMarked,omitempty"`
	// contains filtered or unexported fields
}

func (*CtyParameter) Descriptor deprecated added in v0.1.0

func (*CtyParameter) Descriptor() ([]byte, []int)

Deprecated: Use CtyParameter.ProtoReflect.Descriptor instead.

func (*CtyParameter) GetAllowDynamicType added in v0.1.0

func (x *CtyParameter) GetAllowDynamicType() bool

func (*CtyParameter) GetAllowMarked added in v0.1.0

func (x *CtyParameter) GetAllowMarked() bool

func (*CtyParameter) GetAllowNull added in v0.1.0

func (x *CtyParameter) GetAllowNull() bool

func (*CtyParameter) GetDescription added in v0.1.0

func (x *CtyParameter) GetDescription() string

func (*CtyParameter) GetName added in v0.1.0

func (x *CtyParameter) GetName() string

func (*CtyParameter) GetTyp added in v0.1.0

func (x *CtyParameter) GetTyp() CtyType

func (*CtyParameter) ProtoMessage added in v0.1.0

func (*CtyParameter) ProtoMessage()

func (*CtyParameter) ProtoReflect added in v0.1.0

func (x *CtyParameter) ProtoReflect() protoreflect.Message

func (*CtyParameter) Reset added in v0.1.0

func (x *CtyParameter) Reset()

func (*CtyParameter) String added in v0.1.0

func (x *CtyParameter) String() string

type CtyType added in v0.1.0

type CtyType int32
const (
	CtyType_Unknown       CtyType = 0
	CtyType_String        CtyType = 1
	CtyType_Bool          CtyType = 2
	CtyType_Number        CtyType = 3
	CtyType_List          CtyType = 4
	CtyType_Map           CtyType = 5
	CtyType_DynamicPseudo CtyType = 6
)

func (CtyType) Descriptor added in v0.1.0

func (CtyType) Descriptor() protoreflect.EnumDescriptor

func (CtyType) Enum added in v0.1.0

func (x CtyType) Enum() *CtyType

func (CtyType) EnumDescriptor deprecated added in v0.1.0

func (CtyType) EnumDescriptor() ([]byte, []int)

Deprecated: Use CtyType.Descriptor instead.

func (CtyType) Number added in v0.1.0

func (x CtyType) Number() protoreflect.EnumNumber

func (CtyType) String added in v0.1.0

func (x CtyType) String() string

func (CtyType) Type added in v0.1.0

func (CtyType) Type() protoreflect.EnumType

type CtyValue added in v0.1.0

type CtyValue struct {

	// Types that are assignable to CtyValueClause:
	//	*CtyValue_StringValue
	//	*CtyValue_BoolValue
	//	*CtyValue_NumberValue
	//	*CtyValue_ListValue
	//	*CtyValue_MapValue
	CtyValueClause isCtyValue_CtyValueClause `protobuf_oneof:"CtyValueClause"`
	// contains filtered or unexported fields
}

func (*CtyValue) Descriptor deprecated added in v0.1.0

func (*CtyValue) Descriptor() ([]byte, []int)

Deprecated: Use CtyValue.ProtoReflect.Descriptor instead.

func (*CtyValue) GetBoolValue added in v0.1.0

func (x *CtyValue) GetBoolValue() bool

func (*CtyValue) GetCtyValueClause added in v0.1.0

func (m *CtyValue) GetCtyValueClause() isCtyValue_CtyValueClause

func (*CtyValue) GetListValue added in v0.1.0

func (x *CtyValue) GetListValue() *CtyList

func (*CtyValue) GetMapValue added in v0.1.0

func (x *CtyValue) GetMapValue() *CtyMap

func (*CtyValue) GetNumberValue added in v0.1.0

func (x *CtyValue) GetNumberValue() float64

func (*CtyValue) GetStringValue added in v0.1.0

func (x *CtyValue) GetStringValue() string

func (*CtyValue) ProtoMessage added in v0.1.0

func (*CtyValue) ProtoMessage()

func (*CtyValue) ProtoReflect added in v0.1.0

func (x *CtyValue) ProtoReflect() protoreflect.Message

func (*CtyValue) Reset added in v0.1.0

func (x *CtyValue) Reset()

func (*CtyValue) String added in v0.1.0

func (x *CtyValue) String() string

type CtyValue_BoolValue added in v0.1.0

type CtyValue_BoolValue struct {
	BoolValue bool `protobuf:"varint,2,opt,name=boolValue,proto3,oneof"`
}

type CtyValue_ListValue added in v0.1.0

type CtyValue_ListValue struct {
	ListValue *CtyList `protobuf:"bytes,4,opt,name=listValue,proto3,oneof"`
}

type CtyValue_MapValue added in v0.1.0

type CtyValue_MapValue struct {
	MapValue *CtyMap `protobuf:"bytes,5,opt,name=mapValue,proto3,oneof"`
}

type CtyValue_NumberValue added in v0.1.0

type CtyValue_NumberValue struct {
	NumberValue float64 `protobuf:"fixed64,3,opt,name=numberValue,proto3,oneof"`
}

type CtyValue_StringValue added in v0.1.0

type CtyValue_StringValue struct {
	StringValue string `protobuf:"bytes,1,opt,name=stringValue,proto3,oneof"`
}

type Expression added in v0.1.0

type Expression struct {

	// Types that are assignable to ExpressionClause:
	//	*Expression_Asexpr
	//	*Expression_Boexpr
	//	*Expression_Cexpr
	//	*Expression_Fexpr
	//	*Expression_Fcexpr
	//	*Expression_Iexpr
	//	*Expression_Lvexpr
	//	*Expression_Ocexpr
	//	*Expression_Ockexpr
	//	*Expression_Pexpr
	//	*Expression_Rtexpr
	//	*Expression_Stexpr
	//	*Expression_Sexpr
	//	*Expression_Texpr
	//	*Expression_Tjexpr
	//	*Expression_Twexpr
	//	*Expression_Tcexpr
	//	*Expression_Uoexpr
	ExpressionClause isExpression_ExpressionClause `protobuf_oneof:"ExpressionClause"`
	// contains filtered or unexported fields
}

func BooleanToLiteralValueExpr added in v0.1.1

func BooleanToLiteralValueExpr(b bool) *Expression

func Float64ToLiteralValueExpr added in v0.1.1

func Float64ToLiteralValueExpr(f float64) *Expression

func Int64ToLiteralValueExpr added in v0.1.1

func Int64ToLiteralValueExpr(i int64) *Expression

func StringArrayToTupleConsEpr added in v0.1.1

func StringArrayToTupleConsEpr(items []string) *Expression

func StringMapToObjConsExpr added in v0.1.1

func StringMapToObjConsExpr(items map[string]string) *Expression

func StringToLiteralValueExpr added in v0.1.1

func StringToLiteralValueExpr(s string) *Expression

func StringToTextValueExpr added in v0.1.1

func StringToTextValueExpr(s string, force ...bool) *Expression

func StringToTraversal added in v0.1.1

func StringToTraversal(str string) *Expression

func (*Expression) Descriptor deprecated added in v0.1.0

func (*Expression) Descriptor() ([]byte, []int)

Deprecated: Use Expression.ProtoReflect.Descriptor instead.

func (*Expression) GetAsexpr added in v0.1.0

func (x *Expression) GetAsexpr() *AnonSymbolExpr

func (*Expression) GetBoexpr added in v0.1.0

func (x *Expression) GetBoexpr() *BinaryOpExpr

func (*Expression) GetCexpr added in v0.1.0

func (x *Expression) GetCexpr() *ConditionalExpr

func (*Expression) GetExpressionClause added in v0.1.0

func (m *Expression) GetExpressionClause() isExpression_ExpressionClause

func (*Expression) GetFcexpr added in v0.1.0

func (x *Expression) GetFcexpr() *FunctionCallExpr

func (*Expression) GetFexpr added in v0.1.0

func (x *Expression) GetFexpr() *ForExpr

func (*Expression) GetIexpr added in v0.1.0

func (x *Expression) GetIexpr() *IndexExpr

func (*Expression) GetLvexpr added in v0.1.0

func (x *Expression) GetLvexpr() *LiteralValueExpr

func (*Expression) GetOcexpr added in v0.1.0

func (x *Expression) GetOcexpr() *ObjectConsExpr

func (*Expression) GetOckexpr added in v0.1.0

func (x *Expression) GetOckexpr() *ObjectConsKeyExpr

func (*Expression) GetPexpr added in v0.1.0

func (x *Expression) GetPexpr() *ParenthesesExpr

func (*Expression) GetRtexpr added in v0.1.0

func (x *Expression) GetRtexpr() *RelativeTraversalExpr

func (*Expression) GetSexpr added in v0.1.0

func (x *Expression) GetSexpr() *SplatExpr

func (*Expression) GetStexpr added in v0.1.0

func (x *Expression) GetStexpr() *ScopeTraversalExpr

func (*Expression) GetTcexpr added in v0.1.0

func (x *Expression) GetTcexpr() *TupleConsExpr

func (*Expression) GetTexpr added in v0.1.0

func (x *Expression) GetTexpr() *TemplateExpr

func (*Expression) GetTjexpr added in v0.1.0

func (x *Expression) GetTjexpr() *TemplateJoinExpr

func (*Expression) GetTwexpr added in v0.1.0

func (x *Expression) GetTwexpr() *TemplateWrapExpr

func (*Expression) GetUoexpr added in v0.1.0

func (x *Expression) GetUoexpr() *UnaryOpExpr

func (*Expression) HclExpression added in v0.1.0

func (self *Expression) HclExpression(x ...interface{}) (string, error)

func (*Expression) ProtoMessage added in v0.1.0

func (*Expression) ProtoMessage()

func (*Expression) ProtoReflect added in v0.1.0

func (x *Expression) ProtoReflect() protoreflect.Message

func (*Expression) Reset added in v0.1.0

func (x *Expression) Reset()

func (*Expression) String added in v0.1.0

func (x *Expression) String() string

type Expression_Asexpr added in v0.1.0

type Expression_Asexpr struct {
	Asexpr *AnonSymbolExpr `protobuf:"bytes,1,opt,name=asexpr,proto3,oneof"`
}

type Expression_Boexpr added in v0.1.0

type Expression_Boexpr struct {
	Boexpr *BinaryOpExpr `protobuf:"bytes,2,opt,name=boexpr,proto3,oneof"`
}

type Expression_Cexpr added in v0.1.0

type Expression_Cexpr struct {
	Cexpr *ConditionalExpr `protobuf:"bytes,3,opt,name=cexpr,proto3,oneof"`
}

type Expression_Fcexpr added in v0.1.0

type Expression_Fcexpr struct {
	Fcexpr *FunctionCallExpr `protobuf:"bytes,5,opt,name=fcexpr,proto3,oneof"`
}

type Expression_Fexpr added in v0.1.0

type Expression_Fexpr struct {
	Fexpr *ForExpr `protobuf:"bytes,4,opt,name=fexpr,proto3,oneof"`
}

type Expression_Iexpr added in v0.1.0

type Expression_Iexpr struct {
	Iexpr *IndexExpr `protobuf:"bytes,6,opt,name=iexpr,proto3,oneof"`
}

type Expression_Lvexpr added in v0.1.0

type Expression_Lvexpr struct {
	Lvexpr *LiteralValueExpr `protobuf:"bytes,7,opt,name=lvexpr,proto3,oneof"`
}

type Expression_Ocexpr added in v0.1.0

type Expression_Ocexpr struct {
	Ocexpr *ObjectConsExpr `protobuf:"bytes,8,opt,name=ocexpr,proto3,oneof"`
}

type Expression_Ockexpr added in v0.1.0

type Expression_Ockexpr struct {
	Ockexpr *ObjectConsKeyExpr `protobuf:"bytes,9,opt,name=ockexpr,proto3,oneof"`
}

type Expression_Pexpr added in v0.1.0

type Expression_Pexpr struct {
	Pexpr *ParenthesesExpr `protobuf:"bytes,10,opt,name=pexpr,proto3,oneof"`
}

type Expression_Rtexpr added in v0.1.0

type Expression_Rtexpr struct {
	Rtexpr *RelativeTraversalExpr `protobuf:"bytes,11,opt,name=rtexpr,proto3,oneof"`
}

type Expression_Sexpr added in v0.1.0

type Expression_Sexpr struct {
	Sexpr *SplatExpr `protobuf:"bytes,13,opt,name=sexpr,proto3,oneof"`
}

type Expression_Stexpr added in v0.1.0

type Expression_Stexpr struct {
	Stexpr *ScopeTraversalExpr `protobuf:"bytes,12,opt,name=stexpr,proto3,oneof"`
}

type Expression_Tcexpr added in v0.1.0

type Expression_Tcexpr struct {
	Tcexpr *TupleConsExpr `protobuf:"bytes,17,opt,name=tcexpr,proto3,oneof"`
}

type Expression_Texpr added in v0.1.0

type Expression_Texpr struct {
	Texpr *TemplateExpr `protobuf:"bytes,14,opt,name=texpr,proto3,oneof"`
}

type Expression_Tjexpr added in v0.1.0

type Expression_Tjexpr struct {
	Tjexpr *TemplateJoinExpr `protobuf:"bytes,15,opt,name=tjexpr,proto3,oneof"`
}

type Expression_Twexpr added in v0.1.0

type Expression_Twexpr struct {
	Twexpr *TemplateWrapExpr `protobuf:"bytes,16,opt,name=twexpr,proto3,oneof"`
}

type Expression_Uoexpr added in v0.1.0

type Expression_Uoexpr struct {
	Uoexpr *UnaryOpExpr `protobuf:"bytes,18,opt,name=uoexpr,proto3,oneof"`
}

type File added in v0.1.0

type File struct {
	Bdy *Body  `protobuf:"bytes,1,opt,name=bdy,proto3" json:"bdy,omitempty"`
	Bts []byte `protobuf:"bytes,2,opt,name=bts,proto3" json:"bts,omitempty"`
	// contains filtered or unexported fields
}

func (*File) Descriptor deprecated added in v0.1.0

func (*File) Descriptor() ([]byte, []int)

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetBdy added in v0.1.0

func (x *File) GetBdy() *Body

func (*File) GetBts added in v0.1.0

func (x *File) GetBts() []byte

func (*File) ProtoMessage added in v0.1.0

func (*File) ProtoMessage()

func (*File) ProtoReflect added in v0.1.0

func (x *File) ProtoReflect() protoreflect.Message

func (*File) Reset added in v0.1.0

func (x *File) Reset()

func (*File) String added in v0.1.0

func (x *File) String() string

type ForExpr added in v0.1.0

type ForExpr struct {
	KeyVar   string      `protobuf:"bytes,1,opt,name=keyVar,proto3" json:"keyVar,omitempty"`
	ValVar   string      `protobuf:"bytes,2,opt,name=valVar,proto3" json:"valVar,omitempty"`
	CollExpr *Expression `protobuf:"bytes,3,opt,name=collExpr,proto3" json:"collExpr,omitempty"`
	KeyExpr  *Expression `protobuf:"bytes,4,opt,name=keyExpr,proto3" json:"keyExpr,omitempty"`
	ValExpr  *Expression `protobuf:"bytes,5,opt,name=valExpr,proto3" json:"valExpr,omitempty"`
	CondExpr *Expression `protobuf:"bytes,6,opt,name=condExpr,proto3" json:"condExpr,omitempty"`
	Grp      bool        `protobuf:"varint,7,opt,name=grp,proto3" json:"grp,omitempty"`
	// contains filtered or unexported fields
}

func (*ForExpr) Descriptor deprecated added in v0.1.0

func (*ForExpr) Descriptor() ([]byte, []int)

Deprecated: Use ForExpr.ProtoReflect.Descriptor instead.

func (*ForExpr) GetCollExpr added in v0.1.0

func (x *ForExpr) GetCollExpr() *Expression

func (*ForExpr) GetCondExpr added in v0.1.0

func (x *ForExpr) GetCondExpr() *Expression

func (*ForExpr) GetGrp added in v0.1.0

func (x *ForExpr) GetGrp() bool

func (*ForExpr) GetKeyExpr added in v0.1.0

func (x *ForExpr) GetKeyExpr() *Expression

func (*ForExpr) GetKeyVar added in v0.1.0

func (x *ForExpr) GetKeyVar() string

func (*ForExpr) GetValExpr added in v0.1.0

func (x *ForExpr) GetValExpr() *Expression

func (*ForExpr) GetValVar added in v0.1.0

func (x *ForExpr) GetValVar() string

func (*ForExpr) ProtoMessage added in v0.1.0

func (*ForExpr) ProtoMessage()

func (*ForExpr) ProtoReflect added in v0.1.0

func (x *ForExpr) ProtoReflect() protoreflect.Message

func (*ForExpr) Reset added in v0.1.0

func (x *ForExpr) Reset()

func (*ForExpr) String added in v0.1.0

func (x *ForExpr) String() string

type FunctionCallExpr added in v0.1.0

type FunctionCallExpr struct {
	Name string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Args []*Expression `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"`
	// If true, the final argument should be a tuple, list or set which will
	// expand to be one argument per element.
	ExpandFinal bool `protobuf:"varint,3,opt,name=expandFinal,proto3" json:"expandFinal,omitempty"`
	// contains filtered or unexported fields
}

func (*FunctionCallExpr) Descriptor deprecated added in v0.1.0

func (*FunctionCallExpr) Descriptor() ([]byte, []int)

Deprecated: Use FunctionCallExpr.ProtoReflect.Descriptor instead.

func (*FunctionCallExpr) GetArgs added in v0.1.0

func (x *FunctionCallExpr) GetArgs() []*Expression

func (*FunctionCallExpr) GetExpandFinal added in v0.1.0

func (x *FunctionCallExpr) GetExpandFinal() bool

func (*FunctionCallExpr) GetName added in v0.1.0

func (x *FunctionCallExpr) GetName() string

func (*FunctionCallExpr) ProtoMessage added in v0.1.0

func (*FunctionCallExpr) ProtoMessage()

func (*FunctionCallExpr) ProtoReflect added in v0.1.0

func (x *FunctionCallExpr) ProtoReflect() protoreflect.Message

func (*FunctionCallExpr) Reset added in v0.1.0

func (x *FunctionCallExpr) Reset()

func (*FunctionCallExpr) String added in v0.1.0

func (x *FunctionCallExpr) String() string

type IndexExpr added in v0.1.0

type IndexExpr struct {
	Collection *Expression `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	Key        *Expression `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*IndexExpr) Descriptor deprecated added in v0.1.0

func (*IndexExpr) Descriptor() ([]byte, []int)

Deprecated: Use IndexExpr.ProtoReflect.Descriptor instead.

func (*IndexExpr) GetCollection added in v0.1.0

func (x *IndexExpr) GetCollection() *Expression

func (*IndexExpr) GetKey added in v0.1.0

func (x *IndexExpr) GetKey() *Expression

func (*IndexExpr) ProtoMessage added in v0.1.0

func (*IndexExpr) ProtoMessage()

func (*IndexExpr) ProtoReflect added in v0.1.0

func (x *IndexExpr) ProtoReflect() protoreflect.Message

func (*IndexExpr) Reset added in v0.1.0

func (x *IndexExpr) Reset()

func (*IndexExpr) String added in v0.1.0

func (x *IndexExpr) String() string

type LiteralValueExpr added in v0.1.0

type LiteralValueExpr struct {
	Val *CtyValue `protobuf:"bytes,1,opt,name=val,proto3" json:"val,omitempty"`
	// contains filtered or unexported fields
}

func (*LiteralValueExpr) Descriptor deprecated added in v0.1.0

func (*LiteralValueExpr) Descriptor() ([]byte, []int)

Deprecated: Use LiteralValueExpr.ProtoReflect.Descriptor instead.

func (*LiteralValueExpr) GetVal added in v0.1.0

func (x *LiteralValueExpr) GetVal() *CtyValue

func (*LiteralValueExpr) ProtoMessage added in v0.1.0

func (*LiteralValueExpr) ProtoMessage()

func (*LiteralValueExpr) ProtoReflect added in v0.1.0

func (x *LiteralValueExpr) ProtoReflect() protoreflect.Message

func (*LiteralValueExpr) Reset added in v0.1.0

func (x *LiteralValueExpr) Reset()

func (*LiteralValueExpr) String added in v0.1.0

func (x *LiteralValueExpr) String() string

type ObjectConsExpr added in v0.1.0

type ObjectConsExpr struct {
	Items []*ObjectConsItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectConsExpr) Descriptor deprecated added in v0.1.0

func (*ObjectConsExpr) Descriptor() ([]byte, []int)

Deprecated: Use ObjectConsExpr.ProtoReflect.Descriptor instead.

func (*ObjectConsExpr) GetItems added in v0.1.0

func (x *ObjectConsExpr) GetItems() []*ObjectConsItem

func (*ObjectConsExpr) ProtoMessage added in v0.1.0

func (*ObjectConsExpr) ProtoMessage()

func (*ObjectConsExpr) ProtoReflect added in v0.1.0

func (x *ObjectConsExpr) ProtoReflect() protoreflect.Message

func (*ObjectConsExpr) Reset added in v0.1.0

func (x *ObjectConsExpr) Reset()

func (*ObjectConsExpr) String added in v0.1.0

func (x *ObjectConsExpr) String() string

func (*ObjectConsExpr) ToBody added in v0.1.0

func (self *ObjectConsExpr) ToBody() *Body

type ObjectConsItem added in v0.1.0

type ObjectConsItem struct {
	KeyExpr   *Expression `protobuf:"bytes,1,opt,name=keyExpr,proto3" json:"keyExpr,omitempty"`
	ValueExpr *Expression `protobuf:"bytes,2,opt,name=valueExpr,proto3" json:"valueExpr,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectConsItem) Descriptor deprecated added in v0.1.0

func (*ObjectConsItem) Descriptor() ([]byte, []int)

Deprecated: Use ObjectConsItem.ProtoReflect.Descriptor instead.

func (*ObjectConsItem) GetKeyExpr added in v0.1.0

func (x *ObjectConsItem) GetKeyExpr() *Expression

func (*ObjectConsItem) GetValueExpr added in v0.1.0

func (x *ObjectConsItem) GetValueExpr() *Expression

func (*ObjectConsItem) ProtoMessage added in v0.1.0

func (*ObjectConsItem) ProtoMessage()

func (*ObjectConsItem) ProtoReflect added in v0.1.0

func (x *ObjectConsItem) ProtoReflect() protoreflect.Message

func (*ObjectConsItem) Reset added in v0.1.0

func (x *ObjectConsItem) Reset()

func (*ObjectConsItem) String added in v0.1.0

func (x *ObjectConsItem) String() string

type ObjectConsKeyExpr added in v0.1.0

type ObjectConsKeyExpr struct {
	Wrapped         *Expression `protobuf:"bytes,1,opt,name=wrapped,proto3" json:"wrapped,omitempty"`
	ForceNonLiteral bool        `protobuf:"varint,2,opt,name=forceNonLiteral,proto3" json:"forceNonLiteral,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectConsKeyExpr) Descriptor deprecated added in v0.1.0

func (*ObjectConsKeyExpr) Descriptor() ([]byte, []int)

Deprecated: Use ObjectConsKeyExpr.ProtoReflect.Descriptor instead.

func (*ObjectConsKeyExpr) GetForceNonLiteral added in v0.1.0

func (x *ObjectConsKeyExpr) GetForceNonLiteral() bool

func (*ObjectConsKeyExpr) GetWrapped added in v0.1.0

func (x *ObjectConsKeyExpr) GetWrapped() *Expression

func (*ObjectConsKeyExpr) ProtoMessage added in v0.1.0

func (*ObjectConsKeyExpr) ProtoMessage()

func (*ObjectConsKeyExpr) ProtoReflect added in v0.1.0

func (x *ObjectConsKeyExpr) ProtoReflect() protoreflect.Message

func (*ObjectConsKeyExpr) Reset added in v0.1.0

func (x *ObjectConsKeyExpr) Reset()

func (*ObjectConsKeyExpr) String added in v0.1.0

func (x *ObjectConsKeyExpr) String() string

type Operation added in v0.1.0

type Operation struct {
	Impl *CtyFunction `protobuf:"bytes,1,opt,name=impl,proto3" json:"impl,omitempty"`
	Typ  CtyType      `protobuf:"varint,2,opt,name=typ,proto3,enum=light.CtyType" json:"typ,omitempty"`
	Sign TokenType    `protobuf:"varint,3,opt,name=sign,proto3,enum=light.TokenType" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

func (*Operation) Descriptor deprecated added in v0.1.0

func (*Operation) Descriptor() ([]byte, []int)

Deprecated: Use Operation.ProtoReflect.Descriptor instead.

func (*Operation) GetImpl added in v0.1.0

func (x *Operation) GetImpl() *CtyFunction

func (*Operation) GetSign added in v0.1.0

func (x *Operation) GetSign() TokenType

func (*Operation) GetTyp added in v0.1.0

func (x *Operation) GetTyp() CtyType

func (*Operation) ProtoMessage added in v0.1.0

func (*Operation) ProtoMessage()

func (*Operation) ProtoReflect added in v0.1.0

func (x *Operation) ProtoReflect() protoreflect.Message

func (*Operation) Reset added in v0.1.0

func (x *Operation) Reset()

func (*Operation) String added in v0.1.0

func (x *Operation) String() string

type ParenthesesExpr added in v0.1.0

type ParenthesesExpr struct {
	Expr *Expression `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"`
	// contains filtered or unexported fields
}

func (*ParenthesesExpr) Descriptor deprecated added in v0.1.0

func (*ParenthesesExpr) Descriptor() ([]byte, []int)

Deprecated: Use ParenthesesExpr.ProtoReflect.Descriptor instead.

func (*ParenthesesExpr) GetExpr added in v0.1.0

func (x *ParenthesesExpr) GetExpr() *Expression

func (*ParenthesesExpr) ProtoMessage added in v0.1.0

func (*ParenthesesExpr) ProtoMessage()

func (*ParenthesesExpr) ProtoReflect added in v0.1.0

func (x *ParenthesesExpr) ProtoReflect() protoreflect.Message

func (*ParenthesesExpr) Reset added in v0.1.0

func (x *ParenthesesExpr) Reset()

func (*ParenthesesExpr) String added in v0.1.0

func (x *ParenthesesExpr) String() string

type RelativeTraversalExpr added in v0.1.0

type RelativeTraversalExpr struct {
	Source    *Expression  `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Traversal []*Traverser `protobuf:"bytes,2,rep,name=traversal,proto3" json:"traversal,omitempty"`
	// contains filtered or unexported fields
}

func (*RelativeTraversalExpr) Descriptor deprecated added in v0.1.0

func (*RelativeTraversalExpr) Descriptor() ([]byte, []int)

Deprecated: Use RelativeTraversalExpr.ProtoReflect.Descriptor instead.

func (*RelativeTraversalExpr) GetSource added in v0.1.0

func (x *RelativeTraversalExpr) GetSource() *Expression

func (*RelativeTraversalExpr) GetTraversal added in v0.1.0

func (x *RelativeTraversalExpr) GetTraversal() []*Traverser

func (*RelativeTraversalExpr) ProtoMessage added in v0.1.0

func (*RelativeTraversalExpr) ProtoMessage()

func (*RelativeTraversalExpr) ProtoReflect added in v0.1.0

func (x *RelativeTraversalExpr) ProtoReflect() protoreflect.Message

func (*RelativeTraversalExpr) Reset added in v0.1.0

func (x *RelativeTraversalExpr) Reset()

func (*RelativeTraversalExpr) String added in v0.1.0

func (x *RelativeTraversalExpr) String() string

type ScopeTraversalExpr added in v0.1.0

type ScopeTraversalExpr struct {
	Traversal []*Traverser `protobuf:"bytes,1,rep,name=traversal,proto3" json:"traversal,omitempty"`
	// contains filtered or unexported fields
}

func (*ScopeTraversalExpr) Descriptor deprecated added in v0.1.0

func (*ScopeTraversalExpr) Descriptor() ([]byte, []int)

Deprecated: Use ScopeTraversalExpr.ProtoReflect.Descriptor instead.

func (*ScopeTraversalExpr) GetTraversal added in v0.1.0

func (x *ScopeTraversalExpr) GetTraversal() []*Traverser

func (*ScopeTraversalExpr) ProtoMessage added in v0.1.0

func (*ScopeTraversalExpr) ProtoMessage()

func (*ScopeTraversalExpr) ProtoReflect added in v0.1.0

func (x *ScopeTraversalExpr) ProtoReflect() protoreflect.Message

func (*ScopeTraversalExpr) Reset added in v0.1.0

func (x *ScopeTraversalExpr) Reset()

func (*ScopeTraversalExpr) String added in v0.1.0

func (x *ScopeTraversalExpr) String() string

type SplatExpr added in v0.1.0

type SplatExpr struct {
	Source *Expression     `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Each   *Expression     `protobuf:"bytes,2,opt,name=each,proto3" json:"each,omitempty"`
	Item   *AnonSymbolExpr `protobuf:"bytes,3,opt,name=item,proto3" json:"item,omitempty"`
	// contains filtered or unexported fields
}

func (*SplatExpr) Descriptor deprecated added in v0.1.0

func (*SplatExpr) Descriptor() ([]byte, []int)

Deprecated: Use SplatExpr.ProtoReflect.Descriptor instead.

func (*SplatExpr) GetEach added in v0.1.0

func (x *SplatExpr) GetEach() *Expression

func (*SplatExpr) GetItem added in v0.1.0

func (x *SplatExpr) GetItem() *AnonSymbolExpr

func (*SplatExpr) GetSource added in v0.1.0

func (x *SplatExpr) GetSource() *Expression

func (*SplatExpr) ProtoMessage added in v0.1.0

func (*SplatExpr) ProtoMessage()

func (*SplatExpr) ProtoReflect added in v0.1.0

func (x *SplatExpr) ProtoReflect() protoreflect.Message

func (*SplatExpr) Reset added in v0.1.0

func (x *SplatExpr) Reset()

func (*SplatExpr) String added in v0.1.0

func (x *SplatExpr) String() string

type TemplateExpr added in v0.1.0

type TemplateExpr struct {
	Parts []*Expression `protobuf:"bytes,1,rep,name=parts,proto3" json:"parts,omitempty"`
	// contains filtered or unexported fields
}

func (*TemplateExpr) Descriptor deprecated added in v0.1.0

func (*TemplateExpr) Descriptor() ([]byte, []int)

Deprecated: Use TemplateExpr.ProtoReflect.Descriptor instead.

func (*TemplateExpr) GetParts added in v0.1.0

func (x *TemplateExpr) GetParts() []*Expression

func (*TemplateExpr) ProtoMessage added in v0.1.0

func (*TemplateExpr) ProtoMessage()

func (*TemplateExpr) ProtoReflect added in v0.1.0

func (x *TemplateExpr) ProtoReflect() protoreflect.Message

func (*TemplateExpr) Reset added in v0.1.0

func (x *TemplateExpr) Reset()

func (*TemplateExpr) String added in v0.1.0

func (x *TemplateExpr) String() string

type TemplateJoinExpr added in v0.1.0

type TemplateJoinExpr struct {
	Tuple *Expression `protobuf:"bytes,1,opt,name=tuple,proto3" json:"tuple,omitempty"`
	// contains filtered or unexported fields
}

func (*TemplateJoinExpr) Descriptor deprecated added in v0.1.0

func (*TemplateJoinExpr) Descriptor() ([]byte, []int)

Deprecated: Use TemplateJoinExpr.ProtoReflect.Descriptor instead.

func (*TemplateJoinExpr) GetTuple added in v0.1.0

func (x *TemplateJoinExpr) GetTuple() *Expression

func (*TemplateJoinExpr) ProtoMessage added in v0.1.0

func (*TemplateJoinExpr) ProtoMessage()

func (*TemplateJoinExpr) ProtoReflect added in v0.1.0

func (x *TemplateJoinExpr) ProtoReflect() protoreflect.Message

func (*TemplateJoinExpr) Reset added in v0.1.0

func (x *TemplateJoinExpr) Reset()

func (*TemplateJoinExpr) String added in v0.1.0

func (x *TemplateJoinExpr) String() string

type TemplateWrapExpr added in v0.1.0

type TemplateWrapExpr struct {
	Wrapped *Expression `protobuf:"bytes,1,opt,name=wrapped,proto3" json:"wrapped,omitempty"`
	// contains filtered or unexported fields
}

func (*TemplateWrapExpr) Descriptor deprecated added in v0.1.0

func (*TemplateWrapExpr) Descriptor() ([]byte, []int)

Deprecated: Use TemplateWrapExpr.ProtoReflect.Descriptor instead.

func (*TemplateWrapExpr) GetWrapped added in v0.1.0

func (x *TemplateWrapExpr) GetWrapped() *Expression

func (*TemplateWrapExpr) ProtoMessage added in v0.1.0

func (*TemplateWrapExpr) ProtoMessage()

func (*TemplateWrapExpr) ProtoReflect added in v0.1.0

func (x *TemplateWrapExpr) ProtoReflect() protoreflect.Message

func (*TemplateWrapExpr) Reset added in v0.1.0

func (x *TemplateWrapExpr) Reset()

func (*TemplateWrapExpr) String added in v0.1.0

func (x *TemplateWrapExpr) String() string

type TokenType added in v0.1.0

type TokenType int32
const (
	TokenType_TokenUnknown    TokenType = 0
	TokenType_OBrace          TokenType = 1
	TokenType_CBrace          TokenType = 2
	TokenType_OBrack          TokenType = 3
	TokenType_CBrack          TokenType = 4
	TokenType_OParen          TokenType = 5
	TokenType_CParen          TokenType = 6
	TokenType_OQuote          TokenType = 7
	TokenType_CQuote          TokenType = 8
	TokenType_OHeredoc        TokenType = 9
	TokenType_CHeredoc        TokenType = 10
	TokenType_Star            TokenType = 11
	TokenType_Slash           TokenType = 12
	TokenType_Plus            TokenType = 13
	TokenType_Minus           TokenType = 14
	TokenType_Percent         TokenType = 15
	TokenType_Equal           TokenType = 16
	TokenType_EqualOp         TokenType = 17
	TokenType_NotEqual        TokenType = 18
	TokenType_LessThan        TokenType = 19
	TokenType_LessThanEq      TokenType = 20
	TokenType_GreaterThan     TokenType = 21
	TokenType_GreaterThanEq   TokenType = 22
	TokenType_And             TokenType = 23
	TokenType_Or              TokenType = 24
	TokenType_Bang            TokenType = 25
	TokenType_Dot             TokenType = 26
	TokenType_Comma           TokenType = 27
	TokenType_Ellipsis        TokenType = 28
	TokenType_FatArrow        TokenType = 29
	TokenType_Question        TokenType = 30
	TokenType_Colon           TokenType = 31
	TokenType_TemplateInterp  TokenType = 32
	TokenType_TemplateControl TokenType = 33
	TokenType_TemplateSeqEnd  TokenType = 34
	TokenType_QuotedLit       TokenType = 35
	TokenType_StringLit       TokenType = 36
	TokenType_NumberLit       TokenType = 37
	TokenType_Ident           TokenType = 38
	TokenType_Comment         TokenType = 39
	TokenType_Newline         TokenType = 40
	TokenType_EOF             TokenType = 41
	TokenType_BitwiseAnd      TokenType = 42
	TokenType_BitwiseOr       TokenType = 43
	TokenType_BitwiseNot      TokenType = 44
	TokenType_BitwiseXor      TokenType = 45
	TokenType_StarStar        TokenType = 46
	TokenType_Apostrophe      TokenType = 47
	TokenType_Backtick        TokenType = 48
	TokenType_Semicolon       TokenType = 49
	TokenType_Tabs            TokenType = 50
	TokenType_Invalid         TokenType = 51
	TokenType_BadUTF8         TokenType = 52
	TokenType_QuotedNewline   TokenType = 53
	TokenType_Nil             TokenType = 54
)

func (TokenType) Descriptor added in v0.1.0

func (TokenType) Descriptor() protoreflect.EnumDescriptor

func (TokenType) Enum added in v0.1.0

func (x TokenType) Enum() *TokenType

func (TokenType) EnumDescriptor deprecated added in v0.1.0

func (TokenType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TokenType.Descriptor instead.

func (TokenType) Number added in v0.1.0

func (x TokenType) Number() protoreflect.EnumNumber

func (TokenType) String added in v0.1.0

func (x TokenType) String() string

func (TokenType) Type added in v0.1.0

type TraverseAttr added in v0.1.0

type TraverseAttr struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*TraverseAttr) Descriptor deprecated added in v0.1.0

func (*TraverseAttr) Descriptor() ([]byte, []int)

Deprecated: Use TraverseAttr.ProtoReflect.Descriptor instead.

func (*TraverseAttr) GetName added in v0.1.0

func (x *TraverseAttr) GetName() string

func (*TraverseAttr) ProtoMessage added in v0.1.0

func (*TraverseAttr) ProtoMessage()

func (*TraverseAttr) ProtoReflect added in v0.1.0

func (x *TraverseAttr) ProtoReflect() protoreflect.Message

func (*TraverseAttr) Reset added in v0.1.0

func (x *TraverseAttr) Reset()

func (*TraverseAttr) String added in v0.1.0

func (x *TraverseAttr) String() string

type TraverseIndex added in v0.1.0

type TraverseIndex struct {
	Key *CtyValue `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*TraverseIndex) Descriptor deprecated added in v0.1.0

func (*TraverseIndex) Descriptor() ([]byte, []int)

Deprecated: Use TraverseIndex.ProtoReflect.Descriptor instead.

func (*TraverseIndex) GetKey added in v0.1.0

func (x *TraverseIndex) GetKey() *CtyValue

func (*TraverseIndex) ProtoMessage added in v0.1.0

func (*TraverseIndex) ProtoMessage()

func (*TraverseIndex) ProtoReflect added in v0.1.0

func (x *TraverseIndex) ProtoReflect() protoreflect.Message

func (*TraverseIndex) Reset added in v0.1.0

func (x *TraverseIndex) Reset()

func (*TraverseIndex) String added in v0.1.0

func (x *TraverseIndex) String() string

type TraverseRoot added in v0.1.0

type TraverseRoot struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*TraverseRoot) Descriptor deprecated added in v0.1.0

func (*TraverseRoot) Descriptor() ([]byte, []int)

Deprecated: Use TraverseRoot.ProtoReflect.Descriptor instead.

func (*TraverseRoot) GetName added in v0.1.0

func (x *TraverseRoot) GetName() string

func (*TraverseRoot) ProtoMessage added in v0.1.0

func (*TraverseRoot) ProtoMessage()

func (*TraverseRoot) ProtoReflect added in v0.1.0

func (x *TraverseRoot) ProtoReflect() protoreflect.Message

func (*TraverseRoot) Reset added in v0.1.0

func (x *TraverseRoot) Reset()

func (*TraverseRoot) String added in v0.1.0

func (x *TraverseRoot) String() string

type Traverser added in v0.1.0

type Traverser struct {

	// Types that are assignable to TraverserClause:
	//	*Traverser_TAttr
	//	*Traverser_TIndex
	//	*Traverser_TRoot
	TraverserClause isTraverser_TraverserClause `protobuf_oneof:"TraverserClause"`
	// contains filtered or unexported fields
}

func (*Traverser) Descriptor deprecated added in v0.1.0

func (*Traverser) Descriptor() ([]byte, []int)

Deprecated: Use Traverser.ProtoReflect.Descriptor instead.

func (*Traverser) GetTAttr added in v0.1.0

func (x *Traverser) GetTAttr() *TraverseAttr

func (*Traverser) GetTIndex added in v0.1.0

func (x *Traverser) GetTIndex() *TraverseIndex

func (*Traverser) GetTRoot added in v0.1.0

func (x *Traverser) GetTRoot() *TraverseRoot

func (*Traverser) GetTraverserClause added in v0.1.0

func (m *Traverser) GetTraverserClause() isTraverser_TraverserClause

func (*Traverser) ProtoMessage added in v0.1.0

func (*Traverser) ProtoMessage()

func (*Traverser) ProtoReflect added in v0.1.0

func (x *Traverser) ProtoReflect() protoreflect.Message

func (*Traverser) Reset added in v0.1.0

func (x *Traverser) Reset()

func (*Traverser) String added in v0.1.0

func (x *Traverser) String() string

type Traverser_TAttr added in v0.1.0

type Traverser_TAttr struct {
	TAttr *TraverseAttr `protobuf:"bytes,1,opt,name=tAttr,proto3,oneof"`
}

type Traverser_TIndex added in v0.1.0

type Traverser_TIndex struct {
	TIndex *TraverseIndex `protobuf:"bytes,2,opt,name=tIndex,proto3,oneof"`
}

type Traverser_TRoot added in v0.1.0

type Traverser_TRoot struct {
	TRoot *TraverseRoot `protobuf:"bytes,3,opt,name=tRoot,proto3,oneof"`
}

type TupleConsExpr added in v0.1.0

type TupleConsExpr struct {
	Exprs []*Expression `protobuf:"bytes,1,rep,name=exprs,proto3" json:"exprs,omitempty"`
	// contains filtered or unexported fields
}

func (*TupleConsExpr) Descriptor deprecated added in v0.1.0

func (*TupleConsExpr) Descriptor() ([]byte, []int)

Deprecated: Use TupleConsExpr.ProtoReflect.Descriptor instead.

func (*TupleConsExpr) GetExprs added in v0.1.0

func (x *TupleConsExpr) GetExprs() []*Expression

func (*TupleConsExpr) ProtoMessage added in v0.1.0

func (*TupleConsExpr) ProtoMessage()

func (*TupleConsExpr) ProtoReflect added in v0.1.0

func (x *TupleConsExpr) ProtoReflect() protoreflect.Message

func (*TupleConsExpr) Reset added in v0.1.0

func (x *TupleConsExpr) Reset()

func (*TupleConsExpr) String added in v0.1.0

func (x *TupleConsExpr) String() string

type UnaryOpExpr added in v0.1.0

type UnaryOpExpr struct {
	Op  *Operation  `protobuf:"bytes,1,opt,name=op,proto3" json:"op,omitempty"`
	Val *Expression `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"`
	// contains filtered or unexported fields
}

func (*UnaryOpExpr) Descriptor deprecated added in v0.1.0

func (*UnaryOpExpr) Descriptor() ([]byte, []int)

Deprecated: Use UnaryOpExpr.ProtoReflect.Descriptor instead.

func (*UnaryOpExpr) GetOp added in v0.1.0

func (x *UnaryOpExpr) GetOp() *Operation

func (*UnaryOpExpr) GetVal added in v0.1.0

func (x *UnaryOpExpr) GetVal() *Expression

func (*UnaryOpExpr) ProtoMessage added in v0.1.0

func (*UnaryOpExpr) ProtoMessage()

func (*UnaryOpExpr) ProtoReflect added in v0.1.0

func (x *UnaryOpExpr) ProtoReflect() protoreflect.Message

func (*UnaryOpExpr) Reset added in v0.1.0

func (x *UnaryOpExpr) Reset()

func (*UnaryOpExpr) String added in v0.1.0

func (x *UnaryOpExpr) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL