github

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: GPL-3.0 Imports: 21 Imported by: 0

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