func()

in client/buildpacks.go [56:76]


func (b *buildpacksFunctionServer) Start(stdoutFile, stderrFile, functionOutputFile string) (func(), error) {
	b.functionOutputFile = functionOutputFile
	b.stdoutFile = stdoutFile
	b.stderrFile = stderrFile
	typ := *functionSignature
	if typ == "legacyevent" {
		typ = "event"
	}

	ctx := context.Background()
	if err := b.build(ctx); err != nil {
		return nil, fmt.Errorf("building function container: %v", err)
	}

	shutdown, err := b.run()
	if err != nil {
		return nil, fmt.Errorf("running function container: %v", err)
	}

	return shutdown, nil
}