commit | 5d0f9dc4f99f918158f2cc19cc318e96d4af0c67 | [log] [tgz] |
---|---|---|
author | Shuo Yang <gshuoy@google.com> | Fri Dec 08 22:24:34 2023 +0000 |
committer | Shuo Yang <gshuoy@google.com> | Tue Dec 12 20:35:34 2023 +0000 |
tree | 95b21d8be6b92bd7df90e23e1eb8a70ef3e55409 | |
parent | 25e05769fc7261229a133fa620f90b80974ec9e6 [diff] |
Pass context.Context as functions parameter instead of storing the context in the struct. Values of the context.Context type carry security credentials, tracing information, deadlines, and cancellation signals across API and process boundaries. Unlike C++ and Java, which in the Google codebase use thread-local storage, Go programs pass contexts explicitly along the entire function call chain from incoming RPCs and HTTP requests to outgoing requests. BUG=b/308853611 TEST=test GPU driver installation with this docker container in vm Change-Id: Ifd02e45ee5d6f53d7634de84cac6c9d46868d0f5 Reviewed-on: https://cos-review.googlesource.com/c/cos/tools/+/62224 Cloud-Build: GCB Service account <228075978874@cloudbuild.gserviceaccount.com> Tested-by: Shuo Yang <gshuoy@google.com> Reviewed-by: Robert Kolchmeyer <rkolchmeyer@google.com>
This is a repository of various tools developed for Container-Optimized OS. Examples include cos-gpu-installer, cos-toolbox, etc.
See CONTRIBUTING.md for how to contribute.