package
0.0.0-20240423164640-8c72ebae9b03
Repository: https://github.com/srerickson/chaparral.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
JWSAuthFunc returns an Authentication func that looks for a jwt bearer token signed with the public key.
No description provided by the author
LoggerMiddlware returns middleware that adds the logger to request context.
New returns a server mux with registered handlers for access and commit services.
No description provided by the author
WithAuthorizer sets the Authorizer used to determine if user are authorize user actions on resources.
WithAuthUserFun sets the function used to resolve users from requests.
WithLogger sets the logger that is added to all requests contexts and used by service hanlders.
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
actions.
# Variables
No description provided by the author
# Structs
No description provided by the author
AuthToken is the JWT bearer token used to authenticate users.
No description provided by the author
CommitService implements chaparral.v1.CommitService.
RolePermissions is a map of role names to Permissions.
# Interfaces
Authorizer is an interface used by types that can perform authorziation for requests.
# Type aliases
AuthUserFunc returns the AuthUser for the request.
Option is used to configure the server mux created with New.
Permissions maps actions to resources for which the action is allowed.
User is used to convert to/from a protobuf User.