types

package
Version: v0.26.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter added in v0.25.0

type Adapter interface {
	BuildQuery(*Filter) (interface{}, error)
	ExecuteQuery(interface{}) ([]interface{}, error)
}

type Call

type Call struct {
	// Name
	Name Symbol `json:"name"`
	// Args
	Args []Term `json:"args"`
	// Kwargs
	Kwargs *map[Symbol]Term `json:"kwargs"`
}

type Comparison added in v0.25.0

type Comparison int
const (
	Eq Comparison = iota
	Neq
	In
)

func (*Comparison) UnmarshalJSON added in v0.25.0

func (comparison *Comparison) UnmarshalJSON(b []byte) error

type Datum added in v0.25.0

type Datum struct {
	DatumVariant
}

func (*Datum) UnmarshalJSON added in v0.25.0

func (datum *Datum) UnmarshalJSON(b []byte) error

type DatumVariant added in v0.25.0

type DatumVariant interface {
	// contains filtered or unexported methods
}

type Declaration added in v0.25.0

type Declaration struct {
	DeclarationVariant
}

func (Declaration) MarshalJSON added in v0.25.0

func (variant Declaration) MarshalJSON() ([]byte, error)

func (*Declaration) UnmarshalJSON added in v0.25.0

func (result *Declaration) UnmarshalJSON(b []byte) error

type DeclarationPermission added in v0.25.0

type DeclarationPermission struct{}

type DeclarationRelation added in v0.25.0

type DeclarationRelation Term

DeclarationRelation newtype

func (DeclarationRelation) MarshalJSON added in v0.25.0

func (variant DeclarationRelation) MarshalJSON() ([]byte, error)

func (*DeclarationRelation) UnmarshalJSON added in v0.25.0

func (variant *DeclarationRelation) UnmarshalJSON(b []byte) error

type DeclarationRole added in v0.25.0

type DeclarationRole struct{}

type DeclarationVariant added in v0.25.0

type DeclarationVariant interface {
	// contains filtered or unexported methods
}

Declaration enum

type Dictionary

type Dictionary struct {
	// Fields
	Fields map[Symbol]Term `json:"fields"`
}

Dictionary struct

type ErrorKind

type ErrorKind struct {
	ErrorKindVariant
}

func (ErrorKind) MarshalJSON

func (variant ErrorKind) MarshalJSON() ([]byte, error)

func (*ErrorKind) UnmarshalJSON

func (result *ErrorKind) UnmarshalJSON(b []byte) error

type ErrorKindOperational

type ErrorKindOperational OperationalError

ErrorKindOperational newtype

func (ErrorKindOperational) MarshalJSON

func (variant ErrorKindOperational) MarshalJSON() ([]byte, error)

func (*ErrorKindOperational) UnmarshalJSON

func (variant *ErrorKindOperational) UnmarshalJSON(b []byte) error

type ErrorKindParse

type ErrorKindParse ParseErrorKind

ErrorKindParse newtype

func (ErrorKindParse) MarshalJSON

func (variant ErrorKindParse) MarshalJSON() ([]byte, error)

func (*ErrorKindParse) UnmarshalJSON

func (variant *ErrorKindParse) UnmarshalJSON(b []byte) error

type ErrorKindRuntime

type ErrorKindRuntime RuntimeError

ErrorKindRuntime newtype

func (ErrorKindRuntime) MarshalJSON

func (variant ErrorKindRuntime) MarshalJSON() ([]byte, error)

func (*ErrorKindRuntime) UnmarshalJSON

func (variant *ErrorKindRuntime) UnmarshalJSON(b []byte) error

type ErrorKindValidation added in v0.20.1

type ErrorKindValidation ValidationError

ErrorKindValidation newtype

func (ErrorKindValidation) MarshalJSON added in v0.20.1

func (variant ErrorKindValidation) MarshalJSON() ([]byte, error)

func (*ErrorKindValidation) UnmarshalJSON added in v0.20.1

