github

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

func NewProvider

func NewProvider(ctx context.Context, endpoint, token string) (*Provider, error)

func (*Provider) DeleteWebhook

func (p *Provider) DeleteWebhook(ctx context.Context, repoName, webhookID string) error

func (*Provider) EnsureWebhook

func (p *Provider) EnsureWebhook(ctx context.Context, repoName, webhookURL, secret string) (string, error)

func (*Provider) GetIdentity

func (p *Provider) GetIdentity() (string, error)

func (*Provider) ListRepos

func (p *Provider) ListRepos(ctx context.Context, opts provider.ListReposOptions) ([]provider.Repo, error)

ListRepos returns repositories visible to the authenticated identity, applying the given options. When opts.SkipForks is true, forked repositories are excluded via the provider's server-side filter. When opts.Topics is non-empty, only repositories containing all specified topics are included (client-side filter).

func (*Provider) RepoURL

func (p *Provider) RepoURL(ctx context.Context, repoName string) (string, error)

Jump to

Keyboard shortcuts

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