github

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: GPL-3.0 Imports: 21 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

View Source
var Config = config.GetConfig()
View Source
var Tracer = otel.Tracer("pkg/providers/github")

Functions

This section is empty.

Types

type GithubProvider

type GithubProvider struct {
	AppClient          *github.Client
	InstallationClient *github.Client
	PatClient          *github.Client
	Parameters         GithubProviderParameters
	Name               string `json:"name"`
}

func NewGithubProvider

func NewGithubProvider(ctx context.Context, config models.ProviderConfig) (*GithubProvider, error)

func (*GithubProvider) GrantAccess

func (p *GithubProvider) GrantAccess(ctx context.Context, request *models.AccessRequest) error

func (*GithubProvider) IsAccessExpired

func (p *GithubProvider) IsAccessExpired(ctx context.Context, request *models.AccessRequest) (bool, error)

func (*GithubProvider) ListUsersWithAccess

func (p *GithubProvider) ListUsersWithAccess(ctx context.Context, roleRef models.AccessRoleRef) ([]string, error)

func (*GithubProvider) RevokeAccess

func (p *GithubProvider) RevokeAccess(ctx context.Context, request *models.AccessRequest) error

type GithubProviderParameters

type GithubProviderParameters struct {
	Org          string
	Role         string
	OrgRoles     []string
	Teams        map[string]string
	Repositories map[string]string
	RemoveUser   string
}

Jump to

Keyboard shortcuts

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