func (variant *ErrorKindValidation) UnmarshalJSON(b []byte) error

type ErrorKindVariant

type ErrorKindVariant interface {
	// contains filtered or unexported methods
}

ErrorKind enum

type Expression added in v0.24.0

type Expression struct {
	Operator Operator
	Args     []interface{}
}

type ExternalInstance

type ExternalInstance struct {
	// InstanceId
	InstanceId uint64 `json:"instance_id"`
	// Constructor
	Constructor *Term `json:"constructor"`
	// Repr
	Repr *string `json:"repr"`
	// ClassRepr
	ClassRepr *string `json:"class_repr"`
}

ExternalInstance struct

type Filter added in v0.25.0

type Filter struct {
	// Root
	Root string `json:"root"`
	// Relations
	Relations []FilterRelation `json:"relations"`
	// Conditions
	Conditions [][]FilterCondition `json:"conditions"`
	// Types
	Types map[string]map[string]interface{}
}

type FilterCondition added in v0.25.0

type FilterCondition struct {
	Lhs Datum
	Cmp Comparison
	Rhs Datum
}

func (*FilterCondition) UnmarshalJSON added in v0.25.0

func (relation *FilterCondition) UnmarshalJSON(b []byte) error

type FilterRelation added in v0.25.0

type FilterRelation struct {
	FromTypeName  string
	FromFieldName string
	ToTypeName    string
}

func (*FilterRelation) UnmarshalJSON added in v0.25.0

func (relation *FilterRelation) UnmarshalJSON(b []byte) error

type FormattedPolarError added in v0.22.1

type FormattedPolarError struct {
	// Kind
	Kind ErrorKind `json:"kind"`
	// Formatted
	Formatted string `json:"formatted"`
}

FormattedPolarError struct

type Immediate added in v0.25.0

type Immediate struct {
	Value interface{}
}

type InstanceLiteral

type InstanceLiteral struct {
	// Tag
	Tag Symbol `json:"tag"`
	// Fields
	Fields Dictionary `json:"fields"`
}

InstanceLiteral struct

type Message

type Message struct {
	// Kind
	Kind MessageKind `json:"kind"`
	// Msg
	Msg string `json:"msg"`
}

Message struct

type MessageKind

type MessageKind struct {
	MessageKindVariant
}

func (MessageKind) MarshalJSON

func (variant MessageKind) MarshalJSON() ([]byte, error)

func (*MessageKind) UnmarshalJSON

func (result *MessageKind) UnmarshalJSON(b []byte) error

type MessageKindPrint

type MessageKindPrint struct{}

type MessageKindVariant

type MessageKindVariant interface {
	// contains filtered or unexported methods
}

MessageKind enum

type MessageKindWarning

type MessageKindWarning struct{}

type Node

type Node struct {
	NodeVariant
}

func (Node) MarshalJSON

func (variant Node) MarshalJSON() ([]byte, error)

func (*Node) UnmarshalJSON

func (result *Node) UnmarshalJSON(b []byte) error

type NodeRule

type NodeRule Rule

NodeRule newtype

func (NodeRule) MarshalJSON

func (variant NodeRule) MarshalJSON() ([]byte, error)

func (*NodeRule) UnmarshalJSON

func (variant *NodeRule) UnmarshalJSON(b []byte) error

type NodeTerm

type NodeTerm Term

NodeTerm newtype

func (NodeTerm) MarshalJSON

func (variant NodeTerm) MarshalJSON() ([]byte, error)

func (*NodeTerm) UnmarshalJSON

func (variant *NodeTerm) UnmarshalJSON(b []byte) error

type NodeVariant

type NodeVariant interface {
	// contains filtered or unexported methods
}

Node enum

type Numeric

type Numeric struct {
	NumericVariant
}

func (Numeric) MarshalJSON

func (variant Numeric) MarshalJSON() ([]byte, error)

func (*Numeric) UnmarshalJSON

func (result *Numeric) UnmarshalJSON(b []byte) error

type NumericFloat

type NumericFloat float64

NumericFloat newtype

func (NumericFloat) MarshalJSON

func (variant NumericFloat) MarshalJSON() ([]byte, error)

func (*NumericFloat) UnmarshalJSON

func (variant *NumericFloat) UnmarshalJSON(b []byte) error

type NumericInteger

type NumericInteger int64

NumericInteger newtype

func (NumericInteger) MarshalJSON

func (variant NumericInteger) MarshalJSON() ([]byte, error)

func (*NumericInteger) UnmarshalJSON

func (variant *NumericInteger) UnmarshalJSON(b []byte) error

type NumericVariant

type NumericVariant interface {
	// contains filtered or unexported methods
}

Numeric enum

type Operation

type Operation struct {
	// Operator
	Operator Operator `json:"operator"`
	// Args
	Args []Term `json:"args"`
}

Operation struct

type OperationalError

type OperationalError struct {
	OperationalErrorVariant
}

func (OperationalError) MarshalJSON

func (variant OperationalError) MarshalJSON() ([]byte, error)

func (*OperationalError) UnmarshalJSON

func (result *OperationalError) UnmarshalJSON(b []byte) error

type OperationalErrorInvalidState

type OperationalErrorInvalidState struct {
	// Msg
	Msg string `json:"msg"`
}

OperationalErrorInvalidState struct

type OperationalErrorSerialization added in v0.23.0

type OperationalErrorSerialization struct {
	// Msg
	Msg string `json:"msg"`
}

OperationalErrorSerialization struct

type OperationalErrorUnexpectedValue added in v0.26.0

type OperationalErrorUnexpectedValue struct {
	// Received
	Received Term `json:"received"`
}

OperationalErrorUnexpectedValue struct

type OperationalErrorUnknown

type OperationalErrorUnknown struct{}

type OperationalErrorVariant

type OperationalErrorVariant interface {
	// contains filtered or unexported methods
}

OperationalError enum

type Operator

type Operator struct {
	OperatorVariant
}

func (Operator) MarshalJSON

func (variant Operator) MarshalJSON() ([]byte, error)

func (*Operator) UnmarshalJSON

func (result *Operator) UnmarshalJSON(b []byte) error

type OperatorAdd

type OperatorAdd struct{}

type OperatorAnd

type OperatorAnd struct{}

type OperatorAssign

type OperatorAssign struct{}

type OperatorCut

type OperatorCut struct{}

type OperatorDebug

type OperatorDebug struct{}

type OperatorDiv

type OperatorDiv struct{}

type OperatorDot

type OperatorDot struct{}

type OperatorEq

type OperatorEq struct{}

type OperatorForAll

type OperatorForAll struct{}

type OperatorGeq

type OperatorGeq struct{}

type OperatorGt

type OperatorGt struct{}

type OperatorIn

type OperatorIn struct{}

type OperatorIsa

type OperatorIsa struct{}

type OperatorLeq

type OperatorLeq struct{}

type OperatorLt

type OperatorLt struct{}

type OperatorMod

type OperatorMod struct{}

type OperatorMul

type OperatorMul struct{}

type OperatorNeq

type OperatorNeq struct{}

type OperatorNew

type OperatorNew struct{}

type OperatorNot

type OperatorNot struct{}

type OperatorOr

type OperatorOr struct{}

type OperatorPrint

type OperatorPrint struct{}

type OperatorRem

type OperatorRem struct{}

type OperatorSub

type OperatorSub struct{}

type OperatorUnify

type OperatorUnify struct{}

type OperatorVariant

type OperatorVariant interface {
	// contains filtered or unexported methods
}

Operator enum

type Parameter

type Parameter struct {
	// Parameter
	Parameter Term `json:"parameter"`
	// Specializer
	Specializer *Term `json:"specializer"`
}

Parameter struct

type ParseErrorKind added in v0.26.0

type ParseErrorKind struct {
	ParseErrorKindVariant
}

