Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Save ¶
func Save(state TrustState) error
Save writes the trust state to disk. Creates ~/.nself/ if needed.
Types ¶
type TrustState ¶
type TrustState struct {
TrustedDomain string `json:"trusted_domain"`
}
TrustState records the last BASE_DOMAIN for which trust was configured.
func Load ¶
func Load() (TrustState, error)
Load reads the trust state from disk. Returns zero-value TrustState if not found.
Click to show internal directories.
Click to hide internal directories.