Documentation
¶
Index ¶
- Variables
- func GetCNCFEntityAffiliations(ctx context.Context) (map[string]*data.CNCFDeveloper, error)
- func UpdateDevelopersWithCNCFEntityAffiliations(ctx context.Context, store data.DeveloperStore, entityStore data.EntityStore, ...) (*data.AffiliationImportResult, error)
- type Store
- func (s *Store) ApplySubstitutions() ([]*data.Substitution, error)
- func (s *Store) CleanEntities() error
- func (s *Store) ClearState(org, repo string) error
- func (s *Store) Close() error
- func (s *Store) ComputeDeepReputation(ctx context.Context, token, username string) (*data.UserReputation, error)
- func (s *Store) DB() *sql.DB
- func (s *Store) DeleteRepoData(org, repo string) (*data.DeleteResult, error)
- func (s *Store) GetAllOrgRepos() ([]*data.OrgRepoItem, error)
- func (s *Store) GetChangeFailureRate(org, repo, entity *string, months int) (*data.ChangeFailureRateSeries, error)
- func (s *Store) GetContainerActivity(org, repo *string, months int) (*data.ContainerActivitySeries, error)
- func (s *Store) GetContributorFunnel(org, repo, entity *string, months int) (*data.ContributorFunnelSeries, error)
- func (s *Store) GetContributorMomentum(org, repo, entity *string, months int) (*data.MomentumSeries, error)
- func (s *Store) GetContributorProfile(username string, org, repo, entity *string, months int) (*data.ContributorProfileSeries, error)
- func (s *Store) GetContributorRetention(org, repo, entity *string, months int) (*data.RetentionSeries, error)
- func (s *Store) GetDailyActivity(org, repo, entity *string, months int) (*data.DailyActivitySeries, error)
- func (s *Store) GetDataState() (map[string]int64, error)
- func (s *Store) GetDeveloper(username string) (*data.Developer, error)
- func (s *Store) GetDeveloperPercentages(entity, org, repo *string, ex []string, months int) ([]*data.CountedItem, error)
- func (s *Store) GetDeveloperUsernames() ([]string, error)
- func (s *Store) GetEntity(val string) (*data.EntityResult, error)
- func (s *Store) GetEntityLike(query string, limit int) ([]*data.ListItem, error)
- func (s *Store) GetEntityPercentages(entity, org, repo *string, ex []string, months int) ([]*data.CountedItem, error)
- func (s *Store) GetEventTypeSeries(org, repo, entity *string, months int) (*data.EventTypeSeries, error)
- func (s *Store) GetForksAndActivity(org, repo, entity *string, months int) (*data.ForksAndActivitySeries, error)
- func (s *Store) GetInsightsSummary(org, repo, entity *string, months int) (*data.InsightsSummary, error)
- func (s *Store) GetMinEventDate(org, repo *string) (string, error)
- func (s *Store) GetNoFullnameDeveloperUsernames() ([]string, error)
- func (s *Store) GetOrComputeDeepReputation(ctx context.Context, token, username string) (*data.UserReputation, error)
- func (s *Store) GetOrgLike(query string, limit int) ([]*data.ListItem, error)
- func (s *Store) GetPRReviewRatio(org, repo, entity *string, months int) (*data.PRReviewRatioSeries, error)
- func (s *Store) GetPRSizeDistribution(org, repo, entity *string, months int) (*data.PRSizeSeries, error)
- func (s *Store) GetReleaseCadence(org, repo, entity *string, months int) (*data.ReleaseCadenceSeries, error)
- func (s *Store) GetReleaseDownloads(org, repo *string, months int) (*data.ReleaseDownloadsSeries, error)
- func (s *Store) GetReleaseDownloadsByTag(org, repo *string, months int) (*data.ReleaseDownloadsByTagSeries, error)
- func (s *Store) GetRepoLike(query string, limit int) ([]*data.ListItem, error)
- func (s *Store) GetRepoMetas(org, repo *string) ([]*data.RepoMeta, error)
- func (s *Store) GetRepoMetricHistory(org, repo *string, months int) ([]*data.RepoMetricHistory, error)
- func (s *Store) GetReputationDistribution(org, repo, entity *string, months int) (*data.ReputationDistribution, error)
- func (s *Store) GetReviewLatency(org, repo, entity *string, months int) (*data.ReviewLatencySeries, error)
- func (s *Store) GetState(query, org, repo string, min time.Time) (*data.State, error)
- func (s *Store) GetTimeToClose(org, repo, entity *string, months int) (*data.VelocitySeries, error)
- func (s *Store) GetTimeToMerge(org, repo, entity *string, months int) (*data.VelocitySeries, error)
- func (s *Store) GetTimeToRestoreBugs(org, repo, entity *string, months int) (*data.VelocitySeries, error)
- func (s *Store) ImportAllContainerVersions(ctx context.Context, token string) error
- func (s *Store) ImportAllReleases(ctx context.Context, token string) error
- func (s *Store) ImportAllRepoMeta(ctx context.Context, token string) error
- func (s *Store) ImportAllRepoMetricHistory(ctx context.Context, token string) error
- func (s *Store) ImportContainerVersions(ctx context.Context, token, org, repo string) error
- func (s *Store) ImportDeepReputation(ctx context.Context, tokenFn data.TokenFunc, limit, staleHours int, ...) (*data.DeepReputationResult, error)
- func (s *Store) ImportEvents(ctx context.Context, token, owner, repo string, months int) (map[string]int, *data.ImportSummary, error)
- func (s *Store) ImportReleases(ctx context.Context, token, owner, repo string) error
- func (s *Store) ImportRepoMeta(ctx context.Context, token, owner, repo string) error
- func (s *Store) ImportRepoMetricHistory(ctx context.Context, token, owner, repo string) error
- func (s *Store) ImportReputation(org, repo *string) (*data.ReputationResult, error)
- func (s *Store) MergeDeveloper(ctx context.Context, client *http.Client, username string, ...) (*data.Developer, error)
- func (s *Store) QueryEntities(val string, limit int) ([]*data.CountedItem, error)
- func (s *Store) SaveAndApplyDeveloperSub(prop, old, new string) (*data.Substitution, error)
- func (s *Store) SaveDevelopers(devs []*data.Developer) error
- func (s *Store) SaveState(query, org, repo string, state *data.State) error
- func (s *Store) SearchDeveloperUsernames(query string, org, repo *string, months, limit int) ([]string, error)
- func (s *Store) SearchDevelopers(val string, limit int) ([]*data.DeveloperListItem, error)
- func (s *Store) SearchEvents(q *data.EventSearchCriteria) ([]*data.EventDetails, error)
- func (s *Store) UpdateDeveloperNames(devs map[string]string) error
- func (s *Store) UpdateEvents(ctx context.Context, token string, concurrency int) (map[string]int, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var EventTypes = []string{ data.EventTypePR, data.EventTypeIssue, data.EventTypeIssueComment, data.EventTypePRReview, data.EventTypeFork, }
Functions ¶
func UpdateDevelopersWithCNCFEntityAffiliations ¶
func UpdateDevelopersWithCNCFEntityAffiliations(ctx context.Context, store data.DeveloperStore, entityStore data.EntityStore, client *http.Client) (*data.AffiliationImportResult, error)
UpdateDevelopersWithCNCFEntityAffiliations updates the developers with the CNCF entity affiliations. It accepts a data.DeveloperStore so it can be used with any Store implementation.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements data.Store for SQLite.
func (*Store) ApplySubstitutions ¶
func (s *Store) ApplySubstitutions() ([]*data.Substitution, error)
func (*Store) CleanEntities ¶
func (*Store) ClearState ¶
func (*Store) ComputeDeepReputation ¶
func (*Store) DeleteRepoData ¶
func (s *Store) DeleteRepoData(org, repo string) (*data.DeleteResult, error)
func (*Store) GetAllOrgRepos ¶
func (s *Store) GetAllOrgRepos() ([]*data.OrgRepoItem, error)
func (*Store) GetChangeFailureRate ¶
func (*Store) GetContainerActivity ¶
func (*Store) GetContributorFunnel ¶
func (*Store) GetContributorMomentum ¶
func (*Store) GetContributorProfile ¶
func (*Store) GetContributorRetention ¶
func (*Store) GetDailyActivity ¶
func (*Store) GetDeveloperPercentages ¶
func (*Store) GetDeveloperUsernames ¶
func (*Store) GetEntityLike ¶
func (*Store) GetEntityPercentages ¶
func (*Store) GetEventTypeSeries ¶
func (*Store) GetForksAndActivity ¶
func (*Store) GetInsightsSummary ¶
func (*Store) GetNoFullnameDeveloperUsernames ¶
func (*Store) GetOrComputeDeepReputation ¶
func (*Store) GetOrgLike ¶
func (*Store) GetPRReviewRatio ¶
func (*Store) GetPRSizeDistribution ¶
func (*Store) GetReleaseCadence ¶
func (*Store) GetReleaseDownloads ¶
func (*Store) GetReleaseDownloadsByTag ¶
func (*Store) GetRepoLike ¶
func (*Store) GetRepoMetas ¶
func (*Store) GetRepoMetricHistory ¶
func (*Store) GetReputationDistribution ¶
func (*Store) GetReviewLatency ¶
func (*Store) GetTimeToClose ¶
func (*Store) GetTimeToMerge ¶
func (*Store) GetTimeToRestoreBugs ¶
func (*Store) ImportAllContainerVersions ¶
func (*Store) ImportAllReleases ¶
func (*Store) ImportAllRepoMeta ¶
func (*Store) ImportAllRepoMetricHistory ¶
func (*Store) ImportContainerVersions ¶
func (*Store) ImportDeepReputation ¶
func (*Store) ImportEvents ¶
func (*Store) ImportReleases ¶
func (*Store) ImportRepoMeta ¶
func (*Store) ImportRepoMetricHistory ¶
func (*Store) ImportReputation ¶
func (s *Store) ImportReputation(org, repo *string) (*data.ReputationResult, error)
func (*Store) MergeDeveloper ¶
func (*Store) QueryEntities ¶
func (*Store) SaveAndApplyDeveloperSub ¶
func (s *Store) SaveAndApplyDeveloperSub(prop, old, new string) (*data.Substitution, error)
func (*Store) SearchDeveloperUsernames ¶
func (*Store) SearchDevelopers ¶
func (*Store) SearchEvents ¶
func (s *Store) SearchEvents(q *data.EventSearchCriteria) ([]*data.EventDetails, error)
func (*Store) UpdateDeveloperNames ¶
Click to show internal directories.
Click to hide internal directories.