Help us shape the future of Go! Take the 2026 Go Developer Survey

webhook

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateStorageRequest

func ValidateStorageRequest(basePath *field.Path, req string, min string, err bool) (admission.Warnings, field.ErrorList)

ValidateStorageRequest - validates a storage request meets a provided min size. Depending on the err (bool) the check result is either a warning or an invalid error.

example usage:

  • return a warning

    ValidateStorageRequest(<path>, "500M", "5G", false)

  • return an error

    ValidateStorageRequest(<path>, "500M", "5G", true)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL