scope

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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