2020-04-24 21:18:31 +00:00
|
|
|
package onepassword
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type field struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
Value string `json:"value"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type details struct {
|
|
|
|
Fields []field `json:"fields"`
|
2020-05-02 12:03:28 +00:00
|
|
|
Notes string `json:"notesPlain"`
|
2020-04-24 21:18:31 +00:00
|
|
|
Password *string `json:"password;omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type overview struct {
|
|
|
|
Title string `json:"title"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type response struct {
|
|
|
|
UUID string `json:"uuid"`
|
|
|
|
Updated time.Time `json:"createdAt"`
|
|
|
|
Details details `json:"details"`
|
|
|
|
Overview overview `json:"overview"`
|
|
|
|
}
|