func (ParseErrorKind) MarshalJSON added in v0.26.0

func (variant ParseErrorKind) MarshalJSON() ([]byte, error)

func (*ParseErrorKind) UnmarshalJSON added in v0.26.0

func (result *ParseErrorKind) UnmarshalJSON(b []byte) error

type ParseErrorKindDuplicateKey added in v0.26.0

type ParseErrorKindDuplicateKey struct {
	// Loc
	Loc uint64 `json:"loc"`
	// Key
	Key string `json:"key"`
}

ParseErrorKindDuplicateKey struct

type ParseErrorKindExtraToken added in v0.26.0

type ParseErrorKindExtraToken struct {
	// Token
	Token string `json:"token"`
	// Loc
	Loc uint64 `json:"loc"`
}

ParseErrorKindExtraToken struct

type ParseErrorKindIntegerOverflow added in v0.26.0

type ParseErrorKindIntegerOverflow struct {
	// Token
	Token string `json:"token"`
	// Loc
	Loc uint64 `json:"loc"`
}

ParseErrorKindIntegerOverflow struct

type ParseErrorKindInvalidFloat added in v0.26.0

type ParseErrorKindInvalidFloat struct {
	// Token
	Token string `json:"token"`
	// Loc
	Loc uint64 `json:"loc"`
}

ParseErrorKindInvalidFloat struct

type ParseErrorKindInvalidToken added in v0.26.0

type ParseErrorKindInvalidToken struct {
	// Loc
	Loc uint64 `json:"loc"`
}

ParseErrorKindInvalidToken struct

type ParseErrorKindInvalidTokenCharacter added in v0.26.0

type ParseErrorKindInvalidTokenCharacter struct {
	// Token
	Token string `json:"token"`
	// C
	C string `json:"c"`
	// Loc
	Loc uint64 `json:"loc"`
}

ParseErrorKindInvalidTokenCharacter struct

type ParseErrorKindReservedWord added in v0.26.0

type ParseErrorKindReservedWord struct {
	// Token
	Token string `json:"token"`
	// Loc
	Loc uint64 `json:"loc"`
}

ParseErrorKindReservedWord struct

type ParseErrorKindUnrecognizedEOF added in v0.26.0

type ParseErrorKindUnrecognizedEOF struct {
	// Loc
	Loc uint64 `json:"loc"`
}

ParseErrorKindUnrecognizedEOF struct

type ParseErrorKindUnrecognizedToken added in v0.26.0

type ParseErrorKindUnrecognizedToken struct {
	// Token
	Token string `json:"token"`
	// Loc
	Loc uint64 `json:"loc"`
}

ParseErrorKindUnrecognizedToken struct

type ParseErrorKindVariant added in v0.26.0

type ParseErrorKindVariant interface {
	// contains filtered or unexported methods
}

ParseErrorKind enum

type ParseErrorKindWrongValueType added in v0.26.0

type ParseErrorKindWrongValueType struct {
	// Loc
	Loc uint64 `json:"loc"`
	// Term
	Term Term `json:"term"`
	// Expected
	Expected string `json:"expected"`
}

ParseErrorKindWrongValueType struct

type Pattern

type Pattern struct {
	PatternVariant
}

func (Pattern) MarshalJSON

func (variant Pattern) MarshalJSON() ([]byte, error)

func (*Pattern) UnmarshalJSON

func (result *Pattern) UnmarshalJSON(b []byte) error

type PatternDictionary

type PatternDictionary Dictionary

PatternDictionary newtype

func (PatternDictionary) MarshalJSON

func (variant PatternDictionary) MarshalJSON() ([]byte, error)

func (*PatternDictionary) UnmarshalJSON

func (variant *PatternDictionary) UnmarshalJSON(b []byte) error

type PatternInstance

type PatternInstance InstanceLiteral

PatternInstance newtype

func (PatternInstance) MarshalJSON

func (variant PatternInstance) MarshalJSON() ([]byte, error)

