// Copyright 2014 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package pages
const containersHtmlTemplate = `
{{if .IsRoot}}
{{end}}
{{if .Subcontainers}}
{{end}}
{{if .DockerStatus}}
{{range $dockerstatus := .DockerStatus}}
- {{$dockerstatus.Key}} {{$dockerstatus.Value}}
{{end}}
{{if .DockerDriverStatus}}
- Storage
{{range $driverstatus := .DockerDriverStatus}}
- {{$driverstatus.Key}} {{$driverstatus.Value}}
{{end}}
{{end}}
{{end}}
{{if .DockerImages}}
{{end}}
{{if .ResourcesAvailable}}
{{if .CpuAvailable}}
- CPU
{{if .Spec.Cpu.Limit}}
- Shares {{printShares .Spec.Cpu.Limit}} shares
{{end}}
{{if .Spec.Cpu.MaxLimit}}
- Max Limit {{printCores .Spec.Cpu.MaxLimit}} cores
{{end}}
{{if .Spec.Cpu.Mask}}
- Allowed Cores {{printMask .Spec.Cpu.Mask .MachineInfo.NumCores}}
{{end}}
{{end}}
{{if .MemoryAvailable}}
- Memory
{{if .Spec.Memory.Reservation}}
- Reservation {{printSize .Spec.Memory.Reservation}} {{printUnit .Spec.Memory.Reservation}}
{{end}}
{{if .Spec.Memory.Limit}}
- Limit {{printSize .Spec.Memory.Limit}} {{printUnit .Spec.Memory.Limit}}
{{end}}
{{if .Spec.Memory.SwapLimit}}
- Swap Limit {{printSize .Spec.Memory.SwapLimit}} {{printUnit .Spec.Memory.SwapLimit}}
{{end}}
{{end}}
{{if .CpuAvailable}}
CPU
Total Usage
Usage per Core
Usage Breakdown
{{end}}
{{if .MemoryAvailable}}
{{end}}
{{if .NetworkAvailable}}
{{end}}
{{if .FsAvailable}}
{{end}}
{{if .CustomMetricsAvailable}}
{{end}}
{{end}}
`