47 lines
1.0 KiB
Go
47 lines
1.0 KiB
Go
package common
|
|
|
|
import "time"
|
|
|
|
type Auth struct {
|
|
Auth struct {
|
|
Identity struct {
|
|
Methods []string `json:"methods"`
|
|
Password struct {
|
|
User struct {
|
|
Name string `json:"name"`
|
|
Password string `json:"password"`
|
|
Domain struct {
|
|
Name string `json:"name"`
|
|
} `json:"domain"`
|
|
} `json:"user"`
|
|
} `json:"password"`
|
|
} `json:"identity"`
|
|
Scope struct {
|
|
Project struct {
|
|
Name string `json:"name"`
|
|
Domain struct {
|
|
Id string `json:"id"`
|
|
} `json:"domain"`
|
|
} `json:"project"`
|
|
} `json:"scope"`
|
|
} `json:"auth"`
|
|
}
|
|
|
|
type Token struct {
|
|
Token struct {
|
|
ExpiresAt time.Time `json:"expires_at"`
|
|
AuditIds []string `json:"audit_ids"`
|
|
Methods []string `json:"methods"`
|
|
IssuedAt time.Time `json:"issued_at"`
|
|
User struct {
|
|
Domain struct {
|
|
Id string `json:"id"`
|
|
Name string `json:"name"`
|
|
} `json:"domain"`
|
|
Id string `json:"id"`
|
|
Name string `json:"name"`
|
|
PasswordExpiresAt string `json:"password_expires_at"`
|
|
} `json:"user"`
|
|
} `json:"token"`
|
|
}
|