func (*PatternInstance) UnmarshalJSON

func (variant *PatternInstance) UnmarshalJSON(b []byte) error

type PatternVariant

type PatternVariant interface {
	// contains filtered or unexported methods
}

Pattern enum

type Projection added in v0.25.0

type Projection struct {
	TypeName  string
	FieldName string
}

func (*Projection) UnmarshalJSON added in v0.25.0

func (proj *Projection) UnmarshalJSON(b []byte) error

type QueryEvent

type QueryEvent struct {
	QueryEventVariant
}

func (QueryEvent) MarshalJSON

func (variant QueryEvent) MarshalJSON() ([]byte, error)

func (*QueryEvent) UnmarshalJSON

func (result *QueryEvent) UnmarshalJSON(b []byte) error

type QueryEventDebug

type QueryEventDebug struct {
	// Message
	Message string `json:"message"`
}

QueryEventDebug struct

type QueryEventDone

type QueryEventDone struct {
	// Result
	Result bool `json:"result"`
}

QueryEventDone struct

type QueryEventExternalCall

type QueryEventExternalCall struct {
	// CallId
	CallId uint64 `json:"call_id"`
	// Instance
	Instance Term `json:"instance"`
	// Attribute
	Attribute Symbol `json:"attribute"`
	// Args
	Args *[]Term `json:"args"`
	// Kwargs
	Kwargs *map[Symbol]Term `json:"kwargs"`
}

QueryEventExternalCall struct

type QueryEventExternalIsSubSpecializer

type QueryEventExternalIsSubSpecializer struct {
	// CallId
	CallId uint64 `json:"call_id"`
	// InstanceId
	InstanceId uint64 `json:"instance_id"`
	// LeftClassTag
	LeftClassTag Symbol `json:"left_class_tag"`
	// RightClassTag
	RightClassTag Symbol `json:"right_class_tag"`
}

QueryEventExternalIsSubSpecializer struct

type QueryEventExternalIsSubclass

type QueryEventExternalIsSubclass struct {
	// CallId
	CallId uint64 `json:"call_id"`
	// LeftClassTag
	LeftClassTag Symbol `json:"left_class_tag"`
	// RightClassTag
	RightClassTag Symbol `json:"right_class_tag"`
}

QueryEventExternalIsSubclass struct

type QueryEventExternalIsa

type QueryEventExternalIsa struct {
	// CallId
	CallId uint64 `json:"call_id"`
	// Instance
	Instance Term `json:"instance"`
	// ClassTag
	ClassTag Symbol `json:"class_tag"`
}

QueryEventExternalIsa struct

type QueryEventExternalIsaWithPath added in v0.22.1

type QueryEventExternalIsaWithPath struct {
	// CallId
	CallId uint64 `json:"call_id"`
	// BaseTag
	BaseTag Symbol `json:"base_tag"`
	// Path
	Path []Term `json:"path"`
	// ClassTag
	ClassTag Symbol `json:"class_tag"`
}

QueryEventExternalIsaWithPath struct

type QueryEventExternalOp

type QueryEventExternalOp struct {
	// CallId
	CallId uint64 `json:"call_id"`
	// Operator
	Operator Operator `json:"operator"`
	// Args
	Args []Term `json:"args"`
}

QueryEventExternalOp struct

type QueryEventMakeExternal

type QueryEventMakeExternal struct {
	// InstanceId
	InstanceId uint64 `json:"instance_id"`
	// Constructor
	Constructor Term `json:"constructor"`
}

QueryEventMakeExternal struct

type QueryEventNextExternal

type QueryEventNextExternal struct {
	// CallId
	CallId uint64 `json:"call_id"`
	// Iterable
	Iterable Term `json:"iterable"`
}

QueryEventNextExternal struct

type QueryEventNone

type QueryEventNone struct{}

type QueryEventResult

type QueryEventResult struct {
	// Bindings
	Bindings map[Symbol]Term `json:"bindings"`
	// Trace
	Trace *TraceResult `json:"trace"`
}

