spec

package
v1.5.39 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoTableFound = fmt.Errorf("no table found")
View Source
var ErrNotEnoughRowsInTable = fmt.Errorf("not enough value rows in table")

Functions

func AccessToASCIIDocString

func AccessToASCIIDocString(a matter.Access, entityType types.EntityType) string

func AssignSectionTypes

func AssignSectionTypes(doc *Doc, top *Section) error

func CanonicalName

func CanonicalName(name string) string

func DeriveSpecPathFromPaths

func DeriveSpecPathFromPaths(paths []string) string

func FindFirstTable

func FindFirstTable(section *Section) *asciidoc.Table

func NewPreparseContext

func NewPreparseContext(path asciidoc.Path, specRoot string, attributes ...asciidoc.AttributeName) parse.PreParseContext

func NewSource

func NewSource(d *Doc, e asciidoc.Element) *source

func NewSpecPath

func NewSpecPath(path string, rootPath string) (asciidoc.Path, error)

func ParseAccess

func ParseAccess(vc string, entityType types.EntityType) (a matter.Access, parsed bool)

func ParseCommandDirection

func ParseCommandDirection(s string) matter.Interface

func PatchSpecForSdk

func PatchSpecForSdk(spec *Specification) error

PatchSpecForSdk is a grab bag of oddities in the spec that need to be corrected for use in the SDK

func ReferenceName

func ReferenceName(element any) string

func RenderTableCell

func RenderTableCell(cell *asciidoc.TableCell) (string, error)

func Targeter

func Targeter(specRoot string) func(cxt context.Context) ([]string, error)

func Validate

func Validate(spec *Specification)

Types

type Anchor

type Anchor struct {
	Document      *Doc
	Source        matter.Source
	ID            string
	LabelElements asciidoc.Set
	Element       asciidoc.Element
	Parent        parse.HasElements
}

func NewAnchor

func NewAnchor(doc *Doc, id string, element asciidoc.Element, parent parse.HasElements, label ...asciidoc.Element) *Anchor

func (*Anchor) Name

func (a *Anchor) Name() string

func (*Anchor) SyncToDoc

func (a *Anchor) SyncToDoc(id string)

type Builder

