api: make API a bit nicer

This commit is contained in:
Mitchell Hashimoto 2015-04-04 17:54:16 -07:00
parent 5d105b0cc8
commit 2744d84e0b
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ type TokenAuth struct {
}
// TokenAuth is used to return the client for logical-backend API calls.
func (a *Auth) TokenAuth() *TokenAuth {
func (a *Auth) Token() *TokenAuth {
return &TokenAuth{c: a.c}
}