componentcfg

package
v1.23.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SEPARATOR      = "/"
	SEPARATOR_RUNE = '/'
)
View Source
const (
	FALLBACK_RUNTYPE = apricotpb.RunType_ANY

	FALLBACK_ROLENAME = "any"
)
View Source
const (
	ConfigComponentsPath = "o2/components/"
)

Variables

View Source
var (
	E_BAD_KEY = errors.New("bad component configuration key format")
)

Functions

func GetComponentsMapFromKeysList

func GetComponentsMapFromKeysList(keys []string) map[string]bool

keys must be a slice containing all the full keys in /o2/components

func GetEntriesMapOfComponentFromKeysList

func GetEntriesMapOfComponentFromKeysList(component string, runtype apricotpb.RunType, rolename string, keys []string) map[string]bool

func IsInputValidComponentName added in v1.10.0

func IsInputValidComponentName(input string) bool

Checks whether the input string is a valid component name

func IsInputValidEntryName added in v1.10.0

func IsInputValidEntryName(input string) bool

Checks whether the input string is a valid entry name

func IsStringValidEntriesQueryPath added in v0.19.90

func IsStringValidEntriesQueryPath(input string) bool

func IsStringValidQueryParameters added in v1.7.0

func IsStringValidQueryParameters(input string) bool

func IsStringValidQueryPath added in v1.10.0

func IsStringValidQueryPath(input string) bool

Types

type EntriesQuery added in v0.19.90

type EntriesQuery struct {
	Component string
	RunType   apricotpb.RunType
	RoleName  string
}

func NewEntriesQuery added in v0.19.90

func NewEntriesQuery(path string) (p *EntriesQuery, err error)

type Query added in v0.19.90

type Query struct {
	Component string
	RunType   apricotpb.RunType
	RoleName  string
	EntryKey  string
}

func NewQuery added in v0.19.90

func NewQuery(path string) (p *Query, err error)

func (*Query) AbsoluteRaw added in v0.19.90

func (p *Query) AbsoluteRaw() string

func (*Query) Path added in v0.19.90

func (p *Query) Path() string

func (*Query) Raw added in v0.19.90

func (p *Query) Raw() string

func (*Query) WithFallbackRoleName added in v0.50.0

func (p *Query) WithFallbackRoleName() *Query

func (*Query) WithFallbackRunType added in v0.50.0

func (p *Query) WithFallbackRunType() *Query

type QueryParameters added in v1.7.0

type QueryParameters struct {
	ProcessTemplates bool
	VarStack         map[string]string
}

func NewQueryParameters added in v1.7.0

func NewQueryParameters(parameters string) (p *QueryParameters, err error)

Jump to

Keyboard shortcuts

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