QueryEventResult struct

type QueryEventVariant

type QueryEventVariant interface {
	// contains filtered or unexported methods
}

QueryEvent enum

type Relation added in v0.25.0

type Relation struct {
	Kind       string // maybe this should be an enum
	OtherType  string
	MyField    string
	OtherField string
}

type Rule

type Rule struct {
	// Name
	Name Symbol `json:"name"`
	// Params
	Params []Parameter `json:"params"`
	// Body
	Body Term `json:"body"`
	// Required
	Required bool `json:"required"`
}

Rule struct

type RuntimeError

type RuntimeError struct {
	RuntimeErrorVariant
}

func (RuntimeError) MarshalJSON

func (variant RuntimeError) MarshalJSON() ([]byte, error)

func (*RuntimeError) UnmarshalJSON

func (result *RuntimeError) UnmarshalJSON(b []byte) error

type RuntimeErrorApplication

type RuntimeErrorApplication struct {
	// Msg
	Msg string `json:"msg"`
	// StackTrace
	StackTrace string `json:"stack_trace"`
	// Term
	Term *Term `json:"term"`
}

RuntimeErrorApplication struct

type RuntimeErrorArithmeticError

type RuntimeErrorArithmeticError struct {
	// Term
	Term Term `json:"term"`
}

RuntimeErrorArithmeticError struct

type RuntimeErrorDataFilteringFieldMissing added in v0.23.0

type RuntimeErrorDataFilteringFieldMissing struct {
	// VarType
	VarType string `json:"var_type"`
	// Field
	Field string `json:"field"`
}

RuntimeErrorDataFilteringFieldMissing struct

type RuntimeErrorDataFilteringUnsupportedOp added in v0.25.0

type RuntimeErrorDataFilteringUnsupportedOp struct {
	// Operation
	Operation Operation `json:"operation"`
}

RuntimeErrorDataFilteringUnsupportedOp struct

type RuntimeErrorIncompatibleBindings added in v0.22.1

type RuntimeErrorIncompatibleBindings struct {
	// Msg
	Msg string `json:"msg"`
}

RuntimeErrorIncompatibleBindings struct

type RuntimeErrorInvalidRegistration added in v0.24.0

type RuntimeErrorInvalidRegistration struct {
	// Sym
	Sym Symbol `json:"sym"`
	// Msg
	Msg string `json:"msg"`
}

RuntimeErrorInvalidRegistration struct

type RuntimeErrorMultipleLoadError added in v0.25.0

type RuntimeErrorMultipleLoadError struct{}

type RuntimeErrorQueryForUndefinedRule added in v0.25.1

type RuntimeErrorQueryForUndefinedRule struct {
	// Name
	Name string `json:"name"`
}

RuntimeErrorQueryForUndefinedRule struct

type RuntimeErrorQueryTimeout

type RuntimeErrorQueryTimeout struct {
	// Elapsed
	Elapsed uint64 `json:"elapsed"`
	// Timeout
	Timeout uint64 `json:"timeout"`
}

RuntimeErrorQueryTimeout struct

type RuntimeErrorStackOverflow

type RuntimeErrorStackOverflow struct {
	// Msg
	Msg string `json:"msg"`
}

RuntimeErrorStackOverflow struct

type RuntimeErrorTypeError

type RuntimeErrorTypeError struct {
	// Msg
	Msg string `json:"msg"`
	// StackTrace
	StackTrace string `json:"stack_trace"`
	// Term
	Term Term `json:"term"`
}

RuntimeErrorTypeError struct

type RuntimeErrorUnhandledPartial added in v0.22.1

type RuntimeErrorUnhandledPartial struct {
	// Var
	Var Symbol `json:"var"`
	// Term
	Term Term `json:"term"`
}

RuntimeErrorUnhandledPartial struct

type RuntimeErrorUnsupported

