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: 0

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