reader

package
v0.0.0-...-d29d0de Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition struct {
	Attr  string
	Op    common.Operator
	Value string
}

func (Condition) String

func (c Condition) String() string

type InlineFilter

type InlineFilter func(*Item) bool

func CreateInlineFilter

func CreateInlineFilter(conditions []Condition) InlineFilter

func CreateInlineIdFilter

func CreateInlineIdFilter(conditions []Condition) InlineFilter

type InlineTransformer

type InlineTransformer func(*Properties) *Properties

func CreateInlineTransformer

func CreateInlineTransformer(attrs []string) InlineTransformer

type Item

type Item struct {
	Profile string
	Data    *ItemData
}

type ItemData

type ItemData struct {
	Identifier string
	Properties *Properties
}

type Properties

type Properties map[string]string

type Reader

type Reader interface {
	GetNamespace() string
	GetItemSchemaPath() string
	GetLinkSchemaPath() string

	GetSupportedProfiles() []string

	GetItems(itemType string, profiles []string, attrs []string, conditions []Condition) ([]*Item, error)
}

Jump to

Keyboard shortcuts

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