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

webhook

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateDNS1123Label added in v0.5.0

func ValidateDNS1123Label(basePath *field.Path, keys []string, correction int) field.ErrorList

ValidateDNS1123Label - validates a list of strings are RFC 1123 label conform. Using the correction parameter the validation.DNS1123LabelMaxLength (63) get reduced by the correction value

example usage:

ValidateDNS1123Label(<path>, {"foo", "bar"}, 5)

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