MCPcopy Create free account
hub / github.com/cel-expr/cel-go / NewAttributeFactory

Function NewAttributeFactory

interpreter/attributes.go:144–154  ·  view source on GitHub ↗

NewAttributeFactory returns a default AttributeFactory which is produces Attribute values capable of resolving types by simple names and qualify the values using the supported qualifier types: bool, int, string, and uint.

(cont *containers.Container, a types.Adapter, p types.Provider, opts ...AttrFactoryOption)

Source from the content-addressed store, hash-verified

142// capable of resolving types by simple names and qualify the values using the supported qualifier
143// types: bool, int, string, and uint.
144func NewAttributeFactory(cont *containers.Container, a types.Adapter, p types.Provider, opts ...AttrFactoryOption) AttributeFactory {
145 fac := &attrFactory{
146 container: cont,
147 adapter: a,
148 provider: p,
149 }
150 for _, o := range opts {
151 fac = o(fac)
152 }
153 return fac
154}
155
156type attrFactory struct {
157 container *containers.Container

Calls

no outgoing calls