Documentation
¶
Index ¶
- Constants
- type AccessControlListRevision
- func (aclrev *AccessControlListRevision) Equal(other *AccessControlListRevision) bool
- func (aclrev *AccessControlListRevision) GetRevision() uint8
- func (aclrev *AccessControlListRevision) Marshal() ([]byte, error)
- func (aclrev *AccessControlListRevision) SetRevision(revision uint8)
- func (aclrev *AccessControlListRevision) String() string
- func (aclrev *AccessControlListRevision) Unmarshal(marshalledData []byte) (int, error)
Constants ¶
View Source
const ( ACL_REVISION = 0x02 ACL_REVISION_DS = 0x04 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessControlListRevision ¶
type AccessControlListRevision struct {
Value uint8
}
AccessControlListRevision represents the revision of an access control list.
func (*AccessControlListRevision) Equal ¶
func (aclrev *AccessControlListRevision) Equal(other *AccessControlListRevision) bool
Equal checks if two AccessControlListRevision structs are equal.
Parameters:
- other: The other AccessControlListRevision to compare with.
Returns:
- bool: True if the revisions are equal, false otherwise.
func (*AccessControlListRevision) GetRevision ¶
func (aclrev *AccessControlListRevision) GetRevision() uint8
GetRevision returns the revision of the Access Control List.
Returns:
- uint8: The revision of the Access Control List.
func (*AccessControlListRevision) Marshal ¶
func (aclrev *AccessControlListRevision) Marshal() ([]byte, error)
Marshal serializes the AccessControlListRevision struct into a byte slice.
Returns:
- []byte: The serialized byte slice representing the ACL revision.
func (*AccessControlListRevision) SetRevision ¶
func (aclrev *AccessControlListRevision) SetRevision(revision uint8)
SetRevision sets the revision of the Access Control List.
Parameters:
- revision: The revision to set.
func (*AccessControlListRevision) String ¶
func (aclrev *AccessControlListRevision) String() string
String returns the string representation of the AccessControlListRevision struct.
Returns:
- string: The string representation of the AccessControlListRevision.
Click to show internal directories.
Click to hide internal directories.