Documentation ¶
Index ¶
- func GenerateCert(ipaddr string) ([]byte, []byte, error)
- func GetCertPool(paths []string, useSystemPool bool) (*x509.CertPool, error)
- func IsEndpointAllowed(endpoint *url.URL, allowedDomains []string) bool
- func RemoveDuplicateStr(strSlice []string) []string
- func SplitHostPort(hostport string) (host, port string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCert ¶ added in v7.2.0
https://golang.org/src/crypto/tls/generate_cert.go as a function
func IsEndpointAllowed ¶ added in v7.3.0
IsEndpointAllowed checks whether the endpoint URL is allowed based on an allowed domains list.
func RemoveDuplicateStr ¶ added in v7.4.0
RemoveDuplicateStr removes duplicates from a slice of strings.
func SplitHostPort ¶ added in v7.3.0
SplitHostPort separates host and port. If the port is not valid, it returns the entire input as host, and it doesn't check the validity of the host. Unlike net.SplitHostPort, but per RFC 3986, it requires ports to be numeric. *** taken from net/url, modified validOptionalPort() to accept ":*"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.