MCPcopy
hub / github.com/caddyserver/caddy / Modules

Method Modules

context.go:655–659  ·  view source on GitHub ↗

Modules returns the lineage of modules that this context provisioned, with the most recent/current module being last in the list.

()

Source from the content-addressed store, hash-verified

653// Modules returns the lineage of modules that this context provisioned,
654// with the most recent/current module being last in the list.
655func (ctx Context) Modules() []Module {
656 mods := make([]Module, len(ctx.ancestry))
657 copy(mods, ctx.ancestry)
658 return mods
659}
660
661// Module returns the current module, or the most recent one
662// provisioned by the context.

Callers 2

getModulesFunction · 0.80
cmdListModulesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected