Documentation
¶
Index ¶
- type Identity
- func (identity *Identity) Describe(indent int)
- func (identity *Identity) DescribeList() []string
- func (identity *Identity) DescribeWithCallback(indent int, printf describe.Printf)
- func (identity *Identity) Equal(other *Identity) bool
- func (identity *Identity) Marshal() ([]byte, error)
- func (identity *Identity) Unmarshal(marshalledData []byte) (int, error)
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) DescribeList ¶ added in v1.3.2
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.
DescribeList returns the Identity description as a list of lines at indentation depth 0.
func (*Identity) DescribeWithCallback ¶ added in v1.3.2
DescribeWithCallback renders the Identity at the given indentation depth, routing each line to the provided fmt.Printf-like callback.
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.