MCPcopy
hub / github.com/minio/minio-go / IsValidIP

Function IsValidIP

pkg/s3utils/utils.go:64–66  ·  view source on GitHub ↗

IsValidIP parses input string for ip address validity.

(ip string)

Source from the content-addressed store, hash-verified

62
63// IsValidIP parses input string for ip address validity.
64func IsValidIP(ip string) bool {
65 return net.ParseIP(ip) != nil
66}
67
68// IsVirtualHostSupported - verifies if bucketName can be part of
69// virtual host. Currently only Amazon S3 and Google Cloud Storage

Callers 2

isValidEndpointURLFunction · 0.92
TestIsValidIPFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsValidIPFunction · 0.68