type RuntimeErrorUnsupported struct {
	// Msg
	Msg string `json:"msg"`
	// Term
	Term Term `json:"term"`
}

RuntimeErrorUnsupported struct

type RuntimeErrorVariant

type RuntimeErrorVariant interface {
	// contains filtered or unexported methods
}

RuntimeError enum

type Source added in v0.20.1

type Source struct {
	// Filename
	Filename *string `json:"filename"`
	// Src
	Src string `json:"src"`
}

Source struct

type Symbol

type Symbol string

Symbol newtype

func (Symbol) MarshalJSON

func (variant Symbol) MarshalJSON() ([]byte, error)

func (*Symbol) UnmarshalJSON

func (variant *Symbol) UnmarshalJSON(b []byte) error

type Term

type Term struct {
	// Value
	Value Value `json:"value"`
}

Term struct

type Trace

type Trace struct {
	// Node
	Node Node `json:"node"`
	// Children
	Children []Trace `json:"children"`
}

Trace struct

type TraceResult

type TraceResult struct {
	// Trace
	Trace Trace `json:"trace"`
	// Formatted
	Formatted string `json:"formatted"`
}

TraceResult struct

type ValidationError added in v0.20.1

type ValidationError struct {
	ValidationErrorVariant
}

func (ValidationError) MarshalJSON added in v0.20.1

func (variant ValidationError) MarshalJSON() ([]byte, error)

func (*ValidationError) UnmarshalJSON added in v0.20.1

func (result *ValidationError) UnmarshalJSON(b []byte) error

type ValidationErrorDuplicateResourceBlockDeclaration added in v0.25.0

type ValidationErrorDuplicateResourceBlockDeclaration struct {
	// Resource
	Resource Term `json:"resource"`
	// Declaration
	Declaration Term `json:"declaration"`
	// Existing
	Existing Declaration `json:"existing"`
	// New
	New Declaration `json:"new"`
}

ValidationErrorDuplicateResourceBlockDeclaration struct

type ValidationErrorFileLoading added in v0.25.0

type ValidationErrorFileLoading struct {
	// Filename
	Filename string `json:"filename"`
	// Contents
	Contents string `json:"contents"`
	// Msg
	Msg string `json:"msg"`
}

ValidationErrorFileLoading struct

type ValidationErrorInvalidRule added in v0.20.1

type ValidationErrorInvalidRule struct {
	// Rule
	Rule Rule `json:"rule"`
	// Msg
	Msg string `json:"msg"`
}

ValidationErrorInvalidRule struct

type ValidationErrorInvalidRuleType added in v0.20.1

type ValidationErrorInvalidRuleType struct {
	// RuleType
	RuleType Rule `json:"rule_type"`
	// Msg
	Msg string `json:"msg"`
}

ValidationErrorInvalidRuleType struct

type ValidationErrorMissingRequiredRule added in v0.23.0

type ValidationErrorMissingRequiredRule struct {
	// RuleType
	RuleType Rule `json:"rule_type"`
}

ValidationErrorMissingRequiredRule struct

type ValidationErrorResourceBlock added in v0.23.0

type ValidationErrorResourceBlock struct {
	// Term
	Term Term `json:"term"`
	// Msg
	Msg string `json:"msg"`
}

ValidationErrorResourceBlock struct

type ValidationErrorSingletonVariable added in v0.23.0

type ValidationErrorSingletonVariable struct {
	// Term
	Term Term `json:"term"`
}

ValidationErrorSingletonVariable struct

type ValidationErrorUndefinedRuleCall added in v0.24.0

type ValidationErrorUndefinedRuleCall struct {
	// Term
	Term Term `json:"term"`
}

ValidationErrorUndefinedRuleCall struct

type ValidationErrorUnregisteredClass added in v0.23.0

type ValidationErrorUnregisteredClass struct {
	// Term
	Term Term `json:"term"`
}

ValidationErrorUnregisteredClass struct

type ValidationErrorVariant added in v0.20.1

type ValidationErrorVariant interface {
	// contains filtered or unexported methods
}

