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

scope

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Login string `json:"login"`
	Type  string `json:"type"`
}

type InstallationResponse

type InstallationResponse struct {
	ID                  int64     `json:"id"`
	Account             Account   `json:"account"`
	RepositorySelection string    `json:"repository_selection"`
	UpdatedAt           time.Time `json:"updated_at"`
}

API Response types

type Manager

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

Manager handles installation scope detection and caching

func NewManager

func NewManager() *Manager

NewManager creates a new scope manager

func (*Manager) FetchScope

func (m *Manager) FetchScope(app *config.GitHubApp, jwtToken string) error

FetchScope retrieves and caches installation scope information

func (*Manager) NeedsRefresh

func (m *Manager) NeedsRefresh(app *config.GitHubApp) bool

NeedsRefresh checks if scope cache needs refreshing

type RepositoriesResponse

type RepositoriesResponse struct {
	TotalCount   int          `json:"total_count"`
	Repositories []Repository `json:"repositories"`
}

type Repository

type Repository struct {
	FullName string `json:"full_name"`
	Private  bool   `json:"private"`
}

Jump to

Keyboard shortcuts

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