Discover Packages
github.com/TeoSlayer/pilotprotocol
internal
account
package
Version:
v1.5.0-rc1
Opens a new window with list of versions in this module.
Published: Mar 27, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
PathFromIdentity returns the account file path derived from an identity file path.
If identity is "/var/lib/pilot/identity.json", returns "/var/lib/pilot/account.json".
Save writes the account to disk atomically with 0600 permissions.
type Account struct {
Email string `json:"email"`
}
Account holds persisted account information alongside the identity file.
Load reads an account from disk. Returns nil, nil if the file does not exist.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.