Documentation
¶
Index ¶
- type AuthenticateFunc
- type AuthenticateRequest
- type Authenticator
- type Authenticators
- type AuthorizeFunc
- type AuthorizeRequest
- type Authorizer
- type Authorizers
- type PublicKeysDir
- type UserGlobs
- type UserGlobsDir
- type UserGlobsFunc
- type UserGlobsMap
- type UserPasswordChecker
- type UserPasswordFunc
- type UserPasswordMap
- type UserPublicKeys
- type UserPublicKeysFunc
- type UserPublicKeysMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticateFunc ¶
type AuthenticateFunc func(context.Context, AuthenticateRequest) bool
func (AuthenticateFunc) Authenticate ¶
func (f AuthenticateFunc) Authenticate(ctx context.Context, req AuthenticateRequest) bool
type AuthenticateRequest ¶
type Authenticator ¶
type Authenticator interface {
Authenticate(context.Context, AuthenticateRequest) bool
}
func MergeAuthenticators ¶
func MergeAuthenticators(slice ...Authenticator) Authenticator
func UserPasswordAuthenticator ¶
func UserPasswordAuthenticator(c UserPasswordChecker) Authenticator
func UserPublicKeysAuthenticator ¶
func UserPublicKeysAuthenticator(c UserPublicKeys) Authenticator
type Authenticators ¶
type Authenticators []Authenticator
func (Authenticators) Authenticate ¶
func (slice Authenticators) Authenticate(ctx context.Context, req AuthenticateRequest) bool
type AuthorizeFunc ¶
type AuthorizeFunc func(context.Context, AuthorizeRequest) bool
func (AuthorizeFunc) Authorize ¶
func (f AuthorizeFunc) Authorize(ctx context.Context, req AuthorizeRequest) bool
type AuthorizeRequest ¶
type Authorizer ¶
type Authorizer interface {
Authorize(context.Context, AuthorizeRequest) bool
}
func MergeAuthorizers ¶
func MergeAuthorizers(slice ...Authorizer) Authorizer
func UserGlobsAuthorizer ¶
func UserGlobsAuthorizer(c UserGlobs) Authorizer
type Authorizers ¶
type Authorizers []Authorizer
func (Authorizers) Authorize ¶
func (slice Authorizers) Authorize(ctx context.Context, req AuthorizeRequest) bool
type UserGlobsDir ¶
type UserGlobsDir string
type UserGlobsFunc ¶
type UserGlobsMap ¶
type UserPasswordChecker ¶
type UserPasswordFunc ¶
type UserPasswordMap ¶
type UserPublicKeys ¶
type UserPublicKeysFunc ¶
func (UserPublicKeysFunc) PublicKeys ¶
type UserPublicKeysMap ¶
func (UserPublicKeysMap) PublicKeys ¶
Click to show internal directories.
Click to hide internal directories.