getgithub

package
v0.0.0-...-e8b1655 Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client() *github.Client

Client return github client.

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.

Jump to

Keyboard shortcuts

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