pluginOption emits CSM Labels from the environment and metadata exchange for csm channels and all servers. Do not use this directly; use newPluginOption instead.
| 43 | // |
| 44 | // Do not use this directly; use newPluginOption instead. |
| 45 | type pluginOption struct { |
| 46 | // localLabels are the labels that identify the local environment a binary |
| 47 | // is run in, and will be emitted from the CSM Plugin Option. |
| 48 | localLabels map[string]string |
| 49 | // metadataExchangeLabelsEncoded are the metadata exchange labels to be sent |
| 50 | // as the value of metadata key "x-envoy-peer-metadata" in proto wire format |
| 51 | // and base 64 encoded. This gets sent out from all the servers running in |
| 52 | // this process and for csm channels. |
| 53 | metadataExchangeLabelsEncoded string |
| 54 | } |
| 55 | |
| 56 | // newPluginOption returns a new pluginOption with local labels and metadata |
| 57 | // exchange labels derived from the environment. |
nothing calls this directly
no outgoing calls
no test coverage detected