Documentation ¶
Index ¶
- func Client() *github.Client
- func DownloadContent(client *github.Client, ctx context.Context, ...) error
- func GetBranchOrTag(client *github.Client, ctx context.Context, owner, repo, branch string) (string, error)
- func GetContentList(client *github.Client, ctx context.Context, owner, repo, path, branch string) (map[string]string, error)
- func GetRepositoryContentGetOptions(ref string) *github.RepositoryContentGetOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadContent ¶
func DownloadContent(client *github.Client, ctx context.Context, owner, repo, path, branch, dest string) error
DownloadContent download the file or directory requested by user and put to destination path.
func GetBranchOrTag ¶
func GetBranchOrTag(client *github.Client, ctx context.Context, owner, repo, branch string) (string, error)
GetBranchOrTag verify if requested branch or tag present and return if there.
func GetContentList ¶
func GetContentList(client *github.Client, ctx context.Context, owner, repo, path, branch string) (map[string]string, error)
GetContentList return the file/directory list
func GetRepositoryContentGetOptions ¶
func GetRepositoryContentGetOptions(ref string) *github.RepositoryContentGetOptions
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.