types

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 3 Imported by: 41

Documentation

Index

Constants

View Source
const CachePropertyType model.PropertyType = "CacheProperty"

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheProperty added in v0.21.0

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 added in v0.21.0

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

JSON implements the Property interface.

func (CacheProperty) Name added in v0.21.0

func (p CacheProperty) Name() string

Name implements the Property interface.

func (CacheProperty) PropertyType added in v0.21.0

func (p CacheProperty) PropertyType() model.PropertyType

PropertyType implements the Property interface.

func (CacheProperty) Value added in v0.21.0

func (p CacheProperty) Value() string

Value implements the Property interface.

type Edge added in v0.10.0

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 added in v0.10.0

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 added in v0.10.0

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

Entity represents an entity in the asset database.

type EntityTag added in v0.10.0

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