Documentation ¶
Overview ¶
most of these validate and parse functions have been taken from projectatomic/docker and modified for cri-o
Index ¶
- Constants
- func FilterArgumentsIntoFilters(filters []string) (url.Values, error)
- func GetAllLabels(labelFile, inputLabels []string) (map[string]string, error)
- func ValidURL(urlStr string) error
- func ValidateDomain(val string) (string, error)
- func ValidateExtraHost(val string) (string, error)
- func ValidateFileName(filename string) error
Constants ¶
View Source
const ( LabelType string = "label" ENVType string = "env" )
Variables ¶
This section is empty.
Functions ¶
func GetAllLabels ¶
GetAllLabels retrieves all labels given a potential label file and a number of labels provided from the command line.
func ValidateDomain ¶
func ValidateExtraHost ¶
validateExtraHost validates that the specified string is a valid extrahost and returns it. ExtraHost is in the form of name:ip where the ip has to be a valid ip (ipv4 or ipv6) or the special string HostGateway. for add-host flag
func ValidateFileName ¶
ValidateFileName returns an error if filename contains ":" as it is currently not supported
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.