Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identity ¶
Identity represents a user identity, including its name and associated Security Identifier (SID).
Attributes:
- Name (string): The name of the identity, typically representing a user or group.
- SID (SID): The Security Identifier associated with the identity, used for access control.
Internal attributes:
- RawBytes ([]byte): The raw byte data representing the identity, including the SID information.
- RawBytesSize (uint32): The size of the raw byte data.
func (*Identity) Describe ¶
Describe prints a detailed description of the Identity struct, including its SID and name, formatted with indentation for clarity.
Parameters:
- indent (int): The indentation level for formatting the output. Each level increases the indentation depth, allowing for a hierarchical display of the Identity's components.
func (*Identity) Equal ¶
Equal checks if two Identity objects are equal by comparing all their fields.
Parameters: - other: The other Identity to compare with
Returns: - bool: true if the Identities are equal, false otherwise
func (*Identity) Marshal ¶
Marshal serializes the Identity struct into a byte slice.
Returns:
- []byte: The serialized byte slice representing the Identity.
Click to show internal directories.
Click to hide internal directories.