filter

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscapeFilter

func EscapeFilter(filter string) string

Escape special characters as specified in RFC4515

Types

type Alias

type Alias struct{ Alias, Substitution string }

func ListAliases

func ListAliases() []Alias

type Filter

type Filter struct {
	Attribute attributes.Attribute
	Value     string
	Rule      attributes.MatchingRule
}

func And

func And(property Filter, properties ...Filter) Filter

Build complex filter from filters, where all must match

func ByID

func ByID(id string) Filter

func HasNotExpired

func HasNotExpired(strict bool) Filter

func IsDomainController

func IsDomainController() Filter

func IsEnabled

func IsEnabled() Filter

func IsGroup

func IsGroup() Filter

func IsUser

func IsUser() Filter

func MemberOf

func MemberOf(parent string, recursive bool) Filter

func Not

func Not(property Filter) Filter

Negate filter

func Or

func Or(property Filter, properties ...Filter) Filter

Build complex filter from filters, where at least one must match

func ParseRaw

func ParseRaw(raw string) (*Filter, error)

func (Filter) ExpandAlias added in v1.0.1

func (o Filter) ExpandAlias() Filter

func (Filter) String

func (o Filter) String() string

Jump to

Keyboard shortcuts

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