enrichers

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const EntityId = "entityId"
View Source
const EntityName = "entityName"
View Source
const HooksList = "hooksList"
View Source
const MembersList = "violatedUsers"
View Source
const OrganizationId = "organizationId"
View Source
const Scorecard = "scorecard"

Variables

This section is empty.

Functions

func NewEntityIdEnricher

func NewEntityIdEnricher() entityIdEnricher

func NewEntityNameEnricher

func NewEntityNameEnricher() entityNameEnricher

func NewHooksListEnricher

func NewHooksListEnricher() hooksListEnricher

func NewMembersListEnricher

func NewMembersListEnricher() membersListEnricher

func NewOrganizationIdEnricher

func NewOrganizationIdEnricher() organizationIdEnricher

Types

type BasicEnrichment

type BasicEnrichment string

func NewBasicEnrichment

func NewBasicEnrichment(val string) BasicEnrichment

func NewBasicEnrichmentFromInterface added in v0.2.3

func NewBasicEnrichmentFromInterface(data interface{}) (BasicEnrichment, error)

func (BasicEnrichment) HumanReadable

func (s BasicEnrichment) HumanReadable(_ string, _ string) string

type Enricher

type Enricher interface {
	Enrich(ctx context.Context, data analyzers.AnalyzedData) (enrichment Enrichment, ok bool)
	Parse(data interface{}) (enrichment Enrichment, err error)
}

func NewScorecardEnricher

func NewScorecardEnricher() Enricher

type Enrichment

type Enrichment interface {
	HumanReadable(prepend string, linebreak string) string
}

type GenericListEnrichment added in v0.1.7

type GenericListEnrichment []orderedmap.OrderedMap

func NewGenericListEnrichmentFromInterface added in v0.2.3

func NewGenericListEnrichmentFromInterface(data interface{}) (GenericListEnrichment, error)

func (GenericListEnrichment) HumanReadable added in v0.1.7

func (se GenericListEnrichment) HumanReadable(prepend string, linebreak string) string

type MembersListEnrichment

type MembersListEnrichment []githubcollected.OrganizationMember

func (MembersListEnrichment) HumanReadable

func (se MembersListEnrichment) HumanReadable(prepend string, linebreak string) string

type ScorecardCheck

type ScorecardCheck struct {
	Reason  string
	DocsUrl string
	Details []string
}

type ScorecardEnrichment

type ScorecardEnrichment []ScorecardCheck

func (ScorecardEnrichment) HumanReadable

func (se ScorecardEnrichment) HumanReadable(prepend string, linebreak string) string

Jump to

Keyboard shortcuts

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