mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 06:01:50 +00:00
ServiceAccount e2e/integration tests
This commit is contained in:
@@ -50,6 +50,12 @@ type Authorizer interface {
|
||||
Authorize(a Attributes) (err error)
|
||||
}
|
||||
|
||||
type AuthorizerFunc func(a Attributes) error
|
||||
|
||||
func (f AuthorizerFunc) Authorize(a Attributes) error {
|
||||
return f(a)
|
||||
}
|
||||
|
||||
// AttributesRecord implements Attributes interface.
|
||||
type AttributesRecord struct {
|
||||
User user.Info
|
||||
|
Reference in New Issue
Block a user