Documentation
¶
Overview ¶
Package migrate packs accounts into an encrypted bundle for moving them between machines. The bundle is useless without the one-time code.
Index ¶
Constants ¶
const ( BeginPrefix = "-----BEGIN CCSWAP BUNDLE v" EndLine = "-----END CCSWAP BUNDLE-----" )
BeginPrefix starts the first line of a bundle, before its version; EndLine is its last line. A reader keeps what lies between them, whatever text surrounds them.
Variables ¶
Functions ¶
Types ¶
type Account ¶
type Account struct {
Name string `json:"name"`
Email string `json:"email"`
Priority int `json:"priority"`
Enabled bool `json:"enabled"`
OAuthAccount json.RawMessage `json:"oauth_account,omitempty"`
Credentials json.RawMessage `json:"credentials"`
WeeklyThreshold float64 `json:"weekly_threshold,omitempty"`
}
Account is one migrated account. Credentials is the vault form {"claudeAiOauth":{...}}, preserved semantically (JSON is compacted).