Documentation ¶
Index ¶
- type Client
- func (c *Client) Client() *gh.Client
- func (c *Client) CollectEnterprises() ([]githubcollected.Enterprise, error)
- func (c *Client) CollectOrganizations() ([]githubcollected.ExtendedOrg, error)
- func (c *Client) GetActionsTokenPermissions(url string) (*types.TokenPermissions, error)
- func (c *Client) GetActionsTokenPermissionsForOrganization(organization string) (*types.TokenPermissions, error)
- func (c *Client) GetActionsTokenPermissionsForRepository(organization string, repository string) (*types.TokenPermissions, error)
- func (c *Client) GetOrganizationSecrets(org string) (*gh.Secrets, error)
- func (c *Client) GetRepositorySecrets(repo, owner string) (*gh.Secrets, error)
- func (c *Client) GetRulesForBranch(organization, repository, branch string) ([]*types.RepositoryRule, error)
- func (c *Client) GetSecurityAndAnalysisForEnterprise(enterprise string) (*types.AnalysisAndSecurityPolicies, error)
- func (c *Client) GetSecurityAndAnalysisForRepository(repo, owner string) (*gh.SecurityAndAnalysis, error)
- func (c *Client) GraphQLClient() *githubv4.Client
- func (c *Client) IsAnalyzable(repository commontypes.RepositoryWithOwner) (bool, error)
- func (c *Client) IsGithubCloud() bool
- func (c *Client) Organization(login string) (*githubcollected.ExtendedOrg, error)
- func (c *Client) Organizations() ([]commontypes.Organization, error)
- func (c *Client) Orgs() []string
- func (c *Client) Repositories() ([]commontypes.RepositoryWithOwner, error)
- func (c *Client) Scopes() permissions.TokenScopes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CollectEnterprises ¶ added in v0.2.6
func (c *Client) CollectEnterprises() ([]githubcollected.Enterprise, error)
func (*Client) CollectOrganizations ¶
func (c *Client) CollectOrganizations() ([]githubcollected.ExtendedOrg, error)
func (*Client) GetActionsTokenPermissions ¶ added in v0.1.7
func (c *Client) GetActionsTokenPermissions(url string) (*types.TokenPermissions, error)
func (*Client) GetActionsTokenPermissionsForOrganization ¶ added in v0.1.6
func (c *Client) GetActionsTokenPermissionsForOrganization(organization string) (*types.TokenPermissions, error)
func (*Client) GetActionsTokenPermissionsForRepository ¶ added in v0.1.6
func (*Client) GetOrganizationSecrets ¶ added in v1.0.8
func (*Client) GetRepositorySecrets ¶ added in v1.0.8
func (*Client) GetRulesForBranch ¶ added in v1.0.0
func (c *Client) GetRulesForBranch(organization, repository, branch string) ([]*types.RepositoryRule, error)
func (*Client) GetSecurityAndAnalysisForEnterprise ¶ added in v1.0.0
func (c *Client) GetSecurityAndAnalysisForEnterprise(enterprise string) (*types.AnalysisAndSecurityPolicies, error)
func (*Client) GetSecurityAndAnalysisForRepository ¶ added in v1.0.11
func (c *Client) GetSecurityAndAnalysisForRepository(repo, owner string) (*gh.SecurityAndAnalysis, error)
func (*Client) GraphQLClient ¶
func (*Client) IsAnalyzable ¶ added in v0.1.7
func (c *Client) IsAnalyzable(repository commontypes.RepositoryWithOwner) (bool, error)
func (*Client) IsGithubCloud ¶ added in v0.1.6
func (*Client) Organization ¶ added in v0.1.7
func (c *Client) Organization(login string) (*githubcollected.ExtendedOrg, error)
func (*Client) Organizations ¶ added in v0.1.7
func (c *Client) Organizations() ([]commontypes.Organization, error)
func (*Client) Repositories ¶ added in v0.1.7
func (c *Client) Repositories() ([]commontypes.RepositoryWithOwner, error)
func (*Client) Scopes ¶
func (c *Client) Scopes() permissions.TokenScopes
Click to show internal directories.
Click to hide internal directories.