Documentation
¶
Index ¶
- func AutoListener(protocol, address string, startPort, endPort uint16) (net.Listener, error)
- func AutoListenerAddress(protocol, address string, startPort, endPort uint16) (string, error)
- func BytesToSize(sz int64) string
- func DumpHeaders(headers http.Header, in bool) string
- func EnableSuperNetwork(zCfg *ziti.Config)
- func FormatHostDetailsWithUser(username, hostname, hostDetail, description string) (formattedHostDetail, formattedDescription string)
- func GetHostDetails() (hostname string, hostDetail string, username string, err error)
- func IsValidEmail(e string) bool
- func IsValidNameInNamespace(uniqueName string, skipProfanityCheck bool) bool
- func IsValidShareToken(uniqueName string, skipProfanityCheck bool) bool
- func NameInNamespace(name, namespace string) string
- func NewRequestsWrapper(proxy *httputil.ReverseProxy) *requestsWrapper
- func ParseDuration(s string) (time.Duration, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoListener ¶
func AutoListenerAddress ¶
func BytesToSize ¶
func EnableSuperNetwork ¶
func FormatHostDetailsWithUser ¶
func FormatHostDetailsWithUser(username, hostname, hostDetail, description string) (formattedHostDetail, formattedDescription string)
FormatHostDetailsWithUser combines the username and host details into a single string. It also returns a formatted description string if the input description is the default "<user>@<hostname>".
func GetHostDetails ¶
GetHostDetails returns the hostname, detailed host information, and username. The detailed host information includes OS, platform, kernel details, and username.
func IsValidEmail ¶
func IsValidNameInNamespace ¶
IsValidNameInNamespace ensures that the string represents a valid name in a namespace. Lowercase alphanumeric only. 3-64 characters.
func IsValidShareToken ¶
IsValidShareToken ensures that the string represents a valid unique name. Lowercase alphanumeric only. 3-32 characters.
func NameInNamespace ¶
func NewRequestsWrapper ¶
func NewRequestsWrapper(proxy *httputil.ReverseProxy) *requestsWrapper
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.