github

package
v1.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(ctx context.Context, token string, githubEndpoint string, org []string, enterprises []string) (*Client, error)

func (*Client) Client

func (c *Client) Client() *gh.Client

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 (c *Client) GetActionsTokenPermissionsForRepository(organization string, repository string) (*types.TokenPermissions, error)

func (*Client) GetOrganizationSecrets added in v1.0.8

func (c *Client) GetOrganizationSecrets(org string) (*gh.Secrets, error)

func (*Client) GetRepositorySecrets added in v1.0.8

func (c *Client) GetRepositorySecrets(repo, owner string) (*gh.Secrets, error)

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 (c *Client) GraphQLClient() *githubv4.Client

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 (c *Client) IsGithubCloud() bool

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) Orgs

func (c *Client) Orgs() []string

func (*Client) Repositories added in v0.1.7

func (c *Client) Repositories() ([]commontypes.RepositoryWithOwner, error)

func (*Client) Scopes

func (c *Client) Scopes() permissions.TokenScopes

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL