ServiceAccount e2e/integration tests

This commit is contained in:
Jordan Liggitt
2015-05-06 16:05:00 -04:00
parent 7e14a80f63
commit 92bd58ede6
3 changed files with 672 additions and 0 deletions

View File

@@ -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