logical: GoStringer for Auth

This commit is contained in:
Mitchell Hashimoto 2015-04-01 15:08:43 -07:00
parent 5676373742
commit 906f81b588
1 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,9 @@
package logical
import (
"fmt"
)
// Auth is the resulting authentication information that is part of
// Response for credential backends.
type Auth struct {
@ -17,3 +21,7 @@ type Auth struct {
// audit log.
Metadata map[string]string
}
func (a *Auth) GoString() string {
return fmt.Sprintf("*%#v", *a)
}