Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateGithubClient ¶
func DeleteAuthToken ¶
func DeleteAuthToken() error
func GetAuthToken ¶
func SaveAuthToken ¶
Types ¶
type GitHubTarget ¶
func InferTargetFromUrl ¶
func InferTargetFromUrl(githubUrl string) (GitHubTarget, error)
InferTargetFromUrl will take a valid GitHub URL and create a GitHubTarget object from it. A GitHub URL will take the form "https://github.com/{owner}/{repo}/((tree|blob)/<ref>)?/(<path>/<to>/<root>)?", where:
"(tree|blob)/<ref>" is optional, if not present it defaults to the default branch of the repo. "tree" is used when the target is a directory, "blob" is used when the target is a file
"<ref>" can either be a commit hash or branch
"<path>/<to>/<root>" is optional
If "<path>/<to>/<root>" is present, then "tree/<ref>" or "blob/<ref>" MUST be present
Click to show internal directories.
Click to hide internal directories.