Add option to have certificates specified inline

Add fields to the TLSConfig struct so that it's possible to specify
either a path to the certificates (Certificate Authority, client cert,
client key) or specify them inline.

This is related to prometheus/prometheus#8551

Signed-off-by: Marcelo E. Magallon <marcelo.magallon@grafana.com>
3 files changed
tree: d6cdc556f6d4c2ee5d087c0962c70b9be297f5f9
  1. .circleci/
  2. config/
  3. expfmt/
  4. internal/
  5. model/
  6. promlog/
  7. route/
  8. server/
  9. sigv4/
  10. version/
  11. .gitignore
  12. CODE_OF_CONDUCT.md
  13. CONTRIBUTING.md
  14. go.mod
  15. go.sum
  16. LICENSE
  17. MAINTAINERS.md
  18. Makefile
  19. Makefile.common
  20. NOTICE
  21. README.md
README.md

Common

circleci

This repository contains Go libraries that are shared across Prometheus components and libraries. They are considered internal to Prometheus, without any stability guarantees for external usage.

  • config: Common configuration structures
  • expfmt: Decoding and encoding for the exposition format
  • model: Shared data structures
  • promlog: A logging wrapper around go-kit/log
  • route: A routing wrapper around httprouter using context.Context
  • server: Common servers
  • version: Version information and metrics