api: make API a bit nicer
This commit is contained in:
parent
5d105b0cc8
commit
2744d84e0b
|
@ -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}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue