{"modulePath":"github.com/crashappsec/github-analyzer","version":"v0.1.5-alpha","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package org\n\n## Types\n\n```go\ntype OrgStats struct {\n\tCoreStats     *types.OrgCoreStats\n\tCollaborators []types.UserLogin\n\tWebhooks      map[types.WebhookID]types.Webhook\n\tInstallations map[types.InstallID]types.Install\n\tRunners       map[types.RunnerID]types.Runner\n}\n```\n\n```go\ntype Organization struct {\n\tCoreStats     *types.OrgCoreStats\n\tUsers         map[types.UserLogin]types.User\n\tCollaborators map[types.UserLogin]types.User\n\tRepositories  map[types.RepoName]repo.Repository\n\tWebhooks      map[types.WebhookID]types.Webhook\n\tInstallations map[types.InstallID]types.Install\n\tRunners       map[types.RunnerID]types.Runner\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewOrganization(\n\tctx context.Context,\n\tclient *github.Client,\n\tbackoff *backoff.Backoff,\n\tname string) (*Organization, error)\n```\n\n```go\nfunc (org *Organization) Audit(\n\tctx context.Context,\n\tenableUserPermissionStats bool,\n) ([]issue.Issue, map[issue.IssueID]error, error)\n```\n\n```go\nfunc (org *Organization) Audit2FA(\n\tctx context.Context) ([]issue.Issue, map[issue.IssueID]error, error)\n```\n\n```go\nfunc (org *Organization) AuditCoreStats(\n\tctx context.Context) ([]issue.Issue, map[issue.IssueID]error, error)\n```\n\n```go\nfunc (org *Organization) AuditMemberPermissions(\n\tctx context.Context) ([]issue.Issue, map[issue.IssueID]error, error)\n```\n\n```go\nfunc (org *Organization) AuditWebhooks(\n\tctx context.Context) ([]issue.Issue, map[issue.IssueID]error, error)\n```\n\n```go\nfunc (org *Organization) GetActionRunners(\n\tctx context.Context) (map[types.RunnerID]types.Runner, error)\n```\n\n```go\nfunc (org *Organization) 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 (org *Organization) GetInstalls(\n\tctx context.Context) (map[types.InstallID]types.Install, error)\n```\n\n```go\nfunc (org *Organization) GetRepositories(ctx context.Context) (\n\tmap[types.RepoName]repo.Repository, error)\n```\nGetRepositories returns the repositories for a given org. Upon first call, it lazily updates the Organization with the repository information\n\n```go\nfunc (org *Organization) GetUsers(ctx context.Context) (\n\tmap[types.UserLogin]types.User, error)\n```\nGetUsers returns the users for a given org. Upon first call, it lazily updates the Organization with the user information\n\n```go\nfunc (org *Organization) GetWebhooks(\n\tctx context.Context) (map[types.WebhookID]types.Webhook, error)\n```\nGetWebhook returns the webhooks for a given org. Upon first call, it lazily updates the Organization with the webhook information\n\n```go\nfunc (org *Organization) Summarize() *types.OrgCoreStats\n```\nSummarize provides generic statistics for a given org and serializes them to disc\n\n","path":"github.com/crashappsec/github-analyzer/pkg/github/org","name":"org","synopsis":"","isRedistributable":true}
