types

package
v0.23.1-garthoid8 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2025 License: Apache-2.0 Imports: 3 Imported by: 20

Documentation

Index

Constants

View Source
const CachePropertyType model.PropertyType = "CacheProperty"

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheProperty

type CacheProperty struct {
	ID        string `json:"cache_id"`
	RefID     string `json:"ref_id"`
	Timestamp string `json:"timestamp"`
}

CacheProperty represents a cache property in the cached graph.

func (CacheProperty) JSON

func (p CacheProperty) JSON() ([]byte, error)

JSON implements the Property interface.

func (CacheProperty) Name

func (p CacheProperty) Name() string

Name implements the Property interface.

func (CacheProperty) PropertyType

func (p CacheProperty) PropertyType() model.PropertyType

PropertyType implements the Property interface.

func (CacheProperty) Value

func (p CacheProperty) Value() string

Value implements the Property interface.

type Edge

type Edge struct {
	ID         string
	CreatedAt  time.Time
	LastSeen   time.Time
	Relation   oam.Relation
	FromEntity *Entity
	ToEntity   *Entity
}

Edge represents a relationship between two entities in the asset database.

type EdgeTag

type EdgeTag struct {
	ID        string
	CreatedAt time.Time
	LastSeen  time.Time
	Property  oam.Property
	Edge      *Edge
}

EdgeTag represents additional metadata added to an edge in the asset database.

type Entity

type Entity struct {
	ID        string
	CreatedAt time.Time
	LastSeen  time.Time
	Asset     oam.Asset
}

Entity represents an entity in the asset database.

type EntityTag

type EntityTag struct {
	ID        string
	CreatedAt time.Time
	LastSeen  time.Time
	Property  oam.Property
	Entity    *Entity
}

EntityTag represents additional metadata added to an entity in the asset database.

Jump to

Keyboard shortcuts

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