collectors

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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