Documentation
¶
Overview ¶
Package raw provides a client for interacting with the GitHub raw file API
Index ¶
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 is a client for interacting with the GitHub raw content API.
func NewClient ¶
NewClient creates a new instance of the raw API Client with the provided GitHub client and provided URL.
func (*Client) GetRawContent ¶
func (c *Client) GetRawContent(ctx context.Context, owner, repo, path string, opts *ContentOpts) (*http.Response, error)
GetRawContent fetches the raw content of a file from a GitHub repository.
func (*Client) URLFromOpts ¶
func (c *Client) URLFromOpts(opts *ContentOpts, owner, repo, path string) string
type ContentOpts ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.