mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-10 05:27:07 +08:00
history: add UI view to traces
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
17
vendor/github.com/tonistiigi/jaeger-ui-rest/fs.go
generated
vendored
Normal file
17
vendor/github.com/tonistiigi/jaeger-ui-rest/fs.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
package jaegerui
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"io/fs"
|
||||
"net/http"
|
||||
|
||||
"github.com/tonistiigi/jaeger-ui-rest/decompress"
|
||||
)
|
||||
|
||||
//go:embed public
|
||||
var staticFiles embed.FS
|
||||
|
||||
func FS(cfg Config) http.FileSystem {
|
||||
files, _ := fs.Sub(staticFiles, "public")
|
||||
return http.FS(decompress.NewFS(files, cfg))
|
||||
}
|
Reference in New Issue
Block a user