Versions in this module Expand all Collapse all v1 v1.1.0-solo.4 Nov 5, 2026 v1.0.0 Oct 28, 2026 Changes in this version + func LoadToken(remote string) (string, error) + func SaveCredentials(remote string, credentials Credentials) error + func SaveToken(remote, token string) error + type Cipher struct + Salt []byte + func Derive(passphrase string, salt []byte) (*Cipher, error) + func LoadCipher(traceDir, passphrase string) (*Cipher, error) + func (c *Cipher) Open(encoded, aad string) ([]byte, error) + func (c *Cipher) Seal(plain []byte, aad string) (string, error) + type Client struct + Blobs *blob.Store + Cipher *Cipher + Config Config + DB *sql.DB + HTTP *http.Client + Token string + TokenProvider func(context.Context) (string, error) + TraceDir string + func (c *Client) Pull(ctx context.Context, traceDir, passphrase string) (int, int, error) + func (c *Client) Sync(ctx context.Context) (int, int, error) + type Config struct + ClientID string + Endpoint string + GitHubApp bool + Mode string + Remote string + func (cfg Config) Validate() error + type Credentials struct + AccessToken string + ExpiresAt int64 + RefreshExpiresAt int64 + RefreshToken string + func LoadCredentials(remote string) (Credentials, error) + type DeviceCode struct + Code string + ExpiresIn int + Interval int + UserCode string + VerifyURL string + type OAuth struct + App bool + Base string + Client *http.Client + func (o OAuth) Refresh(ctx context.Context, clientID string, previous Credentials) (Credentials, error) + func (o OAuth) Start(ctx context.Context, clientID string) (DeviceCode, error) + func (o OAuth) Wait(ctx context.Context, clientID string, code DeviceCode) (string, error) + func (o OAuth) WaitCredentials(ctx context.Context, clientID string, code DeviceCode) (Credentials, error) + type Row struct + Ciphertext string + Data json.RawMessage + ID string + Salt string + Table string + type State struct + Cursors map[string]string + Target string