Documentation ¶
Index ¶
- Constants
- type BasicEnrichment
- type Enricher
- func NewEntityIdEnricher(ctx context.Context) Enricher
- func NewEntityNameEnricher(ctx context.Context) Enricher
- func NewHooksListEnricher(ctx context.Context) Enricher
- func NewMembersListEnricher(ctx context.Context) Enricher
- func NewOrganizationIdEnricher(ctx context.Context) Enricher
- func NewScorecardEnricher(ctx context.Context) Enricher
- type Enrichment
- type HooksListEnrichment
- type MembersListEnrichment
- type ScorecardCheck
- type ScorecardEnrichment
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 NewEntityNameEnricher ¶
func NewHooksListEnricher ¶
func NewMembersListEnricher ¶
func NewScorecardEnricher ¶
type Enrichment ¶
func NewBasicEnrichment ¶
func NewBasicEnrichment(str string) Enrichment
type HooksListEnrichment ¶
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 ScorecardEnrichment ¶
type ScorecardEnrichment struct {
Checks []ScorecardCheck
}
func (*ScorecardEnrichment) HumanReadable ¶
func (se *ScorecardEnrichment) HumanReadable(prepend string) string
Click to show internal directories.
Click to hide internal directories.