package
0.0.0-20201106104914-e99cc0b83bb6
Repository: https://github.com/ozonep/drone.git
Documentation: pkg.go.dev
# Functions
AuthorizeAdmin returns an http.Handler middleware that authorizes only system administrators to proceed to the next handler in the chain.
AuthorizeUser returns an http.Handler middleware that authorizes only authenticated users to proceed to the next handler in the chain.
CheckAccess returns an http.Handler middleware that authorizes only authenticated users with the required read, write or admin access permissions to the requested repository resource.
CheckAdminAccess returns an http.Handler middleware that authorizes only authenticated users with admin repository access to proceed to the next handler in the chain.
CheckMembership returns an http.Handler middleware that authorizes only authenticated users with the required membership to an organization to the requested repository resource.
CheckReadAccess returns an http.Handler middleware that authorizes only authenticated users with read repository access to proceed to the next handler in the chain.
CheckWriteAccess returns an http.Handler middleware that authorizes only authenticated users with write repository access to proceed to the next handler in the chain.
InjectRepository returns an http.Handler middleware that injects the repository and repository permissions into the context.