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

Function NewContainer

common/containers/container.go:36–46  ·  view source on GitHub ↗

NewContainer creates a new Container with the fully-qualified name.

(opts ...ContainerOption)

Source from the content-addressed store, hash-verified

34
35// NewContainer creates a new Container with the fully-qualified name.
36func NewContainer(opts ...ContainerOption) (*Container, error) {
37 var c *Container
38 var err error
39 for _, opt := range opts {
40 c, err = opt(c)
41 if err != nil {
42 return nil, err
43 }
44 }
45 return c, nil
46}
47
48// Container holds a reference to an optional qualified container name and set of aliases.
49//

Callers 15

CompileRuleFunction · 0.92
TestAttributesOneofAttrFunction · 0.92
TestAttributesOptionalFunction · 0.92
testContainerFunction · 0.92
programFunction · 0.92
TestCheckFunction · 0.92
BenchmarkCheckFunction · 0.92

Calls

no outgoing calls