parse

package
v5.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

most of these validate and parse functions have been taken from projectatomic/docker and modified for cri-o

Index

Constants

View Source
const (
	LabelType string = "label"
	ENVType   string = "env"
)

Variables

This section is empty.

Functions

func FilterArgumentsIntoFilters

func FilterArgumentsIntoFilters(filters []string) (url.Values, error)

func GetAllLabels

func GetAllLabels(labelFile, inputLabels []string) (map[string]string, error)

GetAllLabels retrieves all labels given a potential label file and a number of labels provided from the command line.

func ValidURL

func ValidURL(urlStr string) error

ValidURL checks a string urlStr is a url or not

func ValidateDomain

func ValidateDomain(val string) (string, error)

func ValidateExtraHost

func ValidateExtraHost(val string) (string, error)

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

func ValidateFileName(filename string) error

ValidateFileName returns an error if filename contains ":" as it is currently not supported

Types

This section is empty.

Jump to

Keyboard shortcuts

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