model

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 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
	AvailabilitySchedule TimeRangeList
	Version              uint64
	Assets               map[string]*structpb.Value
	Parameters           map[string]*structpb.Value
}

func ItemFromAPIPB added in v0.17.0

func ItemFromAPIPB(item *itemv1.Item) *Item

func ItemFromPersistencePB added in v0.17.0

func ItemFromPersistencePB(item *persistencev1.Item, id string, version uint64) *Item

func (Item) IntoAPIPB added in v0.17.0

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

func (Item) IntoPersistencePB added in v0.17.0

func (item Item) IntoPersistencePB() *persistencev1.Item

type TimeRange

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

type TimeRangeList

type TimeRangeList []TimeRange

func TimeRangeListFromAPIPB added in v0.17.0

func TimeRangeListFromAPIPB(atrl []*common.TimeRange) TimeRangeList

func TimeRangeListFromPersistencePB added in v0.17.0

func TimeRangeListFromPersistencePB(ptrl []*persistence.TimeRange) TimeRangeList

func (TimeRangeList) IntoAPIPB added in v0.17.0

func (trl TimeRangeList) IntoAPIPB() []*common.TimeRange

func (TimeRangeList) IntoPersistencePB added in v0.17.0

func (trl TimeRangeList) IntoPersistencePB() []*persistence.TimeRange

Jump to

Keyboard shortcuts

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