Versions in this module Expand all Collapse all v0 v0.1.2 Mar 3, 2026 v0.1.1 Mar 2, 2026 Changes in this version + var ErrTokenNotFound = errors.New("github token not found") + func IsValidTokenPrefix(token string) bool + type Repository interface + DeleteGitHubToken func(ctx context.Context) error + ReadGitHubToken func(ctx context.Context) (string, error) + UpsertGitHubToken func(ctx context.Context, encryptedToken string, now time.Time) error + type Service struct + func NewService(repo Repository, encryptionKey []byte, insecureSkipVerify bool) *Service + func (s *Service) DeleteToken(ctx context.Context) error + func (s *Service) GetClient() *github.Client + func (s *Service) GetToken() string + func (s *Service) HasToken() bool + func (s *Service) IsFineGrained() bool + func (s *Service) Load(ctx context.Context) error + func (s *Service) SaveToken(ctx context.Context, plaintext string) error