collectors

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAnalyzable added in v0.1.3

func IsAnalyzable(ctx context.Context, client ghclient.Client, repository types.RepositoryWithOwner) (bool, error)

Types

type CollectedData

type CollectedData struct {
	Context       CollectedDataContext
	Entity        githubcollected.CollectedEntity
	Namespace     namespace.Namespace
	CanonicalLink string
}

type CollectedDataContext

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

type CollectionMetric

type CollectionMetric struct {
	TotalCollectionChange int
	CollectionChange      int
	Finished              bool
	Namespace             string
}

type CollectorChannels

type CollectorChannels struct {
	Collected <-chan CollectedData
	Progress  <-chan CollectionMetric
}

type CollectorManager

type CollectorManager interface {
	Collect() CollectorChannels
	CollectMetadata() map[namespace.Namespace]Metadata
}

func NewCollectorsManager

func NewCollectorsManager(ctx context.Context, ns []namespace.Namespace, client github.Client) CollectorManager

type Metadata

type Metadata struct {
	TotalEntities int
}

Jump to

Keyboard shortcuts

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