MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / Append

Method Append

app/controlplane/pkg/data/ent/hook/hook.go:416–421  ·  view source on GitHub ↗

Append extends a chain, adding the specified hook as the last ones in the mutation flow.

(hooks ...ent.Hook)

Source from the content-addressed store, hash-verified

414// Append extends a chain, adding the specified hook
415// as the last ones in the mutation flow.
416func (c Chain) Append(hooks ...ent.Hook) Chain {
417 newHooks := make([]ent.Hook, 0, len(c.hooks)+len(hooks))
418 newHooks = append(newHooks, c.hooks...)
419 newHooks = append(newHooks, hooks...)
420 return Chain{newHooks}
421}
422
423// Extend extends a chain, adding the specified chain
424// as the last ones in the mutation flow.

Callers 9

ExtendMethod · 0.95
craftImageFunction · 0.80
ValidateCSAFFunction · 0.80
ValidateOpenAPIFunction · 0.80
ValidateAsyncAPIFunction · 0.80
sqlSaveMethod · 0.80
sqlSaveMethod · 0.80
sqlSaveMethod · 0.80
sqlSaveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected