Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) GetOrgActionsPermissions(ctx context.Context, org string) (*github.ActionsPermissions, error)
- func (c *Client) GetOrgRepos(ctx context.Context, org string) <-chan analyze.RepoBatch
- func (c *Client) GetOrgWorkflowsPermissions(ctx context.Context, org string) (*github.DefaultWorkflowPermissionOrganization, error)
- func (c *Client) GetRepoActionsPermissions(ctx context.Context, org string, repo string) (*github.ActionsPermissionsRepository, error)
- func (c *Client) GetRepoWorkflowsPermissions(ctx context.Context, org string, repo string) (*github.DefaultWorkflowPermissionRepository, error)
- func (c *Client) GetRepository(ctx context.Context, owner, name string) (*GithubRepository, error)
- type GithubRepository
- func (gh GithubRepository) BuildGitURL(baseURL string) string
- func (gh GithubRepository) GetDefaultBranch() string
- func (gh GithubRepository) GetForksCount() int
- func (gh GithubRepository) GetHasDiscussion() bool
- func (gh GithubRepository) GetHasIssues() bool
- func (gh GithubRepository) GetHasWiki() bool
- func (gh GithubRepository) GetIsEmpty() bool
- func (gh GithubRepository) GetIsFork() bool
- func (gh GithubRepository) GetIsTemplate() bool
- func (gh GithubRepository) GetLicense() string
- func (gh GithubRepository) GetOpenIssuesCount() int
- func (gh GithubRepository) GetOrganizationID() int
- func (gh GithubRepository) GetPrimaryLanguage() string
- func (gh GithubRepository) GetProviderName() string
- func (gh GithubRepository) GetRepoIdentifier() string
- func (gh GithubRepository) GetRepositoryID() int
- func (gh GithubRepository) GetSize() int
- func (gh GithubRepository) GetStarsCount() int
- type RateLimitError
- type ScmClient
- func (s *ScmClient) GetOrgRepos(ctx context.Context, org string) <-chan analyze.RepoBatch
- func (s *ScmClient) GetProviderBaseURL() string
- func (s *ScmClient) GetProviderName() string
- func (s *ScmClient) GetProviderVersion(ctx context.Context) (string, error)
- func (s *ScmClient) GetRepo(ctx context.Context, org string, name string) (analyze.Repository, error)
- func (s *ScmClient) GetToken() string
- func (s *ScmClient) ParseRepoAndOrg(repoString string) (string, string, error)
Constants ¶
View Source
const GitHub string = "github"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Token string // contains filtered or unexported fields }
func (*Client) GetOrgActionsPermissions ¶
func (*Client) GetOrgRepos ¶
func (*Client) GetOrgWorkflowsPermissions ¶
func (*Client) GetRepoActionsPermissions ¶
func (*Client) GetRepoWorkflowsPermissions ¶
func (*Client) GetRepository ¶
type GithubRepository ¶
type GithubRepository struct { analyze.Repository NameWithOwner string `graphql:"nameWithOwner"` IsFork bool `graphql:"isFork"` IsPrivate bool `graphql:"isPrivate"` IsMirror bool `graphql:"isMirror"` IsDisabled bool `graphql:"isDisabled"` IsEmpty bool `graphql:"isEmpty"` IsTemplate bool `graphql:"isTemplate"` IsArchived bool `graphql:"isArchived"` StargazerCount int `graphql:"stargazerCount"` ForkCount int `graphql:"forkCount"` Owner struct { Organization struct { DatabaseId int `graphql:"databaseId"` } `graphql:"... on Organization"` User struct { DatabaseId int `graphql:"databaseId"` } `graphql:"... on User"` } `graphql:"owner"` DatabaseId int `graphql:"databaseId"` RepoSize int `graphql:"diskUsage"` // kilobytes DefaultBranchRef struct { Name string `graphql:"name"` } `graphql:"defaultBranchRef"` HasIssues bool `graphql:"hasIssuesEnabled"` HasWiki bool `graphql:"hasWikiEnabled"` HasDiscussions bool `graphql:"hasDiscussionsEnabled"` PrimaryLanguage struct { Name string `graphql:"name"` } `graphql:"primaryLanguage"` License struct { Name string `graphql:"name"` } `graphql:"licenseInfo"` Issues struct { TotalCount int `graphql:"totalCount"` } `graphql:"issues"` }
func (GithubRepository) BuildGitURL ¶
func (gh GithubRepository) BuildGitURL(baseURL string) string
func (GithubRepository) GetDefaultBranch ¶ added in v0.15.1
func (gh GithubRepository) GetDefaultBranch() string
func (GithubRepository) GetForksCount ¶ added in v0.15.1
func (gh GithubRepository) GetForksCount() int
func (GithubRepository) GetHasDiscussion ¶ added in v0.15.1
func (gh GithubRepository) GetHasDiscussion() bool
func (GithubRepository) GetHasIssues ¶ added in v0.15.1
func (gh GithubRepository) GetHasIssues() bool
func (GithubRepository) GetHasWiki ¶ added in v0.15.1
func (gh GithubRepository) GetHasWiki() bool
func (GithubRepository) GetIsEmpty ¶ added in v0.15.1
func (gh GithubRepository) GetIsEmpty() bool
func (GithubRepository) GetIsFork ¶ added in v0.10.0
func (gh GithubRepository) GetIsFork() bool
func (GithubRepository) GetIsTemplate ¶ added in v0.15.1
func (gh GithubRepository) GetIsTemplate() bool
func (GithubRepository) GetLicense ¶ added in v0.15.1
func (gh GithubRepository) GetLicense() string
func (GithubRepository) GetOpenIssuesCount ¶ added in v0.15.1
func (gh GithubRepository) GetOpenIssuesCount() int
func (GithubRepository) GetOrganizationID ¶ added in v0.15.1
func (gh GithubRepository) GetOrganizationID() int
func (GithubRepository) GetPrimaryLanguage ¶ added in v0.15.1
func (gh GithubRepository) GetPrimaryLanguage() string
func (GithubRepository) GetProviderName ¶
func (gh GithubRepository) GetProviderName() string
func (GithubRepository) GetRepoIdentifier ¶
func (gh GithubRepository) GetRepoIdentifier() string
func (GithubRepository) GetRepositoryID ¶ added in v0.15.1
func (gh GithubRepository) GetRepositoryID() int
func (GithubRepository) GetSize ¶ added in v0.15.1
func (gh GithubRepository) GetSize() int
func (GithubRepository) GetStarsCount ¶ added in v0.15.1
func (gh GithubRepository) GetStarsCount() int
type RateLimitError ¶ added in v0.15.1
func (*RateLimitError) Error ¶ added in v0.15.1
func (e *RateLimitError) Error() string
func (*RateLimitError) Unwrap ¶ added in v0.15.1
func (e *RateLimitError) Unwrap() error
type ScmClient ¶
func NewGithubSCMClient ¶
func (*ScmClient) GetOrgRepos ¶
func (*ScmClient) GetProviderBaseURL ¶
func (*ScmClient) GetProviderName ¶
func (*ScmClient) GetProviderVersion ¶
Click to show internal directories.
Click to hide internal directories.