ValidationError enum

type Value

type Value struct {
	ValueVariant
}

func (Value) MarshalJSON

func (variant Value) MarshalJSON() ([]byte, error)

func (*Value) UnmarshalJSON

func (result *Value) UnmarshalJSON(b []byte) error

type ValueBoolean

type ValueBoolean bool

ValueBoolean newtype

func (ValueBoolean) MarshalJSON

func (variant ValueBoolean) MarshalJSON() ([]byte, error)

func (*ValueBoolean) UnmarshalJSON

func (variant *ValueBoolean) UnmarshalJSON(b []byte) error

type ValueCall

type ValueCall Call

ValueCall newtype

func (ValueCall) MarshalJSON

func (variant ValueCall) MarshalJSON() ([]byte, error)

func (*ValueCall) UnmarshalJSON

func (variant *ValueCall) UnmarshalJSON(b []byte) error

type ValueDictionary

type ValueDictionary Dictionary

ValueDictionary newtype

func (ValueDictionary) MarshalJSON

func (variant ValueDictionary) MarshalJSON() ([]byte, error)

func (*ValueDictionary) UnmarshalJSON

func (variant *ValueDictionary) UnmarshalJSON(b []byte) error

type ValueExpression

type ValueExpression Operation

ValueExpression newtype

func (ValueExpression) MarshalJSON

func (variant ValueExpression) MarshalJSON() ([]byte, error)

func (*ValueExpression) UnmarshalJSON

func (variant *ValueExpression) UnmarshalJSON(b []byte) error

type ValueExternalInstance

type ValueExternalInstance ExternalInstance

ValueExternalInstance newtype

func (ValueExternalInstance) MarshalJSON

func (variant ValueExternalInstance) MarshalJSON() ([]byte, error)

func (*ValueExternalInstance) UnmarshalJSON

func (variant *ValueExternalInstance) UnmarshalJSON(b []byte) error

type ValueList

type ValueList []Term

ValueList newtype

func (ValueList) MarshalJSON

func (variant ValueList) MarshalJSON() ([]byte, error)

func (*ValueList) UnmarshalJSON

func (variant *ValueList) UnmarshalJSON(b []byte) error

type ValueNumber

type ValueNumber Numeric

ValueNumber newtype

func (ValueNumber) MarshalJSON

func (variant ValueNumber) MarshalJSON() ([]byte, error)

func (*ValueNumber) UnmarshalJSON

func (variant *ValueNumber) UnmarshalJSON(b []byte) error

type ValuePattern

type ValuePattern Pattern

ValuePattern newtype

func (ValuePattern) MarshalJSON

func (variant ValuePattern) MarshalJSON() ([]byte, error)

func (*ValuePattern) UnmarshalJSON

func (variant *ValuePattern) UnmarshalJSON(b []byte) error

type ValueRestVariable

type ValueRestVariable Symbol

ValueRestVariable newtype

func (ValueRestVariable) MarshalJSON

func (variant ValueRestVariable) MarshalJSON() ([]byte, error)

func (*ValueRestVariable) UnmarshalJSON

func (variant *ValueRestVariable) UnmarshalJSON(b []byte) error

type ValueString

type ValueString string

ValueString newtype

func (ValueString) MarshalJSON

func (variant ValueString) MarshalJSON() ([]byte, error)

func (*ValueString) UnmarshalJSON

func (variant *ValueString) UnmarshalJSON(b []byte) error

type ValueVariable

type ValueVariable Symbol

ValueVariable newtype

func (ValueVariable) MarshalJSON

func (variant ValueVariable) MarshalJSON() ([]byte, error)

func (*ValueVariable) UnmarshalJSON

func (variant *ValueVariable) UnmarshalJSON(b []byte) error

type ValueVariant

type ValueVariant interface {
	// contains filtered or unexported methods
}

Value enum

type Variable added in v0.24.0

type Variable string

Jump to

Keyboard shortcuts

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