Documentation ¶
Index ¶
- Constants
- func IsCredentialsError(err error) bool
- type Client
- func (c *Client) GetLatestRelease(ctx context.Context, owner, repo string) (*github.RepositoryRelease, error)
- func (c *Client) GetOrganizationMembers(ctx context.Context, target _coreapi.Owner) ([]*_coreapi.Owner, error)
- func (c *Client) GetReleaseByTag(ctx context.Context, owner, repo, tag string) (*github.RepositoryRelease, error)
- func (c *Client) GetRepositoriesFromOwner(ctx context.Context, target _coreapi.Owner) ([]*_coreapi.Repository, error)
- func (c *Client) GetUserOrganization(ctx context.Context, name string) (*_coreapi.Owner, error)
Constants ¶
View Source
const ( Address = "https://github.com" RAWAddress = "https://raw.githubusercontent.com" )
Variables ¶
This section is empty.
Functions ¶
func IsCredentialsError ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client holds a github api client instance
func (*Client) GetLatestRelease ¶
func (*Client) GetOrganizationMembers ¶
func (c *Client) GetOrganizationMembers(ctx context.Context, target _coreapi.Owner) ([]*_coreapi.Owner, error)
GetOrganizationMembers will gather all the members of a given organization
func (*Client) GetReleaseByTag ¶
func (*Client) GetRepositoriesFromOwner ¶
func (c *Client) GetRepositoriesFromOwner(ctx context.Context, target _coreapi.Owner) ([]*_coreapi.Repository, error)
GetRepositoriesFromOwner is used gather all the repos associated with the org owner or other user. This is only used by the gitlab client. The github client use a github specific function.
Click to show internal directories.
Click to hide internal directories.