Documentation
¶
Index ¶
- type Client
- func (c *Client) GetClient() *http.Client
- func (c *Client) GetLatestRelease(ctx context.Context, owner, repo string) (*Release, error)
- func (c *Client) GetRelease(ctx context.Context, owner, repo, tag string) (*Release, error)
- func (c *Client) GetToken() string
- func (c *Client) ListReleases(ctx context.Context, owner, repo string) ([]*Release, error)
- func (c *Client) SetBaseURL(baseURL string)
- func (c *Client) SetToken(token string)
- type Release
- type ReleaseAsset
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
}
func (*Client) GetLatestRelease ¶
func (*Client) GetRelease ¶
func (*Client) ListReleases ¶
func (*Client) SetBaseURL ¶
type Release ¶
type Release struct {
ID int64 `json:"id"`
TagName string `json:"tag_name"`
Name string `json:"name"`
Body string `json:"body"`
Draft bool `json:"draft"`
Prerelease bool `json:"prerelease"`
CreatedAt time.Time `json:"created_at"`
PublishedAt time.Time `json:"published_at"`
Assets []*ReleaseAsset `json:"assets"`
}
Click to show internal directories.
Click to hide internal directories.