Documentation ¶
Overview ¶
Package util provides utility functions for the remoteagent component.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeAgentID ¶
SanitizeAgentID sanitizes a string to be used as an agent ID.
All characters are not ASCII alphanumerics, underscores, or hyphens are replaced with an underscore, and the string is converted to lowercase.
func SanitizeFileName ¶
SanitizeFileName sanitizes a string to be used as a file name.
All characters that are not ASCII alphanumerics, underscores, or hyphens are replaced with an underscore, and the string is trimmed of extraneous whitespace and limited to 255 characters in length.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.