Help us shape the future of Go! Take the 2026 Go Developer Survey

errata

package
v1.7.8 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DiscoPurposeNone                        DiscoPurpose = 0
	DiscoPurposeTableAccess                              = 1 << (iota - 1)
	DiscoPurposeTableConformance                         = 1 << (iota - 1)
	DiscoPurposeTableConstraint                          = 1 << (iota - 1)
	DiscoPurposeTableLinkIndexes                         = 1 << (iota - 1)
	DiscoPurposeTableRenameHeaders                       = 1 << (iota - 1)
	DiscoPurposeTableAddMissingColumns                   = 1 << (iota - 1)
	DiscoPurposeTableReorderColumns                      = 1 << (iota - 1)
	DiscoPurposeDataTypeRename                           = 1 << (iota - 1)
	DiscoPurposeDataTypeAppendSuffix                     = 1 << (iota - 1)
	DiscoPurposeDataTypeBitmapFixRange                   = 1 << (iota - 1)
	DiscoPurposeDataTypeCommandFixDirection              = 1 << (iota - 1)
	DiscoPurposeDataTypePromoteInline                    = 1 << (iota - 1)
	DiscoPurposeNormalizeAnchor                          = 1 << (iota - 1)
	DiscoPurposeTableQuality                             = 1 << (iota - 1)

	DiscoPurposeAll DiscoPurpose = DiscoPurposeTableAccess | DiscoPurposeTableConformance | DiscoPurposeTableConstraint | DiscoPurposeTableLinkIndexes | DiscoPurposeTableQuality | DiscoPurposeTableRenameHeaders | DiscoPurposeTableAddMissingColumns | DiscoPurposeTableReorderColumns | DiscoPurposeDataTypeAppendSuffix | DiscoPurposeDataTypeRename
)
View Source
const (
	SpecPurposeNone             SpecPurpose = 0
	SpecPurposeDataTypesBitmap              = 1 << (iota - 1)
	SpecPurposeDataTypesEnum                = 1 << (iota - 1)
	SpecPurposeDataTypesStruct              = 1 << (iota - 1)
	SpecPurposeCluster                      = 1 << (iota - 1)
	SpecPurposeDeviceType                   = 1 << (iota - 1)
	SpecPurposeCommandArguments             = 1 << (iota - 1)
	SpecPurposeDataTypesDef                 = 1 << (iota - 1)
	SpecPurposeFeatures                     = 1 << (iota - 1)

	SpecPurposeDataTypes SpecPurpose = SpecPurposeDataTypesBitmap | SpecPurposeDataTypesEnum | SpecPurposeDataTypesStruct | SpecPurposeDataTypesDef
	SpecPurposeAll       SpecPurpose = SpecPurposeDataTypes | SpecPurposeCluster | SpecPurposeDeviceType | SpecPurposeCommandArguments | SpecPurposeFeatures
)

Variables

View Source
var DefaultErrata = &Errata{}

Functions

This section is empty.

Types

type Collection added in v1.6.0

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

func LoadErrata added in v1.6.0

func LoadErrata(config *config.Config, errataPath string, errataOverlayPath string) (*Collection, error)

func (*Collection) All added in v1.6.2

func (c *Collection) All() iter.Seq2[string, *Errata]

func (*Collection) Get added in v1.6.0

func (c *Collection) Get(path string) *Errata

type Disco

type Disco struct {
	Sections map[string]DiscoSection `yaml:"sections,omitempty"`
}

func (*Disco) IgnoreSection

func (d *Disco) IgnoreSection(sectionName string, purpose DiscoPurpose) bool

func (*Disco) Merge added in v1.6.19

func (d *Disco) Merge(other *Disco)

type DiscoPurpose

type DiscoPurpose uint64

func (DiscoPurpose) Has

func (i DiscoPurpose) Has(o DiscoPurpose) bool

func (DiscoPurpose) HasAny

func (i DiscoPurpose) HasAny(o DiscoPurpose) bool

func (DiscoPurpose) MarshalYAML

func (i DiscoPurpose) MarshalYAML() ([]byte, error)

func (*DiscoPurpose) UnmarshalYAML

