{"modulePath":"github.com/crashappsec/github-analyzer","version":"v0.1.5-alpha","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package repo\n\n## Types\n\n```go\ntype Repository struct {\n\tCoreStats     *types.RepoCoreStats\n\tWebhooks      map[types.WebhookID]types.Webhook\n\tWorkflows     map[types.WorkflowID]types.Workflow\n\tCollaborators map[types.UserLogin]types.User\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewRepository(\n\tctx context.Context,\n\tclient *github.Client,\n\tbackoff *backoff.Backoff,\n\traw *github.Repository) (*Repository, error)\n```\n\n```go\nfunc (repo *Repository) GetCollaborators(ctx context.Context) (\n\tmap[types.UserLogin]types.User, error)\n```\nGetCollaborators returns the outside collaborators for a given org. Upon first call, it lazily updates the Organization with the user information\n\n```go\nfunc (repo *Repository) GetWebhooks(\n\tctx context.Context) (map[types.WebhookID]types.Webhook, error)\n```\n\n```go\nfunc (repo *Repository) GetWorkflows(\n\tctx context.Context) (map[types.WorkflowID]types.Workflow, error)\n```\n\n","path":"github.com/crashappsec/github-analyzer/pkg/github/repo","name":"repo","synopsis":"","isRedistributable":true}
