template

package
v0.0.0-...-a92c5f4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	META_LABEL         = "M3TA"
	META_PRIMARY_LABEL = "M3TAP"
)

Variables

This section is empty.

Functions

func FindPrimaryTemplateGroup

func FindPrimaryTemplateGroup(elem *f.FilterElement) (*f.FilterElement, error)

func ReplaceMetaGroups

func ReplaceMetaGroups(filterElem, primaryElem *f.FilterElement) error

func UpdateMetaGroups

func UpdateMetaGroups(filterElems map[string]*f.FilterElement) error

Types

type MetaKey

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

func FindMetaGroupKey

func FindMetaGroupKey(elem *f.FilterElement) (MetaKey, bool, error)

func FindPrimaryMetaGroupKey

func FindPrimaryMetaGroupKey(elem *f.FilterElement) (MetaKey, bool, error)

func NewMetaKey

func NewMetaKey(labels []string) MetaKey

func (MetaKey) Equals

func (k MetaKey) Equals(otherI interface{}) bool

func (MetaKey) Hash

func (k MetaKey) Hash() uint64

func (MetaKey) HashBytes

func (k MetaKey) HashBytes() []byte

func (MetaKey) String

func (k MetaKey) String() string

type MetaKeySet

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

func FindAllMetaGroupKeys

func FindAllMetaGroupKeys(elem *f.FilterElement) (*MetaKeySet, error)

func NewMetaKeySet

func NewMetaKeySet(keys ...MetaKey) *MetaKeySet

func (*MetaKeySet) Add

func (s *MetaKeySet) Add(k MetaKey)

func (*MetaKeySet) Contains

func (s *MetaKeySet) Contains(k MetaKey) bool

func (*MetaKeySet) Difference

func (s *MetaKeySet) Difference(other *MetaKeySet) *MetaKeySet

func (*MetaKeySet) Equals

func (s *MetaKeySet) Equals(other *MetaKeySet) bool

func (*MetaKeySet) Keys

func (s *MetaKeySet) Keys() []MetaKey

func (*MetaKeySet) Len

func (s *MetaKeySet) Len() int32

func (*MetaKeySet) UpdateSet

func (s *MetaKeySet) UpdateSet(other *MetaKeySet)

Jump to

Keyboard shortcuts

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