Documentation ¶
Index ¶
- func CollectMissingPermissions(missingPermissionChan chan MissingPermission)
- func FullRepoName(org string, repo string) string
- func InitBaseCollector(b *BaseCollector, c Collector)
- type BaseCollector
- func (b *BaseCollector) CollectData(org githubcollected.ExtendedOrg, entity collected.Entity, canonicalLink string, ...)
- func (b *BaseCollector) CollectDataWithContext(entity collected.Entity, canonicalLink string, ctx CollectedDataContext)
- func (b *BaseCollector) CollectionChange(change int)
- func (b *BaseCollector) CollectionChangeByOne()
- func (b *BaseCollector) IssueMissingPermissions(missingPermissions ...MissingPermission)
- func (b *BaseCollector) WrappedCollection(collection func()) SubCollectorChannels
- type CollectedData
- type CollectedDataContext
- type CollectedDataRepositoryContext
- type CollectionMetric
- type Collector
- type Metadata
- type MissingPermission
- type SubCollectorChannels
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectMissingPermissions ¶ added in v0.1.7
func CollectMissingPermissions(missingPermissionChan chan MissingPermission)
func FullRepoName ¶ added in v0.1.7
func InitBaseCollector ¶ added in v0.1.7
func InitBaseCollector(b *BaseCollector, c Collector)
Types ¶
type BaseCollector ¶ added in v0.1.7
type BaseCollector struct { Collector // contains filtered or unexported fields }
func (*BaseCollector) CollectData ¶ added in v0.1.7
func (b *BaseCollector) CollectData(org githubcollected.ExtendedOrg, entity collected.Entity, canonicalLink string, viewerRoles []permissions.Role)
func (*BaseCollector) CollectDataWithContext ¶ added in v0.1.7
func (b *BaseCollector) CollectDataWithContext(entity collected.Entity, canonicalLink string, ctx CollectedDataContext)
func (*BaseCollector) CollectionChange ¶ added in v0.1.7
func (b *BaseCollector) CollectionChange(change int)
func (*BaseCollector) CollectionChangeByOne ¶ added in v0.1.7
func (b *BaseCollector) CollectionChangeByOne()
func (*BaseCollector) IssueMissingPermissions ¶ added in v0.1.7
func (b *BaseCollector) IssueMissingPermissions(missingPermissions ...MissingPermission)
func (*BaseCollector) WrappedCollection ¶ added in v0.1.7
func (b *BaseCollector) WrappedCollection(collection func()) SubCollectorChannels
type CollectedData ¶
type CollectedDataContext ¶
type CollectedDataContext interface { Premium() bool Roles() []permissions.Role }
type CollectedDataRepositoryContext ¶ added in v0.1.7
type CollectedDataRepositoryContext interface { CollectedDataContext HasBranchProtectionPermission() bool }
type CollectionMetric ¶
type Collector ¶ added in v0.1.7
type Collector interface { Collect() SubCollectorChannels Namespace() namespace.Namespace CollectMetadata() Metadata }
type MissingPermission ¶ added in v0.1.7
type MissingPermission struct { Permission string Entity string Effect string Namespace namespace.Namespace }
func NewMissingPermission ¶ added in v0.1.7
func NewMissingPermission(permission, entity, effect string, namespace namespace.Namespace) MissingPermission
type SubCollectorChannels ¶ added in v0.1.7
type SubCollectorChannels struct { Collected <-chan CollectedData Progress <-chan CollectionMetric MissingPermission <-chan MissingPermission }
Click to show internal directories.
Click to hide internal directories.