bpmmd

package
v0.0.0-...-a45bf93 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package bpmmd contains types for dealing with metadata

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JQFilter

type JQFilter[T any] struct {
	// contains filtered or unexported fields
}

func NewJQFilter

func NewJQFilter[T any](x streams.Iterator[T], code *gojq.Code, fn func(T) LabelSet) *JQFilter[T]

func (*JQFilter[T]) Next

func (it *JQFilter[T]) Next(ctx context.Context, dst *T) error

type Label

type Label struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

func (Label) MarshalJSON

func (l Label) MarshalJSON() ([]byte, error)

func (Label) SemVer

func (l Label) SemVer() (*SemVer, error)

func (Label) String

func (l Label) String() string

func (Label) TAI64

func (l Label) TAI64() (tai64.TAI64, error)

func (Label) Uint64

func (l Label) Uint64() (uint64, error)

func (*Label) UnmarshalJSON

func (l *Label) UnmarshalJSON(data []byte) error

type LabelSet

type LabelSet map[string]string

func (LabelSet) Get

func (s LabelSet) Get(k string) Label

func (LabelSet) Put

func (s LabelSet) Put(x Label)

func (LabelSet) String

func (s LabelSet) String() string

type SemVer

type SemVer struct {
	Major uint
	Minor uint
	Patch string
}

func ParseSemVer

func ParseSemVer(x string) (*SemVer, error)

func (*SemVer) String

func (sv *SemVer) String() string

Jump to

Keyboard shortcuts

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