func (i *DiscoPurpose) UnmarshalYAML(b []byte) error

type DiscoSection

type DiscoSection struct {
	Skip DiscoPurpose `yaml:"skip,omitempty"`
}

func (*DiscoSection) Merge added in v1.6.19

func (ds *DiscoSection) Merge(other *DiscoSection)

type Errata

type Errata struct {
	Disco    Disco    `yaml:"disco,omitempty"`
	Spec     Spec     `yaml:"spec,omitempty"`
	TestPlan TestPlan `yaml:"test-plan,omitempty"`
	SDK      SDK      `yaml:"sdk,omitempty"`
}

func (*Errata) Merge added in v1.6.19

func (e *Errata) Merge(other *Errata)

type SDK

type SDK struct {
	SkipFile                     bool                `yaml:"skip-file,omitempty"`
	SuppressAttributePermissions bool                `yaml:"suppress-attribute-permissions,omitempty"`
	ClusterDefinePrefix          string              `yaml:"cluster-define-prefix,omitempty"`
	SuppressClusterDefinePrefix  bool                `yaml:"suppress-cluster-define-prefix,omitempty"`
	DefineOverrides              map[string]string   `yaml:"override-defines,omitempty"`
	ClusterName                  string              `yaml:"cluster-name,omitempty"`
	ClusterAliases               map[string][]string `yaml:"cluster-aliases,omitempty"`
	ClusterListKeys              map[string]string   `yaml:"cluster-list-keys,omitempty"`
	Domain                       string              `yaml:"domain,omitempty"`

	WritePrivilegeAsRole bool `yaml:"write-privilege-as-role,omitempty"`

	SeparateStructs UniqueStringList `yaml:"separate-structs,omitempty"`
	SeparateBitmaps UniqueStringList `yaml:"separate-bitmaps,omitempty"`
	SeparateEnums   UniqueStringList `yaml:"separate-enums,omitempty"`

	SharedBitmaps UniqueStringList `yaml:"shared-bitmaps,omitempty"`
	SharedEnums   UniqueStringList `yaml:"shared-enums,omitempty"`
	SharedStructs UniqueStringList `yaml:"shared-structs,omitempty"`

	TemplatePath string `yaml:"template-path,omitempty"`

	ClusterSplit map[string]string `yaml:"cluster-split,omitempty"`
	ClusterSkip  []string          `yaml:"cluster-skip,omitempty"`

	TypeNames map[string]string `yaml:"type-names,omitempty"`

	Types      *SDKTypes `yaml:"types,omitempty"`
	ExtraTypes *SDKTypes `yaml:"extra-types,omitempty"`
}

func (*SDK) HasSdkPatch added in v1.6.9

func (sdk *SDK) HasSdkPatch() bool

func (*SDK) HasSpecPatch added in v1.6.0

func (s *SDK) HasSpecPatch() bool

func (*SDK) Merge added in v1.6.19

func (s *SDK) Merge(other *SDK)

func (*SDK) OverrideDeviceType added in v1.6.2

func (zap *SDK) OverrideDeviceType(deviceType *matter.DeviceType, defaultTypeName string) string

func (*SDK) OverrideDeviceTypeName added in v1.6.2

func (zap *SDK) OverrideDeviceTypeName(deviceType *matter.DeviceType, defaultName string) string

type SDKType

