Versions in this module Expand all Collapse all v0 v0.0.3 Dec 4, 2019 Changes in this version type Client + func (c *Client) DeleteRepo(repo string) error + func (c *Client) NewRepo(name, description string, visibility RepoVisibility) (*Repo, error) + func (c *Client) Repo(username, repo string) (*Repo, error) + func (c *Client) UpdateRepo(oldName string, repo *Repo) error v0.0.2 Jun 18, 2019 Changes in this version + const BaseURL + type Author struct + Email string + Name string + type Client struct + func NewClient(opts ...Option) (*Client, error) + func (c *Client) GetUser(username string) (sourcehut.User, error) + func (c *Client) Repos(username string) (RepoIter, error) + func (c *Client) Version() (string, error) + type Commit struct + Author Author + Committer Author + ID string + Message string + Parents []string + ShortID string + Signature ... + Timestamp time.Time + Tree string + type Option func(*Client) error + func Base(base string) Option + func SrhtClient(client sourcehut.Client) Option + type Ref struct + Name string + Target string + type Repo struct + Created time.Time + Description string + ID int64 + Name string + Subject string + Visibility RepoVisibility + type RepoIter struct + func (i RepoIter) Repo() *Repo + type RepoVisibility string + const VisibilityPrivate + const VisibilityPublic + const VisibilityUnlisted + type Tree struct + Entries []struct{ ... } + ID string + ShortID string + type TreeType string + const TypeBlob + const TypeTree