enrichers

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicEnrichment

type BasicEnrichment struct {
	// contains filtered or unexported fields
}

func (*BasicEnrichment) HumanReadable

func (be *BasicEnrichment) HumanReadable(prepend string) string

func (*BasicEnrichment) MarshalJSON

func (s *BasicEnrichment) MarshalJSON() ([]byte, error)

type Enricher

type Enricher interface {
	Enrich(data analyzers.AnalyzedData) (enrichment Enrichment, ok bool)
	ShouldEnrich(requestedEnricher string) bool
	Name() string
}

func NewEntityIdEnricher

func NewEntityIdEnricher(ctx context.Context) Enricher

func NewEntityNameEnricher

func NewEntityNameEnricher(ctx context.Context) Enricher

func NewHooksListEnricher

func NewHooksListEnricher(ctx context.Context) Enricher

func NewMembersListEnricher

func NewMembersListEnricher(ctx context.Context) Enricher

func NewOrganizationIdEnricher

func NewOrganizationIdEnricher(ctx context.Context) Enricher

func NewScorecardEnricher

func NewScorecardEnricher(ctx context.Context) Enricher

type Enrichment

type Enrichment interface {
	HumanReadable(prepend string) string
}

func NewBasicEnrichment

func NewBasicEnrichment(str string) Enrichment

type HooksListEnrichment

type HooksListEnrichment struct {
	Hooks []github.Hook
}

func (*HooksListEnrichment) HumanReadable

func (se *HooksListEnrichment) HumanReadable(prepend string) string

type MembersListEnrichment

type MembersListEnrichment struct {
	Members []githubcollected.OrganizationMember
}

func (*MembersListEnrichment) HumanReadable

func (se *MembersListEnrichment) HumanReadable(prepend string) string

type ScorecardCheck

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

type ScorecardEnrichment

type ScorecardEnrichment struct {
	Checks []ScorecardCheck
}

func (*ScorecardEnrichment) HumanReadable

func (se *ScorecardEnrichment) HumanReadable(prepend string) string

Jump to

Keyboard shortcuts

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