CollectionPattern

org.llm4s.rag.permissions.CollectionPattern
See theCollectionPattern companion trait

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case object All extends CollectionPattern

Match all collections

Match all collections

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
All.type
final case class AllDescendants(prefix: CollectionPath) extends CollectionPattern

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Exact(path: CollectionPath) extends CollectionPattern

Match a specific collection by exact path

Match a specific collection by exact path

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class ImmediateChildren(parent: CollectionPath) extends CollectionPattern

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def parse(pattern: String): Result[CollectionPattern]

Parse a pattern string into a CollectionPattern.

Parse a pattern string into a CollectionPattern.

Pattern syntax (where STAR means asterisk):

  • STAR → All
  • foo → Exact(foo)
  • foo/STAR → ImmediateChildren(foo)
  • foo/STAR-STAR → AllDescendants(foo)

Value parameters

pattern

The pattern string to parse

Attributes

Returns

Right(CollectionPattern) if valid, Left(error) if invalid