commit | 1871a70fd9a19b250a5ba58507439af371a49157 | [log] [tgz] |
---|---|---|
author | Jan Fajerski <jfajersk@redhat.com> | Fri Nov 05 10:08:27 2021 |
committer | Julien Pivotto <roidelapluie@gmail.com> | Tue Nov 30 00:36:14 2021 |
tree | 30ce9064300226294b99eb3549247f49f0ac8b4a | |
parent | ce7006ede1b27960d267508d7ae0af2f51422610 [diff] |
assets: add file system layer for zipped embed assets This commits adds an optional decompression layer to a embed.FS instance. If a file can't be found during Open, the filename plus a .gz ending is tried. If this succeeds, the content is decompressed and served. Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
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.
context.Context