profiles

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package profiles stores local registrations of vendor-owned account roots. It never reads, copies, or refreshes credentials. Remote registrations contain public metadata.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeRegistrations

func DecodeRegistrations(b []byte) ([]agent.RuntimeProfile, error)

DecodeRegistrations reads a peer's known non-secret registry. Tags and account keys stay private; vendor-reported email and plan are public identity metadata.

func ID

func ID() string

func RootID

func RootID(endpoint string, a agent.ID, root string) string

func Tags

func Tags(values []string) ([]string, error)

Types

type Store

type Store struct{ Dir string }

func (Store) Edit

func (s Store) Edit(id, name string, tags []string, generation int) error

func (Store) Forget

func (s Store) Forget(id string, generation int) error

func (Store) ImportObservation

func (s Store) ImportObservation(id string, remote agent.RuntimeProfile) error

ImportObservation accepts newer metadata from the endpoint that owns the root. Local labels and tags stay local, and a failed or stale remote read cannot reset them.

func (Store) List

func (s Store) List() ([]agent.RuntimeProfile, error)

func (Store) Observe

func (s Store) Observe(id string, account *agent.Account, problem string) (agent.RuntimeProfile, error)

Observe records public login metadata and rotates the opaque binding after an observable account change. Limited metadata never upgrades to verified identity.

func (Store) ObserveFrom added in v0.4.1

func (s Store) ObserveFrom(id string, account *agent.Account, problem, source string) (agent.RuntimeProfile, error)

ObserveFrom retains the origin of public metadata; failures preserve the last known login.

func (Store) Register

func (Store) SetDefault

func (s Store) SetDefault(endpoint string, id agent.ID, selected string) error

SetDefault tracks the vendor's currently configured root, without changing profile identity. Switching that root invalidates plans which could launch the desktop app.

func (Store) Update

func (s Store) Update(fn func(*[]agent.RuntimeProfile) error) error

Update serializes read-modify-write across the GUI, TUI and separate CLI processes.

Jump to

Keyboard shortcuts

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