package app import ( "fmt" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) templ ClusterVolumeServers(data dash.ClusterVolumeServersData) {

Volume Servers

Total Volume Servers
{fmt.Sprintf("%d", data.TotalVolumeServers)}
Total Volumes
{fmt.Sprintf("%d", data.TotalVolumes)}
Total Capacity
{formatBytes(data.TotalCapacity)}
Volume Servers
if len(data.VolumeServers) > 0 {
for _, host := range data.VolumeServers { }
Address Data Center Rack Volumes Max Volumes EC Shards Capacity Usage Actions
{host.Address} {host.DataCenter} {host.Rack}
{fmt.Sprintf("%d", host.Volumes)}
{fmt.Sprintf("%d", host.MaxVolumes)} if host.EcShards > 0 {
{fmt.Sprintf("%d", host.EcShards)} shards
if host.EcVolumes > 0 {
{fmt.Sprintf("%d EC volumes", host.EcVolumes)}
} } else { - }
{formatBytes(host.DiskCapacity)}
{formatBytes(host.DiskUsage)}
} else {
No Volume Servers Found

No volume servers are currently available in the cluster.

}
Last updated: {data.LastUpdated.Format("2006-01-02 15:04:05")}
}