Documentation ¶
Index ¶
- func CloneHeader(in http.Header) http.Header
- func CloneRequest(req http.Request) http.Request
- func NewClientWithAcceptHeader(base http.RoundTripper, acceptHeader *string) *http.Client
- func PaginateResults(api func(opts *github.ListOptions) (*github.Response, error)) error
- type Client
- func (c *Client) Client() *gh.Client
- 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) 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 ¶
func NewClientWithAcceptHeader ¶
func NewClientWithAcceptHeader(base http.RoundTripper, acceptHeader *string) *http.Client
func PaginateResults ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
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) 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.