{"modulePath":"github.com/absane/wraith","version":"v0.0.0-20200807164625-81b32712623f","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\nPackage github represents github specific functionality\n\nPackage github represents github specific functionality\n\n## Functions\n\n```go\nfunc CheckAPIToken(t string)\n```\nCheckAPIToken will ensure we have a valid github api token\n\n```go\nfunc CloneRepository(cloneConfig *common.CloneConfiguration) (*git.Repository, string, error)\n```\nCloneRepository will crete either an in memory clone of a given repository or clone to a temp dir.\n\n## Types\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\nClient holds a github api client instance\n\n```go\nfunc (c Client) GetOrganizationMembers(target common.Owner) ([]*common.Owner, error)\n```\nGetOrganizationMembers will gather all the members of a given organization\n\n```go\nfunc (c Client) GetRepositoriesFromOwner(target common.Owner) ([]*common.Repository, error)\n```\nGetRepositoriesFromOwner is used gather all the repos associated with the org owner or other user\n\n```go\nfunc (c Client) GetUserOrganization(login string) (*common.Owner, error)\n```\nGetUserOrganization is used to enumerate the owner in a given org\n\n```go\nfunc (c Client) NewClient(token string) (apiClient Client)\n```\nNewClient creates a github api client instance using oauth2 credentials\n\n","path":"github.com/absane/wraith/github","name":"github","synopsis":"Package github represents github specific functionality Package github represents github specific functionality","isRedistributable":true}
