Documentation
¶
Overview ¶
ENGMODEL-OWNER-UNIT: FU-MODEL-LOADER
Index ¶
- Constants
- func CheckCoverage(inventory Inventory, inventoryBytes []byte, coverage Coverage) error
- func CheckCoverageWithoutHash(inventory Inventory, coverage Coverage) error
- func GenerateCUE(inventory Inventory, coverage Coverage) ([]byte, error)
- func GenerateRegistry(inventory Inventory, coverage Coverage) ([]byte, error)
- func Marshal(value any) ([]byte, error)
- func VerifySource(source Source, data []byte) error
- type Counts
- type Coverage
- type CoverageCounts
- type CoverageEntry
- type FormalRelease
- type InheritanceEdge
- type Inventory
- type InventorySource
- type Manifest
- type Metaclass
- type Multiplicity
- type Package
- type Property
- type PropertyRef
- type Source
Constants ¶
View Source
const InventorySchemaVersion = "1"
Variables ¶
This section is empty.
Functions ¶
func CheckCoverage ¶
TRLC-LINKS: REQ-EMG-038, REQ-EMG-039
func CheckCoverageWithoutHash ¶
TRLC-LINKS: REQ-EMG-038, REQ-EMG-039
func GenerateCUE ¶
TRLC-LINKS: REQ-EMG-038, REQ-EMG-039
func GenerateRegistry ¶
TRLC-LINKS: REQ-EMG-038, REQ-EMG-039
func VerifySource ¶
TRLC-LINKS: REQ-EMG-038, REQ-EMG-039
Types ¶
type Counts ¶
type Counts struct {
Packages int `json:"packages"`
Metaclasses int `json:"metaclasses"`
AbstractMetaclasses int `json:"abstractMetaclasses"`
Relationships int `json:"relationships"`
OwnedProperties int `json:"ownedProperties"`
InheritedProperties int `json:"inheritedProperties"`
DerivedProperties int `json:"derivedProperties"`
InheritanceEdges int `json:"inheritanceEdges"`
}
type Coverage ¶
type Coverage struct {
SchemaVersion string `json:"schemaVersion"`
Baseline string `json:"baseline"`
InventoryHash string `json:"inventorySha256"`
Entries []CoverageEntry `json:"entries"`
Counts CoverageCounts `json:"counts"`
}
func BootstrapCoverage ¶
TRLC-LINKS: REQ-EMG-038, REQ-EMG-039
func LoadCoverage ¶
TRLC-LINKS: REQ-EMG-038, REQ-EMG-039
type CoverageCounts ¶
type CoverageEntry ¶
type FormalRelease ¶
type InheritanceEdge ¶
type Inventory ¶
type Inventory struct {
SchemaVersion string `json:"schemaVersion"`
Baseline string `json:"baseline"`
Authority string `json:"authority"`
FormalRelease FormalRelease `json:"formalRelease"`
SourceManifestHash string `json:"sourceManifestSha256"`
Sources []InventorySource `json:"sources"`
Packages []Package `json:"packages"`
Inheritance []InheritanceEdge `json:"inheritance"`
Metaclasses []Metaclass `json:"metaclasses"`
Counts Counts `json:"counts"`
}
func Build ¶
func Build(manifest Manifest, manifestBytes []byte, sourceData map[string][]byte) (Inventory, error)
TRLC-LINKS: REQ-EMG-038, REQ-EMG-039
func DecodeInventory ¶
TRLC-LINKS: REQ-EMG-038, REQ-EMG-039
type InventorySource ¶
type Manifest ¶
type Manifest struct {
SchemaVersion string `json:"schemaVersion"`
Baseline string `json:"baseline"`
FormalRelease FormalRelease `json:"formalRelease"`
MetamodelAuthority string `json:"metamodelAuthority"`
Sources []Source `json:"sources"`
}
type Metaclass ¶
type Metaclass struct {
ID string `json:"id"`
Name string `json:"name"`
Origin string `json:"origin"`
Package string `json:"package"`
Abstract bool `json:"abstract,omitempty"`
Relationship bool `json:"relationship,omitempty"`
Supertypes []string `json:"supertypes,omitempty"`
OwnedProperties []Property `json:"ownedProperties,omitempty"`
InheritedProperties []string `json:"inheritedProperties,omitempty"`
RelationshipEnds []PropertyRef `json:"relationshipEnds,omitempty"`
}
type Multiplicity ¶
type Property ¶
type Property struct {
ID string `json:"id"`
Name string `json:"name"`
Origin string `json:"origin"`
Kind string `json:"kind"`
Type string `json:"type"`
Multiplicity Multiplicity `json:"multiplicity"`
Ordered bool `json:"ordered"`
Unique bool `json:"unique"`
Derived bool `json:"derived,omitempty"`
Transient bool `json:"transient,omitempty"`
Volatile bool `json:"volatile,omitempty"`
Containment bool `json:"containment,omitempty"`
Opposite string `json:"opposite,omitempty"`
Subsets []string `json:"subsets,omitempty"`
Redefines []string `json:"redefines,omitempty"`
}
type PropertyRef ¶
Click to show internal directories.
Click to hide internal directories.