credstore

package
v1.0.260758 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package credstore is a minimal secret store for native apps: OAuth2 tokens (Calendar), a Matrix session token (Chat), and anything else that needs to survive a restart without living in config.json or git. One file per key under ~/.config/ttypedesk/credentials/, 0600, no external keyring dependency — matches the project's "no new required deps" posture for anything that isn't opt-in.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(key string) error

Delete removes any value stored under key. Not an error if none exists.

func Load

func Load(key string) ([]byte, error)

Load reads back the value stored under key. Returns an error wrapping os.ErrNotExist (check with errors.Is) if nothing has been saved yet.

func Save

func Save(key string, value []byte) error

Save writes value under key, replacing any existing value. The file is created (or rewritten) with 0600 permissions.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL