model

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	ID           string
	Name         string
	Labels       []string
	Flags        uint64
	Availability TimeRangeList
	Version      uint64
	Assets       StringAnyMap
	Parameters   StringAnyMap
}

func ItemFromPB

func ItemFromPB(item *itemv1.Item) *Item

func (Item) IntoPB

func (item Item) IntoPB() *itemv1.Item

type StringAnyMap

type StringAnyMap map[string]any

func (StringAnyMap) IntoPB

func (sam StringAnyMap) IntoPB() map[string]*structpb.Value

type TimeRange

type TimeRange struct {
	From *time.Time
	To   *time.Time
}

type TimeRangeList

type TimeRangeList []TimeRange

func (TimeRangeList) IntoPB

func (trl TimeRangeList) IntoPB() []*commonv1.TimeRange

Jump to

Keyboard shortcuts

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