Documentation ¶
Index ¶
- Constants
- func CreateNewUID(context, id string) string
- func CreateNewUIDShort(id string) string
- func GetMachineUID(log log.Logger) string
- func GetMachineUIDShort(log log.Logger) string
- func IsLegacyUID(uid string) bool
- func SafeConcatName(name ...string) string
- func SafeConcatNameMax(name []string, max int) string
Constants ¶
View Source
const UIDLength = 40
Variables ¶
This section is empty.
Functions ¶
func CreateNewUID ¶
func CreateNewUIDShort ¶
func GetMachineUID ¶
Gets machine ID and encodes it together with users $HOME path and extra key to protect privacy. Returns a hex-encoded string.
func GetMachineUIDShort ¶
func IsLegacyUID ¶
func SafeConcatName ¶
func SafeConcatNameMax ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.