MCPcopy Create free account
hub / github.com/crossplane/function-template-go / Run

Method Run

main.go:22–33  ·  view source on GitHub ↗

Run this Function.

()

Source from the content-addressed store, hash-verified

20
21// Run this Function.
22func (c *CLI) Run() error {
23 log, err := function.NewLogger(c.Debug)
24 if err != nil {
25 return err
26 }
27
28 return function.Serve(&Function{log: log},
29 function.Listen(c.Network, c.Address),
30 function.MTLSCertificates(c.TLSCertsDir),
31 function.Insecure(c.Insecure),
32 function.MaxRecvMessageSize(c.MaxRecvMessageSize*1024*1024))
33}
34
35func main() {
36 ctx := kong.Parse(&CLI{}, kong.Description("A Crossplane Composition Function."))

Callers 2

TestRunFunctionFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestRunFunctionFunction · 0.64