#running a sidecar with the go sdk

1 messages · Page 1 of 1 (latest)

tulip nebula
#

Hi, I am wondering how to run a sidecar with the go sdk. Some time ago the rough idea of async tasks had been implemented in cue which would allow for basic sidecar usage. I poked a bit around in the go sdk but I didnt find anything similar.
Should I simply run the command in an iife goroutine? If so, how can I stop the container once I dont need the sidecar anymore?

mossy knoll
tulip nebula
#

@mossy knoll , thanks. I have seen some of these things like endpoints and so on in the SDK. I was missing the WithServiceBinding method and its purpose. Sounds definitly cool.

#

I am still confused what methods will actually cause a container to run. Is it all of them or just specific ones like ExitCode or Stdout? Basicially the ones that are not prefixed with With.

cobalt kelp
tulip nebula
#

aye, makes sense. Thanks @cobalt kelp

cold iris