package
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Nov 5, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Mount is the mount point for the healthcheck sidecar pvc.
it should be mounted on /<Mount>/<pvc>
Port is the port for the healthcheck sidecar.
DiskUsage returns a handler which responds with disk statistics in JSON.
Path is the filesystem path from which to check disk usage.
Client can be used to query healthcheck information.
DiskUsage returns disk usage statistics or an error if unable to obtain.
Do not include the port in the host.
type DiskUsageResponse struct {
Dir string `json:"dir"`
PvcName string `json:"pvc_name"`
AllBytes uint64 `json:"all_bytes,omitempty"`
FreeBytes uint64 `json:"free_bytes,omitempty"`
Error string `json:"error,omitempty"`
}
DiskUsageResponse returns disk statistics in bytes.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.