Documentation
¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) GetFileContent(ctx context.Context, token, owner, repo, path, ref string) (*FileContent, error)
- func (c *Client) GetFileContentBatch(ctx context.Context, token, owner, repo, ref string, paths []string) ([]*FileContent, error)
- func (c *Client) GetTree(ctx context.Context, token, owner, repo, ref string) ([]TreeEntry, error)
- type FileContent
- type TreeEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements contracts.GitHub using google/go-github.
func (*Client) GetFileContent ¶
func (c *Client) GetFileContent(ctx context.Context, token, owner, repo, path, ref string) (*FileContent, error)
GetFileContent retrieves the content of a single file.
func (*Client) GetFileContentBatch ¶
func (c *Client) GetFileContentBatch(ctx context.Context, token, owner, repo, ref string, paths []string) ([]*FileContent, error)
GetFileContentBatch retrieves multiple files concurrently. Uses the resilient GetFileContent pipeline internally.
type FileContent ¶
FileContent represents the content of a file from GitHub.
Click to show internal directories.
Click to hide internal directories.