Documentation
¶
Index ¶
- Constants
- Variables
- func CredentialGeneration(ctx context.Context, store runtimetypes.Store, id string) (string, error)
- func DeleteCredentials(ctx context.Context, exec libdb.Exec, id string) error
- type Service
- func (s *Service) Headers(ctx context.Context, id string) (http.Header, error)
- func (s *Service) Login(ctx context.Context, id string, show func(modelauth.DeviceCode) error) error
- func (s *Service) Logout(ctx context.Context, id string) error
- func (s *Service) Status(ctx context.Context, id string) (modelauth.Status, error)
Constants ¶
View Source
const BaseURL = "https://api.githubcopilot.com"
View Source
const ProviderType = "github-copilot"
Variables ¶
View Source
var ErrLoginRequired = errors.New("GitHub Copilot sign-in required; sign in again under Backends")
View Source
var ErrNotAllowed = errors.New("GitHub Copilot sign-in is an unofficial sign-in; allow unofficial sign-ins in the settings to use it")
Functions ¶
func CredentialGeneration ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.