repo

package
v0.1.5-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 7 Imported by: ? modules, 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 Repository

type Repository struct {
	CoreStats     *types.RepoCoreStats
	Webhooks      map[types.WebhookID]types.Webhook
	Workflows     map[types.WorkflowID]types.Workflow
	Collaborators map[types.UserLogin]types.User
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(
	ctx context.Context,
	client *github.Client,
	backoff *backoff.Backoff,
	raw *github.Repository) (*Repository, error)

func (*Repository) GetCollaborators

func (repo *Repository) GetCollaborators(ctx context.Context) (
	map[types.UserLogin]types.User, error)

GetCollaborators returns the outside collaborators for a given org. Upon first call, it lazily updates the Organization with the user information

func (*Repository) GetWebhooks

func (repo *Repository) GetWebhooks(
	ctx context.Context) (map[types.WebhookID]types.Webhook, error)

func (*Repository) GetWorkflows

func (repo *Repository) GetWorkflows(
	ctx context.Context) (map[types.WorkflowID]types.Workflow, error)

Jump to

Keyboard shortcuts

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