Documentation
¶
Index ¶
Constants ¶
View Source
const (
ProviderGitHubCopilot = "github-copilot"
)
Variables ¶
This section is empty.
Functions ¶
func CopilotAPIBaseURL ¶
func DefaultPath ¶
func DefaultPath() string
func NormalizeEnterpriseURL ¶
Types ¶
type CopilotDeviceFlow ¶
type CopilotDeviceFlow struct {
Domain string
EnterpriseURL string
VerificationURI string
UserCode string
DeviceCode string
Interval time.Duration
}
func StartCopilotDeviceFlow ¶
func StartCopilotDeviceFlow(ctx context.Context, enterpriseURL string) (*CopilotDeviceFlow, error)
type Info ¶
type Info struct {
ProviderID string `json:"provider_id"`
Type string `json:"type"`
AccessToken string `json:"access_token,omitempty"`
RefreshToken string `json:"refresh_token,omitempty"`
EnterpriseURL string `json:"enterprise_url,omitempty"`
ExpiresAt time.Time `json:"expires_at,omitempty"`
UpdatedAt time.Time `json:"updated_at"`
}
func PollCopilotDeviceFlow ¶
func PollCopilotDeviceFlow(ctx context.Context, flow *CopilotDeviceFlow) (*Info, error)
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func DefaultStore ¶
func DefaultStore() *Store
Click to show internal directories.
Click to hide internal directories.