Documentation
¶
Overview ¶
Package codexaccounts manages local Codex login profiles. Only display metadata is returned to callers; native Codex remains the token refresher.
Index ¶
- Variables
- type Options
- type Service
- func (s *Service) CancelLogin(id string) error
- func (s *Service) Initialize(ctx context.Context) error
- func (s *Service) List(ctx context.Context) (*model.CodexAccountResponse, error)
- func (s *Service) Login(request model.CodexAccountMutation) (model.CodexAccountLogin, error)
- func (s *Service) Mutate(ctx context.Context, action, id string, request model.CodexAccountMutation) (*model.CodexAccountResponse, error)
- func (s *Service) ReadLogin(id string) (model.CodexAccountLogin, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConflict = errors.New("Codex account state conflict")
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) CancelLogin ¶
func (*Service) Initialize ¶
Initialize is intentionally separate: candidate startup checks never touch the host's active Codex files.
func (*Service) Login ¶
func (s *Service) Login(request model.CodexAccountMutation) (model.CodexAccountLogin, error)
Login uses Codex's device-code flow in a separate home. Completing a new account login never signs out or replaces the currently active account.
Click to show internal directories.
Click to hide internal directories.