Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchManifestPath ¶
FetchManifestPath searches for the manifest.toml path in a repository.
Types ¶
type Client ¶
type Client interface {
SearchCode(ctx context.Context, query string, opts *gh.SearchOptions) (*gh.CodeSearchResult, *gh.Response, error)
GetRepository(ctx context.Context, owner, repo string) (*gh.Repository, *gh.Response, error)
IsOrgMember(ctx context.Context, org, user string) (bool, *gh.Response, error)
}
Client defines the GitHub API methods used by this application.
type MembershipCache ¶
type MembershipCache struct {
// contains filtered or unexported fields
}
MembershipCache caches GitHub org membership lookups.
func NewMembershipCache ¶
func NewMembershipCache() *MembershipCache
NewMembershipCache creates a new MembershipCache.
type Repo ¶
Repo represents a GitHub repository with optional star count.
func FindManifestRepos ¶
func FindManifestRepos(ctx context.Context, client Client, c *cache.Cache, mc *MembershipCache, opts SearchOptions) ([]Repo, error)
FindManifestRepos searches for repositories containing .flox/env/manifest.toml.
func FindReadmeRepos ¶
func FindReadmeRepos(ctx context.Context, client Client, c *cache.Cache, mc *MembershipCache, opts SearchOptions) ([]Repo, error)
FindReadmeRepos searches for repositories containing "flox install" in their README.
type RepoInfo ¶
type RepoInfo struct {
Date string `json:"date"`
Repository string `json:"repository"`
Type string `json:"type"`
StarCount int `json:"starcount"`
}
RepoInfo holds repository information for JSON export.
type SearchOptions ¶
SearchOptions controls the behavior of repository search functions.
Click to show internal directories.
Click to hide internal directories.