(creds *Credentials)
| 74 | } |
| 75 | |
| 76 | func (s Store) save(creds *Credentials) error { |
| 77 | if err := os.MkdirAll(filepath.Dir(s.path), 0700); err != nil { |
| 78 | return err |
| 79 | } |
| 80 | return pkgfs.MarshalJSONFile(creds, s.path, 0600) |
| 81 | } |
| 82 | |
| 83 | type Credentials struct { |
| 84 | Version int `json:"version"` |
no outgoing calls
no test coverage detected