Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
Owners *Owners
}
Auth is a SecurityLayer used to enforce security checks on client requests. Use NewAuth to create a new instance.
func (*Auth) Authenticate ¶
Authenticate performs an authentication check on an HTTP Handler.
type Owners ¶
type Owners struct {
// contains filtered or unexported fields
}
Owners is the OwnershipRecorder used by the auth layer. Use NewOwners to create a new instance.
type OwnershipRecorder ¶
type OwnershipRecorder interface { SetOwner(username, id string) IsOwner(username, id string) bool }
OwnershipRecorder assists in request authorization by tracking resource ownership.
Click to show internal directories.
Click to hide internal directories.