Versions in this module Expand all Collapse all v2 v2.0.4 Apr 30, 2024 v2.0.3 Mar 17, 2024 Changes in this version + func SetAsMap(s Set, namespace bool) map[string]any + func SetAsMapWithNamespace(s Set) map[string]map[string]any + func SetFields(s Set, namespace bool) []string + func SetValues(s Set) []any + func ValidateSet(s Set) error + type Field struct + func Val[T SupportedType](v T) Field[T] + func (s *Field[T]) Get() T + func (s *Field[T]) IsSet() bool + func (s *Field[T]) Set(v T) + func (s *Field[T]) Unset() + func (s Field[T]) Value() any + type IssuesSet struct + ClosedCount Field[int] + CommentFrequency Field[float64] + UpdatedCount Field[int] + func (r *IssuesSet) Namespace() Namespace + type Namespace string + const NamespaceIssues + const NamespaceLegacy + const NamespaceRepo + func (ns Namespace) String() string + type RepoSet struct + CommitFrequency Field[float64] + ContributorCount Field[int] + CreatedAt Field[time.Time] + CreatedSince Field[int] + Language Field[string] + License Field[string] + OrgCount Field[int] + RecentReleaseCount Field[int] + StarCount Field[int] + URL Field[string] + UpdatedAt Field[time.Time] + UpdatedSince Field[int] + func (r *RepoSet) Namespace() Namespace + type Set interface + Namespace func() Namespace + type Source interface + EmptySet func() Set + Get func(ctx context.Context, r projectrepo.Repo, jobID string) (Set, error) + IsSupported func(projectrepo.Repo) bool + type SupportedType interface Other modules containing this package github.com/ossf/criticality_score