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

Struct CLI

main.go:11–19  ·  view source on GitHub ↗

CLI of this Function.

Source from the content-addressed store, hash-verified

9
10// CLI of this Function.
11type CLI struct {
12 Debug bool `help:"Emit debug logs in addition to info logs." short:"d"`
13
14 Network string `default:"tcp" help:"Network on which to listen for gRPC connections."`
15 Address string `default:":9443" help:"Address at which to listen for gRPC connections."`
16 TLSCertsDir string `env:"TLS_SERVER_CERTS_DIR" help:"Directory containing server certs (tls.key, tls.crt) and the CA used to verify client certificates (ca.crt)"`
17 Insecure bool `help:"Run without mTLS credentials. If you supply this flag --tls-server-certs-dir will be ignored."`
18 MaxRecvMessageSize int `default:"4" help:"Maximum size of received messages in MB."`
19}
20
21// Run this Function.
22func (c *CLI) Run() error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected