Documentation
¶
Index ¶
- Constants
- func GHLoginStep(opts GHLoginOpts) *bootstrap.Step
- func PackageSource(ghc *Client, owner, repo, tag string, ...) apt.PackageSource
- type Client
- func (c *Client) Do(req *http.Request) (*http.Response, error)
- func (c *Client) DoAndParse(req *http.Request, respData any) error
- func (c *Client) Download(ctx context.Context, url string) (*http.Response, error)
- func (c *Client) DownloadReq(ctx context.Context, url string) (*http.Request, error)
- func (c *Client) Get(ctx context.Context, path string, respData any) error
- func (c *Client) GetRelease(ctx context.Context, owner, repo, tag string) (*Release, error)
- type ClientOpt
- type GHLoginOpts
- type Release
- type ReleaseAsset
Constants ¶
View Source
const StepNameAuthLogin = "gh auth login"
Variables ¶
This section is empty.
Functions ¶
func GHLoginStep ¶
func GHLoginStep(opts GHLoginOpts) *bootstrap.Step
func PackageSource ¶
func PackageSource( ghc *Client, owner, repo, tag string, assetMatch func(*Release, *ReleaseAsset) bool, ) apt.PackageSource
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides a rudimentary client for acccessing GitHub resources over its REST api, without pulling in large dependencies.
func (*Client) DownloadReq ¶
type GHLoginOpts ¶
type Release ¶
type Release struct {
TagName string `json:"tag_name"`
Assets []ReleaseAsset `json:"assets"`
}
Click to show internal directories.
Click to hide internal directories.