SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
package filer_ui
import (
_ "embed"
"html/template"
"net/url"
"strings"
"github.com/dustin/go-humanize"
)
func printpath(parts ...string) string {
concat := strings.Join(parts, "")
escaped := url.PathEscape(concat)
return strings.ReplaceAll(escaped, "%2F", "/")
}
var funcMap = template.FuncMap{
"humanizeBytes": humanize.Bytes,
"printpath": printpath,
"queryEscape": url.QueryEscape,
}
//go:embed filer.html
var filerHtml string
var StatusTpl = template.Must(template.New("status").Funcs(funcMap).Parse(filerHtml))