Help us shape the future of Go! Take the 2026 Go Developer Survey

codexaccounts

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package codexaccounts manages local Codex login profiles. Only display metadata is returned to callers; native Codex remains the token refresher.

Index

Constants

This section is empty.

Variables

View Source
var ErrConflict = errors.New("Codex account state conflict")

Functions

This section is empty.

Types

type Options

type Options struct {
	Root        context.Context
	Environment func() map[string]string
	Acquire     func(context.Context) (func(), error)
	Invalidate  func(context.Context) error
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(options Options) (*Service, error)

func (*Service) CancelLogin

func (s *Service) CancelLogin(id string) error

func (*Service) Initialize

func (s *Service) Initialize(ctx context.Context) error

Initialize is intentionally separate: candidate startup checks never touch the host's active Codex files.

func (*Service) List

func (*Service) Login

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.

func (*Service) Mutate

func (s *Service) Mutate(ctx context.Context, action, id string, request model.CodexAccountMutation) (*model.CodexAccountResponse, error)

func (*Service) ReadLogin

func (s *Service) ReadLogin(id string) (model.CodexAccountLogin, error)

Jump to

Keyboard shortcuts

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