type SDKType struct {
	Type              string `yaml:"type,omitempty"`
	Name              string `yaml:"name,omitempty"`
	OverrideName      string `yaml:"override-name,omitempty"`
	OverrideType      string `yaml:"override-type,omitempty"`
	OverrideProfileID string `yaml:"override-profile-id,omitempty"`
	List              bool   `yaml:"list,omitempty"`
	Keep              bool   `yaml:"keep,omitempty"`
	ForceGlobal       bool   `yaml:"force-global,omitempty"`
	ForceLocal        bool   `yaml:"force-local,omitempty"`

	Fields      []*SDKType `yaml:"fields,omitempty"`
	ExtraFields []*SDKType `yaml:"extra-fields,omitempty"`
	Domain      string     `yaml:"domain,omitempty"`
	Priority    string     `yaml:"priority,omitempty"`
	Description string     `yaml:"description,omitempty"`

	Bit   string `yaml:"bit,omitempty"`
	Code  string `yaml:"code,omitempty"`
	Value string `yaml:"value,omitempty"`

	Constraint  string `yaml:"constraint,omitempty"`
	Conformance string `yaml:"conformance,omitempty"`
	Fallback    string `yaml:"fallback,omitempty"`

	Quality           string `yaml:"quality,omitempty"`
	Access            string `yaml:"access,omitempty"`
	Direction         string `yaml:"direction,omitempty"`
	Response          string `yaml:"response,omitempty"`
	FabricScoping     string `yaml:"fabric-scoping,omitempty"`
	FabricSensitivity string `yaml:"fabric-sensitivity,omitempty"`

	Attributes map[string]*SDKType `yaml:"attributes,omitempty"`
	Commands   map[string]*SDKType `yaml:"commands,omitempty"`
	Events     map[string]*SDKType `yaml:"events,omitempty"`
}

func (*SDKType) Merge added in v1.6.19

func (t *SDKType) Merge(other *SDKType)

type SDKTypeCollection

type SDKTypeCollection map[string]*SDKType

type SDKTypes

type SDKTypes struct {
	Attributes  map[string]*SDKType `yaml:"attributes,omitempty"`
	Clusters    map[string]*SDKType `yaml:"clusters,omitempty"`
	Enums       map[string]*SDKType `yaml:"enums,omitempty"`
	Bitmaps     map[string]*SDKType `yaml:"bitmaps,omitempty"`
	Structs     map[string]*SDKType `yaml:"structs,omitempty"`
	Commands    map[string]*SDKType `yaml:"commands,omitempty"`
	Events      map[string]*SDKType `yaml:"events,omitempty"`
	DeviceTypes map[string]*SDKType `yaml:"device-types,omitempty"`
}

func (*SDKTypes) Merge added in v1.6.19

func (st *SDKTypes) Merge(other *SDKTypes)

type Spec

type Spec struct {
	UtilityInclude bool                   `yaml:"utility-include,omitempty"`
	Sections       map[string]SpecSection `yaml:"sections,omitempty"`
	Domain         string                 `yaml:"domain,omitempty"`
}

func (*Spec) IgnoreSection

func (spec *Spec) IgnoreSection(sectionName string, purpose SpecPurpose) bool

func (*Spec) Merge added in v1.6.19

func (s *Spec) Merge(other *Spec)

type SpecPurpose

type SpecPurpose uint64

func (SpecPurpose) Has

func (i SpecPurpose) Has(o SpecPurpose) bool

func (SpecPurpose) HasAny

func (i SpecPurpose) HasAny(o SpecPurpose) bool

func (SpecPurpose) MarshalYAML

func (i SpecPurpose) MarshalYAML() ([]byte, error)

func (*SpecPurpose) UnmarshalYAML

func (i *SpecPurpose) UnmarshalYAML(b []byte) error

type SpecSection

type SpecSection struct {
	Skip SpecPurpose `yaml:"skip,omitempty"`
}

func (*SpecSection) Merge added in v1.6.19

func (ss *SpecSection) Merge(other *SpecSection)

type TestPlan

type TestPlan struct {
	TestPlanPath  string                  `yaml:"testplan-path,omitempty"`
	TestPlanPaths map[string]TestPlanPath `yaml:"testplan-paths,omitempty"`
}

func (*TestPlan) Merge added in v1.6.19

func (tp *TestPlan) Merge(other *TestPlan)

type TestPlanPath

type TestPlanPath struct {
	Path string `yaml:"path,omitempty"`
}

type UniqueStringList added in v1.6.9

type UniqueStringList map[string]struct{}

func (UniqueStringList) MarshalYAML added in v1.6.9

func (i UniqueStringList) MarshalYAML() ([]byte, error)

func (*UniqueStringList) Merge added in v1.6.19

func (u *UniqueStringList) Merge(other UniqueStringList)

func (*UniqueStringList) UnmarshalYAML added in v1.6.9

func (i *UniqueStringList) UnmarshalYAML(b []byte) error

Jump to

Keyboard shortcuts

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