Documentation ¶
Index ¶
- type Repository
- func (repo *Repository) GetCollaborators(ctx context.Context) (map[types.UserLogin]types.User, error)
- func (repo *Repository) GetWebhooks(ctx context.Context) (map[types.WebhookID]types.Webhook, error)
- func (repo *Repository) GetWorkflows(ctx context.Context) (map[types.WorkflowID]types.Workflow, error)
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 (*Repository) GetWorkflows ¶
func (repo *Repository) GetWorkflows( ctx context.Context) (map[types.WorkflowID]types.Workflow, error)
Click to show internal directories.
Click to hide internal directories.