Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultAuthorizer ¶
type DefaultAuthorizer struct {
// contains filtered or unexported fields
}
DefaultAuthorizer implements a basic set of authorization rules and delegates authorization for repository resources. Access to everything else is denied.
func NewDefaultAuthorizer ¶
func NewDefaultAuthorizer(repoAuthorizer RepositoryAuthorizer, allowAnonymous bool) DefaultAuthorizer
NewDefaultAuthorizer returns a new DefaultAuthorizer.
type DefaultRepositoryAuthorizer ¶
type DefaultRepositoryAuthorizer struct {
// contains filtered or unexported fields
}
DefaultRepositoryAuthorizer implements a simple authorization logic for authenticated users.
func NewDefaultRepositoryAuthorizer ¶
func NewDefaultRepositoryAuthorizer(allowAnonymous bool) DefaultRepositoryAuthorizer
NewDefaultRepositoryAuthorizer returns a new DefaultRepositoryAuthorizer.
Click to show internal directories.
Click to hide internal directories.