Documentation ¶
Index ¶
- func AuthorizationAttributesFrom(spec authorizationapi.SubjectAccessReviewSpec) authorizer.AttributesRecord
- func NonResourceAttributesFrom(user user.Info, in authorizationapi.NonResourceAttributes) authorizer.AttributesRecord
- func ResourceAttributesFrom(user user.Info, in authorizationapi.ResourceAttributes) authorizer.AttributesRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizationAttributesFrom ¶
func AuthorizationAttributesFrom(spec authorizationapi.SubjectAccessReviewSpec) authorizer.AttributesRecord
AuthorizationAttributesFrom takes a spec and returns the proper authz attributes to check it.
func NonResourceAttributesFrom ¶
func NonResourceAttributesFrom(user user.Info, in authorizationapi.NonResourceAttributes) authorizer.AttributesRecord
NonResourceAttributesFrom combines the API object information and the user.Info from the context to build a full authorizer.AttributesRecord for non resource access
func ResourceAttributesFrom ¶
func ResourceAttributesFrom(user user.Info, in authorizationapi.ResourceAttributes) authorizer.AttributesRecord
ResourceAttributesFrom combines the API object information and the user.Info from the context to build a full authorizer.AttributesRecord for resource access
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.