Documentation ¶
Overview ¶
Package permissionstestutils are exported functions to be run in 3rd party package or integration tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultCurrentUserAsRoot ¶
func DefaultCurrentUserAsRoot()
DefaultCurrentUserAsRoot mocks the current user as root for the permission manager.
func IdempotentPermissionError ¶
IdempotentPermissionError strips the UID from the permission error message.
func SetCurrentUserAsRoot ¶
func SetCurrentUserAsRoot(m *permissions.Manager, currentUserAsRoot bool)
SetCurrentUserAsRoot mutates a default permission to the current user's UID if currentUserAsRoot is true.
func WithCurrentUserAsRoot ¶
func WithCurrentUserAsRoot() permissions.Option
WithCurrentUserAsRoot returns an Option that sets the rootUID to the current user's UID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.