Documentation ¶
Index ¶
- type OrgStats
- type Organization
- func (org *Organization) Audit(ctx context.Context, enableStats bool) ([]issue.Issue, map[issue.IssueID]error, error)
- func (org *Organization) Audit2FA(ctx context.Context) ([]issue.Issue, map[issue.IssueID]error, error)
- func (org *Organization) AuditCoreStats(ctx context.Context) ([]issue.Issue, map[issue.IssueID]error, error)
- func (org *Organization) AuditMemberPermissions(ctx context.Context) ([]issue.Issue, map[issue.IssueID]error, error)
- func (org *Organization) AuditWebhooks(ctx context.Context) ([]issue.Issue, map[issue.IssueID]error, error)
- func (org *Organization) GetActionRunners(ctx context.Context) (map[types.RunnerID]types.Runner, error)
- func (org *Organization) GetCollaborators(ctx context.Context) (map[types.UserLogin]types.User, error)
- func (org *Organization) GetInstalls(ctx context.Context) (map[types.InstallID]types.Install, error)
- func (org *Organization) GetRepositories(ctx context.Context) (map[types.RepoName]repo.Repository, error)
- func (org *Organization) GetUsers(ctx context.Context) (map[types.UserLogin]types.User, error)
- func (org *Organization) GetWebhooks(ctx context.Context) (map[types.WebhookID]types.Webhook, error)
- func (org *Organization) Summarize() *types.OrgCoreStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Organization ¶
type Organization struct { CoreStats *types.OrgCoreStats Users map[types.UserLogin]types.User Collaborators map[types.UserLogin]types.User Repositories map[types.RepoName]repo.Repository Webhooks map[types.WebhookID]types.Webhook Installations map[types.InstallID]types.Install Runners map[types.RunnerID]types.Runner // contains filtered or unexported fields }
func NewOrganization ¶
func (*Organization) AuditCoreStats ¶
func (*Organization) AuditMemberPermissions ¶
func (*Organization) AuditWebhooks ¶
func (*Organization) GetActionRunners ¶
func (*Organization) GetCollaborators ¶
func (org *Organization) 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 (*Organization) GetInstalls ¶
func (*Organization) GetRepositories ¶
func (org *Organization) GetRepositories(ctx context.Context) ( map[types.RepoName]repo.Repository, error)
GetRepositories returns the repositories for a given org. Upon first call, it lazily updates the Organization with the repository information
func (*Organization) GetUsers ¶
GetUsers returns the users for a given org. Upon first call, it lazily updates the Organization with the user information
func (*Organization) GetWebhooks ¶
func (org *Organization) GetWebhooks( ctx context.Context) (map[types.WebhookID]types.Webhook, error)
GetWebhook returns the webhooks for a given org. Upon first call, it lazily updates the Organization with the webhook information
func (*Organization) Summarize ¶
func (org *Organization) Summarize() *types.OrgCoreStats
Summarize provides generic statistics for a given org and serializes them to disc
Click to show internal directories.
Click to hide internal directories.