type Builder struct {
	Spec *Specification
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(specRoot string, options ...BuilderOption) Builder

func (Builder) Name

func (sp Builder) Name() string

func (*Builder) Process

func (sp *Builder) Process(cxt context.Context, inputs []*pipeline.Data[*Doc]) (outputs []*pipeline.Data[*Doc], err error)

type BuilderOption

type BuilderOption func(tg *Builder)

func IgnoreHierarchy

func IgnoreHierarchy(ignore bool) BuilderOption

type BuilderOptions

type BuilderOptions struct {
	IgnoreHierarchy bool `default:"false" help:"ignore hierarchy" group:"Spec:"`
}

type CellRenderer

type CellRenderer func(cellElements asciidoc.Set, sb *strings.Builder) (source asciidoc.Element)

type ClusterReferenceNameMismatch

type ClusterReferenceNameMismatch struct {
	Cluster *matter.Cluster
	Name    string
	Source  log.Source
}

func (ClusterReferenceNameMismatch) Error

func (ClusterReferenceNameMismatch) Origin

func (ddt ClusterReferenceNameMismatch) Origin() (path string, line int)

func (ClusterReferenceNameMismatch) Type

type ColumnIndex

type ColumnIndex map[matter.TableColumn]int

func (ColumnIndex) HasAll

func (ci ColumnIndex) HasAll(columns ...matter.TableColumn) bool

func (ColumnIndex) HasAny

func (ci ColumnIndex) HasAny(columns ...matter.TableColumn) bool

type CrossReference

type CrossReference struct {
	Document  *Doc
	Reference *asciidoc.CrossReference
	Parent    parse.HasElements
	Source    matter.Source
}

func (*CrossReference) SyncToDoc

func (cr *CrossReference) SyncToDoc(id string)

type DeviceTypeReferenceNameMismatch

type DeviceTypeReferenceNameMismatch struct {
	DeviceType *matter.DeviceType
	Name       string
	Source     log.Source
}

func (DeviceTypeReferenceNameMismatch) Error

func (DeviceTypeReferenceNameMismatch) Origin

func (ddt DeviceTypeReferenceNameMismatch) Origin() (path string, line int)

func (DeviceTypeReferenceNameMismatch) Type

type DeviceTypeSet

type DeviceTypeSet pipeline.Map[string, *pipeline.Data[[]*matter.DeviceType]]

type Doc

type Doc struct {
	sync.RWMutex

	Path asciidoc.Path

	Base *asciidoc.Document
	asciidoc.Set

	Domain matter.Domain
	// contains filtered or unexported fields
}

func Parse

func Parse(path asciidoc.Path, specRoot string, attributes ...asciidoc.AttributeName) (*Doc, error)

func ReadFile

func ReadFile(path string, rootPath string) (*Doc, error)

func (*Doc) Anchors

func (doc *Doc) Anchors() (map[string][]*Anchor, error)

func (*Doc) CrossReferences

func (doc *Doc) CrossReferences() map[string][]*CrossReference

func (*Doc) DocType

func (doc *Doc) DocType() (matter.DocType, error)

func (*Doc) Entities

func (doc *Doc) Entities() (entities []types.Entity, err error)

func (*Doc) EntitiesForSection

func (d *Doc) EntitiesForSection(section *asciidoc.Section) ([]types.Entity, bool)

func (*Doc) Equals

func (doc *Doc) Equals(other asciidoc.Element) bool

func (*Doc) Errata

func (doc *Doc) Errata() *errata.Errata

func (*Doc) FindAnchor

func (d *Doc) FindAnchor(id string, source log.Source) *Anchor

func (*Doc) FindAnchors

func (d *Doc) FindAnchors(id string) []*Anchor

func (*Doc) Footnotes

func (doc *Doc) Footnotes() []*asciidoc.Footnote

func (*Doc) GetHeaderCellString

func (d *Doc) GetHeaderCellString(cell *asciidoc.TableCell) (string, error)

func (*Doc) GlobalObjects

func (doc *Doc) GlobalObjects() (entities []types.Entity, err error)

func (*Doc) Group

func (doc *Doc) Group() *DocGroup

func (*Doc) OrderedEntities

func (doc *Doc) OrderedEntities() (entities []types.Entity, err error)

func (*Doc) Parents

func (doc *Doc) Parents() []*Doc

func (*Doc) Reference

func (doc *Doc) Reference(ref string) (types.Entity, bool)

func (*Doc) Type

func (doc *Doc) Type() asciidoc.ElementType

type DocGroup

type DocGroup struct {
	Root string

	Docs []*Doc
	// contains filtered or unexported fields
}

func NewDocGroup

func NewDocGroup(root string) *DocGroup

func (*DocGroup) Anchors

func (dg *DocGroup) Anchors(id string) []*Anchor

func (*DocGroup) CrossReferences

func (dg *DocGroup) CrossReferences(id string) []*CrossReference

type DocSet

type DocSet pipeline.Map[string, *pipeline.Data[*Doc]]

func NewDocSet

func NewDocSet() DocSet

type DuplicateEntityIDError

type DuplicateEntityIDError struct {
	Entity   types.Entity
	Previous types.Entity
}

func (DuplicateEntityIDError) Error

func (ddt DuplicateEntityIDError) Error() string

func (DuplicateEntityIDError) Origin

func (ddt DuplicateEntityIDError) Origin() (path string, line int)

func (DuplicateEntityIDError) Type

func (ddt DuplicateEntityIDError) Type() ErrorType

type DuplicateEntityNameError

type DuplicateEntityNameError struct {
	Entity   types.Entity
	Previous types.Entity
}

func (DuplicateEntityNameError) Error

func (ddt DuplicateEntityNameError) Error() string

func (DuplicateEntityNameError) Origin

func (ddt DuplicateEntityNameError) Origin() (path string, line int)

func (DuplicateEntityNameError) Type

type ElementRequirementUnknownElementError

type ElementRequirementUnknownElementError struct {
	Requirement *matter.ElementRequirement
}

func (ElementRequirementUnknownElementError) Error

func (ElementRequirementUnknownElementError) Origin

func (ddt ElementRequirementUnknownElementError) Origin() (path string, line int)

func (ElementRequirementUnknownElementError) Type

type ElementRequirementUnreferencedClusterError

type ElementRequirementUnreferencedClusterError struct {
	Requirement *matter.ElementRequirement
}

func (ElementRequirementUnreferencedClusterError) Error

func (ElementRequirementUnreferencedClusterError) Origin

func (ddt ElementRequirementUnreferencedClusterError) Origin() (path string, line int)

func (ElementRequirementUnreferencedClusterError) Type

type EntityRefs

type EntityRefs[T comparable] struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewEntityRefs

func NewEntityRefs[T comparable]() EntityRefs[T]

func (*EntityRefs[T]) Add

func (cr *EntityRefs[T]) Add(c T, m types.Entity)

func (*EntityRefs[T]) Get

func (cr *EntityRefs[T]) Get(m types.Entity) (pipeline.Map[T, struct{}], bool)

type Error

type Error interface {
	Type() ErrorType
	Error() string
	log.Source
}

type ErrorType

type ErrorType uint16
const (
	ErrorTypeUnknown ErrorType = iota
	ErrorTypeGenericParse
	ErrorTypeDuplicateEntityID
	ErrorTypeDuplicateEntityName
	ErrorTypeUnknownConstraintIdentifier
	ErrorTypeUnknownConstraintReference
	ErrorTypeUnknownCustomDataType
	ErrorTypeUnknownSuperset
	ErrorTypeUnknownClusterRequirement
	ErrorTypeUnknownElementRequirementCluster
	ErrorTypeElementRequirementUnreferencedCluster
	ErrorTypeElementRequirementUnknownElement
	ErrorTypeComposingDeviceTypeRequirementUnknownDeviceType
	ErrorTypeComposingDeviceTypeClusterRequirementUnknownCluster
	ErrorTypeComposingDeviceTypeClusterRequirementUnknownDeviceType
	ErrorTypeComposingDeviceTypeClusterRequirementUnreferencedDeviceType
	ErrorTypeComposingDeviceTypeElementRequirementUnknownCluster
	ErrorTypeComposingDeviceTypeElementRequirementUnknownDeviceType
	ErrorTypeComposingDeviceTypeElementRequirementUnreferencedDeviceType
	ErrorTypeConditionRequirementUnknownDeviceType
	ErrorTypeConditionRequirementUnreferencedDeviceType
	ErrorTypeConditionRequirementUnknownCondition
	ErrorTypeClusterReferenceNameMismatch
	ErrorTypeDeviceTypeReferenceNameMismatch
	ErrorTypeUnknownBaseCluster
	ErrorTypeUnknownConformanceIdentifier
	ErrorTypeUnknownConformanceReference
	ErrorTypeFabricScopingNotAllowed
	ErrorTypeFabricSensitivityNotAllowed
	ErrorTypeFabricScopedStructNotAllowed
	ErrorTypeInvalidConformance
	ErrorTypeInvalidConstraint
	ErrorTypeInvalidFallback
)

type ExtraColumn

type ExtraColumn struct {
	Name   string
	Offset int
}

type FabricScopedStructNotAllowedError

type FabricScopedStructNotAllowedError struct {
	Entity types.Entity
}

func (FabricScopedStructNotAllowedError) Error

func (FabricScopedStructNotAllowedError) Origin

func (cf FabricScopedStructNotAllowedError) Origin() (path string, line int)

func (FabricScopedStructNotAllowedError) Type

type FabricScopingNotAllowedError

type FabricScopingNotAllowedError struct {
	Entity types.Entity
}

func (FabricScopingNotAllowedError) Error

func (FabricScopingNotAllowedError) Origin

func (cf FabricScopingNotAllowedError) Origin() (path string, line int)

func (FabricScopingNotAllowedError) Type

type FabricSensitivityNotAllowedError

type FabricSensitivityNotAllowedError struct {
	Entity types.Entity
}

func (FabricSensitivityNotAllowedError) Error

func (FabricSensitivityNotAllowedError) Origin

func (cf FabricSensitivityNotAllowedError) Origin() (path string, line int)

func (FabricSensitivityNotAllowedError) Type

type FilterOptions

type FilterOptions struct {
	Paths         []string `arg:"" optional:"" help:"Paths of AsciiDoc files to use for generation" group:"Spec:"`
	Exclude       []string `short:"e"  help:"exclude files matching this file pattern" group:"Spec:"`
	Force         bool     `default:"false" help:"generate files even if there were spec parsing errors" group:"Spec:"`
	IgnoreErrored bool     `default:"false" help:"ignore any spec files with parsing errors" group:"Spec:"`
}

type GenericParseError added in v1.5.39

type GenericParseError struct {
	Source log.Source
	// contains filtered or unexported fields
}

func (GenericParseError) Origin added in v1.5.39

func (gpe GenericParseError) Origin() (path string, line int)

func (GenericParseError) Type added in v1.5.39

func (gpe GenericParseError) Type() ErrorType

type InvalidConformanceError

type InvalidConformanceError struct {
	Conformance string
	Source      log.Source
}

func (InvalidConformanceError) Error

func (ddt InvalidConformanceError) Error() string

func (InvalidConformanceError) Origin

func (cf InvalidConformanceError) Origin() (path string, line int)

func (InvalidConformanceError) Type

type InvalidConstraintError

type InvalidConstraintError struct {
	Constraint string
	Source     log.Source
}

func (InvalidConstraintError) Error

func (ddt InvalidConstraintError) Error() string

func (InvalidConstraintError) Origin

func (cf InvalidConstraintError) Origin() (path string, line int)

func (InvalidConstraintError) Type

type InvalidFallbackError

type InvalidFallbackError struct {
	Fallback string
	Source   log.Source
}

func (InvalidFallbackError) Error

func (ddt InvalidFallbackError) Error() string

func (InvalidFallbackError) Origin

func (cf InvalidFallbackError) Origin() (path string, line int)

func (InvalidFallbackError) Type

func (cf InvalidFallbackError) Type() ErrorType

type ParseErrors

type ParseErrors struct {
	Errors []Error
}

func (ParseErrors) Error

func (pe ParseErrors) Error() string

type Parser

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

func NewParser

func NewParser(attributes []asciidoc.AttributeName, parserOptions ParserOptions) (Parser, error)

func (Parser) Name

func (p Parser) Name() string

func (Parser) Process

func (p Parser) Process(cxt context.Context, input *pipeline.Data[struct{}], index int32, total int32) (outputs []*pipeline.Data[*Doc], extras []*pipeline.Data[struct{}], err error)

func (Parser) Targets

func (p Parser) Targets(cxt context.Context) ([]string, error)

type ParserOptions

type ParserOptions struct {
	Root   string `` /* 159-byte string literal not displayed */
	Inline bool   `default:"true" help:"use inline parser"  group:"Spec:" hidden:""`
}

func (*ParserOptions) AfterApply

func (po *ParserOptions) AfterApply() error

type Reader

type Reader struct {
	Root string
	// contains filtered or unexported fields
}

func NewReader

func NewReader(name string, rootPath string) (Reader, error)

func (Reader) Name

func (r Reader) Name() string

func (Reader) Process

func (r Reader) Process(cxt context.Context, input *pipeline.Data[struct{}], index int32, total int32) (outputs []*pipeline.Data[*Doc], extras []*pipeline.Data[struct{}], err error)

type Section

type Section struct {
	Doc  *Doc
	Name string

	Parent any
	Base   *asciidoc.Section

	SecType matter.Section

	asciidoc.Set
	// contains filtered or unexported fields
}

func FindSectionByType

func FindSectionByType(top *Section, sectionType matter.Section) *Section

func NewSection

func NewSection(doc *Doc, parent any, s *asciidoc.Section) (*Section, error)

func (*Section) AppendSection

func (s *Section) AppendSection(ns *Section)

func (*Section) Equals

func (e *Section) Equals(o asciidoc.Element) bool

func (*Section) GetASCIISection

func (s *Section) GetASCIISection() *asciidoc.Section

func (*Section) GetDataType

func (s *Section) GetDataType() *types.DataType

func (*Section) SetElements

func (s *Section) SetElements(elements asciidoc.Set)

func (Section) Type

func (s Section) Type() asciidoc.ElementType

type Specification

type Specification struct {
	Root string

	Clusters       map[*matter.Cluster]struct{}
	ClustersByID   map[uint64]*matter.Cluster
	ClustersByName map[string]*matter.Cluster

	DeviceTypes       []*matter.DeviceType
	DeviceTypesByID   map[uint64]*matter.DeviceType
	DeviceTypesByName map[string]*matter.DeviceType

	BaseDeviceType     *matter.DeviceType
	RootNodeDeviceType *matter.DeviceType

	Namespaces []*matter.Namespace

	ClusterRefs  EntityRefs[*matter.Cluster]
	DataTypeRefs EntityRefs[types.Entity]
	DocRefs      map[types.Entity]*Doc

	GlobalObjects types.EntitySet

	Docs      map[string]*Doc
	DocGroups []*DocGroup

	Errors []Error
	// contains filtered or unexported fields
}

func (*Specification) BuildClusterReferences

func (spec *Specification) BuildClusterReferences()

func (*Specification) BuildDataTypeReferences

func (spec *Specification) BuildDataTypeReferences()

func (*Specification) ComposeDeviceType

func (spec *Specification) ComposeDeviceType(deviceType *matter.DeviceType) (composition *matter.DeviceTypeComposition, err error)

type StringReader

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

func NewStringReader

func NewStringReader(name string, rootPath string) (StringReader, error)

func (StringReader) Name

func (r StringReader) Name() string

func (StringReader) Process

func (r StringReader) Process(cxt context.Context, input *pipeline.Data[string], index int32, total int32) (outputs []*pipeline.Data[*Doc], extras []*pipeline.Data[string], err error)

type TableInfo

type TableInfo struct {
	Doc            *Doc
	Element        *asciidoc.Table
	Rows           []*asciidoc.TableRow
	HeaderRowIndex int
	ColumnMap      ColumnIndex
	ExtraColumns   []ExtraColumn
}

func ReadTable

func ReadTable(doc *Doc, table *asciidoc.Table) (ti *TableInfo, err error)

func (*TableInfo) Body

func (ti *TableInfo) Body() iter.Seq[*asciidoc.TableRow]

func (*TableInfo) ColumnIndex

func (ti *TableInfo) ColumnIndex(columns ...matter.TableColumn) (index int, ok bool)

func (*TableInfo) ContentRows added in v1.5.39

func (ti *TableInfo) ContentRows() iter.Seq[*asciidoc.TableRow]

func (*TableInfo) ReadConformance

func (ti *TableInfo) ReadConformance(row *asciidoc.TableRow, column matter.TableColumn) conformance.Set

func (*TableInfo) ReadConstraint

func (ti *TableInfo) ReadConstraint(row *asciidoc.TableRow, columns ...matter.TableColumn) constraint.Constraint

func (*TableInfo) ReadDataType

func (ti *TableInfo) ReadDataType(row *asciidoc.TableRow, column matter.TableColumn) (*types.DataType, error)

func (*TableInfo) ReadFallback

func (ti *TableInfo) ReadFallback(row *asciidoc.TableRow, columns ...matter.TableColumn) constraint.Limit

func (*TableInfo) ReadID

func (ti *TableInfo) ReadID(row *asciidoc.TableRow, columns ...matter.TableColumn) (*matter.Number, error)

func (*TableInfo) ReadLocation

func (ti *TableInfo) ReadLocation(row *asciidoc.TableRow, columns ...matter.TableColumn) (relation matter.DeviceTypeRequirementLocation, err error)

func (*TableInfo) ReadName

func (ti *TableInfo) ReadName(row *asciidoc.TableRow, columns ...matter.TableColumn) (name string, xref *asciidoc.CrossReference, err error)

func (*TableInfo) ReadQuality

func (ti *TableInfo) ReadQuality(row *asciidoc.TableRow, entityType types.EntityType, columns ...matter.TableColumn) (quality matter.Quality, err error)

func (*TableInfo) ReadString

func (ti *TableInfo) ReadString(row *asciidoc.TableRow, columns ...matter.TableColumn) (string, error)

func (*TableInfo) ReadStringAtOffset

func (ti *TableInfo) ReadStringAtOffset(row *asciidoc.TableRow, offset int) (string, error)

func (*TableInfo) ReadValue

func (ti *TableInfo) ReadValue(row *asciidoc.TableRow, columns ...matter.TableColumn) (string, error)

func (*TableInfo) ReadValueByIndex

func (ti *TableInfo) ReadValueByIndex(row *asciidoc.TableRow, offset int) (string, error)

func (*TableInfo) RenderColumn

func (ti *TableInfo) RenderColumn(row *asciidoc.TableRow, renderer CellRenderer, columns ...matter.TableColumn) (value string, source asciidoc.Element, ok bool)

func (*TableInfo) Rescan

func (ti *TableInfo) Rescan(doc *Doc) (err error)

type UnknownBaseClusterError

type UnknownBaseClusterError struct {
	Cluster *matter.Cluster
}

func (UnknownBaseClusterError) Error

func (ddt UnknownBaseClusterError) Error() string

func (UnknownBaseClusterError) Origin

func (ddt UnknownBaseClusterError) Origin() (path string, line int)

func (UnknownBaseClusterError) Type

type UnknownClusterRequirementError

type UnknownClusterRequirementError struct {
	Requirement *matter.ClusterRequirement
}

func (UnknownClusterRequirementError) Error

func (UnknownClusterRequirementError) Origin

func (ddt UnknownClusterRequirementError) Origin() (path string, line int)

func (UnknownClusterRequirementError) Type

type UnknownComposingDeviceTypeClusterRequirementDeviceTypeError

type UnknownComposingDeviceTypeClusterRequirementDeviceTypeError struct {
	Requirement *matter.DeviceTypeClusterRequirement
}

func (UnknownComposingDeviceTypeClusterRequirementDeviceTypeError) Error

func (UnknownComposingDeviceTypeClusterRequirementDeviceTypeError) Origin

func (UnknownComposingDeviceTypeClusterRequirementDeviceTypeError) Type

type UnknownComposingDeviceTypeElementRequirementDeviceTypeError

type UnknownComposingDeviceTypeElementRequirementDeviceTypeError struct {
	Requirement *matter.DeviceTypeElementRequirement
}

func (UnknownComposingDeviceTypeElementRequirementDeviceTypeError) Error

func (UnknownComposingDeviceTypeElementRequirementDeviceTypeError) Origin

func (UnknownComposingDeviceTypeElementRequirementDeviceTypeError) Type

type UnknownComposingDeviceTypeRequirementClusterError

type UnknownComposingDeviceTypeRequirementClusterError struct {
	Requirement *matter.DeviceTypeClusterRequirement
}

func (UnknownComposingDeviceTypeRequirementClusterError) Error

func (UnknownComposingDeviceTypeRequirementClusterError) Origin

func (UnknownComposingDeviceTypeRequirementClusterError) Type

type UnknownComposingDeviceTypeRequirementDeviceTypeError

type UnknownComposingDeviceTypeRequirementDeviceTypeError struct {
	Requirement *matter.DeviceTypeRequirement
}

func (UnknownComposingDeviceTypeRequirementDeviceTypeError) Error

func (UnknownComposingDeviceTypeRequirementDeviceTypeError) Origin

func (UnknownComposingDeviceTypeRequirementDeviceTypeError) Type

type UnknownComposingElementRequirementClusterError

type UnknownComposingElementRequirementClusterError struct {
	Requirement *matter.DeviceTypeElementRequirement
}

func (UnknownComposingElementRequirementClusterError) Error

func (UnknownComposingElementRequirementClusterError) Origin

func (ddt UnknownComposingElementRequirementClusterError) Origin() (path string, line int)

func (UnknownComposingElementRequirementClusterError) Type

type UnknownConditionRequirementConditionError added in v1.5.39

type UnknownConditionRequirementConditionError struct {
	Requirement *matter.ConditionRequirement
}

func (UnknownConditionRequirementConditionError) Error added in v1.5.39

func (UnknownConditionRequirementConditionError) Origin added in v1.5.39

func (ddt UnknownConditionRequirementConditionError) Origin() (path string, line int)

func (UnknownConditionRequirementConditionError) Type added in v1.5.39

type UnknownConditionRequirementDeviceTypeError added in v1.5.39

type UnknownConditionRequirementDeviceTypeError struct {
	Requirement *matter.ConditionRequirement
}

func (UnknownConditionRequirementDeviceTypeError) Error added in v1.5.39

func (UnknownConditionRequirementDeviceTypeError) Origin added in v1.5.39

func (ddt UnknownConditionRequirementDeviceTypeError) Origin() (path string, line int)

func (UnknownConditionRequirementDeviceTypeError) Type added in v1.5.39

type UnknownConformanceIdentifierError

type UnknownConformanceIdentifierError struct {
	Entity     types.Entity
	Identifier string
}

func (UnknownConformanceIdentifierError) Error

func (UnknownConformanceIdentifierError) Origin

func (cf UnknownConformanceIdentifierError) Origin() (path string, line int)

func (UnknownConformanceIdentifierError) Type

type UnknownConformanceReferenceError

type UnknownConformanceReferenceError struct {
	Entity    types.Entity
	Reference string
}

func (UnknownConformanceReferenceError) Error

func (UnknownConformanceReferenceError) Origin

func (cf UnknownConformanceReferenceError) Origin() (path string, line int)

func (UnknownConformanceReferenceError) Type

type UnknownConstraintIdentifierError

type UnknownConstraintIdentifierError struct {
	Identifier *constraint.IdentifierLimit
	Source     log.Source
}

func (UnknownConstraintIdentifierError) Error

func (UnknownConstraintIdentifierError) Origin

func (ddt UnknownConstraintIdentifierError) Origin() (path string, line int)

func (UnknownConstraintIdentifierError) Type

type UnknownConstraintReferenceError

type UnknownConstraintReferenceError struct {
	Reference *constraint.ReferenceLimit
	Source    log.Source
}

func (UnknownConstraintReferenceError) Error

func (UnknownConstraintReferenceError) Origin

func (ddt UnknownConstraintReferenceError) Origin() (path string, line int)

func (UnknownConstraintReferenceError) Type

type UnknownCustomDataTypeError

type UnknownCustomDataTypeError struct {
	Field    *matter.Field
	DataType *types.DataType
}

func (UnknownCustomDataTypeError) Error

func (ddt UnknownCustomDataTypeError) Error() string

func (UnknownCustomDataTypeError) Origin

func (ddt UnknownCustomDataTypeError) Origin() (path string, line int)

func (UnknownCustomDataTypeError) Type

type UnknownElementRequirementClusterError

type UnknownElementRequirementClusterError struct {
	Requirement *matter.ElementRequirement
}

func (UnknownElementRequirementClusterError) Error

func (UnknownElementRequirementClusterError) Origin

func (ddt UnknownElementRequirementClusterError) Origin() (path string, line int)

func (UnknownElementRequirementClusterError) Type

type UnknownSupersetError

type UnknownSupersetError struct {
	DeviceType *matter.DeviceType
}

func (UnknownSupersetError) Error

func (ddt UnknownSupersetError) Error() string

func (UnknownSupersetError) Origin

func (ddt UnknownSupersetError) Origin() (path string, line int)

func (UnknownSupersetError) Type

func (ddt UnknownSupersetError) Type() ErrorType

type UnreferencedComposingDeviceTypeClusterRequirementDeviceTypeError

type UnreferencedComposingDeviceTypeClusterRequirementDeviceTypeError struct {
	Requirement *matter.DeviceTypeClusterRequirement
}

func (UnreferencedComposingDeviceTypeClusterRequirementDeviceTypeError) Error

func (UnreferencedComposingDeviceTypeClusterRequirementDeviceTypeError) Origin

func (UnreferencedComposingDeviceTypeClusterRequirementDeviceTypeError) Type

type UnreferencedComposingDeviceTypeElementRequirementDeviceTypeError

type UnreferencedComposingDeviceTypeElementRequirementDeviceTypeError struct {
	Requirement *matter.DeviceTypeElementRequirement
}

func (UnreferencedComposingDeviceTypeElementRequirementDeviceTypeError) Error

func (UnreferencedComposingDeviceTypeElementRequirementDeviceTypeError) Origin

func (UnreferencedComposingDeviceTypeElementRequirementDeviceTypeError) Type

type UnreferencedConditionRequirementDeviceTypeError added in v1.5.39

type UnreferencedConditionRequirementDeviceTypeError struct {
	Requirement *matter.ConditionRequirement
}

func (UnreferencedConditionRequirementDeviceTypeError) Error added in v1.5.39

func (UnreferencedConditionRequirementDeviceTypeError) Origin added in v1.5.39

func (UnreferencedConditionRequirementDeviceTypeError) Type added in v1.5.39

Jump to

Keyboard shortcuts

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