Documentation ¶
Index ¶
- func CollectMissingPermissions(missingPermissionChan chan MissingPermission)
- func FullRepoName(org string, repo string) string
- 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) Namespace() string
- func (b *BaseCollector) WrappedCollection(collection func()) SubCollectorChannels
- type CollectedData
- type CollectedDataContext
- type CollectedDataRepositoryContext
- type Collector
- 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
Types ¶
type BaseCollector ¶ added in v0.1.7
type BaseCollector struct {
// contains filtered or unexported fields
}
func NewBaseCollector ¶ added in v0.2.3
func NewBaseCollector(namespace string) BaseCollector
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) Namespace ¶ added in v0.2.3
func (b *BaseCollector) Namespace() string
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 HasGithubAdvancedSecurity() bool }
type Collector ¶ added in v0.1.7
type Collector interface { Collect() SubCollectorChannels Namespace() namespace.Namespace CollectTotalEntities() int }
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 progressbar.ChannelType MissingPermission <-chan MissingPermission }
Click to show internal directories.
Click to hide internal directories.