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
- 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"` StargazerCount int `graphql:"stargazerCount"` ForkCount int `graphql:"forkCount"` }
func (GithubRepository) BuildGitURL ¶
func (gh GithubRepository) BuildGitURL(baseURL string) string
func (GithubRepository) GetIsFork ¶ added in v0.10.0
func (gh GithubRepository) GetIsFork() bool
func (GithubRepository) GetProviderName ¶
func (gh GithubRepository) GetProviderName() string
func (GithubRepository) GetRepoIdentifier ¶
func (gh GithubRepository) GetRepoIdentifier() string
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.