Documentation
¶
Index ¶
- Variables
- func GenerateSecurePassword(length int) string
- func GetSystemResourceLimits() (int, int, error)
- func ParseRAMString(ramStr string) (int, error)
- func ValidateBasicResourceBounds(cpuCores, ramMB int) error
- func ValidateInstanceName(name string) error
- func ValidateSystemResources(cpuCores, ramMB int) error
- type Counter
Constants ¶
This section is empty.
Variables ¶
View Source
var BackupCounter = NewCounter()
BackupCounter is a global counter for backup naming
Functions ¶
func GenerateSecurePassword ¶
func GetSystemResourceLimits ¶
func ParseRAMString ¶
func ValidateInstanceName ¶
ValidateInstanceName checks that a new instance name is safe to embed in Docker names, URLs and file paths. Existing instances are not re-validated.
func ValidateSystemResources ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.