model

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const TypeEventRule = "event_rule"

Variables

This section is empty.

Functions

This section is empty.

Types

type ImportableCategory

type ImportableCategory struct {
	localcatalog.Category
}

func (*ImportableCategory) ForExport

func (c *ImportableCategory) ForExport(
	externalID string,
	upstream *catalog.Category,
	resolver resolver.ReferenceResolver,
) (map[string]any, error)

ForExport loads the category from the upstream and returns it in a format that can be exported to a file.

type ImportableCustomType

type ImportableCustomType struct {
	localcatalog.CustomType
}

func (*ImportableCustomType) ForExport

func (ct *ImportableCustomType) ForExport(
	externalID string,
	upstream *catalog.CustomType,
	resolver resolver.ReferenceResolver,
) (map[string]any, error)

ForExport loads the custom type from the upstream and resolves references to properties and other custom types. It then returns the custom type in a format that can be exported to a file.

type ImportableEvent

type ImportableEvent struct {
	localcatalog.Event
}

func (*ImportableEvent) ForExport

func (e *ImportableEvent) ForExport(
	externalID string,
	upstream *catalog.Event,
	resolver resolver.ReferenceResolver,
) (map[string]any, error)

ForExport loads the event from the upstream and returns it in a format that can be exported to a file.

type ImportableProperty

type ImportableProperty struct {
	localcatalog.Property
}

func (*ImportableProperty) ForExport

func (p *ImportableProperty) ForExport(
	externalID string,
	upstream *catalog.Property,
	resolver resolver.ReferenceResolver,
) (map[string]any, error)

ForExport loads the property from the upstream and resolves references to custom types. It then returns the property in a format that can be exported to a file.

type ImportableTrackingPlan

type ImportableTrackingPlan struct {
	localcatalog.TrackingPlan
}

func (*ImportableTrackingPlan) ForExport

func (tp *ImportableTrackingPlan) ForExport(
	externalID string,
	upstream *catalog.TrackingPlanWithIdentifiers,
	resolver resolver.ReferenceResolver,
	idNamer namer.Namer,
) (map[string]any, error)

ForExport loads the tracking plan from the upstream and returns it in a format that can be exported to a file.

type ImportableVariants

type ImportableVariants struct {
	Variants []localcatalog.Variant
}

ImportableVariants is an embeddable type for handling variant conversion from upstream.

Jump to

Keyboard shortcuts

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