validator

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToString

func BoolToString(str string) string

func IsAddressFamily

func IsAddressFamily(family string) bool

func IsArrayEmpty

func IsArrayEmpty(str []string) bool

func IsBondLACPTransmitRate

func IsBondLACPTransmitRate(ltr string) bool

func IsBondMode

func IsBondMode(mode string) bool

func IsBondTransmitHashPolicy

func IsBondTransmitHashPolicy(mode, thp string) bool

func IsBool

func IsBool(str string) bool

func IsBoolWithIp

func IsBoolWithIp(s string) bool

func IsDHCP

func IsDHCP(s string) bool

func IsDHCPDUIDType

func IsDHCPDUIDType(id string) bool

func IsDHCPOptionType

func IsDHCPOptionType(op string) bool

func IsDHCPv4ClientIdentifier

func IsDHCPv4ClientIdentifier(identifier string) bool

func IsDHCPv4SendOption

func IsDHCPv4SendOption(option string) bool

func IsDHCPv6SendVendorOption

func IsDHCPv6SendVendorOption(option string) bool

func IsDHCPv6WithoutRA

func IsDHCPv6WithoutRA(ra string) bool

func IsEmpty

func IsEmpty(str string) bool

func IsHost

func IsHost(host string) bool

func IsIP

func IsIP(str string) bool

func IsIPs

func IsIPs(s []string) bool

func IsInt

func IsInt(s string) (int, error)

func IsIpVLanFlags

func IsIpVLanFlags(flags string) bool

func IsIpVLanMode

func IsIpVLanMode(mode string) bool

func IsLinkActivationPolicy

func IsLinkActivationPolicy(policy string) bool

func IsLinkAdvertise

func IsLinkAdvertise(advertise string) bool

func IsLinkAlternativeNamesPolicy

func IsLinkAlternativeNamesPolicy(policy string) bool

func IsLinkBitsPerSecond

func IsLinkBitsPerSecond(value string) bool

func IsLinkDuplex

func IsLinkDuplex(duplex string) bool

func IsLinkGSO

func IsLinkGSO(value string) bool

func IsLinkGroup

func IsLinkGroup(value string) bool

func IsLinkLocalAddressing

func IsLinkLocalAddressing(s string) bool

func IsLinkMACAddressPolicy

func IsLinkMACAddressPolicy(policy string) bool

func IsLinkMtu

func IsLinkMtu(value string) bool

func IsLinkName

func IsLinkName(name string) bool

func IsLinkNamePolicy

func IsLinkNamePolicy(policy string) bool

func IsLinkPort

func IsLinkPort(port string) bool

func IsLinkQueue

func IsLinkQueue(id string) bool

func IsLinkQueueLength

func IsLinkQueueLength(queueLength string) bool

func IsLinkWakeOnLan

func IsLinkWakeOnLan(value string) bool

func IsMacVLanMode

func IsMacVLanMode(mode string) bool

func IsMulticastDNS

func IsMulticastDNS(s string) bool

func IsNFTChainHook

func IsNFTChainHook(h string) bool

func IsNFTChainPolicy

func IsNFTChainPolicy(p string) bool

func IsNFTChainType

func IsNFTChainType(c string) bool

func IsNFTFamily

func IsNFTFamily(f string) bool

func IsNotMAC

func IsNotMAC(mac string) bool

func IsPort

func IsPort(port string) bool

func IsProcSysNetPath

func IsProcSysNetPath(p string) bool

func IsRouterPreference

func IsRouterPreference(p string) bool

func IsRoutingFirewallMark

func IsRoutingFirewallMark(mark string) bool

func IsRoutingIPProtocol

func IsRoutingIPProtocol(p string) bool

func IsRoutingPort

func IsRoutingPort(port string) bool

func IsRoutingSuppressPrefixLength

func IsRoutingSuppressPrefixLength(value string) bool

func IsRoutingType

func IsRoutingType(typ string) bool

func IsRoutingTypeOfService

func IsRoutingTypeOfService(svc string) bool

func IsRoutingUser

func IsRoutingUser(usr string) bool

func IsScope

func IsScope(s string) bool

func IsUint16

func IsUint16(s string) bool

func IsUint32

func IsUint32(s string) bool

func IsUint8

func IsUint8(s string) bool

func IsUintOrMax

func IsUintOrMax(s string) bool

func IsVSockHost

func IsVSockHost(host string) bool

func IsValidIP

func IsValidIP(ip string) bool

func IsValidPkgNameList

func IsValidPkgNameList(pkglist string) bool

we allow multiple packages separated by commas

func IsVxLanVNI

func IsVxLanVNI(id string) bool

func IsWireGuardListenPort

func IsWireGuardListenPort(port string) bool

func IsWireGuardPeerEndpoint

func IsWireGuardPeerEndpoint(endPoint string) bool

func LinkExists

func LinkExists(link string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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