modifier

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Seperator = "$"

Variables

This section is empty.

Functions

func DecodeModifierParameter

func DecodeModifierParameter(parameter string) (result map[string][]string, err error)

func EncodeModifierParameter

func EncodeModifierParameter(parameter map[string][]string) (result string)

func JoinModifier

func JoinModifier(pureId string, modifier map[string][]string) (id string)

func SplitModifier

func SplitModifier(id string) (pureId string, modifier map[string][]string)

Types

type Modifier

type Modifier struct {
	// contains filtered or unexported fields
}

func New

func New(config configuration.Config, query Query) *Modifier

func (*Modifier) PrepareListModify

func (this *Modifier) PrepareListModify(ids []string) (pureIds []string, prepared map[string][]PreparedModifyInfo)

func (*Modifier) UsePreparedModify

func (this *Modifier) UsePreparedModify(preparedModify map[string][]PreparedModifyInfo, entry model.Entry, kind string, cache ModifyResourceReferenceCache) (result []model.Entry, err error)

type ModifyResourceReferenceCache

type ModifyResourceReferenceCache = *map[string]map[string]map[string]interface{}

func NewModifyResourceReferenceCache

func NewModifyResourceReferenceCache() ModifyResourceReferenceCache

type PreparedModifyInfo

type PreparedModifyInfo struct {
	RawId      string
	PureId     string
	Unmodified bool
	Modifier   map[string][]string
}

type Query

type Query interface {
	GetResourceInterface(kind string, resource string, result interface{}) (version model.ResourceVersion, err error)
}

Jump to

Keyboard shortcuts

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