Documentation
¶
Overview ¶
Package githubapi offers some utility functions to interact with GitHub from the Trusty libraries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubClient ¶
GitHubClient wraps the GitHub client and its context
func NewGitHubClient ¶
func NewGitHubClient(token string) *GitHubClient
NewGitHubClient initializes and returns a new GitHubClient
func (*GitHubClient) GetFileContent ¶
func (g *GitHubClient) GetFileContent(owner, repo, path, ref string) (string, error)
GetFileContent fetches the content of a file from a specific branch in a repository
Click to show internal directories.
Click to hide internal directories.