collectors

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 FullRepoName(org string, repo string) string

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 CollectedData struct {
	Context       CollectedDataContext
	Entity        collected.Entity
	Namespace     namespace.Namespace
	CanonicalLink string
}

type CollectedDataContext

type CollectedDataContext interface {
	Premium() bool
	Roles() []permissions.Role
}

type CollectedDataRepositoryContext added in v0.1.7

type CollectedDataRepositoryContext interface {
	CollectedDataContext
	HasBranchProtectionPermission() 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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL