{"modulePath":"github.com/ca-risken/code","version":"v0.16.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\n## Constants\n\n```go\nconst RETRY_NUM uint64 = 3\n```\n\n## Functions\n\n```go\nfunc NewGithubClient(defaultToken string, logger logging.Logger) *riskenGitHubClient\n```\n\n## Types\n\n```go\ntype GitHubRepoService interface {\n\tList(ctx context.Context, user string, opts *github.RepositoryListOptions) ([]*github.Repository, *github.Response, error)\n\tListByOrg(ctx context.Context, org string, opts *github.RepositoryListByOrgOptions) ([]*github.Repository, *github.Response, error)\n}\n```\n\n```go\ntype GitHubV3Client struct {\n\tRepositories GitHubRepoService\n\t*github.Client\n}\n```\n\n```go\ntype GithubServiceClient interface {\n\tListRepository(ctx context.Context, config *code.GitHubSetting) ([]*github.Repository, error)\n\tClone(ctx context.Context, token string, cloneURL string, dstDir string) error\n}\n```\n\n","path":"github.com/ca-risken/code/pkg/github","name":"github","synopsis":"","isRedistributable":true}
