ballerina/uuid

Package overview

This package provides functions related to UUID (Universally unique identifier). For an example on the usage of the operations, see the UUID Example.

Functions

[15]

createType1AsRecord

Returns a UUID of type 1 as a UUID record.

createType1AsString

Returns a UUID of type 1 as a string.

createType3AsRecord

Returns a UUID of type 3 as a UUID record.

createType3AsString

Returns a UUID of type 3 as a string.

createType4AsRecord

Returns a UUID of type 4 as a UUID record.

createType4AsString

Returns a UUID of type 4 as a string.

createType5AsRecord

Returns a UUID of type 5 as a UUID record.

createType5AsString

Returns a UUID of type 5 as a string.

getVersion

Detect RFC version of a UUID.

nilAsRecord

Returns a nil UUID as a UUID record.

nilAsString

Returns a nil UUID as a string.

toBytes

Convert to an array of bytes.

toRecord

Convert to UUID record.

toString

Convert to UUID string.

validate

Test a string to see if it is a valid UUID.

Records

[1]

Uuid

Represents a UUID.

Enums

[2]

NamespaceUUID

Represents UUIDs strings of well known namespace IDs.

Version

Represents the UUID versions.

Errors

[1]

Error

Represents UUID module related errors.